/* =========================================================
   一般社団法人徳島スポーツテラス - スタイルシート
   デザイン方針：「元気な落書き・スクラップブック」
   ・サッカーコートの緑 × 空の水色 + マステの黄色をアクセントに
   ・カードは全部「コルクボードにマステで貼った写真・付箋」に
     見立てて、少しだけ傾ける（ホバーで真っ直ぐになる）
   ・見出しの下線はマーカーで手描きした波線
   ・手書き風フォント（Yomogi）を一言コメント・タグに使う
========================================================= */
:root{
  --green:      #1E8A54;
  --green-deep: #146238;
  --green-pale: #E6F5EC;
  --sky:        #2FA6D8;
  --sky-deep:   #1D7BA8;
  --sky-pale:   #E5F5FB;
  --sun:        #FFB03B; /* アクセント（イベント用） */
  --tape:       #FFD966; /* マステの黄色 */
  --tape-line:  rgba(255,255,255,.55);
  --ink:        #223328;
  --ink-soft:   #5B6B60;
  --paper:      #FBF8EF;
  --white:      #FFFFFF;
  --line:       rgba(34,51,40,.12);

  --font-display: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-hand: "Yomogi", "M PLUS Rounded 1c", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 0 rgba(34,51,40,.06), 0 14px 26px rgba(34,51,40,.14);
  --max-width: 1120px;
  --header-height: 72px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 日本語の折り返し：意味のまとまり(文節)の切れ目で折り返し、行頭に「ー」や小さい「っ」が来ないようにする。対応していないブラウザでは、無視されるだけ */
html{ word-break: auto-phrase; line-break: strict; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(34,51,40,.06) 1px, transparent 1.4px) 0 0/22px 22px,
    var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3{ font-family: var(--font-display); margin: 0; font-weight: 700; }
a{ color: var(--sky-deep); }
button{ font-family: inherit; cursor: pointer; }
img{ max-width: 100%; display: block; }

.skip-link{
  position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff;
  padding: .6em 1em; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- 共通レイアウト ---------- */
.section{ padding: 64px 20px; }
.section-inner{ max-width: var(--max-width); margin: 0 auto; }
.section-inner--narrow{ max-width: 760px; }
.section-title{ font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 34px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-title-en{
  font-family: var(--font-hand); font-size: .95rem; color: var(--sky-deep);
  background: var(--tape); padding: 3px 14px; border-radius: 3px; transform: rotate(-3deg);
  display: inline-block; box-shadow: 1px 2px 0 rgba(34,51,40,.1);
}
.section-title-jp{
  color: var(--ink); position: relative; padding-bottom: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q 15 0 30 6 T 60 6 T 90 6 T 120 6 T 150 6 T 180 6 T 210 6' fill='none' stroke='%232FA6D8' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left bottom; background-size: 100% 8px;
}
.sub-title{ font-size: 1.1rem; margin-bottom: 16px; color: var(--green-deep); }
.empty-note{ color: var(--ink-soft); }
.sync-warning{
  background: #FFF4E0; color: #7A5200; border: 1px dashed #F0C56B; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .9rem; margin: 0 0 16px;
}

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 26px; border-radius: 999px 999px 999px 4px; text-decoration: none; font-weight: 700;
  font-family: var(--font-display); font-size: .95rem; border: 2px solid var(--ink); transition: transform .15s;
}
.btn-cta{ background: var(--sun); color: #4A2E00; box-shadow: 2px 3px 0 var(--ink); }
.btn-cta:hover{ transform: translate(-1px,-2px); box-shadow: 3px 5px 0 var(--ink); }
.btn-ghost{ background: #fff; color: var(--green-deep); border-color: var(--green); }
.btn-ghost:hover{ background: var(--green-pale); }

/* ---------- ヘッダー ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100; background: rgba(251,248,239,.94);
  backdrop-filter: blur(6px); border-bottom: 2px dashed var(--line);
}
.header-inner{
  max-width: 1240px; margin: 0 auto; height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.logo{ display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark{
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--sky));
  color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 1.2rem; flex-shrink: 0; border: 2px solid var(--ink);
}
.logo-mark--image{ background: #fff; border: none; overflow: hidden; }
.logo-mark--image img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text{ display: flex; flex-direction: column; line-height: 1.3; }
.logo-jp{ font-weight: 700; font-size: .95rem; }
.logo-en{ font-size: .65rem; letter-spacing: .08em; color: var(--ink-soft); }

.nav-toggle{
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span{ width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

.primary-nav{ display: flex; align-items: center; gap: 28px; margin-left: 32px; }
.primary-nav ul{ list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav-link{ white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.nav-link:hover{ color: var(--green-deep); }
.nav-cta{ padding: 10px 20px; font-size: .85rem; white-space: nowrap; }
.nav-cta + .nav-cta{ margin-left: -12px; }

@media (max-width: 1200px){
  .nav-toggle{ display: flex; }
  .primary-nav{
    position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 16px 20px; gap: 16px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .primary-nav.is-open{ display: flex; margin-left: 0; }
  .primary-nav ul{ flex-direction: column; gap: 12px; }
  .nav-cta + .nav-cta{ margin-left: 0; }
  .nav-cta{ text-align: center; }
}

/* ---------- タープ（マステ貼り）カード共通部品 ----------
   .taped を付けたカードは、上端にマステの帯が乗った「貼られた紙」に見える。
   nth-childで少しずつ傾きを変えて、手作業で貼ったようなバラつきを出す。
   ホバーで真っ直ぐに直る。 */
.taped{
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  transform: rotate(-1.4deg); transition: transform .2s ease;
}
.taped:hover{ transform: rotate(0deg) translateY(-2px); }
.taped::before{
  content: ''; position: absolute; top: -14px; left: 50%; width: 74px; height: 26px;
  background: var(--tape); opacity: .85; transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.news-grid > :nth-child(3n+1).taped, .activity-grid > :nth-child(3n+1).taped, .staff-grid > :nth-child(3n+1).taped{ transform: rotate(1.6deg); }
.news-grid > :nth-child(3n+1).taped::before, .activity-grid > :nth-child(3n+1).taped::before, .staff-grid > :nth-child(3n+1).taped::before{ background: var(--sky); opacity: .5; transform: translateX(-50%) rotate(4deg); }
.news-grid > :nth-child(3n+2).taped::before, .activity-grid > :nth-child(3n+2).taped::before, .staff-grid > :nth-child(3n+2).taped::before{ background: var(--sun); opacity: .55; }
.news-grid > :nth-child(3n+1).taped:hover, .activity-grid > :nth-child(3n+1).taped:hover, .staff-grid > :nth-child(3n+1).taped:hover{ transform: rotate(0deg) translateY(-2px); }

/* ---------- ヒーロー（画面いっぱいの写真＋文字を重ねる構成） ----------
   ウィンドウ／タブの高さが変わっても常に「画面ちょうど1枚分」になるよう、
   100dvh（アドレスバーの出し引きにも追従する単位）からヘッダー分の高さを引く。
   写真が読み込まれる前は下地の色だけが見え、読み込み完了でふわっと写真がフェードインする
   （壊れた画像や真っ白な一瞬が見えないようにするための、簡易的な「ロード画面」） */
.hero{
  position: relative; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height));
  min-height: 480px; display: flex; align-items: flex-end;
  padding: 0 20px 64px; overflow: hidden;
  background: linear-gradient(160deg, var(--green-pale), var(--sky-pale)); /* 写真の読み込み前・写真が無い時の下地 */
}
.hero-bg{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity 1s ease;
}
.hero-bg.is-loaded{ opacity: 1; }
.hero-overlay{
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,40,32,.1) 0%, rgba(15,28,22,.35) 55%, rgba(12,22,18,.78) 100%);
}
.hero-inner{
  max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 2; width: 100%; text-align: center;
}
.hero-text{ color: #fff; }
.eyebrow{
  font-family: var(--font-hand); font-size: 1.1rem; color: var(--tape); margin: 0 0 12px;
  display: inline-block; transform: rotate(-2deg);
}
.hero-copy{ font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.4; margin-bottom: 18px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-copy .accent{ color: var(--sun); background: rgba(255,255,255,.94); padding: 0 .15em; border-radius: 6px 6px 6px 0; box-shadow: 2px 2px 0 var(--ink); }
.hero-sub{ max-width: 620px; margin: 0 auto 28px; color: rgba(255,255,255,.92); }
.hero-actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats[hidden]{ display: none; }
.hero-stats{ display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 0; }
.hero-stat{
  background: #fff; border-radius: var(--radius-sm); padding: 14px 22px; box-shadow: var(--shadow); min-width: 130px;
  transform: rotate(-2deg);
}
.hero-stat:nth-child(2){ transform: rotate(1.5deg); }
.hero-stat:nth-child(3){ transform: rotate(-1deg); }
.hero-stat dt{ font-size: .75rem; color: var(--ink-soft); margin-bottom: 4px; }
.hero-stat dd{ margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--green-deep); }
.stat-suffix{ font-size: .7rem; color: var(--ink-soft); margin-left: 4px; }

/* ---------- ヒーロー（スマホ）：背景いっぱい＋文字重ねは窮屈になるので、
   写真→文字の上下2段レイアウトに切り替える ---------- */
@media (max-width: 860px){
  .hero{
    position: relative; height: auto; min-height: unset; padding: 0 0 40px;
    display: block; background: var(--paper);
  }
  .hero-bg{
    position: relative; inset: auto; width: 100%; height: 260px; z-index: auto;
  }
  .hero-overlay{ display: none; }
  .hero-inner{ padding: 28px 20px 0; }
  .hero-text{ color: var(--ink); }
  .eyebrow{ color: var(--sky-deep); }
  .hero-copy{ color: var(--ink); text-shadow: none; }
  .hero-sub{ color: var(--ink-soft); }
}

/* ---------- ニュース ---------- */
.news-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin-bottom: 20px; padding-top: 6px; }
.news-card{ padding: 20px; display: block; text-decoration: none; color: inherit; }
.news-card-img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.news-archive-img{ display: block; width: 100%; max-width: 420px; border-radius: var(--radius-sm); margin-top: 12px; }
.news-card-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .8rem; color: var(--ink-soft); }
.news-card h3{ font-size: 1.05rem; margin-bottom: 8px; }
.news-card p{ margin: 0; color: var(--ink-soft); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-more{ display: inline-block; margin-top: 10px; font-weight: 700; font-size: .88rem; color: var(--green-deep); border-bottom: 2px solid var(--tape); }
.news-tag{
  font-family: var(--font-hand); padding: 2px 12px; border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  font-size: .82rem;
}
.news-tag--info{ background: var(--sky-pale); color: var(--sky-deep); }
.news-tag--event, .news-tag--preview{ background: #FFF1DA; color: #9A5B00; }
.news-tag--recruit, .news-tag--report{ background: var(--green-pale); color: var(--green-deep); }
.news-more-link{ text-align: right; margin: 0; }
.section-link{ font-weight: 700; text-decoration: none; }

/* ---------- About ----------
   スマホ（デフォルト）：写真→紹介文→ファクトの順に縦積み（DOM順そのまま）
   デスクトップ：order で並び替えて「紹介文→大きい写真→ファクト」の順にする */
.about-section{ background: #fff; }
.about-grid{ display: flex; flex-direction: column; gap: 36px; margin-bottom: 20px; }
.about-photo{
  position: relative; background: #fff; padding: 10px 10px 20px; box-shadow: var(--shadow);
  border-radius: 4px; transform: rotate(-2deg); align-self: center; width: 100%; max-width: 420px;
}
.about-photo::before{
  content: ''; position: absolute; top: -12px; left: 50%; width: 70px; height: 24px;
  background: var(--tape); opacity: .85; transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.about-photo img{ width: 100%; height: 260px; object-fit: cover; border-radius: 2px; display: block; }
.about-slogan{ font-family: var(--font-hand); font-size: 1.6rem; color: var(--green-deep); margin: 0 0 14px; }
.about-text{ color: var(--ink-soft); margin: 0; }
.about-facts{ display: grid; gap: 14px; margin: 0; }
.about-facts .fact{
  background: var(--green-pale); border-radius: var(--radius-sm); padding: 14px 18px; border-left: 4px dashed var(--green);
}
.fact dt{ font-size: .78rem; color: var(--green-deep); font-weight: 700; margin-bottom: 4px; }
.fact dd{ margin: 0; }
.fact-note{ display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
@media (min-width: 721px){
  .about-lead{ order: 1; }
  .about-photo{ order: 2; max-width: 720px; }
  .about-photo img{ height: 420px; }
  .about-facts{ order: 3; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* ---------- 活動内容（写真クラスター＋テキストのジグザグレイアウト） ---------- */
.activities-section{ background: #fff; }
.activity-row{ display: flex; align-items: center; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.activity-row:last-child{ margin-bottom: 0; }
.activity-row:nth-child(even){ flex-direction: row-reverse; }
.activity-photos{ flex: 1 1 360px; display: flex; flex-wrap: wrap; padding: 30px 24px; min-height: 220px; align-items: center; }
.activity-photo-frame{
  position: relative; width: 260px; max-width: 100%; flex-shrink: 0; background: #fff; padding: 10px 10px 20px;
  box-shadow: var(--shadow); border-radius: 4px;
}
/* 横長・縦長どちらの写真でも自然な比率で表示（無理に正方形へトリミングしない） */
.activity-photo-frame img{ display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 2px; }
.activity-photo-frame::before{
  content: ''; position: absolute; top: -14px; left: 50%; width: 74px; height: 26px;
  background: var(--tape); opacity: .85; transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.activity-photo-frame:nth-child(1){ transform: rotate(-5deg); z-index: 2; }
.activity-photo-frame:nth-child(2){ transform: rotate(4deg); margin-left: -60px; margin-top: 30px; z-index: 1; }
.activity-photo-frame:nth-child(3){ transform: rotate(-3deg); margin-left: -60px; z-index: 3; }
@media (max-width: 560px){ .activity-photo-frame{ width: 200px; } .activity-photo-frame:nth-child(2), .activity-photo-frame:nth-child(3){ margin-left: -36px; } }
.activity-copy{ flex: 1 1 320px; }
.activity-copy h3{ font-size: 1.4rem; color: var(--sky-deep); margin-bottom: 10px; }
.activity-copy p{ margin: 0; color: var(--ink-soft); white-space: pre-line; }
.activity-copy .activity-price{ display: inline-block; margin: 0 0 10px; padding: 2px 12px; background: var(--tape); color: var(--ink); font-weight: 700; font-size: 1.05rem; border-radius: 4px; transform: rotate(-1.5deg); }
.activity-btn{ margin-top: 14px; }
@media (max-width: 720px){
  .activity-row, .activity-row:nth-child(even){ flex-direction: column; align-items: flex-start; }
  .activity-photos{ padding-left: 40px; }
}

/* ---------- Schedule（トップページの案内カード） ---------- */
.schedule-teaser{
  background: linear-gradient(135deg, var(--green), var(--sky)); color: #fff;
  border-radius: var(--radius); padding: 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; border: 2px solid var(--ink);
}
.schedule-teaser p{ margin: 8px 0 0; opacity: .92; max-width: 460px; }
.schedule-teaser .btn-cta{ background: #fff; color: var(--green-deep); }

/* ---------- スタッフ ---------- */
.staff-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; padding-top: 6px; }
.staff-card{ padding: 24px; text-align: center; }
.staff-photo{ width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.staff-photo--placeholder{
  display: flex; align-items: center; justify-content: center; background: var(--sky-pale); color: var(--sky-deep);
  font-family: var(--font-display); font-size: 1.6rem;
}
.staff-role{ font-family: var(--font-hand); font-size: .95rem; color: var(--sky-deep); margin: 0 0 4px; }
.staff-name{ font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 8px; }
.staff-comment{ font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq-section{ background: #fff; }
.accordion-item{
  background: var(--sky-pale); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 14px;
}
.accordion-item summary{ cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.accordion-item summary::-webkit-details-marker{ display: none; }
.accordion-item summary::after{ content: '+'; margin-left: auto; font-family: var(--font-display); font-size: 1.2rem; color: var(--sky-deep); }
.accordion-item[open] summary::after{ content: '−'; }
.accordion-body{ margin-top: 10px; color: var(--ink-soft); }
.news-archive-text{ margin: 0; white-space: pre-line; } /* フォームの回答の改行を、そのまま表示する */
.news-archive-title{ flex: 1; }

/* ---------- Contact ---------- */
.contact-section{ background: var(--green-pale); text-align: center; }
.contact-lead{ color: var(--ink-soft); }
.contact-note{ font-size: .85rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- カレンダー（schedule.html） ---------- */
.cal-card{ background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 2px solid var(--ink); }
.cal-toolbar{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.cal-nav-btn{
  background: var(--green-pale); color: var(--green-deep); border: 2px solid var(--ink); border-radius: 999px;
  width: 40px; height: 40px; font-size: 1.1rem; font-family: var(--font-display);
}
.cal-month-label{ font-family: var(--font-hand); font-size: 1.5rem; color: var(--green-deep); }
.cal-today-btn{
  background: #fff; border: 1.5px dashed var(--sky); color: var(--sky-deep); border-radius: 999px;
  padding: 6px 16px; font-size: .82rem; font-weight: 700;
}
.cal-weekdays, .cal-grid{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays{ margin-bottom: 6px; text-align: center; font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.cal-cell{
  min-height: 84px; background: var(--paper); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px;
  border: 2px solid transparent; font-family: inherit; text-align: left; width: 100%;
}
button.cal-cell{ cursor: pointer; transition: transform .1s; }
button.cal-cell:hover{ background: var(--sky-pale); transform: translateY(-1px); }
.cal-cell--empty{ background: transparent; }
.cal-cell--today{ background: var(--sky-pale); border-color: var(--sky); border-style: dashed; }
.cal-cell--selected{ border-color: var(--ink); background: var(--tape); }
.cal-cell--selected:hover{ background: var(--tape); }
.cal-date{ font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.cal-tags{ display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-tag{
  font-size: .65rem; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-display);
}
.cal-tag{ background: var(--c-pale, var(--green-pale)); color: var(--c-ink, var(--green-deep)); }
.cal-legend{ display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: .8rem; color: var(--ink-soft); }
.cal-legend:empty{ display: none; }
.cal-legend-item{ display: inline-flex; align-items: center; gap: 6px; }
.cal-legend-item i{ width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; }

.cal-event-list{ margin-top: 34px; }
.cal-list-day{ margin-bottom: 20px; }
.cal-list-date{ font-family: var(--font-hand); font-size: 1.2rem; color: var(--green-deep); margin: 0 0 6px; }
.cal-list-day ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-list-day li{ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--paper); border-radius: var(--radius-sm); padding: 10px 14px; border: 1px dashed var(--line); }
.cal-list-title{ font-weight: 700; }
.cal-list-detail{ color: var(--ink-soft); font-size: .88rem; flex-basis: 100%; }

/* スマホ：セル幅が35px前後まで狭くなり文字が入らないので、予定名の文字は諦めて
   タイプ別の色ドットだけ表示する（詳細は今まで通りタップして下の一覧で見る） */
@media (max-width: 640px){
  .cal-card{ padding: 14px 8px; }
  .cal-toolbar{ margin-bottom: 12px; }
  .cal-month-label{ font-size: 1.15rem; }
  .cal-nav-btn{ width: 34px; height: 34px; font-size: 1rem; }
  .cal-today-btn{ padding: 5px 12px; font-size: .75rem; }
  .cal-weekdays, .cal-grid{ gap: 3px; }
  .cal-cell{ min-height: 50px; padding: 3px 2px; gap: 2px; border-radius: 6px; }
  .cal-date{ font-size: .72rem; }
  .cal-tags{ flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px; }
  .cal-tag{
    width: 8px; height: 8px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; overflow: hidden;
  }
  /* 通常表示は「薄い背景色+濃い文字色」のピル型なので、文字を消してドットだけにすると
     薄い背景色（--green-pale等）がほぼ見えなくなってしまう。ドット表示専用に、はっきりした色で塗り直す */
  .cal-tag{ background: var(--c, var(--green)); }
}

/* ---------- ページ見出し（schedule.html / news.html 用の簡易ヒーロー） ---------- */
.page-hero{
  background: linear-gradient(160deg, var(--green-pale), var(--sky-pale)); padding: 48px 20px; text-align: center;
}
.page-hero h1{ font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 8px; }
.page-hero p{ color: var(--ink-soft); margin: 0; }

/* ---------- フッター ---------- */
.site-footer{ background: var(--green-deep); color: #fff; padding: 40px 20px; }
.footer-inner{ max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-brand{ font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand .logo-en{ display: block; font-size: .7rem; color: rgba(255,255,255,.7); margin-top: 4px; }
.footer-facts{ display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; font-size: .8rem; opacity: .85; margin: 0 0 12px; }
.footer-facts b{ font-weight: 700; margin-right: 4px; }
.footer-copy{ font-size: .82rem; opacity: .85; margin: 12px 0 4px; }
.footer-note{ font-size: .78rem; opacity: .7; max-width: 560px; margin: 0 auto; }
.footer-nav{ list-style: none; display: flex; gap: 18px; justify-content: center; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.footer-nav a{ color: #fff; text-decoration: none; font-size: .85rem; opacity: .9; }
.footer-sns{ margin: 0 0 12px; }
.footer-sns a{ color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; border-bottom: 2px dashed var(--tape); padding-bottom: 2px; }

/* ===== フォーム（お問い合わせ・教室申込） ===== */
.site-form{ max-width: 560px; margin: 24px auto 0; text-align: left; display: grid; gap: 16px; background: #fff; padding: 22px; border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.site-form label{ display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.site-form input[type="text"], .site-form input[type="email"], .site-form textarea{ font: inherit; font-weight: 400; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); width: 100%; }
.site-form input:focus, .site-form textarea:focus{ outline: none; border-color: var(--green); }
.site-form .req{ font-size: .7rem; background: var(--sun); color: #4A2E00; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.site-form .hp{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-form fieldset{ border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-form legend{ font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.site-form .check{ display: flex; gap: 10px; align-items: flex-start; font-weight: 400; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.site-form .check input{ margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.site-form .check small{ display: block; color: var(--ink-soft); }
.form-privacy{ margin: 0; font-size: .8rem; color: var(--ink-soft); }
.form-status{ margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.form-status.is-ok{ background: var(--green-pale); color: var(--green-deep); }
.form-status.is-error{ background: #FCE8E8; color: #B23A3A; }
.cal-apply{ margin-left: auto; font-weight: 700; color: var(--green-deep); text-decoration: none; border-bottom: 2px solid var(--tape); }
.form-group{ display: grid; gap: 16px; }
.form-group[hidden], #applyNotes[hidden]{ display: none; }
.site-form select{ font: inherit; font-weight: 400; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); width: 100%; }
.apply-note{ background: #FFF4E0; border: 1px dashed #F0C56B; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; }
.apply-note p{ margin: 6px 0 0; white-space: pre-line; color: var(--ink-soft); }
.cal-list-day li.cal-list-item{ border-left: 6px solid var(--c, var(--line)); border-left-style: solid; }

/* ===== トップページの「活動の申し込み」 ===== */
.apply-section{ background: var(--paper); }
.apply-list{ list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.apply-list li{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: 3px 4px 0 var(--ink); }
.apply-date{ font-family: var(--font-hand); font-size: 1.15rem; color: var(--green-deep); min-width: 5.5em; }
.apply-title{ flex: 1 1 200px; font-weight: 700; }
.apply-title small{ display: block; font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.apply-btn{ padding: 6px 18px; font-size: .9rem; }
.apply-more{ display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.site-form .lbl{ display: flex; align-items: center; gap: 8px; }
.site-form .lbl .req{ margin-left: 0; }
.site-form input::placeholder, .site-form textarea::placeholder{ color: #9AA79F; }

/* ===== 画像の拡大表示（モーダル） ===== */
.news-archive-img{ cursor: zoom-in; }
.lightbox{ position: fixed; inset: 0; z-index: 1000; background: rgba(20, 30, 24, .88); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox[hidden]{ display: none; }
.lightbox-img{ max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.4); cursor: default; }
.lightbox-close{ position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
body.is-lightbox{ overflow: hidden; }

/* ===== 活動予定・申し込み（次の活動日の一覧＋カレンダー） ===== */
.apply-block{ margin-bottom: 36px; }
.apply-subtitle{ font-family: var(--font-hand); font-size: 1.3rem; color: var(--green-deep); margin: 0 0 12px; font-weight: 400; }

/* ===== 経営理念 ===== */
.philosophy-section{ background: #fff; }
.philosophy-lead{ font-family: var(--font-hand); font-size: clamp(1.4rem, 3.6vw, 1.95rem); line-height: 1.6; color: var(--green-deep); margin: 0 0 30px; text-wrap: balance; } /* 行の長さを、そろえて折り返す（1〜2文字だけ、次の行に残るのを防ぐ） */
.philosophy-points{ list-style: none; margin: 0 0 30px; padding: 0; counter-reset: pp; border-top: 1px solid var(--line); }
.philosophy-points li{ counter-increment: pp; display: grid; grid-template-columns: 2.4rem 1fr; gap: 2px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.philosophy-points li::before{ content: counter(pp); grid-row: 1 / span 2; font-family: var(--font-hand); font-size: 1.8rem; line-height: 1.1; color: var(--sky-deep); }
.philosophy-points strong{ font-size: 1.1rem; }
.philosophy-points span{ color: var(--ink-soft); text-wrap: pretty; }
.philosophy-text{ color: var(--ink-soft); margin: 0 0 14px; line-height: 1.95; text-wrap: pretty; }
.philosophy-sign{ margin: 0 0 30px; text-align: right; color: var(--ink-soft); font-size: .92rem; }

/* 申込ページの教室プルダウン */
.check[hidden]{ display: none; }
.apply-count{ margin: 0; font-size: .85rem; color: var(--green-deep); min-height: 1.2em; }

/* =========================================================================
   スマホ向けの見直し(幅 640px 以下)。利用者の大半が、スマホで見る想定
   ・触る所は、44px 以上(見た目は変えず、触れる範囲だけ広げる所もある)
   ・写真のない活動の、大きな空白を、出さない
   ・メニューからのジャンプで、見出しが、固定ヘッダーに隠れないようにする
   ========================================================================= */
html{ scroll-padding-top: 84px; }
.apply-count:empty{ display: none; }

@media (max-width: 640px){
  /* メニューのボタン */
  .nav-toggle{ min-width: 44px; min-height: 44px; padding: 10px; align-items: center; justify-content: center; margin-right: -10px; }
  .primary-nav .nav-link{ display: block; padding: 8px 0; }

  /* ヒーローの強調語(「笑顔」など)が、途中で改行されないようにする */
  .hero-copy .accent{ display: inline-block; max-width: 100%; }

  /* 活動内容: 写真のない行は、写真の枠ごと隠す。行の間隔を詰める */
  .activity-row{ margin-bottom: 40px; gap: 4px; }
  .activity-photos{ min-height: 0; padding: 22px 16px 10px 32px; }
  .activity-photos.is-empty{ display: none; }

  /* 触る所を、44px 以上にする(見た目は、そのまま。触れる範囲だけ広げる) */
  .footer-nav a, .footer-sns a, .contact-note a, .section-link, a[href*="maps"]{ position: relative; }
  .footer-nav a::after, .footer-sns a::after, .contact-note a::after, .section-link::after, a[href*="maps"]::after{
    content: ''; position: absolute; inset: -13px -8px;
  }
  .footer-nav{ gap: 6px 18px; }
  .cal-nav-btn{ width: 44px; height: 44px; }
  .cal-today-btn{ min-height: 44px; padding: 0 16px; }
  .accordion-item summary{ min-height: 44px; }

  /* 小さすぎる文字を、少しだけ大きくする */
  .cal-date{ font-size: .8rem; }
  .cal-weekdays{ font-size: .82rem; }
  .footer-facts{ font-size: .85rem; }
  .footer-note{ font-size: .82rem; }
}

/* ---------- 日本語の改行を、読みやすくする ----------
   ・見出しや短い文は、行の長さを、そろえる(text-wrap: balance)。「人と/人」のような、変な所での改行を減らす
   ・長い文は、最後の行に、1〜2文字だけが残るのを、避ける(text-wrap: pretty)
   ・文節の区切りで、改行する(word-break: auto-phrase)。対応している端末だけ効く。対応していなくても、崩れない
   ・かっこの中(年中〜年長)は、途中で、改行しない(.nw) */
html{ word-break: auto-phrase; }
h1, h2, h3, .hero-copy, .section-title-jp, .page-hero p, .check strong, .news-card h3{ text-wrap: balance; }
p, li, .check small, .accordion-body, .staff-comment{ text-wrap: pretty; }
.nw{ white-space: nowrap; }
.philosophy-lead{ word-break: keep-all; overflow-wrap: anywhere; } /* 「、」の所でだけ改行する(「人と/人、」のように割れない) */
