/* =========================================================
   大西一史 オフィシャルサイト — shared styles
   Flat, rule-based layout: serif headings, hairlines, no shadows
   ========================================================= */

:root {
  --ink: #2E3952;
  --navy: #2E3952;
  --muted: #615C70;
  --hover: #7E7787;
  --line: #DDDADF;
  --field: #BDB7BF;
  --lav: #D2D7ED;
  --lav-2: #E9EBF6;
  --lav-3: #EEF0F8;
  --red: #EA5520;
  --foot: #2E3952;

  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(64px, 9vw, 120px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--hover); }
h1, h2, h3 { word-break: auto-phrase; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow > * { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--red); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--ink); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 14px 0; }
.logo { width: 44px; height: auto; flex: none; }
.stamp { width: 44px; height: 44px; background: var(--navy); color: #fff; display: grid; grid-template-rows: 1fr 1fr; place-items: center; padding: 4px 0; font-family: var(--serif); font-weight: 800; font-size: 16px; line-height: 1; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .16em; color: var(--navy); }
.gnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin-left: auto; font-size: 14px; font-weight: 500; }
.gnav a { text-decoration: none; white-space: nowrap; }
.gnav a[aria-current="page"] { text-decoration: underline; }
.cta { background: var(--navy); color: #fff; padding: 9px 18px; border-radius: 2px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--hover); color: #fff; }

@media (max-width: 760px) {
  .site-header .wrap { min-height: 0; gap: 0; }
  .brand { padding: 10px 0; }
  .site-header .cta { padding: 7px 14px; font-size: 13px; }
  .gnav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; padding: 9px 0 11px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0; }
}

/* ---------- buttons / links ---------- */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.6; padding: 14px 28px; border-radius: 2px; border: 0; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--hover); color: #fff; }
.btn--plain { background: #fff; color: var(--navy); border: 1px solid var(--navy); padding: 13px 27px; }
.btn--plain:hover { background: var(--lav-3); color: var(--navy); }
.links { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; font-weight: 500; font-size: 15px; }
.tlink { font-weight: 500; font-size: 15px; }
.note { font-weight: 400; color: var(--ink); margin-left: 8px; font-size: 13px; }

/* ---------- common headings ---------- */
.label { margin: 0 0 24px; font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: .12em; }
.h2 { margin: 0 0 48px; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.5; letter-spacing: .08em; color: var(--navy); }
.section { padding: var(--sec) 0; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- home: hero ---------- */
.hero { border-bottom: 1px solid var(--ink); }
.hero .row { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; }
.hero-text { flex: 1 1 380px; display: flex; justify-content: flex-end; align-items: flex-start; gap: clamp(20px, 3vw, 40px); padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px); }
.hero-text .who { margin: 0; writing-mode: vertical-rl; font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .4em; color: var(--muted); line-height: 2.2; }
.hero-text h1 { margin: 0; writing-mode: vertical-rl; font-family: var(--serif); font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 1.45; letter-spacing: .14em; color: var(--navy); }
.hero-text h1 .ln { display: inline-block; }
.hero-text h1 .ln2 { padding-top: 1em; }
.hero-photo { flex: 1 1 420px; background: var(--lav-2); max-height: 820px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (max-width: 760px) {
  .hero .row { flex-wrap: nowrap; min-height: min(calc(100svh - 170px), 600px); }
  .hero-text { flex: none; justify-content: flex-start; gap: 6px; padding: 28px 10px 28px var(--pad); }
  .hero-text .who { font-size: 12px; letter-spacing: .32em; }
  .hero-text h1 { font-size: clamp(30px, 9.6vw, 42px); letter-spacing: .1em; line-height: 1.38; }
  .hero-photo { flex: 1 1 auto; min-width: 0; max-height: none; }
  .hero-photo img { object-position: 58% 0; }
}

.notice { border-bottom: 1px solid var(--line); }
.notice .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; font-size: 15px; }
.notice b { color: var(--navy); flex: none; font-weight: 600; }
.notice a { font-weight: 500; }
@media (max-width: 760px) { .notice .wrap { gap: 2px 16px; padding-top: 14px; padding-bottom: 14px; } }

/* ---------- home: manifesto ---------- */
.mf { background: var(--lav); }
.mf-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.mf-logo { width: clamp(220px, 34vw, 380px); height: auto; }
.mf .label { color: var(--navy); margin: 0 0 6px; }
.mf-slogan img { width: clamp(240px, 40vw, 500px); height: auto; }
.mf-row { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); align-items: flex-end; }
.mf-row h2 { flex: 1 1 440px; margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1.6; letter-spacing: .08em; color: var(--navy); }
.mf-row h2 .ln { display: block; }
.mf-side { flex: 1 1 340px; max-width: 480px; }
.mf-side p { margin: 0 0 20px; font-weight: 500; line-height: 2; color: var(--navy); }
.mf-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; font-size: 15px; }

/* ---------- home: pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: 48px; }
.pillar { border-top: 2px solid var(--navy); padding-top: 20px; }
.pillar .kicker { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.pillar h3 { margin: 2px 0 16px; font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1.5; color: var(--navy); }
.numlist { list-style: none; margin: 0; padding: 0; }
.numlist li { display: grid; grid-template-columns: 2.2em 1fr; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.numlist li > span { font-variant-numeric: tabular-nums; color: var(--muted); }
.numlist a { color: var(--ink); text-decoration: none; }
.numlist a:hover { color: var(--hover); text-decoration: underline; }
.principle { margin: clamp(56px, 7vw, 88px) 0 0; max-width: 860px; }
.principle blockquote { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.9; color: var(--ink); }
.principle figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- home: message ---------- */
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--top { align-items: flex-start; }
.photo { background: var(--lav-2); }
.photo img { width: 100%; height: auto; }
.message-photo { flex: 1 1 320px; max-width: 460px; }
.message-text { flex: 1.3 1 400px; }
.quote { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 1.7vw, 21px); line-height: 2.1; }
.quote p { margin: 0 0 1em; }
.quote p:last-child { margin: 0; }
.quote strong { font-weight: 700; color: var(--navy); font-size: 1.15em; }
.sign { margin: 32px 0 28px; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .3em; color: var(--navy); }

/* ---------- home: record ---------- */
.record { background: var(--lav-3); border-top: 1px solid var(--line); }
.record-head { display: flex; flex-wrap: wrap; gap: 24px clamp(40px, 6vw, 96px); margin-bottom: 56px; align-items: flex-end; }
.record-head .h2 { flex: 1 1 360px; margin: 0; }
.record-head p { flex: 1 1 420px; margin: 0; max-width: 560px; }
.record-body { display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 6vw, 96px); align-items: flex-start; }
.years { flex: 1.2 1 440px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.years li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.years .y { line-height: 1.4; }
.years .y b { display: block; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--navy); }
.years .y small { font-size: 12px; color: var(--muted); }
.years p { margin: 0; font-size: 15px; line-height: 1.75; }
.years p b { display: block; font-size: 16px; font-weight: 600; }
.result { flex: 1 1 340px; }
.result .t { margin: 0 0 4px; font-weight: 500; font-size: 15px; }
.result .s { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.bar { display: flex; height: 14px; background: var(--line); }
.bar span:nth-child(1) { background: var(--navy); }
.bar span:nth-child(2) { background: #A7A1AC; }
.bar span:nth-child(3) { background: #C9CACB; }
.legend { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; line-height: 1.6; }
.legend dt { font-weight: 500; font-variant-numeric: tabular-nums; }
.legend dt i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; }
.legend dd { margin: 0; }
.result .more { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.9; }

/* ---------- profile block (home + profile page) ---------- */
.prof-photo { flex: 0 1 340px; }
.prof-text { flex: 1 1 400px; max-width: 640px; }
.prof-name { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: .3em; color: var(--navy); line-height: 1.4; }
.prof-kana { margin: 4px 0 28px; font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: 4.5em 1fr; gap: 12px 20px; border-top: 1px solid var(--ink); padding-top: 20px; font-size: 15px; line-height: 1.85; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- home: join ---------- */
.join { border-top: 1px solid var(--ink); }
.join .wrap { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 0; }
.two > div:first-child { padding-right: clamp(0px, 4vw, 56px); }
.two > div + div { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 56px); }
.two h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--navy); line-height: 1.5; }
.two p { margin: 0 0 28px; max-width: 30em; }
.two .links { gap: 16px 24px; }

/* ---------- sub pages ---------- */
.page-head { border-bottom: 1px solid var(--ink); }
.page-head .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 48px); }
.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.45; letter-spacing: .1em; color: var(--navy); }
.tabs { display: flex; gap: 28px; margin: 0 0 48px; font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; color: var(--muted); padding: 0 0 10px; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom: 2px solid var(--navy); }

.h3 { margin: 0 0 20px; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: .1em; color: var(--navy); }
.history { list-style: none; margin: 0 0 64px; padding: 0; border-top: 1px solid var(--ink); }
.history li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.75; }
.history time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.history li.hl p { font-weight: 600; color: var(--navy); }
.history p { margin: 0; }
.history small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

.datalist { margin: 0; border-top: 1px solid var(--ink); }
.datalist > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.datalist dt { font-weight: 500; color: var(--muted); font-size: 15px; }
.datalist dd { margin: 0; line-height: 1.85; }
.datalist ul { margin: 0; padding: 0; list-style: none; }
.datalist li small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.datalist .motto { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); }
.datalist figure { margin: 14px 0 0; }
.datalist figure img { width: 200px; }

.prose { max-width: 46em; }
.prose h2 { margin: 56px 0 18px; padding-top: 20px; border-top: 2px solid var(--navy); font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.5; color: var(--navy); letter-spacing: .06em; }
.prose h2:first-child { margin-top: 0; }
.prose .lead { font-weight: 500; color: var(--navy); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--lav); }
.prose blockquote p:last-child { margin: 0; }
.rules { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2.4em 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.rules li::before { content: counter(r); color: var(--muted); font-variant-numeric: tabular-nums; }

.smap { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.smap > li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.smap a { font-weight: 500; }
.smap ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 1.4em; }
.smap ul li { padding: 4px 0; font-size: 15px; }

.fax { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.fax img { width: 200px; border: 1px solid var(--line); }
.fax p { margin: 0 0 8px; }

/* ---------- form ---------- */
.form { display: grid; gap: 24px; max-width: 720px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.field label small { font-weight: 500; font-size: 12px; color: var(--red); margin-left: 8px; }
.field label small.opt { color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 2px; padding: 12px 14px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.7; }
.consent input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--navy); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.confirm, .done { display: none; }
.is-confirm .form-fields { display: none; }
.is-confirm .confirm { display: block; }
.is-done .form-fields, .is-done .confirm { display: none; }
.is-done .done { display: block; }
.confirm dl { margin: 0 0 24px; border-top: 1px solid var(--ink); }
.confirm dl div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirm dt { font-weight: 500; color: var(--muted); }
.confirm dd { margin: 0; white-space: pre-wrap; word-break: break-all; }
.form-msg { color: var(--red); font-weight: 600; margin: 0 0 16px; }
.form-msg:empty { display: none; }

@media (max-width: 560px) {
  .history li, .datalist > div, .confirm dl div { grid-template-columns: 1fr; gap: 2px; }
  .two > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--foot); color: #fff; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.2); }
.foot-name { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .16em; }
.foot-sub { margin: 6px 0 0; font-size: 13px; color: var(--lav); }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 32px; font-size: 14px; }
.foot-nav a { color: #fff; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; color: #fff; }
.copy { margin: 20px 0 0; font-size: 12px; color: var(--lav); }
@media (max-width: 560px) { .foot-nav { grid-template-columns: repeat(2, auto); } }

/* ---------- motion ----------
   Quiet by design: rules draw in, text rises a few pixels, photos open
   like a curtain. Only for no-preference users and when JS is running. */
a, .btn, .numlist a { transition: color .2s ease, background-color .2s ease; }

@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.2, .7, .2, 1); }

  /* hero plays on load */
  .js .hero .ln { animation: reveal-down 1.2s var(--ease) both .15s; }
  .js .hero .ln2 { animation-delay: .5s; }
  .js .hero .who { animation: fade 1s ease both 1.1s; }
  .js .hero-photo img { animation: settle 1.8s var(--ease) both; }
  @keyframes reveal-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

  /* scroll-in states */
  .js [data-anim] { --delay: calc(var(--i, 0) * 110ms); }
  .js [data-anim~="up"] { opacity: 0; transform: translateY(14px); transition: opacity .9s ease var(--delay), transform .9s var(--ease) var(--delay); }
  .js [data-anim~="fade"] { opacity: 0; transition: opacity 1s ease var(--delay); }
  .js [data-anim~="up"].is-in, .js [data-anim~="fade"].is-in { opacity: 1; transform: none; }

  .js [data-anim~="stagger"] > * { opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .8s var(--ease); transition-delay: calc(var(--j, 0) * 70ms + 150ms); }
  .js [data-anim~="stagger"].is-in > * { opacity: 1; transform: none; }

  .js .rule { position: relative; border-top-color: transparent !important; }
  .js .rule::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--rw, 1px) * -1); height: var(--rw, 1px); background: var(--rc, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) var(--delay, 0s); }
  .js .rule.is-in::before { transform: scaleX(1); }
  .js .pillar.rule { --rw: 2px; --rc: var(--navy); }

  .js [data-anim~="curtain"] { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease); }
  .js [data-anim~="curtain"] img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
  .js [data-anim~="curtain"].is-in { clip-path: inset(0 0 0 0); }
  .js [data-anim~="curtain"].is-in img { transform: none; }

  .js [data-anim~="grow"] { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
  .js [data-anim~="grow"].is-in { transform: none; }

  .numlist a { display: inline-block; transition: color .2s ease, transform .25s var(--ease); }
  .numlist a:hover { transform: translateX(4px); }
}
