:root { --ink: #1b2a49; --ink-2: #26365c; --paper: #f7f3ea; --paper-2: #efe8d9; --red: #b4121f; --gold: #9a7b2f; --text: #22262e; --muted: #5f6673; --line: #d9d2c2; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 "Source Sans 3", -apple-system, "Segoe UI", sans-serif; }
a { color: var(--ink); } a:hover { color: var(--red); }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--ink); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 46px; font-weight: 600; } h2 { font-size: 30px; font-weight: 600; } h3 { font-size: 22px; font-weight: 700; }
.jp, .jp-big { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); } .small { font-size: 14px; } .dim { color: var(--muted); font-weight: 400; font-size: .8em; }

/* masthead */
.masthead { background: var(--ink); color: #fff; border-bottom: 3px solid var(--red); }
.masthead .brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; padding: 16px 20px 10px; max-width: 1080px; margin: 0 auto; }
.masthead .seal { width: 54px; height: auto; filter: drop-shadow(0 1px 0 rgba(255,255,255,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .jp { font-size: 15px; letter-spacing: .3em; color: #e9d9a6; }
.brand-text .name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 600; }
.brand-text .sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nav { max-width: 1080px; margin: 0 auto; padding: 0 12px 10px; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; padding: 7px 10px; border-radius: 6px; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on { box-shadow: inset 0 -2px 0 #e9d9a6; }

/* hero */
.hero { background: linear-gradient(180deg, #fbf8f1, var(--paper)); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center; }
.hero h1 { display: flex; flex-direction: column; gap: 6px; }
.jp-big { font-size: 58px; letter-spacing: .12em; color: var(--ink); font-weight: 700; }
.romaji { font-size: 30px; font-weight: 500; color: var(--ink-2); font-style: italic; }
.hero-seal img { width: 100%; max-width: 300px; display: block; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(27,42,73,.18)); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; }
.btn.primary { background: var(--ink); color: #fff; } .btn:hover { border-color: var(--red); color: var(--red); } .btn.primary:hover { background: var(--red); color: #fff; }

/* sections */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px 20px; }
.pillar h2 { font-size: 24px; border-bottom: 2px solid var(--red); display: inline-block; padding-bottom: 4px; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--text); }
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(27,42,73,.04); }
.card:hover { border-color: var(--ink); color: var(--text); } .card h3 { margin-bottom: 6px; } .card p { margin: 0 0 12px; font-size: 15.5px; } .card .more { margin-top: auto; color: var(--red); font-weight: 700; }
.kun .kun-list, .kun-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.kun-list li { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kun-list .jp { color: var(--red); font-weight: 600; }

/* pages */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head h1 { font-size: 42px; }
.prose { padding: 32px 20px 56px; max-width: 820px; }
.prose h2 { margin-top: 32px; font-size: 28px; }
.prose p { margin: 0 0 14px; }
ul.ticks, ul.crosses, ul.plain { list-style: none; padding: 0; margin: 8px 0 16px; }
ul.ticks li, ul.crosses li { padding: 6px 0 6px 28px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 4px; color: #2e7d46; font-weight: 700; }
ul.crosses li::before { content: "✕"; position: absolute; left: 4px; color: var(--red); font-weight: 700; }
ol.steps { padding-left: 22px; } ol.steps li { margin: 8px 0; }
.note { background: #fff; border-left: 4px solid var(--red); border-radius: 8px; padding: 14px 16px; margin: 22px 0; }
.rank-box { background: var(--ink); color: #fff; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; }
.strip { color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
table.ranks, table.contact { width: 100%; border-collapse: collapse; margin: 8px 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.ranks th, table.contact th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; background: var(--paper-2); }
table.ranks td, table.contact td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.contact th { width: 160px; vertical-align: top; text-transform: none; font-size: 15px; letter-spacing: 0; color: var(--ink); background: #fff; border-top: 1px solid var(--line); }
.belt { display: inline-block; width: 46px; height: 12px; border-radius: 3px; background: var(--belt); border: 1px solid rgba(0,0,0,.15); vertical-align: middle; }

/* lineage */
.line { list-style: none; padding: 32px 0 48px 0; margin: 0 auto; max-width: 820px; position: relative; }
.line::before { content: ""; position: absolute; left: 11px; top: 40px; bottom: 56px; width: 2px; background: var(--line); }
.line-item { display: grid; grid-template-columns: 24px 1fr; gap: 18px; margin-bottom: 22px; }
.line-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); margin-top: 4px; }
.line-body h3 { margin-bottom: 2px; } .line-body p { margin: 0; }

/* dojo */
.dojo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px 20px 56px; }
.dojo-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.dojo-card .crest { width: 180px; height: auto; display: block; margin: 0 auto 14px; }
.dojo-grid .prose { padding: 0; }

/* footer */
.foot { background: var(--ink); color: rgba(255,255,255,.85); padding: 28px 0 36px; margin-top: 24px; font-size: 14.5px; }
.foot a { color: #e9d9a6; } .foot-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; color: #fff; margin-bottom: 6px; }
.foot-brand .jp { letter-spacing: .25em; color: #e9d9a6; margin-right: 8px; } .foot-line { margin: 4px 0; }

@media (max-width: 900px) {
  .pillars, .cards { grid-template-columns: 1fr 1fr; }
  .hero-grid, .two, .dojo-grid { grid-template-columns: 1fr; }
  .hero-seal img { max-width: 200px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; } h1, .page-head h1 { font-size: 34px; } .jp-big { font-size: 42px; } .romaji { font-size: 24px; }
  .pillars, .cards { grid-template-columns: 1fr; } .kun-list li { grid-template-columns: 1fr; gap: 2px; }
  .brand-text .name { font-size: 22px; } .lead { font-size: 18px; }
}
