/* Landing page · 序 hero landscape, 道 branches, 選 featured, 理 principles, 縁 community */
.landing main { overflow-x: clip; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
#hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; touch-action: pan-y; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--washi) 92%, transparent) 0%, color-mix(in srgb, var(--washi) 78%, transparent) 38%, transparent 66%); }
.hero-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 70px 18px 120px; }
.hero-inner > * { max-width: 640px; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.06; letter-spacing: -0.01em; margin: 10px 0 18px; }
.hero h1 em { font-style: normal; color: var(--shu); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.14em; background: var(--shu); opacity: .18; border-radius: 99px; transform-origin: left; animation: brush 1.4s .4s var(--ease) both; }
@keyframes brush { from { transform: scaleX(0); } }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--text); opacity: .86; max-width: 580px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 7px 7px 7px 20px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); max-width: 600px; }
.hero-search:focus-within { border-color: var(--shu); box-shadow: 0 0 0 5px color-mix(in srgb, var(--shu) 14%, transparent), var(--shadow-lg); }
.hero-search > svg { width: 22px; height: 22px; color: var(--shu); flex: none; }
.hero-search input { border: 0; background: none; padding: 10px 0; font-size: 1.02rem; box-shadow: none !important; }
.hero-search input:focus { background: none; }
.hero-search .btn { padding: 12px 22px; }
.hero-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; color: var(--text); }
.hero-suggest a:hover, .hero-suggest [aria-selected="true"] a { background: var(--accent-soft); text-decoration: none; }
.hero-suggest b { display: block; font-family: var(--serif); }
.hero-suggest small { color: var(--muted); }
.hero-suggest .all a { justify-content: center; font-weight: 700; color: var(--shu); font-size: .86rem; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 16px; }
.hero-chips .chip { cursor: pointer; font: inherit; font-size: .76rem; font-weight: 600; background: color-mix(in srgb, var(--paper) 80%, transparent); }
.hero-chips .chip:hover { border-color: var(--shu); color: var(--shu); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 30px 0 0; }
.hero-stats div { border-left: 2px solid var(--shu); padding-left: 12px; }
.hero-stats dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero-stats dd { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 1.5rem; }
.hero-vertical { position: absolute; right: 26px; top: 90px; writing-mode: vertical-rl; font-family: var(--brush); font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: .3em; color: var(--text); opacity: .55; white-space: nowrap; pointer-events: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .7); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(12px); opacity: .3; } }

/* ---------- sections ---------- */
.sec { max-width: 1320px; margin: 0 auto; padding: 70px 18px 10px; }
.sec-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head > div { flex: 1 1 420px; min-width: 0; }
.sec-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin: 4px 0 6px; }
.sec-head p.muted { margin: 0; max-width: 720px; }
.sec-kanji { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 16px; font-family: var(--brush); font-size: 2.6rem; color: #fff6ea; background: var(--shu);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .2), 0 14px 26px -14px var(--shu); transform: rotate(-4deg); }
.sec-more { margin-left: auto; }

/* ---------- branch tiles ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.btile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-height: 230px; padding: 20px; border-radius: 20px; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.btile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bc); }
a.btile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--bc) 55%, var(--line)); box-shadow: var(--shadow-lg); text-decoration: none; }
.btile .kamon { margin-bottom: 8px; }
.bt-kanji { position: absolute; right: -6px; bottom: -22px; font-family: var(--brush); font-size: 6.4rem; line-height: 1; color: var(--bc); opacity: .1; pointer-events: none; transition: transform .6s var(--ease), opacity .4s; }
a.btile:hover .bt-kanji { transform: translateY(-8px) rotate(-4deg); opacity: .18; }
.bt-name { font-family: var(--serif); font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.bt-romaji { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bc); font-weight: 700; }
.bt-blurb { font-size: .84rem; color: var(--muted); margin-top: 6px; position: relative; }
.bt-count { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .84rem; color: var(--bc); position: relative; }
.btile.soon { opacity: .7; background: color-mix(in srgb, var(--paper) 60%, transparent); border-style: dashed; }
.btile.soon .bt-count { color: var(--muted); }

/* ---------- principles ---------- */
.tenets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tenets li { position: relative; padding: 26px 24px 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tenets .num { display: block; font-family: var(--brush); font-size: 3rem; line-height: 1; color: var(--shu); margin-bottom: 10px; }
.tenets h3 { font-size: 1.15rem; }
.tenets p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- directory ---------- */
.dir-grid { columns: 3 300px; column-gap: 22px; }
.dir-branch { break-inside: avoid; margin: 0 0 22px; padding: 18px 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--bc); }
.dir-branch h3 { font-size: 1rem; margin-bottom: 8px; }
.dir-branch h3 span { color: var(--bc); margin-right: 4px; }
.dir-branch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dir-branch a { font-weight: 700; color: var(--text); font-size: .9rem; }
.dir-branch a:hover { color: var(--bc); }
.dir-branch li span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* ---------- community ---------- */
.community { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 34px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.community::after { content: '縁'; position: absolute; left: -20px; bottom: -70px; font-family: var(--brush); font-size: 16rem; line-height: 1; color: var(--shu); opacity: .06; pointer-events: none; }
.com-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.com-copy p { color: var(--muted); }
.com-form { padding: 22px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line-soft); position: relative; z-index: 1; }
.com-form h3 { margin-bottom: 12px; }

@media (max-width: 980px) {
  .tenets { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; padding: 22px; }
  .hero-vertical { display: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--washi) 90%, transparent) 0%, color-mix(in srgb, var(--washi) 70%, transparent) 50%, transparent 64%); }
  .hero-inner { padding: 34px 14px 260px; }
  .hero-search { padding-left: 14px; }
  .hero-search .btn { padding: 10px 14px; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 16px; }
  .hero-stats div { padding-left: 8px; }
  .hero-stats dd { font-size: 1.2rem; }
  .sec { padding: 46px 12px 6px; }
  .sec-kanji { width: 54px; height: 54px; font-size: 1.9rem; }
  .sec-more { margin-left: 0; }
  .branch-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btile { min-height: 0; padding: 14px; }
  .bt-blurb { display: none; }
  .bt-name { font-size: .98rem; }
  .bt-kanji { font-size: 4.4rem; }
}
