
:root{
  --ink:#171717;--paper:#f8f6f1;--white:#fff;--red:#9b251e;--muted:#6e6a63;
  --serif:"Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic","Noto Sans JP",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.9;letter-spacing:.02em}
a{color:inherit}
img{display:block;max-width:100%}
.site-header{position:fixed;inset:0 0 auto 0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:22px 4vw;color:#fff;mix-blend-mode:difference}
.brand{font-family:var(--serif);font-weight:700;letter-spacing:.08em;text-decoration:none}
.nav{display:flex;gap:22px;font-size:12px;letter-spacing:.12em}
.nav a{text-decoration:none;opacity:.92}
.hero{min-height:100svh;position:relative;display:flex;align-items:flex-end;overflow:hidden;background:#111}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.58))}
.hero-copy{position:relative;z-index:1;color:#fff;padding:0 6vw 8vh;width:min(900px,92vw)}
.hero-kicker{font-size:clamp(12px,1.2vw,17px);letter-spacing:.26em;margin:0 0 14px}
.hero h1{font-family:var(--serif);font-size:clamp(52px,8.6vw,140px);line-height:.95;margin:0;font-weight:500;letter-spacing:.08em}
.hero-scroll{position:absolute;right:4vw;bottom:5vh;color:#fff;z-index:2;font-size:10px;letter-spacing:.28em;writing-mode:vertical-rl}
main{overflow:hidden}
.section{padding:clamp(76px,10vw,150px) 6vw}
.section.white{background:#fff}
.section.dark{background:#121212;color:#fff}
.section.soft{background:#ece9e1}
.eyebrow{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:var(--red);font-weight:700;margin-bottom:18px}
h2,h3{font-family:var(--serif);font-weight:500;letter-spacing:.06em}
h2{font-size:clamp(34px,5vw,72px);line-height:1.2;margin:0 0 28px}
h3{font-size:clamp(24px,3vw,42px);margin:0 0 16px}
.lead{font-family:var(--serif);font-size:clamp(18px,2vw,29px);line-height:1.85;max-width:820px}
.prose{max-width:680px;color:#34312d}
.dark .prose{color:#ddd}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(38px,7vw,110px);align-items:center}
.split.reverse .visual{order:2}
.visual img{width:100%;height:min(68vw,740px);object-fit:cover}
.yama-return-visual{background:#111;display:flex;align-items:center;justify-content:center}
.yama-return-visual img{object-fit:contain;object-position:center}
.photo-caption{font-size:10px;letter-spacing:.12em;color:var(--muted);margin-top:10px}
.story{padding:0}
.story .visual{min-height:78svh;position:relative}
.story .visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story-copy{padding:clamp(62px,8vw,120px) 7vw;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,560px);gap:8vw}
.story-num{font-size:11px;letter-spacing:.28em;color:var(--red)}
.link-arrow{display:inline-flex;align-items:center;gap:12px;margin-top:26px;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:5px;font-size:12px;letter-spacing:.12em}
.people-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin:55px 0}
.people-grid img{width:100%;height:560px;object-fit:cover}
.people-grid .stack{display:grid;gap:18px}
.people-grid .stack img{height:271px}
.archive-stage{display:grid;grid-template-columns:minmax(260px,.72fr) 1.28fr;gap:7vw;align-items:start}
.old-photo{background:#dedbd4;padding:18px}
.old-photo img{width:100%}
.archive-list{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:36px}
.archive-card{border-top:1px solid #bbb5ab;padding-top:18px}
.archive-card strong{font-family:var(--serif);font-size:22px}
.logo-break{padding:clamp(120px,15vw,220px) 6vw;background:#fff;display:flex;justify-content:center;align-items:center}
.logo-break img{width:min(560px,72vw);mix-blend-mode:multiply;opacity:.97}
.cta{background:var(--red);color:#fff;padding:clamp(72px,9vw,130px) 6vw}
.cta h2{max-width:900px}
.button{display:inline-block;margin-top:24px;padding:15px 25px;border:1px solid currentColor;text-decoration:none;font-size:12px;letter-spacing:.12em}
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.gallery figure{margin:0}
.gallery img{width:100%;height:100%;object-fit:cover}
.gallery .wide{grid-column:span 8;height:520px}
.gallery .small{grid-column:span 4;height:520px}
.gallery .half{grid-column:span 6;height:440px}
.page-hero{padding:170px 6vw 80px;background:#fff}
.page-hero h1{font-family:var(--serif);font-size:clamp(50px,8vw,120px);font-weight:500;line-height:1;margin:0}
.page-hero p{max-width:650px;margin-top:28px}
.info-table{border-top:1px solid #aaa399}
.info-row{display:grid;grid-template-columns:220px 1fr;border-bottom:1px solid #cbc5bb;padding:20px 0;gap:30px}
.map-img{background:#fff;padding:14px;border:1px solid #ddd7cb;margin-top:40px}
.footer{background:#111;color:#eee;padding:72px 6vw 42px}
.footer-inner{display:grid;grid-template-columns:1.4fr 1fr;gap:60px}
.footer-title{font-family:var(--serif);font-size:28px}
.footer small{display:block;margin-top:60px;color:#888}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .85s ease,transform .85s ease}
.reveal.on{opacity:1;transform:none}
@media(max-width:820px){
  .site-header{padding:18px 5vw}.nav{display:none}
  .hero-copy{padding:0 6vw 8vh}.hero h1{font-size:clamp(48px,16vw,82px)}
  .split,.story-copy,.archive-stage,.footer-inner{grid-template-columns:1fr}
  .split.reverse .visual{order:0}
  .visual img{height:70vw;min-height:360px}
  .yama-return-visual img{height:auto;min-height:0}
  .story .visual{min-height:62svh}.story-copy{gap:28px}
  .people-grid{grid-template-columns:1fr}.people-grid img{height:62vw;min-height:320px}.people-grid .stack{grid-template-columns:1fr 1fr}.people-grid .stack img{height:42vw}
  .archive-list{grid-template-columns:1fr}
  .gallery .wide,.gallery .small,.gallery .half{grid-column:span 12;height:62vw;min-height:300px}
  .info-row{grid-template-columns:1fr;gap:3px}
}

/* --- content depth additions --- */
.fact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#cfc9bf;border:1px solid #cfc9bf;margin-top:48px}
.fact{background:#fff;padding:34px 30px;min-height:180px}
.fact .num{font-family:var(--serif);font-size:clamp(34px,4vw,62px);line-height:1;color:var(--red);margin-bottom:18px}
.fact .label{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.fact p{margin:0;color:#4b4741;font-size:14px}
.timeline{border-top:1px solid #bdb7ad;margin-top:46px}
.timeline-item{display:grid;grid-template-columns:150px 1fr;gap:36px;padding:28px 0;border-bottom:1px solid #d1cbc1}
.timeline-year{font-family:var(--serif);font-size:24px;color:var(--red)}
.timeline-item h3{font-size:24px;margin:0 0 8px}
.timeline-item p{margin:0;color:#4b4741;max-width:780px}
.note{font-size:12px;color:var(--muted);max-width:780px}
.source-note{font-size:11px;color:#777169;border-top:1px solid #d2ccc2;padding-top:18px;margin-top:36px}
.source-note a{color:inherit}
.event-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:46px}
.event-card{background:#fff;padding:30px;border-top:3px solid var(--red);min-height:220px}
.event-card .kicker{font-size:10px;letter-spacing:.2em;color:var(--muted);text-transform:uppercase}
.event-card h3{font-size:25px;margin-top:12px}
.event-card p{font-size:14px;color:#4b4741;margin-bottom:0}
.quote-block{max-width:900px;margin:50px auto 0;padding:38px 42px;border-left:3px solid var(--red);background:#f4f1ea}
.quote-block p{font-family:var(--serif);font-size:clamp(20px,2.2vw,30px);line-height:1.8;margin:0}
@media(max-width:820px){.logo-break{padding:110px 8vw}.logo-break img{width:min(620px,82vw)}.fact-grid,.event-grid{grid-template-columns:1fr}.timeline-item{grid-template-columns:1fr;gap:6px}.fact{min-height:auto}.event-card{min-height:auto}.quote-block{padding:28px 26px}}


/* --- Oyamakasa presentation: keep full float + people, with tighter vertical framing --- */
.story .visual.yamagasa-full{
  min-height:0;
  position:relative;
  padding:clamp(18px,2.5vw,36px) 6vw;
  background:#f1eee7;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}
.story .visual.yamagasa-full img{
  position:static;
  inset:auto;
  width:min(820px,76vw);
  height:auto;
  max-height:none;
  object-fit:contain;
  display:block;
}
@media(max-width:820px){
  .story .visual.yamagasa-full{
    padding:20px 3vw;
  }
  .story .visual.yamagasa-full img{
    width:94vw;
    height:auto;
    min-height:0;
  }
}


/* Keep the Memory Project heading from leaving 「が、」 stranded on its own line. */
.memory-title span{display:block;}
@media(min-width:821px){
  .memory-title span{white-space:nowrap;}
}
@media(max-width:820px){
  .memory-title{font-size:clamp(30px,8vw,46px);}
}


/* --- publish-ready navigation & utility polish --- */
.menu-toggle{display:none;border:0;background:transparent;color:inherit;width:42px;height:42px;padding:10px;cursor:pointer;position:relative;z-index:32}
.menu-toggle span{display:block;width:22px;height:1px;background:currentColor;margin:6px auto;transition:transform .25s ease,opacity .25s ease}
.tel-link{text-decoration:none;border-bottom:1px solid currentColor}
.source-note a{text-decoration:none;border-bottom:1px solid #bdb6ab}
.map-link{display:block;position:relative;text-decoration:none;color:inherit;overflow:hidden}
.map-hint{position:absolute;right:24px;bottom:24px;background:rgba(17,17,17,.86);color:#fff;padding:9px 12px;font-size:11px;letter-spacing:.08em}

@media(max-width:820px){
  .menu-toggle{display:block}
  .site-header{mix-blend-mode:normal;color:#fff}
  .nav{position:fixed;inset:0;z-index:30;background:#111;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0;padding:110px 9vw 60px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility .25s ease}
  .nav a{font-family:var(--serif);font-size:clamp(25px,7vw,42px);letter-spacing:.06em;width:100%;padding:12px 0;border-bottom:1px solid #ffffff24}
  .site-header.menu-open .nav{opacity:1;visibility:visible;pointer-events:auto}
  .site-header.menu-open .menu-toggle span:first-child{transform:translateY(3.5px) rotate(45deg)}
  .site-header.menu-open .menu-toggle span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
  body.menu-open{overflow:hidden}
  .map-hint{right:12px;bottom:12px}
}


/* Footer contact details */
.footer-contact{
  display:inline-block;
  margin-top:10px;
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  font-size:15px;
  letter-spacing:.04em;
}
.footer-hours{
  display:inline-block;
  margin-top:6px;
  font-size:12px;
  opacity:.68;
  letter-spacing:.04em;
}
.footer-contact:hover{opacity:.7;}


/* Recruitment / Join */
.join-section{
  background:#8e1f18;
  color:#fff;
}
.join-section .eyebrow{color:rgba(255,255,255,.58);}
.join-section .prose{color:rgba(255,255,255,.86);}
.join-section .lead{color:#fff;}
.join-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,560px);
  gap:8vw;
  align-items:start;
}
.join-note{
  margin:26px 0 0;
  font-size:13px;
  line-height:1.9;
  color:rgba(255,255,255,.68);
}
.join-call{
  margin-top:28px;
  background:#fff;
  color:#171717;
  border-color:#fff;
}
.join-call:hover{opacity:.88;}
.join-hours{
  margin-top:14px;
  font-size:12px;
  letter-spacing:.04em;
  color:rgba(255,255,255,.65);
}
.compact-join .join-inner{align-items:center;}
@media(max-width:820px){
  .join-inner{grid-template-columns:1fr;gap:28px;}
  .join-section h2 br{display:none;}
}


/* Site credit */
.site-credit{
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
  font-size:11px;
  line-height:1.8;
  letter-spacing:.08em;
  color:rgba(255,255,255,.5);
}


.site-credit span{
  display:inline-block;
  margin-top:3px;
  color:rgba(255,255,255,.42);
}


/* --- smartphone portrait typography polish --- */
.mobile-only{display:none}
.desktop-only{display:inline}
@media(max-width:820px){
  br.mobile-only{display:block}
  .desktop-only{display:none}

  h2.mobile-long-heading{
    font-size:30px;
    line-height:1.48;
    letter-spacing:.035em;
    text-wrap:balance;
  }
  h2.mobile-xlong-heading{
    font-size:26px;
    line-height:1.55;
    letter-spacing:.025em;
    text-wrap:balance;
  }
  .mobile-memory-title{
    font-size:26px !important;
    line-height:1.55;
    letter-spacing:.025em;
  }
  .mobile-memory-title span{white-space:normal}

  .lead.mobile-lead{
    font-size:19px;
    line-height:1.95;
    letter-spacing:.015em;
  }

  h3.mobile-timeline-heading{
    font-size:22px;
    line-height:1.65;
    letter-spacing:.035em;
  }

  .quote-block p.mobile-quote{
    font-size:18px;
    line-height:2;
    letter-spacing:.015em;
  }

  .page-hero h1.mobile-page-title{
    font-size:44px;
    line-height:1.18;
    letter-spacing:.045em;
  }
}


/* Keep site name on one line on mobile */
.brand{
  white-space:nowrap;
}
@media(max-width:820px){
  .brand{
    font-size:18px;
    letter-spacing:.06em;
    flex-shrink:0;
  }
  .site-header{
    gap:16px;
  }
}


/* Fix awkward mobile wrapping for the rituals heading */
@media(max-width:820px){
  .rituals-heading{
    font-size:28px;
    line-height:1.5;
    letter-spacing:.02em;
  }
  .rituals-heading br + *{}
}


/* Keep 羽熊 together in the recruitment heading */
.no-break{white-space:nowrap;}
@media(max-width:820px){
  .recruit-heading{
    font-size:25px;
    line-height:1.55;
    letter-spacing:.015em;
  }
}


/* Keep the main hero title on one line on mobile */
.hero h1{white-space:nowrap}
@media(max-width:820px){
  .hero h1{
    font-size:clamp(42px,13vw,72px);
    letter-spacing:.045em;
    white-space:nowrap;
  }
}


/* FINAL mobile hero title fix: keep 「相知くんち」 on one line */
@media(max-width:820px){
  .hero-copy{
    width:100%;
    max-width:none;
    padding-left:5vw;
    padding-right:5vw;
  }
  .hero-copy h1{
    display:block;
    width:100%;
    max-width:none;
    font-size:clamp(38px,11.5vw,58px) !important;
    line-height:1 !important;
    letter-spacing:.015em !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
  }
}


/* Keep 継承 together on mobile */
.no-break{white-space:nowrap;}
@media(max-width:820px){
  .rituals-heading{
    font-size:27px;
    line-height:1.5;
    letter-spacing:.01em;
  }
}




/* Subtle hero access link */
.hero-access-button{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:22px;
  color:#fff;
  text-decoration:none;
  font-size:11px;
  letter-spacing:.16em;
  border-bottom:1px solid rgba(255,255,255,.65);
  padding-bottom:5px;
}
.hero-access-button span{
  font-size:13px;
}
@media(max-width:820px){
  .hero-access-button{
    margin-top:18px;
    font-size:10px;
  }
}


/* Hero title balance adjustment */
@media(max-width:820px){
  .hero-copy{
    padding-left:4vw;
    padding-right:4vw;
  }
  .hero h1{
    font-size:clamp(46px,13.5vw,68px) !important;
    letter-spacing:.025em !important;
    line-height:.95 !important;
  }
  .hero-access-button{
    margin-top:14px;
    opacity:.85;
  }
}


/* Mobile polish for the 2026 information page */
.access-date span{display:inline;}
@media(max-width:820px){
  .access-hero{
    padding:118px 6vw 54px;
  }
  .access-hero .eyebrow{
    margin-bottom:14px;
    font-size:10px;
    letter-spacing:.22em;
  }
  .page-hero h1.access-title{
    font-size:42px !important;
    line-height:1.12;
    letter-spacing:.035em;
  }
  .access-subtitle{
    margin-top:22px !important;
    font-size:17px !important;
    line-height:1.85 !important;
  }
  .access-schedule{
    padding-top:58px;
  }
  .access-date{
    font-size:34px;
    line-height:1.45;
    letter-spacing:.025em;
    margin-bottom:34px;
  }
  .access-date span{
    display:block;
    white-space:nowrap;
  }
  .access-date span + span{
    margin-top:2px;
  }
  .access-schedule .timeline{
    margin-top:28px;
  }
  .access-schedule .timeline-item{
    padding:24px 0;
  }
  .access-schedule .timeline-year{
    font-size:21px;
  }
  .access-schedule .timeline-item h3{
    font-size:24px;
    line-height:1.45;
  }
}


/* Fireworks highlight — separate from the festival rites, but easy to notice */
.fireworks-highlight{
  margin-top:24px;
  padding:20px 22px;
  border-left:3px solid var(--red);
  background:#f4f1ea;
  display:grid;
  grid-template-columns:auto auto 1fr;
  align-items:baseline;
  column-gap:14px;
}
.fireworks-label{
  font-size:10px;
  letter-spacing:.18em;
  color:var(--red);
  font-weight:700;
}
.fireworks-time{
  font-family:var(--serif);
  font-size:24px;
  color:var(--red);
}
.fireworks-title{
  font-family:var(--serif);
  font-size:30px;
  line-height:1.2;
}
@media(max-width:820px){
  .fireworks-highlight{
    grid-template-columns:1fr;
    row-gap:2px;
    padding:18px 20px;
  }
  .fireworks-label{margin-bottom:6px;}
  .fireworks-time{font-size:22px;}
  .fireworks-title{font-size:28px;}
}


.fireworks-copy{
  grid-column:1 / -1;
  margin:12px 0 0;
  font-size:14px;
  line-height:1.9;
  color:#4b4741;
  max-width:620px;
}
@media(max-width:820px){
  .fireworks-copy{
    margin-top:10px;
    font-size:14px;
    line-height:1.85;
  }
}

.fireworks-flyer{
  margin:24px auto;
  max-width:420px;
}
.fireworks-flyer img{
  width:100%;
  height:auto;
  display:block;
}
.fireworks-flyer p{
  margin-top:14px;
  line-height:1.8;
}


/* Parking guide — direct Google Maps access for each official lot */
.parking-section{scroll-margin-top:72px;}
.parking-intro{max-width:760px;}
.parking-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:48px;
}
.parking-card{
  background:#fff;
  border-top:3px solid var(--red);
  padding:30px;
  display:flex;
  flex-direction:column;
  min-height:320px;
}
.parking-index{
  color:var(--red);
  font-size:10px;
  font-weight:700;
  letter-spacing:.2em;
  margin-bottom:14px;
}
.parking-card h3{
  font-size:clamp(24px,2.4vw,34px);
  line-height:1.35;
  margin:0 0 18px;
}
.parking-address{
  margin:0 0 26px;
  color:#514d47;
  font-size:14px;
  line-height:1.8;
}
.parking-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
}
.parking-map-button,.parking-route-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:11px 17px;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  transition:opacity .2s ease,background .2s ease,color .2s ease;
}
.parking-map-button{background:#171717;color:#fff;border:1px solid #171717;}
.parking-route-button{background:#fff;color:#171717;border:1px solid #aaa399;}
.parking-map-button:hover,.parking-route-button:hover{opacity:.7;}
.parking-note{
  max-width:860px;
  margin:30px 0 0;
  padding-top:18px;
  border-top:1px solid #c9c3b8;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}
@media(max-width:820px){
  .parking-grid{grid-template-columns:1fr;margin-top:34px;}
  .parking-card{min-height:0;padding:26px 22px;}
  .parking-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;}
  .parking-map-button,.parking-route-button{padding:11px 10px;}
}
@media(max-width:390px){
  .parking-actions{grid-template-columns:1fr;}
}
