/*
Theme Name: ringo
Theme URI: https://example.com/ringo
Author: りんごの会
Description: りんごの会 公式サイト用カスタムテーマ。baton を参考にした、淡いアップルカラー（ピンク＋ミント）の1カラム/レスポンシブデザイン。
Version: 0.12.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ringo
*/

:root {
  --accent: #e98a96;
  --accent-strong: #d96b7a;
  --mint: #e4f1e4;
  --mint-deep: #8cc28f;
  --peach: #fbe0cf;
  --shell: #fff0eb;   /* ABOUT の地色（concept/about1.png から採取） */
  --text: #555555;
  --heading: #4a4a4a;
  --bg: #ffffff;
  --frame: #f7c9cd;
  --stem: #6e420f;
  --maxw: 640px;
  --header-h: 0px;      /* スマホはヘッダーが高さを持たない（ロゴは固定表示） */
  --admin-bar-h: 0px;   /* ログイン中だけ WP の管理バーが上に入る */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic UI", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
body.admin-bar { --admin-bar-h: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar { --admin-bar-h: 46px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); }
.center { text-align: center; }
.note { color: #999; }

.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 0;
  padding: 0 clamp(16px, 5vw, 40px);
  min-height: 100vh;
}

/* ---------- buttons (pill + 矢印) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 30px 12px 20px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  transition: filter .2s, transform .2s;
}
/* 丸と「>」は figure ではなく SVG マスクで描く。
   文字（"›"）だと環境のフォントで字形と大きさが変わり、円からはみ出して切れることがある。
   大きさを変えたいときは width/height（と .btn の gap / padding-left）だけ触る。 */
.btn::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M13 9.5 L20 16 L13 22.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M13 9.5 L20 16 L13 22.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* mask 非対応の古い環境では、四角い塊が出るよりはアイコンを出さない */
@supports not ((mask: url("#x")) or (-webkit-mask: url("#x"))) {
  .btn::before { display: none; }
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 2px solid var(--accent);
}

/* ---------- 読み込み中の画面 ---------- */
/* JS が html に is-loading を付けたときだけ出す。付かない環境では最初から非表示。 */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--bg);
}
html.is-loading .preloader,
.preloader.is-leaving { display: grid; }
html.is-loading body { overflow: hidden; }

.preloader.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.preloader__logo { width: clamp(116px, 26vw, 190px); }
.preloader__svg { width: 100%; height: auto; display: block; }
/* ロゴの部品。回転・拡大の中心をロゴの芯（viewBox の中心）に合わせる。
   位置と不透明度は preloader.js が進捗から計算して当てる。 */
.preloader__svg .lp {
  transform-box: view-box;
  transform-origin: 1133.86px 1133.86px;
  opacity: 0;
}
.preloader__bar {
  width: min(220px, 46vw);
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .07);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease-out;
}
.preloader__label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .14em;
  color: #b9b9b9;
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 14px;
}
.site-logo {
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;   /* 狭い画面でナビに押しつぶされないように */
  background: #fff;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  text-decoration: none;
}
.site-logo img { width: 70%; height: 70%; object-fit: contain; display: block; margin: auto; }

/* hamburger */
.menu-toggle {
  position: relative;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  transition: transform .25s, opacity .2s;
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- nav (mobile drawer) ---------- */
/* 開閉でぼかしをかけたいので display の切り替えはしない。
   opacity + visibility + backdrop-filter を遷移させる。 */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  background: rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .3s ease,
    background-color .34s ease,
    -webkit-backdrop-filter .34s ease,
    backdrop-filter .34s ease,
    visibility 0s linear .34s;   /* 閉じ切ってから非表示にする */
}
.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  transition:
    opacity .3s ease,
    background-color .34s ease,
    -webkit-backdrop-filter .38s ease,
    backdrop-filter .38s ease,
    visibility 0s;
}
/* backdrop-filter が使えない環境では、ぼかしの代わりに白を濃くする */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav-open .site-nav { background: rgba(255, 255, 255, .97); }
}
.site-nav__inner { text-align: center; }

.nav-list { list-style: none; padding: 0; margin: 0; }
.site-nav__list li { margin: 22px 0; }
.site-nav__list a,
.site-nav__list .nav-pending {
  text-decoration: none;
  color: var(--heading);
  font-size: 24px;
  letter-spacing: .08em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-nav__list a:hover { color: var(--accent); }

/* 行き先がまだ無い項目。リンクではないので押せない。
   見え方は .panel--pending（トップの「準備中」カード）に合わせている。 */
.nav-pending { opacity: .55; cursor: default; }
.nav-pending__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: #b9b9b9;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.site-nav__list .nav-pending__label { margin-left: 4px; }

/* りんごアイコン（実＝コーラル/ミント交互・枝＝茶） */
.nav-ico { width: 30px; height: 33px; flex: 0 0 auto; }
.nav-ico__body { fill: var(--accent); }
.nav-ico__stem { stroke: var(--stem); }
.site-nav__list li:nth-child(even) .nav-ico__body { fill: var(--mint-deep); }

/* ---------- section headings ---------- */
.sec-head {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--heading);
  margin: 0 0 32px;
}
.sec-head::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* ---------- hero (LP) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mint);
  border-radius: 18px;
  padding: 28px clamp(20px, 6vw, 44px) 40px;
  margin: 8px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__body { position: relative; z-index: 2; }
.hero__photo {
  order: -1;
  width: 100%;
  /* 素材がスマホ縦（9:16）なので、枠も縦構図にして切り取りを最小にする */
  aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(45deg, #ffffff 0 12px, #f3f8f3 12px 24px);
  border-radius: 12px;
  display: grid;
  place-content: center;
  color: #9bb59b;
  margin-bottom: 24px;
}
.hero__photo--slideshow { position: relative; overflow: hidden; display: block; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-name: ringoHeroFade;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 20s; /* 枚数に応じて functions.php が上書きする */
}
.hero__slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* アニメーションロゴ */
.hero__logo { margin: 0 0 6px; }
.hero__logo-svg { display: block; width: 108px; height: auto; }
.hero__title {
  color: var(--heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 20px;
}
.hero p { margin: 0 0 18px; }
/* p.hero__brand と書いているのは、後ろにある `.hero p` に font-size を奪われないため */
p.hero__brand {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
}
.hl {
  background: linear-gradient(transparent 60%, rgba(233, 138, 150, .55) 60% 92%, transparent 92%);
  padding: 0 2px;
}

/* ---------- home sections ---------- */
.home-section { padding: 40px 0; }
.home-section--tint {
  background: var(--mint);
  border-radius: 18px;
  padding: 36px clamp(20px, 5vw, 40px);
  margin: 24px 0;
}

/* PICKUP carousel */
.pickup__label {
  text-align: center;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: .2em;
  font-size: 22px;
  margin: 0 0 18px;
}
.pickup__viewport { position: relative; }
.pickup__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* scroll-behavior: smooth は付けない。
     無限ループの瞬間移動（scrollLeft の代入）までアニメーションしてしまう。
     1ステップ送りは JS 側の scrollBy({behavior:'smooth'}) で行う。 */
  overscroll-behavior-x: contain;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}
.pickup__track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.pickup__track::-webkit-scrollbar { display: none; }
.pickup__card {
  flex: 0 0 78%;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.pickup__thumb {
  display: block;
  /* 縦構図の写真に合わせた枠。中身は object-fit: cover で切り取る */
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(45deg, #f5fbf5 0 12px, #e7f3e7 12px 24px);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.pickup__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.pickup__card:hover .pickup__thumb img { transform: scale(1.03); }
.pickup__caption { display: block; text-align: center; font-size: 15px; }
.pickup__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-strong);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0 0 3px;
}
.pickup__arrow--prev { left: 4px; }
.pickup__arrow--next { right: 4px; }
.pickup__arrow:hover { background: #fff; border-color: var(--accent-strong); }
.pickup__arrow:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
/* JS 無効時は押せないボタンを見せない（横スクロールだけで使える） */
.pickup:not(.is-ready) .pickup__arrow { display: none; }

/* 動きを減らす設定の環境では、写真の切り替えと拡大演出を止める
   （アニメーションロゴ = SMIL は hero.js 側で停止させる） */
@media (prefers-reduced-motion: reduce) {
  /* 読み込み画面はそもそも出さない（header.php 側で判定）が、念のため */
  .preloader { display: none !important; }
  .site-nav,
  .nav-open .site-nav,
  .site-nav__list li,
  .nav-open .site-nav__list li { transition: none; transition-delay: 0s; }
  .menu-toggle span { transition: none; }
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:first-child { opacity: 1; }
  .pickup__thumb img,
  .pickup__card:hover .pickup__thumb img { transition: none; transform: none; }
}

/* news cards */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }
.news-card { text-decoration: none; color: inherit; display: block; }
.news-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--mint);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card time { color: var(--accent); font-size: 13px; }
.news-card__title { display: block; color: var(--heading); font-weight: 700; margin-top: 4px; line-height: 1.6; }

/* link panels */
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.panel {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .2s, box-shadow .2s;
}
.panel:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .08); }
.panel__title { display: block; font-size: 24px; font-weight: 800; color: var(--heading); letter-spacing: .06em; }
.panel__desc { display: block; color: var(--text); font-size: 15px; margin: 8px 0 14px; }
.panel__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); font-weight: 700; font-size: 14px; }
.panel__cta::after { content: "›"; }

.contact-cta p { text-align: center; }

/* ---------- ABOUT page ---------- */
.page-title-xl {
  text-align: center;
  color: var(--heading);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .3em;
  margin: 24px 0 16px;
  padding-left: .3em;
}
/* 日本語の見出し用。英字（ABOUT / NEWS）向けの広い字間を通常に戻す */
.page-title-xl.page-title-xl--plain {
  letter-spacing: .04em;
  padding-left: 0;
}
.page-title-xl::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin: 20px auto 0;
}
.section { padding: 32px 0; }
.sub-label { color: var(--heading); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.lead-title { color: var(--heading); font-size: 32px; font-weight: 700; line-height: 1.5; margin: 0 0 24px; }
.section__title { color: var(--heading); font-size: 32px; font-weight: 800; margin: 0 0 28px; text-align: center; letter-spacing: .04em; }
.sub-label__en {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  margin-bottom: 2px;
}
.note-center { text-align: center; }
/* 原稿待ちの箇所（モックの「〜〜〜」にあたる） */
.note-soft { text-align: center; color: #aaa; font-size: 15px; }

/* ABOUT: 淡いピーチの地の上に白いカード */
body.page-about { background: var(--shell); }
body.page-about .about {
  background: #fff;
  border-radius: 14px;
  padding: 4px clamp(14px, 4vw, 28px) 28px;
  margin-bottom: 32px;
}
/* 追従ヘッダーの白（--bg）が地色の上で帯に見えるので、地色に合わせる */
body.page-about .site-header { background: var(--shell); }

@media (max-width: 819px) {
  /* 画面隅に固定されるロゴ・ハンバーガーとタイトルが重ならないように */
  body.page-about .about { margin-top: 44px; }
}

.logo-circle {
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid #d8d8d8;
  display: grid; place-content: center; text-align: center;
  color: var(--accent); margin: 0 auto 24px; line-height: 1.5;
}
.logo-circle img,
.logo-circle__svg { width: 62%; height: auto; display: block; margin: auto; }

.cta-box {
  display: grid; place-content: center; text-align: center;
  background: var(--peach); border-radius: 12px; min-height: 140px;
  color: var(--heading); font-size: 24px; font-weight: 700; text-decoration: none;
  margin: 24px 0 32px; transition: filter .2s;
}
.cta-box:hover { filter: brightness(0.97); }
.cta-box--pending { cursor: default; color: #a08c84; }
.cta-box small { display: block; font-size: 13px; font-weight: 400; margin-top: 6px; color: #9b8378; }
/* 行き先の固定ページがまだ無いパネル */
.panel--pending { opacity: .6; cursor: default; }
.panel--pending .panel__cta { color: #aaa; }
.cta-box--pending small { display: block; font-size: 14px; font-weight: 400; margin-top: 6px; }

.sns { display: flex; gap: 48px; justify-content: center; padding: 16px 0 8px; }
.sns a { text-align: center; text-decoration: none; color: var(--accent-strong); font-size: 14px; }
.sns a:hover .sns__icon { transform: translateY(-2px); }
.sns__icon {
  width: 64px; height: 64px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid; place-content: center;
  color: #fff;                       /* アイコンの色。SVG は currentColor で描く */
  transition: transform .2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.sns__icon svg { width: 34px; height: 34px; display: block; fill: currentColor; }
.sns__icon--x { background: #000; }
/* Instagram アプリのアイコンに寄せたグラデーション */
.sns__icon--ig {
  background: radial-gradient(circle at 28% 105%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* ---------- ABOUT: 活動理念の3本柱 ---------- */
.pillars { display: grid; gap: 14px; margin: 28px 0 0; }
.pillar {
  background: var(--shell);
  border-radius: 14px;
  padding: 18px clamp(16px, 4vw, 24px);
}
.pillar__head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 6px;
  color: var(--heading); font-size: 22px; font-weight: 800;
}
.pillar__num { color: var(--accent); font-size: 15px; letter-spacing: .1em; }
.pillar__text { margin: 0; font-size: 16px; }

/* ---------- ABOUT: 活動内容 ---------- */
.about-box {
  border: 2px dashed var(--frame);
  border-radius: 14px;
  padding: 18px clamp(16px, 4vw, 24px);
  margin: 24px 0 0;
}
.about-box p { margin: 0; font-size: 16px; }
.about-box p.about-box__title { color: var(--accent-strong); font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.about-subhead {
  color: var(--heading); font-size: 20px; font-weight: 800;
  text-align: center; margin: 36px 0 18px;
}
.activity-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px;
}
.activity { margin: 0; }
.activity__img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; background: var(--mint);
}
.activity__title { margin: 10px 0 2px; color: var(--heading); font-size: 17px; font-weight: 800; line-height: 1.5; }
.activity__text { margin: 0; font-size: 14px; line-height: 1.7; }

/* ---------- ABOUT: こんな人がいます ---------- */
.voices { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.voice { display: flex; align-items: flex-start; gap: 14px; }
.voice__avatar {
  flex: 0 0 52px; height: 52px; border-radius: 50%;
  position: relative; overflow: hidden; background: var(--shell);
}
/* 頭と肩の簡単な人型（原稿のアイコンに合わせる） */
.voice__avatar::before,
.voice__avatar::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: currentColor; }
.voice__avatar::before { top: 10px; width: 18px; height: 18px; border-radius: 50%; }
.voice__avatar::after { bottom: -12px; width: 36px; height: 30px; border-radius: 50%; }
.voice__avatar--red { color: #d9463b; }
.voice__avatar--green { color: #7aa52a; }
.voice__avatar--brown { color: var(--stem); }
.voice__text {
  position: relative; margin: 0; flex: 1;
  background: #fff; border: 1px solid #f0e6e2; border-radius: 14px;
  padding: 12px 16px; font-size: 15px; line-height: 1.8;
}

/* ---------- 新歓: こんな人は特におすすめ ---------- */
.recommend { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.recommend__item {
  background: var(--shell); border-radius: 14px;
  padding: 18px clamp(16px, 4vw, 24px) 18px 54px; position: relative;
}
.recommend__item::before {
  content: "✓";
  position: absolute; left: 16px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 800; line-height: 26px; text-align: center;
}
.recommend__title { color: var(--heading); font-size: 19px; font-weight: 800; margin: 0 0 6px; line-height: 1.5; }
.recommend__text { margin: 0; font-size: 16px; }

@media (max-width: 480px) {
  .activity-grid { gap: 18px 12px; }
  .activity__title { font-size: 15px; }
  .activity__text { font-size: 13px; }
  .pillar__head { font-size: 20px; }
}

/* ---------- 今日のりんご ---------- */
.apple-day { text-align: center; }
.apple-day__label {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 14px;
}
.apple-day .sec-head { margin-bottom: 26px; }
.apple-day__card {
  display: grid;
  gap: 20px;
  justify-items: center;
  background: #fff;
  border: 1px solid #f2e7e3;
  border-radius: 18px;
  padding: 24px clamp(18px, 5vw, 32px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  transition: opacity .18s ease, transform .18s ease;
}
.apple-day__card.is-flipping { opacity: 0; transform: translateY(6px) scale(.99); }
.apple-day__photo {
  width: min(240px, 62vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mint);
  display: grid;
  place-content: center;
}
.apple-day__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apple-day__noimage { font-size: 64px; }
.apple-day__name {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: .06em;
}
.apple-day__summary { margin: 0 0 12px; color: var(--accent-strong); font-size: 15px; font-weight: 700; }
.apple-day__text { margin: 0; text-align: left; }
.apple-day__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  .apple-day__card, .apple-day__card.is-flipping { transition: none; opacity: 1; transform: none; }
}

/* ---------- 新歓バンド（トップ） ---------- */
.join-band {
  background: var(--mint);
  border-radius: 18px;
  padding: 32px clamp(20px, 5vw, 40px);
  text-align: center;
}
.join-band__label { color: var(--mint-deep); font-weight: 800; letter-spacing: .2em; font-size: 14px; margin: 0 0 8px; }
.join-band__title { color: var(--heading); font-size: 30px; font-weight: 800; margin: 0 0 16px; letter-spacing: .06em; }
.join-band__text { margin: 0 0 24px; }

/* ---------- 入会までの流れ ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.step {
  background: #fff;
  border: 1px solid #f0e6e2;
  border-radius: 14px;
  padding: 20px clamp(16px, 4vw, 24px);
  position: relative;
}
.step__label { color: var(--accent); font-weight: 800; letter-spacing: .14em; font-size: 13px; margin: 0 0 6px; }
.step__title { color: var(--heading); font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.step__text { margin: 0; font-size: 16px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--frame);
  border-bottom: 2px solid var(--frame);
  transform: translateX(-50%) rotate(45deg);
}
.join__links,
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- フォーム（入会・お問い合わせ共通） ---------- */
.site-form { margin: 24px 0 0; text-align: left; }
.field { margin: 0 0 22px; border: 0; padding: 0; }
.field > label,
.field legend {
  display: block;
  color: var(--heading);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  padding: 0;
}
.field__req, .field__opt {
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}
.field__req { background: var(--frame); color: #8a4a55; }
.field__opt { background: #eee; color: #888; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOS で拡大されないように */
  color: var(--text);
  background: #fff;
  border: 1px solid #ddd2ce;
  border-radius: 10px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--frame);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input:user-invalid { border-color: var(--accent-strong); }
.choices { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px; }
.choice { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 16px; }
.choice input { accent-color: var(--accent-strong); width: 18px; height: 18px; }
.choice__other { margin-top: 4px; }
/* 「その他」を選ぶまでは出さない（disabled は join-form.js が切り替える） */
.choice__other:disabled { display: none; }
.site-form__submit { text-align: center; margin: 28px 0 0; }
.site-form__error { color: var(--accent-strong); text-align: center; font-size: 15px; margin: 12px 0 0; }
/* 送信先の iframe。画面には出さない（display:none だと送信できないブラウザがある） */
.site-form__sink { position: absolute; width: 0; height: 0; border: 0; opacity: 0; pointer-events: none; }
.site-form__done {
  background: var(--mint);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  margin: 24px 0 0;
}
.site-form__done-title { color: var(--heading); font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.site-form__done p:last-child { margin: 0; }

/* 送信結果の表示 */
.form-notice {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.8;
}
.form-notice--ok { background: var(--mint); color: var(--heading); }
.form-notice--ng { background: #fdecec; color: #a3434f; }
.field__note { font-size: 13px; color: #999; margin: 6px 0 0; }
/* 自動投稿よけの入力欄。display:none だと素通りされることがあるので画面外に置く */
.site-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 記事の共有 ---------- */
.share {
  margin: 40px 0 8px;
  padding: 24px 0 8px;
  border-top: 1px solid #f0e6e2;
  text-align: center;
}
.share__label {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: .12em;
  color: #999;
}
.share__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.share__btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0;
  display: grid;
  place-content: center;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, filter .2s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
}
.share__btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.share__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.share__btn svg { width: 26px; height: 26px; display: block; fill: currentColor; }
.share__btn--x { background: #000; }
.share__btn--line { background: #06c755; }
.share__btn--facebook { background: #1877f2; }
.share__btn--copy { background: #b9aca6; }
.share__btn--native { background: var(--accent); }
.share__done {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--accent-strong);
}

/* ---------- 検索フォーム ---------- */
.searchform {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 28px;
}
.searchform__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid #ddd2ce;
  border-radius: 999px;
  padding: 10px 18px;
}
.searchform__input:focus-visible { outline: 3px solid var(--frame); outline-offset: 1px; border-color: var(--accent); }
.searchform__submit {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.searchform__submit svg { width: 20px; height: 20px; }
.searchform__submit:hover { filter: brightness(1.05); }
.search-summary { text-align: center; margin: 0 0 20px; }
.archive__search { margin-top: 40px; }

/* ---------- 写真グリッド（活動記録などの一覧） ---------- */
.photo-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.photo-card { text-decoration: none; color: inherit; display: block; }
.photo-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mint);
  margin-bottom: 10px;
  display: grid;
  place-content: center;
}
.photo-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-card:hover .photo-card__thumb img { transform: scale(1.04); }
.photo-card__noimage { font-size: 40px; }
.photo-card__date { display: block; color: var(--accent); font-size: 13px; }
.photo-card__title { display: block; color: var(--heading); font-weight: 700; line-height: 1.6; margin-top: 2px; }

/* ---------- 前後の記事 ---------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 36px 0 8px;
}
.post-nav__item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0e6e2;
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color .2s, transform .2s;
}
.post-nav__item:hover { border-color: var(--accent); transform: translateY(-1px); }
.post-nav__item--empty { border: 0; padding: 0; }
.post-nav__label { display: block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.post-nav__title { display: block; color: var(--heading); font-weight: 700; line-height: 1.6; margin-top: 4px; }
.post-nav__item--next { text-align: right; }

/* ---------- 関連記事 ---------- */
.related { margin: 40px 0 8px; }
.related__heading {
  text-align: center;
  color: var(--heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .1em;
  margin: 0 0 22px;
}

/* ---------- スマホ下部の固定ボタン ---------- */
.mobile-cta { display: none; }

/* ---------- ページ送り ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 32px 0 0; }
.pagination .page-numbers {
  display: grid; place-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 20px; border: 2px solid var(--frame);
  color: var(--accent-strong); text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: 0; }

/* ---------- post list (news archive / blog) ---------- */
.post-card { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; }
.post-card__thumb { flex: 0 0 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--mint); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-card time { color: var(--accent); font-size: 13px; }
.post-card h2 { font-size: 18px; margin: 4px 0 0; color: var(--heading); }

/* 投稿の個別ページ */
.entry-page { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-meta { color: var(--accent); font-size: 14px; margin: 0 0 20px; text-align: center; }
.entry-meta__cats { color: #888; margin-left: 12px; }
.entry-meta__cats a { color: #888; }
.entry-thumb { margin: 0 0 28px; border-radius: 14px; overflow: hidden; }
.entry-thumb img { width: 100%; height: auto; }
.entry > *:first-child { margin-top: 0; }
.entry figure { margin: 24px 0; border-radius: 12px; overflow: hidden; }
.entry figcaption { font-size: 14px; color: #888; text-align: center; padding: 8px 4px 0; }
.entry p { margin: 0 0 18px; }

/* 記事本文に置く表（出店の概要など）。スマホでは横にはみ出さず、
   ラベルと中身が縦に積まれるようにする。 */
.entry .wp-block-table { width: 100%; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
/* ブロックエディタ既定の 1px 罫線（縦線を含む四方の枠）を消してから引き直す。
   縦線があると太くしたときに枠が重く見えるので、横線だけで区切る。 */
.entry .wp-block-table th,
.entry .wp-block-table td,
.entry table th,
.entry table td {
  border: 0;
  border-bottom: 3px solid #d6cbc4;
  padding: 14px 8px;
  text-align: left;
  vertical-align: top;
}
.entry table th { width: 7em; color: var(--heading); font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  /* 上の指定と同じ詳細度（.entry .wp-block-table ...）で書くこと。
     .entry table ... だけだと打ち消しが効かず、セルの線と行の線で
     区切りが2本になる。 */
  .entry .wp-block-table th,
  .entry .wp-block-table td,
  .entry table th,
  .entry table td { display: block; width: auto; border: 0; padding: 2px 0; }
  .entry .wp-block-table th,
  .entry table th { padding-top: 12px; color: var(--accent-strong); font-size: 14px; }
  .entry .wp-block-table tr,
  .entry table tr { display: block; border-bottom: 3px solid #d6cbc4; padding-bottom: 10px; }
}

/* 地図の埋め込み。画面幅に合わせて縦横比を保つ */
.map-embed { position: relative; margin: 0 0 24px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 出店の記録。トップの活動記録と同じ写真グリッドを使う */
.cafe-events { margin-top: 8px; }

/* 固定ページの本文写真は「賑やかし」。正方形に切り抜いて小さく揃える。
   活動報告（記事）は写真が主役なので、そちらはこの指定の対象外。
   .entry > figure img より詳細度が高いので、書く位置は問わない。 */
body.page .entry > figure img {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  object-fit: cover;      /* はみ出た分は中央を残して切り落とす */
  margin-left: auto;      /* スマホでは figure の中で中央に置く */
  margin-right: auto;
}

/* 限定公開の記事に出す注記。読む人にも書く人にも状態が分かるように */
.unlisted-note {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: #46693f;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* トップのブランド名の下に出す一行説明 */
.hero p.hero__tagline {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: .02em;
}
.about-intro { margin: 0 0 24px; }

/* 記事に付いたタグ。インスタのハッシュタグと同じ感覚で押せるようにする */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.tag-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: #46693f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
  transition: background .15s, color .15s;
}
.tag-chip:hover { background: var(--mint-deep); color: #fff; }

/* ---------- footer ---------- */
.footer-legal { margin: 18px 0 0; text-align: center; font-size: 13px; }
.footer-legal a { color: #999; }
.site-footer {
  background: #f3f8f3;
  border-radius: 18px 18px 0 0;
  margin-top: 48px;
  padding: 40px clamp(20px, 5vw, 40px) 48px;
  text-align: center;
  color: var(--text);
  font-size: 15px;
}
.footer-logo { display: inline-block; margin: 0 auto 18px; }
.footer-logo img { height: 54px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; margin: 0 0 24px; }
.footer-nav a,
.footer-nav .nav-pending { text-decoration: none; color: var(--heading); letter-spacing: .06em; font-weight: 700; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav .nav-pending { display: inline-flex; align-items: center; gap: 6px; }
.footer-nav .nav-pending__label { font-size: 10px; padding: 2px 7px; }
.org-info { display: inline-block; text-align: left; margin: 0 auto; }
.org-info > div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 3px 0; }
.org-info dt { color: var(--accent); margin: 0; }
.org-info dd a { color: var(--accent-strong); text-decoration: none; font-weight: 700; margin-right: 12px; }
.org-info dd a:hover { text-decoration: underline; }
.org-info__handle { color: #999; font-size: 14px; }
.org-info dd { margin: 0; }

/* ========================================================
   PC（横画面）レイアウト
   ======================================================== */
@media (min-width: 820px) {
  :root {
    --maxw: none;
    /* ロゴはヘッダーのナビと同じくらいの大きさに揃える。
       ヒーローの高さ計算にも使うので変数で持つ */
    --logo-size: 48px;
    --header-h: calc(var(--logo-size) + 36px);
  }

  .frame { padding: 0 clamp(32px, 5vw, 100px); }

  /* header: 横並びナビ、丸ロゴは存在感を出す、ハンバーガー非表示 */
  .site-header { padding: 20px 0 16px; }
  .site-logo {
    width: var(--logo-size);
    height: var(--logo-size);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  }
  .site-logo img { width: 96%; height: 96%; }
  .menu-toggle { display: none; }

  .site-nav {
    position: static !important;
    inset: auto;
    display: block !important;
    background: none;
    margin-left: auto;
    /* スマホ用の開閉アニメーションを無効化する */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: none;
  }
  .site-nav__list { display: flex; align-items: center; gap: 24px; }
  .site-nav__list li { margin: 0; display: flex; align-items: center; }
  .site-nav__list a { font-size: 22px; letter-spacing: .04em; gap: 8px; }

  /* hero: 2カラム（テキスト左／写真右）。1画面に収まるように高さ基準で詰める */
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(24px, 3vw, 40px);
    align-items: stretch;
    padding: clamp(20px, 3.4vh, 44px) clamp(28px, 3vw, 48px);
    min-height: calc(100vh - var(--header-h) - var(--admin-bar-h));
    min-height: calc(100svh - var(--header-h) - var(--admin-bar-h));
    margin-top: 0;
  }
  .hero__body { align-self: center; }
  .hero__photo {
    order: 0;
    margin-bottom: 0;
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
    align-self: stretch;
  }
  .hero__logo { margin-bottom: clamp(2px, 0.6vh, 8px); }
  .hero__logo-svg { width: clamp(84px, 9vh, 128px); }
  .hero p.hero__brand { font-size: clamp(19px, 2.6vh, 30px); margin-bottom: clamp(6px, 1vh, 14px); }
  .hero__title { font-size: clamp(27px, 3.6vh, 40px); margin-bottom: clamp(10px, 1.6vh, 20px); }
  .hero p { font-size: clamp(15px, 1.8vh, 18px); line-height: 1.8; margin-bottom: clamp(8px, 1.4vh, 18px); }

  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .post-nav { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* 今日のりんご: 写真と説明を横並びに */
  .apple-day__card {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 32px;
    text-align: left;
    padding: 28px 36px;
  }
  .apple-day__photo { width: 220px; }

  /* section 見出しサイズUP */
  .sec-head { font-size: 46px; }
  .page-title-xl { font-size: 52px; }

  /* 本文系は読みやすい幅に制限して中央寄せ */
  .about, .section, .contact-cta { max-width: 760px; margin-left: auto; margin-right: auto; }

  /* ---- 記事ページだけ横幅を広げる ----
     写真が主役の活動報告で、760px だと画面が余ってしまうため。
     上の .section より後に書くこと（同じ詳細度なので後勝ち）。 */
  .entry-page { max-width: 1120px; }

  /* 文章は読みやすい幅のまま、写真だけ横に並べる。
     column-gap だけを指定しているのは、縦の間隔を今まで通り各要素の
     margin に任せるため（flex では margin が相殺されない）。 */
  .entry {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    column-gap: 24px;
  }
  /* 文章は「1行を占有したまま、中身だけ720px幅」にする。
     max-width で720pxに縮めると、flex の折り返し計算でもその要素は
     720px 扱いになり、右隣に写真が1枚入り込んでしまう（実際そうなった）。
     padding で内側に寄せれば、要素自体は1行分の幅を保てる。 */
  .entry > * {
    flex: 1 1 100%;
    padding-left: max(0px, calc((100% - 720px) / 2));
    padding-right: max(0px, calc((100% - 720px) / 2));
  }

  /* 写真は「幅」ではなく「高さ」で揃える。
     こうすると縦横どちらの写真でも破綻しない:
       縦長 9:16  → 幅 349px … 3枚が1行に収まる
       縦長 3:4   → 幅 465px … 2枚が1行に収まる
       横長 16:9  → 幅 1102px … 1枚で画面いっぱい
     幅で揃えると縦長写真が高さ1350pxの帯になってしまう。 */
  .entry > figure {
    flex: 0 1 auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  /* 表は写真ではないので、上の「中身の幅で並ぶ」扱いから外して
     本文と同じ幅いっぱいに置く。これが無いと表だけ細くなる。 */
  .entry > figure.wp-block-table {
    flex: 1 1 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .entry > figure img {
    width: auto;
    max-width: 100%;
    max-height: min(62vh, 620px);
  }
  /* キャプションが長いとき、figure の幅を広げてしまわないようにする。
     width:0 で横幅の計算に加わらないようにし、min-width で写真の幅まで広げる。
     これが無いと、長い説明文のついた写真だけ1枚で1行を占めてしまう。 */
  .entry > figure figcaption {
    width: 0;
    min-width: 100%;
  }

  /* アイキャッチも同じ考え方。記事の顔なので本文写真より少し大きく。 */
  .entry-thumb {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .entry-thumb img {
    width: auto;
    max-width: 100%;
    max-height: min(72vh, 680px);
  }

  /* news / panels は画面幅いっぱいに */
  .home-section { max-width: none; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .panel-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

  /* footer: ナビ横並びのまま、情報は中央 */
  .footer-nav { gap: 28px; }

  /* PICKUP: PCでは3枚／行 */
  .pickup__label { font-size: 28px; }
  .pickup__card { flex: 0 0 calc((100% - 32px) / 3); }
  .pickup__arrow { width: 44px; height: 44px; font-size: 24px; }
}

/* ========================================================
   スマホ縦: ロゴ/ハンバーガーを画面隅に固定（baton風）
   ======================================================== */
@media (max-width: 819px) {
  .site-header {
    position: relative;
    height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  /* 画面左上に大きな白い円（1/4だけ画面に出る）。ロゴはその可視部分の中に納まる */
  .site-header::before {
    content: "";
    position: fixed;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    z-index: 60;
    pointer-events: none;
  }
  .site-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 54px;   /* フッターのロゴと同じ高さ */
    height: 54px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    z-index: 70;
  }
  .site-logo img { width: 100%; height: 100%; }

  .menu-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 70;
  }

  /* ログイン中は上に管理バーが出るので、その分だけ下げる
     （ログアウト時＝実際の見え方と揃える） */
  body.admin-bar .site-header::before { top: calc(-100px + var(--admin-bar-h)); }
  body.admin-bar .site-logo { top: calc(16px + var(--admin-bar-h)); }
  body.admin-bar .menu-toggle { top: calc(14px + var(--admin-bar-h)); }

  /* メニューの項目は、ぼかしが効き始めてから少しずつ現れる */
  .site-nav__list li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .28s ease, transform .28s ease;
  }
  .nav-open .site-nav__list li { opacity: 1; transform: none; }
  .nav-open .site-nav__list li:nth-child(1) { transition-delay: .08s; }
  .nav-open .site-nav__list li:nth-child(2) { transition-delay: .12s; }
  .nav-open .site-nav__list li:nth-child(3) { transition-delay: .16s; }
  .nav-open .site-nav__list li:nth-child(4) { transition-delay: .20s; }
  .nav-open .site-nav__list li:nth-child(5) { transition-delay: .24s; }
  .nav-open .site-nav__list li:nth-child(6) { transition-delay: .28s; }
  .nav-open .site-nav__list li:nth-child(7) { transition-delay: .32s; }

  /* PICKUP: スマホは矢印を隠す（指でのスワイプのみ／自動ループ） */
  .pickup__arrow { display: none; }

  /* 画面下の固定ボタン。フッターに重ならないよう本文の下に余白を足す */
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .07);
  }
  .mobile-cta__btn { display: flex; width: 100%; justify-content: center; }
  body { padding-bottom: 84px; }
  .nav-open .mobile-cta { display: none; }

  .photo-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .photo-card__title { font-size: 15px; }

  /* NEWS: スマホは写真を出さず、日付＋見出しだけの一覧にする */
  .news-card__thumb { display: none; }
  .news-grid { gap: 0; margin-bottom: 22px; }
  .news-card { padding: 14px 2px; border-bottom: 1px solid #eee; }
  .news-card:first-child { border-top: 1px solid #eee; }
  .news-card__title { font-size: 17px; margin-top: 2px; }

  /* スマホでは文字を少し小さめに */
  body { font-size: 16px; line-height: 1.85; }

  /* ヒーロー: 画面いっぱいの写真の手前に文字を置く（1画面に収める） */
  .hero {
    margin: 0 calc(clamp(16px, 5vw, 40px) * -1) 32px;
    border-radius: 0;
    min-height: calc(100vh - var(--admin-bar-h));
    min-height: calc(100svh - var(--admin-bar-h));
    padding: 100px 18px 28px;
    justify-content: center;
  }
  .hero__photo {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    z-index: 0;
  }
  /* 写真の上に薄い膜。文字の下地はさらに .hero__body 側で用意する */
  .hero__photo--slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .45), rgba(255, 255, 255, .22) 42%, rgba(255, 255, 255, .5));
  }
  .hero__body {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-radius: 18px;
    padding: 16px 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
  }
  .hero__logo { margin-bottom: 2px; }
  .hero__logo-svg { width: 78px; }
  .hero p.hero__brand { font-size: 19px; margin-bottom: 6px; }
  .hero p { font-size: 15px; line-height: 1.75; margin-bottom: 10px; }
  .hero__body > p:last-child { margin-bottom: 0; margin-top: 14px; }

  .hero__title { font-size: 23px; margin-bottom: 12px; }

  /* 縦の短い端末（管理バーが出ているときなど）ではもう少し詰める */
  @media (max-height: 720px) {
    .hero { padding-top: 84px; padding-bottom: 20px; }
    .hero__body { padding: 14px 14px 18px; }
    .hero__logo-svg { width: 64px; }
    .hero p.hero__brand { font-size: 18px; }
    .hero__title { font-size: 21px; margin-bottom: 10px; }
    .hero p { font-size: 14.5px; line-height: 1.7; margin-bottom: 8px; }
  }
  .sec-head { font-size: 28px; letter-spacing: .12em; }
  .page-title-xl { font-size: 32px; letter-spacing: .25em; }
  .section__title { font-size: 24px; }
  .lead-title { font-size: 24px; }
  .panel__title { font-size: 20px; }
  .site-nav__list a { font-size: 20px; }
  .cta-box { font-size: 22px; }
}
