/* Hero */
.page-hero {
  width: 100%;
  aspect-ratio: 1920 / 330;
  /* ← 横幅基準で高さが自動決定 */
  margin-bottom: 0;
  border-radius: 14px;
  overflow: hidden;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-scholarship {
  background-image: url("../images/hero-scholarship.png");
}

.hero-worker {
  background-image: url("../images/hero-worker.png");
}

.hero-message {
  background-image: url("../images/hero-message.png");
}

.hero-about {
  background-image: url("../images/hero-about.png");
}

.hero-activities {
  background-image: url("../images/hero-activities.png");
}

.hero-contact {
  background-image: url("../images/hero-contact.png");
}

/* ===== 背景green 画像をいれない Hero ===== */
.hero-green {
  background: none;
}

.hero-green .hero-inner {
  background: linear-gradient(180deg,
      #eff8f0 0%,
      #e0f1e2 100%);
  border-radius: 14px;
}

.hero-green h1 {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.7);
}

.page-hero h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: var(--brand-green-2);
  letter-spacing: 5px;
  text-shadow:
    0 2px 6px rgba(255, 255, 255, 0.95),
    0 0 28px rgba(255, 255, 255, 0.9),
    0 3px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .page-hero {
    aspect-ratio: 5 / 1;
    /* 高さ */
    background-size: cover;
    background-position: center;
  }

  .page-hero h1 {
    font-size: 26px !important;
    letter-spacing: 0 !important;
  }
}

.site-main h2 {
  color: var(--accent);
  font-size: 2rem;
  position: relative;
  display: block;
  text-align: center;
  margin: 0 auto 1.6em;
  line-height: 1.3;
}

.site-main h2::before {
  content: '';
  position: absolute;
  bottom: -15px;
  width: 60px;
  height: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  border-radius: 2px;
}

.site-main h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  font-weight: 700;
}

/* ===== tab-content 内の h4（見出し：緑の●付き） ===== */
.site-main h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 1.2em 0 0.6em;
  display: flex;
  align-items: center;
  gap: 6px;
  /* ●と文字の間 */
}

.site-main h4::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 12px;
}

.site-main h5 {
  font-size: 1.2em;
  font-weight: normal;
}

@media (max-width: 768px){
  .site-main h2{
    font-size: 1.5rem;
    margin-bottom: 1.4em;
  }

  .site-main h3{
    font-size: 1.3rem;
    margin: 1.6rem 0 .8rem;
  }
}


/* ===== リスト 標準  ===== */
.site-main ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0.5em 0;
}

.site-main ul li {
  margin: 0.4em 0;
}


/* ===== 数字リスト（1. 2. 3.） ===== */
.site-main ol {
  list-style: decimal;
  padding-left: 1.6em;
  /* 数字分のインデント */
  margin: 0.6em 0 1.4em;
}

.site-main ol li {
  margin: 0.5em 0;
  line-height: 1.8;
}

/* ネスト（1.1 など） */
.site-main ol ol {
  list-style: decimal;
  margin-top: 0.4em;
  padding-left: 1.4em;
}

@media (max-width: 768px) {
  .site-main ol {
    padding-left: 1.4em;
  }
}



/* 説明リスト：基本 */
.site-main dl {
  margin: 0.8em 0 1.4em;
}

.site-main dl>div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.site-main dt {
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1.8;
}

.site-main dd {
  margin: 0;
  flex: 1 1 auto;
  line-height: 1.8;
  min-width: 0;
  /* 長文折返し対策 */
}

.site-main dl {
  margin: 12px 0;
}

.site-main dt,
.site-main dd {
  margin: 0;
}


/* ===== description list（6文字・太字） ===== */
.dl-6 {
  display: grid;
  grid-template-columns: 6em 1fr;
  /* 6文字幅 + 残り */
  column-gap: 12px;
  row-gap: 10px;
  /* align-items: center; */
  align-items: start;
}

.dl-6 dt {
  font-weight: 700;
  white-space: nowrap;
  align-self: center;
}

.dl-6 dd {
  align-self: center;
}

.dl-6 dt,
.dl-6 dd {
  align-self: start;
}

/* ===== description list（4文字） ===== */
.dl-4 {
  display: grid;
  grid-template-columns: 4em 1fr;
  /* ← 4文字幅 + 残り */
  column-gap: 12px;
  row-gap: 10px;
  /* align-items: center; */
  align-items: start;
}

.dl-4 dt {
  font-weight: 400;
  white-space: nowrap;
  align-self: center;
}

.dl-4 dd {
  align-self: center;
}

.dl-4 dt,
.dl-4 dd {
  align-self: start;
}

/* ===== 縦並び ===== */
@media (max-width: 768px) {

  .dl-6,
  .dl-4 {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .dl-6 dt,
  .dl-4 dt {
    margin-top: 6px;
    /* ペア間を少し開けたい場合 */
  }
}


/* Main */
.site-main {
  padding: 42px 36px;
  max-width: 920px;
  margin: 0 auto
}


@media (max-width: 768px) {
  .site-main{
    padding: 30px 0;
  }
}


/* --- サブメニュー（下線タブ） --- */
.sub-menu {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--accent);
  position: relative;
}

.sub-menu ul {
  display: flex;
  justify-content: center;
  gap: 80px;
  list-style: none;
  padding: 0 36px 10px;
  margin: 0;
}

.sub-menu a {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;

  color: var(--muted);
  /* 通常時はグレー */
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

.sub-menu a:hover {
  opacity: .75;
}

/* アクティブ：文字をグリーンに */
.sub-menu a.is-active {
  color: var(--accent);
}

@media (max-width: 768px) {
  .sub-menu a {
    font-size: 1rem;
  }

  .sub-menu ul {
    gap: 40px;
  }
}

/* --- サブメニュー（ボタン切り替えVer）
.sub-menu {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.sub-menu ul {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sub-menu a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(13, 164, 90, .25);
  background: #fff;
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
.sub-menu a:hover {
  filter: brightness(.9);
}
.sub-menu a.is-active {
  background: rgba(13, 164, 90, .15);
  border-color: rgba(13, 164, 90, .5);
} --- */


.tab-content {
  display: block;
  /* scroll-margin-top: 420px; */
}

.tab-content[id] {
  scroll-margin-top: 140px;
  /* 420は大きすぎることが多い */
}

/* JSが準備できたら、タブ以外は隠す */
html.has-tabs .tab-content {
  display: none;
}

html.has-tabs .tab-content.is-active {
  display: block;
}

@media (max-width: 768px) {
  .tab-content {
    scroll-margin-top: 260px;
  }
}

.tab-content.is-active {
  display: block;
}



/* reusable content card */
.content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow:
    0 2px 6px rgba(6, 34, 20, 0.06),
    0 8px 20px rgba(6, 34, 20, 0.04);
}

.content-card h3 {
  border-bottom: none;
  margin-top: 0;
  color: var(--text-main)
}

/* grid inside first card */
.card-grid {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.illust {
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
  align-items: flex-start
}

.card-body {
  flex: 1 1 360px
}

.card-body h2 {
  color: var(--brand-green);
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700
}

.card-body p {
  margin: 0;
}

/* second card list */
.bullet-list {
  margin: 8px 0 0 0;
  padding-left: 20px
}

.bullet-list li {
  margin: 8px 0
}

/* small side illustration in second card */
.side-illust {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px
}

.content-card-green {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  padding: 28px;
  margin: 28px 0;
}

.content-card-green h4 {
  margin-top: 0.6em;
}



/* ===== CTA ===== */
.cta-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 40px;
}

.cta-wrap .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);

  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;

  box-shadow: 0 6px 10px rgba(6, 34, 20, .06);
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cta-wrap .btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(6, 34, 20, .14);
}


/* ===== Primary Button（ふわっと版） ===== */
.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--accent);
  color: #fff;
  border: none;

  padding: 14px 42px;
  border-radius: 999px;

  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 6px 10px rgba(6, 34, 20, .08);

  transition:
    transform .25s cubic-bezier(.22,.61,.36,1),
    box-shadow .25s cubic-bezier(.22,.61,.36,1),
    filter .2s ease;
}

/* hover：ふわっと浮く */
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(6, 34, 20, .14);
  filter: brightness(1.02);
}

/* active：押した感 */
.btn-primary:active{
  transform: translateY(0);
  box-shadow: 0 6px 10px rgba(6, 34, 20, .08);
}





/* ===== PDFボタン（CTAと統一） ===== */
.pdf-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 0 auto;
  padding: 14px 34px;

  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;

  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 6px 10px rgba(6, 34, 20, .06);

  transition:
    transform .25s cubic-bezier(.22,.61,.36,1),
    box-shadow .25s cubic-bezier(.22,.61,.36,1),
    background .2s ease,
    color .2s ease;
}

/* hover：CTAと同じく浮かせる */
.pdf-btn:hover{
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(6, 34, 20, .14);
}

/* active：押した感 */
.pdf-btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 10px rgba(6, 34, 20, .06);
}

/* PDFアイコン */
.pdf-btn .pdf-icon{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}




/* ===== PDFリンク一覧 ===== */
.site-main ul.pdf-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pdf-list li {
  margin: 14px 0;
}

.pdf-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-decoration: none;
  line-height: 1.6;
}

.pdf-list a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.pdf-list .pdf-icon {
  width: 1.4em;
  height: auto;
  flex-shrink: 0;
}

.pdf-text {
  font-size: 1.1rem;
}


/* このPDF一覧だけリンク色 */
.pdf-list.pdf-list--green a{
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
.pdf-list.pdf-list--green a:hover{
  color:#3f8f56;
}

/* PDFアイコン（mask方式） */
.pdf-list.pdf-list--green .pdf-icon{
  display:inline-block;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  background-color: currentColor;

  -webkit-mask-image: url("../images/icon-pdf-green.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

          mask-image: url("../images/icon-pdf-green.svg");
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: contain;
}

.pdf-list--green .pdf-text {
  font-size: inherit;
}



/* ===== 理事長あいさつ：本文（明朝体） ===== */
.greeting p {
  font-family:
    "Noto Serif JP",
    "游明朝",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "MS PMincho",
    serif;
  line-height: 1.9;
  color: #333;
  font-size: 1.1em;
  /* font-size: 1.2em; */
}

/* 署名全体（右寄せ） */
.greeting-sign {
  text-align: right;
  margin-top: 2em;
  font-size: 1rem;
  line-height: 1.8;
}

/* 右端に寄せた「左揃えの箱」 */
.greeting-sign .sign-box {
  display: inline-flex;
  /* 右寄せ内で箱として扱う */
  flex-direction: column;
  /* 縦並び */
  align-items: flex-start;
  /* ← これで“頭揃え”になる */
  text-align: left;
  /* 箱の中は左揃え */
}

.greeting-sign .org,
.greeting-sign .title,
.greeting-sign .name {
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro",
    "Yu Gothic",
    "Yu Gothic Medium",
    Meiryo,
    sans-serif;
  font-weight: 400;
}

.greeting-sign .line2 {
  display: inline-flex;
  align-items: baseline;
  /* 文字のベースラインで自然に揃える */
  gap: .6em;
}

.greeting-sign .org,
.greeting-sign .title {
  font-size: 1rem;
}

.greeting-sign .name {
  font-size: 1.5rem;
}

.greeting-sign .title {
  letter-spacing: 0.5em;
}


/* ===== 文字の羅列のページ ===== */
/* .no-spacing p {
  margin-bottom: 0;
}
.site-main .no-spacing dl{
  margin: 4px 0;
} */

/* revealの対象外にする（定款タブの中ではreveal無効） */
#articles .reveal {
  opacity: 1 !important;
  transform: none !important;
}


/* ===== お問い合わせ ===== */

/* 電話お問い合わせ  */
.contact-tel {
  margin: 40px auto;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(13, 164, 90, .35);
  border-radius: 14px;
  background: #fff;
}

/* 見出し */
.tel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

/* 電話番号 */
.tel-number {
  display: inline-flex;
  /* ← アイコン＋番号を横並び */
  align-items: center;
  gap: 10px;
  margin: 8px 0 6px;
  font-family: 'Zen Maru Gothic', Meiryo, sans-serif;
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 700;
}

/* 電話リンク */
.tel-number a {
  color: inherit;
  text-decoration: none;
}

/* 電話アイコン */
.tel-icon {
  width: 1em;
  /* ← 文字サイズ基準で自然 */
  height: auto;
  flex-shrink: 0;
}

/* 受付時間 */
.tel-time {
  font-size: 0.95rem;
  color: var(--muted);
}


/* form */
/* ===== フォーム枠 ===== */
.form-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== 各行（基本） ===== */
.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 20px;
  padding: 16px 0;
}

/* PC：区切り線＋天地中央 */
@media (min-width:769px) {
  .form-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    align-items: center;
  }

  .form-row:last-child {
    border-bottom: none;
  }
}

/* ===== ラベル ===== */
.form-row label {
  font-weight: 700;
  color: #333;
  line-height: 1.6;
}

/* ===== 入力欄 ===== */
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.form-row textarea {
  resize: vertical;
}

/* ===== 必須タグ ===== */
.form-row .req {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: .75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

/* =================================================
   ★ ファイル添付行だけ特別処理 ★
================================================= */
.form-row:has(input[type="file"]) {
  align-items: start;
  /* ← labelをinput基準にする */
}

/* PC：2段グリッド */
@media (min-width:769px) {
  .form-row:has(input[type="file"]) {
    grid-template-rows: auto auto;
  }

  /* input は1段目 */
  .form-row:has(input[type="file"]) input {
    grid-column: 2;
    grid-row: 1;
  }

  /* help は2段目 */
  .form-row:has(input[type="file"]) .help {
    grid-column: 2;
    grid-row: 2;
    margin-top: 6px;
  }

  /* label は input 行の中央 */
  .form-row:has(input[type="file"]) label {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
}

/* ===== help ===== */
.help {
  font-size: .85rem;
  color: #666;
}

/* ===== 枠外 ===== */
.form-note-out {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: .9rem;
  text-align: center;
}

.form-note-out a {
  color: var(--accent);
}

.form-actions-out {
  text-align: center;
  margin: 24px auto 0;
}



/* ===== モバイル ===== */
@media (max-width:768px) {
  .form-row {
    grid-template-columns: 1fr;
    border-bottom: none;
  }
}


/* ===== お問い合わせ完了ページ ===== */
.thanks{
  text-align: center;
}

/* 見出し下の本文の行間を少し広げる（読みやすく） */
.thanks p{
  line-height: 1.8;
}

/* 電話ブロックも中央寄せ */
.thanks .contact-tel{
  margin-left: auto;
  margin-right: auto;
}

.thanks p{
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SP：左揃え ===== */
@media (max-width: 768px){
  .thanks{
    text-align: left;
  }

  .thanks p{
    margin-left: 0;
    margin-right: 0;
  }

  .thanks .contact-tel{
    margin-left: 0;
    margin-right: 0;
  }
}






.site-main .worker-coming ul {
  font-size: 1.2rem;
  list-style: none;
  padding-left: 1.6em;
  padding-bottom: 0.5em;
}

.site-main .worker-coming li {
  position: relative;
}

.site-main .worker-coming li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: 0.5em;/* 行の中央あたりに配置 */
  width: 0.6em;
  height: 0.6em;
  background-color: var(--accent);
  border-radius: 50%;
}






/* ===== 文字の装飾 ===== */
.text-smaller {
  font-size: 0.8rem;
}

.text-normal {
  font-size: 1rem;
}


.text-green {
  color: var(--accent);
  font-weight: 700;
}
