/* =========================================================
   共通ヘッダー・フッター用スタイル(山本あきこと未来を作る会)
   ・クラス名はすべて "yaw-site-" で始まります(既存ページのクラス名とぶつかりません)
   ・色・文字サイズはWordPress時代の表示を基準にしています
       ヘッダー文字の緑  #2f6844  / フッター背景の緑  #2f633f
   ・PC表示は 1000px 以上、それより狭い画面はハンバーガーメニューです
   ========================================================= */

/* ---------- ページ全体の下地 ---------- */
html,
body {
  margin: 0;
  padding: 0;
}

/* 各ページの本文が「画面幅いっぱい(100vw)」で作られているため、
   縦スクロールバーの幅ぶんだけ横に はみ出して横スクロールバーが出るのを防ぐ */
body {
  overflow-x: hidden;
}

/* 読み込みが終わるまでの間も高さを確保して、本文が「ガクッ」と下がらないようにする */
.yaw-site-slot--header { min-height: 63px; }
.yaw-site-slot--footer { min-height: 125px; }

@media (min-width: 1000px) {
  .yaw-site-slot--header { min-height: 98px; }
  .yaw-site-slot--footer { min-height: 149px; }
}

/* =========================================================
   ヘッダー
   ========================================================= */
.yaw-site-header,
.yaw-site-header * {
  box-sizing: border-box;
}

.yaw-site-header {
  position: relative;
  z-index: 100;                       /* 本文の上にメニューを重ねるため */
  background: #fffdf5;                /* 温かみのあるクリーム色 */
  color: #2f6844;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo,
    "Noto Sans JP", sans-serif;
  /* 本文との境目:細い緑の線 + ごく薄い影 */
  border-bottom: 1px solid #d5e4cf;
  box-shadow: 0 2px 10px rgba(47, 104, 68, 0.08);
}

.yaw-site-header a {
  color: inherit;
  text-decoration: none;
}

.yaw-site-header ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- スマホ・タブレット(~999px) ---------- */
.yaw-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 8px 12px 8px 16px;
}

.yaw-site-header__name {
  margin: 0;
  font-size: clamp(18px, 5.4vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ハンバーガーボタン */
.yaw-site-header__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 1px solid #c9dcc3;
  border-radius: 10px;
  color: #2f6844;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.yaw-site-header__toggle:hover {
  background: #f1f7ec;
}

.yaw-site-header__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.yaw-site-header__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.yaw-site-header__bars span:nth-child(1) { top: 0; }
.yaw-site-header__bars span:nth-child(2) { top: 7px; }
.yaw-site-header__bars span:nth-child(3) { top: 14px; }

/* 開いたときは「×」に */
.yaw-site-header.is-open .yaw-site-header__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.yaw-site-header.is-open .yaw-site-header__bars span:nth-child(2) { opacity: 0; }
.yaw-site-header.is-open .yaw-site-header__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ドロップダウンのメニュー(スマホ) */
.yaw-site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fffdf5;
  border-top: 1px solid #e3ecdc;
  border-bottom: 1px solid #d5e4cf;
  box-shadow: 0 10px 18px rgba(47, 104, 68, 0.14);
}

.yaw-site-header.is-open .yaw-site-nav {
  display: block;
}

.yaw-site-nav li + li {
  border-top: 1px solid #ecf2e6;
}

.yaw-site-nav a {
  display: block;
  padding: 15px 20px;
  font-size: 17px;
  line-height: 1.4;
}

.yaw-site-nav a:hover,
.yaw-site-nav a:focus-visible {
  background: #f1f7ec;
}

.yaw-site-nav a[aria-current="page"] {
  background: #eef5e8;
  box-shadow: inset 4px 0 0 #2f6844;
}

.yaw-site-header a:focus-visible,
.yaw-site-header__toggle:focus-visible {
  outline: 3px solid #7fae92;
  outline-offset: 2px;
}

/* ---------- PC(1000px以上):名称を上、7項目を横並びで下に ---------- */
@media (min-width: 1000px) {
  .yaw-site-header__inner {
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 12px 16px 6px;
  }

  .yaw-site-header__name {
    font-size: 28px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .yaw-site-header__toggle {
    display: none;
  }

  .yaw-site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-top: 2px;
  }

  .yaw-site-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .yaw-site-nav li + li {
    border-top: 0;
  }

  .yaw-site-nav a {
    padding: 7px 10px 5px;                  /* 1000〜1199px:7項目が1行におさまる狭めの余白 */
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
    border-bottom: 2px solid transparent;   /* 今いるページ・マウスを乗せたとき用の下線 */
  }

  .yaw-site-nav a:hover,
  .yaw-site-nav a:focus-visible {
    background: transparent;
    border-bottom-color: #8fbca0;
  }

  .yaw-site-nav a[aria-current="page"] {
    background: transparent;
    box-shadow: none;
    border-bottom-color: #2f6844;
  }
}

/* 広い画面(1200px以上)は、項目の間隔をゆったりさせる */
@media (min-width: 1200px) {
  .yaw-site-nav a {
    padding: 7px 18px 5px;
  }
}

/* =========================================================
   フッター
   ========================================================= */
.yaw-site-footer,
.yaw-site-footer * {
  box-sizing: border-box;
}

.yaw-site-footer {
  width: 100%;
  margin: 0;
  padding: 26px 16px 24px;
  background: #2f633f;                /* 現在の濃い緑 */
  color: #ffffff;
  text-align: center;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo,
    "Noto Sans JP", sans-serif;
}

.yaw-site-footer p {
  margin: 0;
  padding: 0;
  color: #ffffff;
}

.yaw-site-footer__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.yaw-site-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}

.yaw-site-footer__links a {
  padding: 0 12px;
  border-left: 1px solid #dddddd;      /* 区切り線(現在のデザインと同じ) */
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
  text-decoration: none;
}

.yaw-site-footer__links a:last-child {
  border-right: 1px solid #dddddd;
}

.yaw-site-footer__links a:hover,
.yaw-site-footer__links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.yaw-site-footer a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.yaw-site-footer__copy {
  font-size: 14px;
  line-height: 1.5;
}

/* スマホ:リンクが1行におさまるよう、文字と余白を画面幅に合わせて小さくする */
@media (max-width: 600px) {
  .yaw-site-footer {
    padding: 22px 8px 20px;
  }
  .yaw-site-footer__name {
    font-size: 17px;
  }
  .yaw-site-footer__links a {
    padding: 0 clamp(4px, 1.2vw, 10px);
    font-size: clamp(12.5px, 3.4vw, 17px);
  }
  .yaw-site-footer__copy {
    font-size: 12px;
  }
}
