@charset "utf-8";
/* ==========================================================================
   ゆい環境問題研究会 – 統合スタイルシート
   旧 style.css / cinzel.css / slide.css を1ファイルに統合
   （クラス名・ID・見た目は従来どおり）
   ========================================================================== */

/* ---- Webフォント（Cinzel / latin） ------------------------------------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---- デザイントークン -------------------------------------------------- */
:root {
  --max-width: 1200px;           /* header .inner / #container / #pagetop / #footermenu */
  --bp-tablet: 1300px;
  --bp-mid: 1000px;
  --bp-sp: 800px;                /* main.js の MOBILE_MAX と合わせる */
  --bp-xs: 530px;

  --text: #666;
  --link: #3330a0;
  --link-hover: #683368;
  --line: #ccc;

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", serif;
  --font-menu-en: "Cinzel", serif;

  --shadow-container: 0 0 20px rgb(0 0 0 / 0.3);
  --shadow-menu: 0 10px 10px rgb(0 0 0 / 0.15);
}

/* ---- リセット・全体の設定 --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;       /* 旧 common.js のスムーススクロール */
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 2;
  background: #deecdb linear-gradient(#748781 150px, #deecdb 500px);
}

h1, h2, h3, h4, h5, p, ul, ol, li, dl, dt, dd, form, figure {
  margin: 0;
  padding: 0;
  font-size: 100%;
}
ul { list-style-type: none; }
ol { padding-left: 40px; padding-bottom: 17px; }
img { border: none; max-width: 100%; height: auto; vertical-align: middle; }
table { border-collapse: collapse; font-size: 100%; border-spacing: 0; }
iframe { width: 100%; }

/* ---- リンク ------------------------------------------------------------ */
a {
  color: var(--link);
  transition: 0.5s;
}
a:hover { color: var(--link-hover); text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---- ヘッダー ---------------------------------------------------------- */
header {
  position: relative;            /* #menubar_hdr の基準 */
  height: 150px;
  border-bottom: 1px solid #000;
  background: linear-gradient(#9baaa2, #2f5960);
  color: #fff;
}
header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
#logo img {
  width: 300px;
  position: absolute;
  left: 20px;
  top: 30px;
}
#tel {
  position: absolute;
  right: 20px;
  top: 12px;
  letter-spacing: 0.2em;
}
#tel a { color: #fff; }

/* ---- コンテナー -------------------------------------------------------- */
#container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  top: -50px;                    /* headerに重ねる */
  background: #fff;
  box-shadow: var(--shadow-container);
}

#contents {
  display: flex;
  flex-direction: row-reverse;   /* main を右、sub を左に */
  align-items: flex-start;
  gap: 3%;
  padding: 3%;
  overflow: hidden;
}

/* ---- メインメニュー ---------------------------------------------------- */
#menubar,
#menubar-s {
  z-index: 10;
  position: absolute;
  left: 0;
  top: 0;
  width: 99%;
}
#menubar ul,
#menubar-s ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1%;
  padding-left: 1%;
}
#menubar li,
#menubar-s li {
  width: 19%;
  line-height: 1.4;
}
#menubar li a,
#menubar-s li a {
  display: block;
  position: relative;
  padding: 6px 2% 10px 15%;
  font-family: var(--font-serif);
  font-size: 12px;
  color: #000;
  text-decoration: none;
  text-shadow: 0 1px 1px #fff;
  background: rgb(255 255 255 / 0.8);
  border: 1px solid #fff;
  box-shadow: var(--shadow-menu);
}
/* 「→」マーク */
#menubar li a::before,
#menubar-s li a::before {
  content: "→";
  display: block;
  position: absolute;
  left: 4%;
  top: 10px;
  width: 16px;
  line-height: 16px;
  text-align: center;
  text-shadow: none;
  font-size: 10px;
  font-family: monospace;
  color: #fff;
  background: #755660;
  border-radius: 50%;
}
/* 英語表記 */
#menubar li a span,
#menubar-s li a span {
  display: block;
  color: #563641;
  font-size: 18px;
  font-weight: bold;
  font-family: var(--font-menu-en);
}
#menubar li a:hover {
  background: #fff;
  padding: 8px 2% 12px 15%;
  letter-spacing: 0.1em;
}

/* 小さい端末用メニュー・3本バーは既定で非表示 */
#menubar-s,
#menubar_hdr { display: none; }

/* ---- メインコンテンツ -------------------------------------------------- */
#main {
  width: 75%;
  min-width: 0;
  overflow: hidden;
}
.c1 #main { width: 100%; }

#main h2 {
  clear: both;
  margin-bottom: 15px;
  padding: 8px 15px;
  background: linear-gradient(#fff, #eee);
  border: 1px solid var(--line);
  border-bottom: 4px solid #66626b;
  border-radius: 4px 4px 0 0;
}
#main h3 {
  clear: both;
  margin-bottom: 15px;
  padding: 6px 15px;
  background: linear-gradient(#fff, #eee);
  border: 1px solid var(--line);
  border-radius: 4px;
}
h4 {
  padding: 0.25em 0.5em;
  color: #494949;
  background: transparent;
  border-left: solid 5px #5b6660;
}
h5 {
  position: relative;
  padding: 0.25em 1em;
  border-top: solid 2px #000;
  border-bottom: solid 2px #000;
}
h5::before,
h5::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 2px;
  height: calc(100% + 14px);
  background-color: #000;
}
h5::before { left: 7px; }
h5::after  { right: 7px; }

#main p { padding: 0 15px 14px; }
#main h2 + p,
#main h3 + p { margin-top: -5px; }

/* おすすめ記事リスト（旧：» リンク + <br> の羅列を ul 化） */
.article-list { padding: 0 15px 14px; }
.article-list li::before { content: "\00BB\00A0"; }

/* ---- 一覧用ブロック（.list） ------------------------------------------ */
#main .list {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  padding: 3%;
  border: 1px solid var(--line);
}
#main .list a {
  display: block;
  overflow: hidden;
  padding: 3%;
  margin: -3%;
  text-decoration: none;
}
#main .list h3 {
  margin: 0 0 10px 34%;          /* 左の写真とのバランス */
  padding: 0 0 0.3em;
  font-size: 120%;
  background: none;
  border: 0;
  border-bottom: solid 1px var(--line);
  border-radius: 0;
}
#main .list h4 {
  margin: 0 0 10px 34%;
  font-size: 120%;
  border-bottom: solid 1px var(--line);
}
#main .list a h3::before,
#main .list a h4::before {
  content: "→";
  margin-right: 10px;
  padding: 2px 5px;
  color: #fff;
  background: linear-gradient(#7f7082, #634b58);
  border-radius: 2px;
}
#main .list p { margin-left: 34%; padding: 0; }
#main .list figure img {
  float: left;
  width: 30%;
  padding: 0.6%;
  border: 1px solid var(--line);
}
#main .list a:hover { background: #fffde7; }

/* ---- サブコンテンツ ---------------------------------------------------- */
#sub {
  width: 22%;
  overflow: hidden;
}
.c1 #sub { display: none; }

#sub h2 {
  padding: 15px 10px;
  color: #fff;
  background: linear-gradient(#928d99, #726d7a);
  border-bottom: solid 1px var(--line);
}

ul.submenu { margin-bottom: 15px; }
ul.submenu li { border-bottom: solid 1px var(--line); }
ul.submenu li a {
  display: block;
  padding: 3px 10px;
  text-decoration: none;
  background: #fff;
}

#sub .box1 {
  overflow: hidden;
  margin-bottom: 15px;
  padding: 5%;
  border: 5px solid #ddd;
  background: #ccc url("../images/bg.png");
}
#sub .box1 ul.submenu { margin-bottom: 0; }

/* #subimg（メインビジュアル） */
#subimg { margin-bottom: 15px; text-align: center; }
#subimg img { max-width: 100%; height: auto; border: 1px solid var(--line); }

/* ---- PAGE TOP ---------------------------------------------------------- */
#pagetop {
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-width);
  margin: 0 auto;
}
#pagetop a {
  display: block;
  padding: 0 30px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  background: #7f8979;
  border-radius: 4px 4px 0 0;
}
#pagetop a:hover { background: #4c5640; color: #fff; }

/* ---- フッター ---------------------------------------------------------- */
footer { clear: both; background: #789687; color: #fff; }
footer a,
footer a:hover { color: #fff; }
footer .pr { display: block; font-size: 80%; }

#footermenu {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 0;
  overflow: hidden;
}
#footermenu ul { width: 18%; padding-left: 2%; }

#copyright { text-align: center; background: #576b61; }
#copyright a { text-decoration: none; }

/* ---- トップページ「更新情報・お知らせ」 -------------------------------- */
#new dl {
  display: grid;
  grid-template-columns: 8em 1fr;
  align-content: start;
  height: 110px;
  margin-bottom: 15px;
  padding-left: 15px;
  overflow: auto;
}
#new dt { font-weight: bold; }
#new dd { padding-left: 0; }

/* ---- テーブル ---------------------------------------------------------- */
.ta1 { width: 100%; margin-bottom: 15px; }
.ta1, .ta1 td, .ta1 th {
  padding: 10px;
  border: 1px solid var(--line);
  word-break: break-all;
}
.ta1 th.tamidashi { width: auto; text-align: left; background: #eee; }
.ta1 th { width: 140px; text-align: center; }
.ta1 th img { width: 100%; }

/* ---- NEWアイコン ------------------------------------------------------- */
.newicon {
  margin: 0 5px;
  padding: 0 5px;
  color: #fff;
  font-size: 10px;
  background: #f00;
  border-radius: 2px;
}

/* ---- 広告・SNS --------------------------------------------------------- */
.ad-container { margin: 20px 0; text-align: center; }
/* シェアボタン（js/snsbutton.js が .sns-buttons 内にボタンを出力） */
.sns-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.sns-buttons .sns-fb {
  display: inline-block;
  padding: 2px 10px;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-decoration: none;
  background: #1877f2;
  border-radius: 3px;
}
.sns-buttons .sns-fb:hover { color: #fff; opacity: 0.85; }

/* ---- その他 ------------------------------------------------------------ */
.look { color: #fff; background: #666; padding: 5px; border-radius: 4px; }
.mb15, .mb1em { margin-bottom: 15px; }
.clear { clear: both; }
ul.disc { padding: 0 25px 1em; list-style: disc; }
.color1 { color: #c19135 !important; }
.pr { font-size: 10px; }
.wl { width: 96%; }
.ws { width: 50%; }
.c { text-align: center; }
.r { text-align: right; }
.l { text-align: left; }
img.fr { float: right; margin: 0 0 10px 10px; width: 30%; }
img.fl { float: left;  margin: 0 10px 10px 0; width: 30%; }
.big1 { font-size: 30px; letter-spacing: 0.2em; }
.mini1 { font-size: 11px; }
.sh, .dn { display: none; }
.menu-mg {
  width: 80%;
  margin: 2em auto;
  padding: 1em;
  color: #666;
  background-color: #f7f7f7;
  border: 2px solid var(--line);
  border-radius: 8px;
}
.blueline { background: linear-gradient(transparent 70%, #9ec4dd 0); }
.youtube iframe { width: 100%; }

/* ---- CSSスライドショー（旧 slide.css） --------------------------------- */
@keyframes slide1 {
  0%, 30% { opacity: 1; }
  40%, 100% { opacity: 0; }
}
@keyframes slide2 {
  0%, 20% { opacity: 0; }
  30%, 60% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes slide3 {
  0%, 50% { opacity: 0; }
  60%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
#mainimg { clear: left; position: relative; width: 100%; }
#slide0 { position: relative; width: 100%; height: auto; }
#slide1, #slide2, #slide3 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
#slide1 { animation-name: slide1; }
#slide2 { animation-name: slide2; }
#slide3 { animation-name: slide3; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

/* ---- 1300px以下 -------------------------------------------------------- */
@media screen and (max-width: 1300px) {
  header .inner,
  #container,
  #pagetop,
  #footermenu { margin-left: 3%; margin-right: 3%; }
}

/* ---- 1000px以下 -------------------------------------------------------- */
@media screen and (max-width: 1000px) {
  #menubar li a::before { top: 8px; left: 2%; }
  #menubar li a span { font-size: 14px; }
}

/* ---- 800px以下 --------------------------------------------------------- */
@media screen and (max-width: 800px) {
  #logo img { width: 40%; }
  #tel { right: 60px; letter-spacing: normal; }

  /* メニュー：PC用を隠し、スマホ用＋3本バーを表示 */
  #menubar { display: none; }
  #menubar-s { display: block; }
  #menubar-s li { width: 49%; margin-bottom: 1%; }
  /* JS有効時は閉じた状態から開始（JS無効なら常に表示） */
  .js #menubar-s:not(.open) { display: none; }

  /* 3本バー */
  #menubar_hdr {
    display: block;
    z-index: 20;
    position: absolute;
    top: 25px;
    right: 3%;
    box-sizing: content-box;
    width: 30px;
    padding: 12px 10px 5px;
    border: 1px solid #fff;
    background: #382c33;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  #menubar_hdr span {
    display: block;
    margin-bottom: 7px;
    border-top: 3px solid #fff;
  }

  /* main / sub を縦積み */
  #contents { display: block; }
  #main, #sub { width: auto; }
  #sub { margin-top: 15px; }

  /* お知らせの開閉アイコン */
  section#new h2.open {
    background: url("../images/btn_minus.png") no-repeat right center / 34px 34px,
      linear-gradient(#fff, #eee);
  }
  section#new h2.close {
    background: url("../images/btn_plus.png") no-repeat right center / 34px 34px,
      linear-gradient(#fff, #eee);
  }

  body.s-n #sub { display: none; }
  .fl-half { float: left; width: 45%; margin-left: 3%; }
  .menu-mg { width: 84%; }
}

/* ---- 530px以下 --------------------------------------------------------- */
@media screen and (max-width: 530px) {
  header .inner { text-align: center; }
  #logo img { position: static; width: 60%; padding: 10px 0; }
  #tel { position: static; font-size: 11px; }

  #menubar-s li { width: 99%; margin-bottom: 0; }
  #menubar-s li a {
    background: rgb(255 255 255 / 0.9);
    border: 1px solid #5fa271;
    border-top: none;
  }
  #menubar_hdr { top: 10px; }

  #container { top: -20px; }

  #main .list p,
  #main .list h3,
  #main .list h4 { margin-left: 0; }
  #main .list figure img { float: none; width: 100%; padding: 0; border: none; }

  #footermenu { display: none; }

  .ta1 th { width: 100px; padding: 5px; }
  .ta1 td { width: auto; padding: 5px; }

  .ws, .wl { width: 95%; }
  img.fr, img.fl { float: none; margin: 0; width: 100%; }
  .sh { display: block; }
  .pc { display: none; }
  .fl-half { float: none; width: 100%; margin-left: 0; }
  .menu-mg { width: 88%; }
}

/* ---- 動きを減らす設定 -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
  #slide1, #slide2, #slide3 { animation: none; }
  #slide1 { opacity: 1; }
}

/* ==========================================================================
   記事ページ用
   各記事ページの <head> 内にあった <style> と、旧タグ（<font> 等）の置き換え分
   ========================================================================== */

/* 記事冒頭のメイン画像（<h1> に画像を入れている） */
#main h1 { margin-bottom: 15px; text-align: center; }
#main figure { margin: 0 0 15px; text-align: center; }

/* 旧 <font color="#ff0000"> */
.red { color: #f00; }

/* 強調・ハイライト */
.emphasis { color: #d32f2f; font-weight: bold; }
.highlight {
  padding: 2px 5px;
  background-color: #fff3cd;
  border-radius: 3px;
}

/* 引用・注記ボックス */
.quote, .user-quote, .user-note, .buy-tip, .warning {
  margin: 15px 0;
  padding: 10px 15px;
}
.quote {
  font-style: italic;
  background: #e8f5e8;
  border-left: 4px solid #4caf50;
}
.user-quote {
  margin: 20px 0;
  padding: 15px;
  font-style: italic;
  background: #f9f9f9;
  border-left: 5px solid #007bff;
  border-radius: 5px;
}
.user-note, .buy-tip {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}
.warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 5px;
}
#main :is(.quote, .user-quote, .user-note, .buy-tip, .warning) p { padding: 0; }
.section-divider { margin: 30px 0; border-bottom: 2px dashed #e0e0e0; }

/* 比較表（スマホでは .table-wrap の中で横スクロール） */
.table-wrap { margin-bottom: 15px; overflow-x: auto; }
.table-comparison { width: 100%; min-width: 30em; border-collapse: collapse; }
.table-comparison th, .table-comparison td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ddd;
}
.table-comparison th { background: #f8f9fa; }
.table-caption {
  margin-top: 8px;
  color: #555;
  font-size: 0.9em;
  text-align: center;
}
