/* =============================================
   SELSTA VILLAGE — Brand Hub
   Shared stylesheet (NIPPONIA inspired / 温かみのあるモダン和)
   Design tokens shared with selsta-juku
   ============================================= */

/* ---------------------------------------------
   0. Design Tokens
   --------------------------------------------- */
:root {
  --bg:           #FDFCFA;
  --bg-alt:       #F5F2EC;
  --bg-dark:      #241F18;
  --border:       #E2DDD4;
  --text:         #3D3529;
  --text-sub:     #6B6356;
  --text-muted:   #A39B8E;
  --accent:       #7EA47E;
  --accent-dark:  #5C8A5C;
  --cta:          #7EA47E;
  --cta-text:     #FFFFFF;
  --footer-bg:    #241F18;

  --ff-serif: 'Noto Serif JP', 'Times New Roman', Georgia, serif;
  --ff-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --ff-mono:  'Helvetica Neue', 'Courier New', monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-card: 0 2px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --t: .2s ease;

  --max-w: 1200px;
  --max-w-narrow: 720px;
  --px: 40px;
}

/* ---------------------------------------------
   1. Reset & Base
   --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--ff-sans); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---------------------------------------------
   2. Layout helpers
   --------------------------------------------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.wrap--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--px); }
.lbl { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------
   3. Buttons
   --------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 30px; font-family: var(--ff-sans); font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; border: none; transition: background var(--t), color var(--t), border-color var(--t), opacity var(--t); white-space: nowrap; letter-spacing: .04em; }
.btn--primary { background: var(--cta); color: var(--cta-text); }
.btn--primary:hover { opacity: .84; }
.btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--text); }
.btn--outline-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--outline-w:hover { border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); }
.btn__arrow { transition: transform var(--t); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------
   4. Header
   --------------------------------------------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 66px; background: transparent; transition: background var(--t), border-color var(--t), box-shadow var(--t); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--ff-serif); font-size: 21px; font-weight: 700; color: #fff; letter-spacing: .04em; transition: color var(--t); }
.site-logo small { font-family: var(--ff-sans); font-size: 10px; font-weight: 400; letter-spacing: .12em; opacity: .72; }
.hdr.scrolled { background: rgba(253,252,250,.96); border-bottom: 1px solid var(--border); box-shadow: 0 1px 16px rgba(0,0,0,.05); }
.hdr.scrolled .site-logo { color: var(--text); }
.hdr-nav { display: flex; align-items: center; gap: 26px; }
.hdr-nav a { font-size: 13px; color: rgba(255,255,255,.85); transition: color var(--t); }
.hdr-nav a:hover { color: #fff; }
.hdr.scrolled .hdr-nav a { color: var(--text-sub); }
.hdr.scrolled .hdr-nav a:hover { color: var(--text); }
.hdr-cta { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; font-size: 12px; background: rgba(126,164,126,.22); color: #fff; border: 1.5px solid rgba(126,164,126,.75); border-radius: var(--radius-sm); font-family: var(--ff-sans); font-weight: 500; letter-spacing: .04em; transition: border-color var(--t), background var(--t), color var(--t), opacity var(--t); }
.hdr-cta:hover { background: rgba(126,164,126,.45); border-color: var(--accent); }
.hdr.scrolled .hdr-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.hdr.scrolled .hdr-cta:hover { opacity: .85; }
.hdr-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 210; }
.hdr-hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: background var(--t), transform var(--t), opacity var(--t); }
.hdr.scrolled .hdr-hamburger span { background: var(--text); }

/* Header variant for interior (sub) pages — starts solid */
.hdr--solid { background: rgba(253,252,250,.96); border-bottom: 1px solid var(--border); }
.hdr--solid .site-logo { color: var(--text); }
.hdr--solid .hdr-nav a { color: var(--text-sub); }
.hdr--solid .hdr-nav a:hover { color: var(--text); }
.hdr--solid .hdr-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.hdr--solid .hdr-hamburger span { background: var(--text); }

/* ---------------------------------------------
   5. Hero (top page)
   --------------------------------------------- */
.hero { position: relative; height: 100vh; min-height: 660px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; transform: scale(1.04); animation: heroZoom 8s ease-out forwards; }
.hero-slide.active img { animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.10); } to { transform: scale(1.0); } }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(10,8,5,.42) 0%, rgba(10,8,5,0) 22%), linear-gradient(to top, rgba(10,8,5,.86) 0%, rgba(10,8,5,.48) 34%, rgba(10,8,5,.12) 66%, rgba(10,8,5,0) 100%); pointer-events: none; }
.hero-dots { position: absolute; bottom: 26px; right: var(--px); z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; transition: background .3s ease, transform .3s ease; }
.hero-dot.active { background: rgba(255,255,255,.92); transform: scale(1.25); }
.hero-body { position: relative; z-index: 2; width: 100%; padding-bottom: 82px; }
.hero-eyebrow { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .30em; text-transform: uppercase; color: rgba(255,255,255,.68); margin-bottom: 22px; display: block; }
.hero-headline { font-family: var(--ff-serif); font-size: 74px; font-weight: 700; line-height: 1.18; letter-spacing: .01em; color: #fff; margin-bottom: 22px; }
.hero-sub { font-size: 15.5px; color: rgba(255,255,255,.82); line-height: 2.0; max-width: 520px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-body .btn--primary { background: var(--accent); }
.hero-body .btn--primary:hover { opacity: .88; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll span { font-family: var(--ff-mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); animation: scrollLine 1.9s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------
   6. Section heading
   --------------------------------------------- */
.sec { padding: 108px 0; }
.sec--alt { background: var(--bg-alt); }
.sec-hd { margin-bottom: 52px; }
.sec-hd--center { text-align: center; }
.sec-hd h2 { font-family: var(--ff-serif); font-size: 32px; font-weight: 700; margin-top: 8px; letter-spacing: .01em; line-height: 1.4; }
.sec-hd p { color: var(--text-sub); margin-top: 18px; max-width: 620px; line-height: 2.0; }
.sec-hd--center p { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------
   7. About / intro
   --------------------------------------------- */
.about { text-align: center; }
.about-headline { font-family: var(--ff-serif); font-size: 44px; font-weight: 300; line-height: 1.5; letter-spacing: .02em; color: var(--text); margin-bottom: 32px; word-break: keep-all; overflow-wrap: break-word; }
.about-headline b { font-weight: 700; }
.about-body { font-size: 15.5px; color: var(--text-sub); line-height: 2.15; max-width: 600px; margin: 0 auto 40px; }
.about-divider { width: 48px; height: 1.5px; background: var(--accent); margin: 0 auto; }

/* ---------------------------------------------
   8. Split feature (image + text)
   --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split--rev .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-card); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.split-media:hover img { transform: scale(1.04); }
.split-body .lbl { color: var(--accent); }
.split-body h3 { font-family: var(--ff-serif); font-size: 27px; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.split-body p { color: var(--text-sub); line-height: 2.05; margin-bottom: 14px; }

/* ---------------------------------------------
   9. Services grid (the "hub" — links to each business)
   --------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--t), transform var(--t); }
.sec--alt .svc { background: #fff; }
.svc:hover { box-shadow: 0 10px 36px rgba(0,0,0,.11); transform: translateY(-4px); }
.svc-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc-tag { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 11px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: rgba(36,31,24,.82); color: #fff; border-radius: 100px; }
.svc-tag--soon { background: rgba(126,164,126,.9); }
.svc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-num { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.svc-body h3 { font-family: var(--ff-serif); font-size: 22px; font-weight: 700; line-height: 1.45; margin-bottom: 12px; }
.svc-body p { font-size: 14px; color: var(--text-sub); line-height: 1.9; margin-bottom: 20px; flex: 1; }
.svc-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--accent-dark); }
.svc-link .btn__arrow { transition: transform var(--t); }
.svc:hover .svc-link .btn__arrow { transform: translateX(4px); }
.svc--disabled .svc-link { color: var(--text-muted); }

/* Two-pillars layout (塾 / okurigi) */
.services--pillars { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }

/* Connector band — the place that ties the two pillars together */
.connector { display: grid; grid-template-columns: 1.05fr .95fr; margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.connector-body { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.connector-body .lbl { color: var(--accent); }
.connector-body h3 { font-family: var(--ff-serif); font-size: 28px; font-weight: 700; line-height: 1.5; margin-bottom: 18px; }
.connector-body h3 em { font-style: normal; color: var(--accent-dark); }
.connector-body p { color: var(--text-sub); line-height: 2.05; margin-bottom: 30px; }
.connector-body .btn { align-self: flex-start; }
.connector-media { position: relative; min-height: 300px; }
.connector-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------
   10. Gallery
   --------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gal-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item--wide { grid-column: span 2; }
.gal-item--tall { grid-row: span 2; }

/* ---------------------------------------------
   11. Access
   --------------------------------------------- */
.access-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.access-map { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.access-map iframe { width: 100%; height: 100%; border: 0; }
.access-info dl { display: grid; grid-template-columns: 108px 1fr; row-gap: 20px; column-gap: 16px; }
.access-info dt { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.access-info dd { color: var(--text-sub); line-height: 1.85; }
.access-info dd b { color: var(--text); font-weight: 700; }

/* ---------------------------------------------
   12. CTA band
   --------------------------------------------- */
.cta-band { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.cta-band-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(20,16,11,.78), rgba(20,16,11,.82)); }
.cta-band .wrap--narrow { position: relative; z-index: 2; }
.cta-band .lbl { color: rgba(255,255,255,.6); }
.cta-band h2 { font-family: var(--ff-serif); font-size: 34px; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 20px; }
.cta-band p { color: rgba(255,255,255,.8); line-height: 2.0; margin-bottom: 36px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------------------------------------------
   13. Footer
   --------------------------------------------- */
.ftr { background: var(--footer-bg); color: rgba(255,255,255,.62); padding: 64px 0 40px; }
.ftr-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ftr-brand { max-width: 320px; }
.ftr-logo { font-family: var(--ff-serif); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .04em; margin-bottom: 14px; }
.ftr-brand p { font-size: 13px; line-height: 1.9; }
.ftr-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.ftr-col h4 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.ftr-col a { display: block; font-size: 13px; color: rgba(255,255,255,.68); padding: 5px 0; transition: color var(--t); }
.ftr-col a:hover { color: #fff; }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; }
.ftr-copy { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.45); }
.ftr-org { font-size: 12px; color: rgba(255,255,255,.55); }

/* ---------------------------------------------
   14. Interior page header (sub pages)
   --------------------------------------------- */
.page-hero { position: relative; padding: 148px 0 64px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero .lbl { color: var(--accent); }
.page-hero h1 { font-family: var(--ff-serif); font-size: 40px; font-weight: 700; line-height: 1.4; margin-top: 8px; }
.page-hero p { color: var(--text-sub); margin-top: 18px; max-width: 620px; line-height: 2.0; }
.breadcrumb { display: flex; gap: 8px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent-dark); }
.prose { max-width: var(--max-w-narrow); margin: 0 auto; }
.prose h2 { font-family: var(--ff-serif); font-size: 26px; font-weight: 700; margin: 48px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-sub); line-height: 2.05; margin-bottom: 18px; }
.prose ul.list { margin: 0 0 18px; padding-left: 0; }
.prose ul.list li { position: relative; padding-left: 24px; color: var(--text-sub); line-height: 1.95; margin-bottom: 10px; }
.prose ul.list li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose figure { margin: 32px 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }

/* ---------------------------------------------
   15. Responsive
   --------------------------------------------- */
@media (max-width: 900px) {
  :root { --px: 24px; }
  .services { grid-template-columns: 1fr 1fr; }
  .connector { grid-template-columns: 1fr; }
  .connector-media { min-height: 220px; order: -1; }
  .connector-body { padding: 36px 28px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split-media { order: 0; }
  .access-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .hero-headline { font-size: 54px; }
}
@media (max-width: 680px) {
  .hdr-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; background: rgba(253,252,250,.98); transform: translateX(100%); transition: transform .35s ease; }
  .hdr-nav.open { transform: none; }
  .hdr-nav a { font-size: 17px; color: var(--text) !important; }
  .hdr-hamburger { display: block; }
  .hdr-cta { display: none; }
  .hero { min-height: 560px; }
  .hero-headline { font-size: 42px; }
  .hero-sub { font-size: 14.5px; }
  .sec { padding: 72px 0; }
  .about-headline { font-size: 30px; }
  .services { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gal-item--wide, .gal-item--tall { grid-column: auto; grid-row: auto; }
  .sec-hd h2 { font-size: 26px; }
  .page-hero { padding: 120px 0 48px; }
  .page-hero h1 { font-size: 30px; }
  .ftr-top { flex-direction: column; gap: 32px; }
}
