/* ============================================================
   石積み修復ワークショップ 2026  —  styles.css
   Figma版準拠: ヘッダー#7FB5B8 / アクセント#6AA5A8 / サブ#F4F4F4
   フォント: MS PMincho → Noto Serif JP → serif（明朝統一）
   ============================================================ */

:root {
  --band:       #7FB5B8;
  --brand:      #6AA5A8;
  --brand-ink:  #3c7276;
  --teal-dark:  #4c8285;
  --ink:        #1a1a1a;
  --muted:      #555555;
  --bg:         #ffffff;
  --bg-alt:     #f4f4f4;
  --line:       #e2e2e2;
  --card:       #ffffff;
  --shadow:     0 1px 3px rgba(20,20,20,.07), 0 8px 24px rgba(20,20,20,.05);
  --maxw:       1160px;
  --nav-h:      58px;
  --font: 'MS PMincho', 'MS P明朝', 'ＭＳ Ｐ明朝', 'Noto Serif JP', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; }

h1, h2, h3, .hero__title, .day__no, .venue-info dt { font-weight: 600; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.eyebrow { font-size: .78rem; letter-spacing: .16em; color: var(--brand-ink); font-weight: 400; margin: 0 0 10px; }
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: .05em; line-height: 1.4; margin: 0 0 22px; }
.lead { color: var(--muted); margin: -10px 0 36px; font-size: .95rem; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--band); color: #fff; }
.nav__inner { display: flex; align-items: center; gap: 20px; min-height: var(--nav-h); }
.nav__brand {
  font-family: var(--font); font-weight: 400; font-size: .92rem; letter-spacing: .18em;
  color: #fff; text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto;
}
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  color: #fff; text-decoration: none; font-size: .84rem; letter-spacing: .1em;
  padding: 8px 12px; border-radius: 4px; white-space: nowrap;
  transition: background .18s ease;
}
.nav__links a:hover { background: rgba(255,255,255,.16); }
.nav__links a.is-qa { border: 1px solid rgba(255,255,255,.75); padding: 6px 16px; margin-left: 6px; }
.nav__links a.is-qa:hover { background: rgba(255,255,255,.22); }
.nav__toggle { display: none; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; color: #fff; line-height: 0; }

@media (max-width: 1080px) {
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--teal-dark);
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav__links a { padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0; }
  .nav__links a.is-qa { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 0; }
  .nav__toggle:checked ~ .nav__links { max-height: 70vh; }
}
@media (max-width: 640px) {
  .nav__brand, .faq-topbar .home { font-size: .84rem; letter-spacing: .08em; }
  .nav__brand-tail { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-family: var(--font); font-weight: 400; font-size: .95rem; letter-spacing: .12em;
  padding: 16px 34px; border-radius: 3px; border: 0; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: #5c9598; transform: translateY(-1px); }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- hero（写真は右端までフルブリード） ---------- */
.hero { padding: 0; }
.hero__grid {
  display: grid;
  /* 左列＝中央寄せ余白＋固定コンテンツ幅。ワイド画面でも本文幅を一定に保つ */
  grid-template-columns: minmax(0, calc((100vw - var(--maxw)) / 2 + 520px)) minmax(0, 1fr);
  gap: 0; align-items: center;
}
.hero__text {
  padding: 72px 56px 72px max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
}
@media (max-width: 1208px) {
  .hero__grid { grid-template-columns: minmax(400px, 40fr) minmax(0, 60fr); }
}
.hero__title { font-size: clamp(2.1rem, 3.4vw, 2.9rem); line-height: 1.4; letter-spacing: .08em; margin: 0 0 18px; white-space: nowrap; }
.hero__sub { color: var(--muted); margin: 0 0 28px; font-size: .95rem; line-height: 1.8; }
.facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .ic { flex: 0 0 auto; display: inline-flex; line-height: 1; color: var(--brand-ink); margin-top: 3px; }
.facts .txt { font-size: .93rem; line-height: 1.6; }
.facts .txt b { font-weight: 600; }
.notes { list-style: none; margin: 0 0 34px; padding: 0 0 0 14px; display: grid; gap: 1px; }
.notes li { font-size: .8rem; color: var(--muted); line-height: 1.75; }
.hero__media { height: 100%; position: relative; overflow: hidden; }
.hero__media img { box-shadow: none;
  width: 100%; height: 100%; min-height: 620px; max-height: 88vh;
  object-fit: cover; border-radius: 0;      /* 右端まで角丸なし */
  opacity: 0; transition: opacity 1.6s ease;
}
/* 2枚目以降は重ねて配置（1枚目がサイズの基準） */
.hero__media img + img { position: absolute; inset: 0; height: 100%; min-height: 0; max-height: none; }
.hero__media img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__media img { transition: none; } }

@media (max-width: 900px) {
  .hero { padding: 0 0 52px; }
  .hero__title { white-space: normal; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; position: relative; }
  .hero__text { display: contents; }
  /* タイトルも写真の下に配置（写真には何も重ねない） */
  .hero__head { order: 2; padding: 28px 20px 0; }
  .hero__head .hero__title { margin: 0 0 10px; font-size: 1.9rem; }
  .hero__body .hero__sub { margin: 0 0 14px; font-size: .9rem; }
  .hero__media { order: 1; }
  .hero__media img { box-shadow: none; min-height: 0; max-height: none; height: auto; aspect-ratio: 4/3; object-fit: cover; }
  .hero__media img + img { height: 100%; aspect-ratio: auto; }
  /* 詳細はタイトルの下 */
  .hero__body { order: 3; padding: 12px 20px 0; }
}

/* ---------- two-column split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split p { margin: 0 0 1.15em; font-size: .95rem; }
.split p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 34px; } }

/* 図版 */
.figure { position: relative; }
.figure > img { width: 100%; border-radius: 4px; }
.figure--plain > img { aspect-ratio: 4/3; object-fit: cover; }

/* ---------- program ---------- */

.days { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 12px; }
@media (max-width: 760px) { .days { grid-template-columns: 1fr; } }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 36px 36px 30px; box-shadow: var(--shadow); }
.day__head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 4px; }
.day__no { font-size: 1.45rem; color: var(--brand-ink); letter-spacing: .06em; }
.day__date { font-size: .93rem; }
.day__time { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; margin: 0 0 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.timeline li:first-child { border-top: 0; }
.timeline .t { color: var(--brand-ink); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.prog-notes { margin: 18px 0 0; }
.prog-notes ul { margin: 0; padding: 0; display: grid; gap: 3px; }
.prog-notes li { list-style: none; font-size: .8rem; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.gallery a { display: block; overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .g-lg { grid-column: span 2; grid-row: span 2; }
.gallery .g-lg img { aspect-ratio: auto; }
@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-lg { grid-column: span 2; grid-row: span 1; }
}

/* ---------- sub-blocks ---------- */
.subblock { margin-top: 60px; }
.subblock__label { font-size: .82rem; letter-spacing: .14em; color: var(--muted); margin: 0 0 18px; }
.media-row { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; }
.media-row img { width: 100%; border-radius: 3px; }
.media-row h3 { font-size: 1.02rem; margin: 0 0 6px; letter-spacing: .03em; }
.media-row p { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 620px) { .media-row { grid-template-columns: 130px 1fr; gap: 18px; } }

.hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.origin { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.origin__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.origin__imgs img { width: 100%; border-radius: 3px; aspect-ratio: 4/3; object-fit: cover; }
.origin p { margin: 0 0 12px; font-size: .93rem; }
@media (max-width: 720px) { .origin { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- venue ---------- */
.venue-info { margin: 0 0 26px; }
.venue-info dt { font-size: 1.12rem; letter-spacing: .04em; margin: 0 0 4px; }
.venue-info > p { color: var(--muted); font-size: .92rem; margin: 0; }
.access { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.access li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.access .tag { font-size: .74rem; color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 3px; padding: 3px 10px; letter-spacing: .18em; white-space: nowrap; }
.access .txt { font-size: .92rem; line-height: 1.6; }
.venue-fig img { width: 100%; border-radius: 4px; aspect-ratio: 16/10; object-fit: cover; }
.venue-fig figcaption { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; letter-spacing: .06em; }

/* ---------- footer ---------- */
.footer { background: var(--band); color: #fff; padding: 54px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.footer h4 { font-size: .78rem; letter-spacing: .14em; font-weight: 400; margin: 0 0 10px; opacity: .9; }
.footer p, .footer a { font-size: .9rem; color: #fff; }
.footer p { margin: 0 0 4px; line-height: 1.8; }
.footer a { text-decoration: none; opacity: .96; }
.footer a:hover { text-decoration: underline; }
.footer__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.28); font-size: .78rem; opacity: .85; }
@media (max-width: 620px) { .footer__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ============================================================
   FAQ page
   ============================================================ */
.faq-topbar { background: var(--band); color: #fff; position: sticky; top: 0; z-index: 40; }
.faq-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 16px; }
.faq-topbar a { color: #fff; text-decoration: none; font-size: .84rem; letter-spacing: .1em; white-space: nowrap; }
.faq-topbar a:hover { text-decoration: underline; }
.faq-topbar .home { font-size: .92rem; letter-spacing: .18em; overflow: hidden; text-overflow: ellipsis; }

.faq-hero { background: var(--band); color: #fff; padding: 56px 0 48px; }
.faq-hero .eyebrow { color: rgba(255,255,255,.85); }
.faq-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: .05em; margin: 0 0 12px; }
.faq-hero p { margin: 0; opacity: .92; font-size: .95rem; }

.faq-list { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 20px; }
.qa { border-bottom: 1px solid var(--line); }
.qa > summary { list-style: none; cursor: pointer; padding: 19px 40px 19px 36px; position: relative; font-weight: 600; font-size: 1rem; letter-spacing: .03em; color: var(--ink); }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::before { content: "Q"; position: absolute; left: 0; top: 17px; color: var(--brand); font-size: 1.05rem; }
.qa > summary::after { content: ""; position: absolute; right: 6px; top: 25px; width: 9px; height: 9px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .22s ease; }
.qa[open] > summary::after { transform: rotate(-135deg); }
.qa__a { display: grid; grid-template-columns: 36px 1fr; padding: 0 40px 20px 0; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.qa__a::before { content: "A"; color: var(--brand-ink); font-size: 1.05rem; }

.faq-other { margin: 34px 0 0; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 32px 36px; }
.faq-other h3 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: .04em; }
.faq-other p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.faq-other .office { font-weight: 600; margin: 0; font-size: .95rem; color: var(--ink); }
.faq-other .tel { margin: 2px 0 0; font-size: .95rem; color: var(--ink); }
.faq-cta { margin: 44px 0 96px; display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.faq-cta a.back { color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1; padding-bottom: 6px; }
.faq-cta a.back:hover { color: var(--ink); }

a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 3px;
}

/* 主催・協力（プログラム下） */
.hosts { margin-top: 40px; }
.hosts__label { font-size: .78rem; letter-spacing: .14em; color: var(--muted); margin: 0 0 2px; }
.hosts p { margin: 0; font-size: .92rem; }

/* トップページのお問い合わせ枠：本文幅に合わせて左寄せ */
.contact-box { max-width: none; margin: 0; }

/* SP：ヘッダー文字サイズをトップ／FAQで統一（定義順の関係でここで上書き） */
@media (max-width: 640px) {
  .faq-topbar .home { font-size: .84rem; letter-spacing: .08em; }
}
