:root {
  --paper: #f8f4ea;
  --paper-deep: #efe5d3;
  --white: #fffdf8;
  --ink: #233e34;
  --text: #40564c;
  --muted: #778279;
  --line: #dcd1bd;
  --forest: #284d3f;
  --forest-deep: #17382d;
  --gold: #b49343;
  --orange: #d9773d;
  --serif: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Yu Gothic", sans-serif;
  --header-height: 82px;
  --shell: min(1180px, calc(100% - 112px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  background:
    linear-gradient(rgba(248, 244, 234, .95), rgba(248, 244, 234, .95)),
    repeating-linear-gradient(90deg, rgba(35, 62, 52, .035) 0 1px, transparent 1px 8px);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; }
img { height: auto; max-width: 100%; width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); text-wrap: balance; }

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(250, 247, 240, .94);
  border-bottom: 1px solid rgba(35, 62, 52, .16);
  display: grid;
  gap: 30px;
  grid-template-columns: auto 1fr auto;
  height: var(--header-height);
  left: 0;
  padding: 12px clamp(32px, 5vw, 76px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease, height 180ms ease;
  z-index: 50;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(38, 76, 62, .08); height: 72px; }
.brand, .footer-brand { align-items: center; display: flex; font-family: var(--serif); font-size: 21px; font-weight: 700; gap: 13px; line-height: 1.15; white-space: nowrap; }
.brand small, .footer-brand small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .05em; margin-bottom: 4px; }
.brand-mark { align-items: center; color: var(--ink); display: grid; flex: 0 0 50px; height: 50px; justify-items: center; width: 50px; }
.brand-mark svg { fill: none; height: 42px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.4; width: 42px; }
.brand-mark svg path:last-child { stroke: var(--gold); }
.global-nav { align-items: center; display: flex; font-size: 13px; font-weight: 600; gap: clamp(20px, 2.3vw, 38px); justify-content: flex-end; letter-spacing: .06em; }
.global-nav a { position: relative; }
.global-nav a::after { background: var(--orange); bottom: -9px; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; width: 100%; }
.global-nav a:hover::after, .global-nav a:focus-visible::after, .global-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { background: var(--forest); border-radius: 2px 18px 2px 2px; color: var(--white); font-size: 13px; font-weight: 700; padding: 14px 24px; transition: background 160ms ease, transform 160ms ease; }
.header-cta:hover, .header-cta:focus-visible { background: var(--forest-deep); transform: translateY(-2px); }
.menu-button, .mobile-menu { display: none; }

main { padding-top: var(--header-height); }
.section-shell { margin-left: auto; margin-right: auto; width: var(--shell); }
.qualification-hero {
  display: grid;
  gap: clamp(44px, 7vw, 104px);
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  margin: 0 auto;
  max-width: 1360px;
  min-height: 700px;
  padding: clamp(74px, 9vw, 126px) clamp(56px, 7vw, 100px) 92px;
  position: relative;
}
.qualification-hero::before { background: var(--gold); content: ""; height: 128px; left: 0; position: absolute; top: 0; width: 7px; }
.hero-copy { align-self: center; }
.back-link { align-items: center; color: var(--muted); display: inline-flex; font-size: 12px; font-weight: 600; gap: 8px; letter-spacing: .05em; margin-bottom: 56px; }
.back-link span { color: var(--orange); font-size: 20px; transition: transform 160ms ease; }
.back-link:hover span { transform: translateX(-4px); }
.eyebrow, .section-label { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.qualification-hero h1 { font-size: clamp(54px, 5.6vw, 78px); font-weight: 600; letter-spacing: .02em; line-height: 1.22; margin: 18px 0 34px; }
.qualification-hero h1 span { display: block; font-size: .58em; margin-top: 13px; }
.hero-lead { font-size: clamp(15px, 1.35vw, 17px); line-height: 2.2; max-width: 610px; }
.hero-meta { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 26px; margin-top: 38px; padding-top: 20px; }
.hero-meta span { background: var(--orange); border-radius: 1px 18px 1px 1px; color: var(--white); font-size: 13px; font-weight: 700; padding: 10px 18px; }
.hero-meta small { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.hero-visual { align-self: center; position: relative; }
.hero-frame { background: var(--white); box-shadow: 0 28px 60px rgba(35, 62, 52, .14); overflow: hidden; padding: 18px; position: relative; }
.hero-frame::after { border: 1px solid rgba(180, 147, 67, .55); content: ""; inset: 32px -15px -15px 32px; pointer-events: none; position: absolute; z-index: -1; }
.hero-frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 54% center; }
.hero-visual > p { align-items: center; color: var(--muted); display: flex; font-size: 9px; gap: 14px; letter-spacing: .18em; margin-top: 27px; }
.hero-visual > p span { color: var(--gold); font-family: var(--serif); font-size: 28px; line-height: 1; }

.story { display: grid; gap: 80px; grid-template-columns: 180px 1fr; padding-bottom: 132px; padding-top: 126px; }
.section-index { align-items: center; display: flex; gap: 15px; height: max-content; }
.section-index span { color: var(--gold); font-family: var(--serif); font-size: 30px; line-height: 1; }
.section-index p { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }
.story-body h2, .section-heading h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1.55; margin-top: 17px; }
.story-text { border-top: 1px solid var(--line); display: grid; gap: 42px; grid-template-columns: repeat(2, 1fr); margin-top: 54px; padding-top: 34px; }
.story-text p { line-height: 2.2; }

.role-section { background: var(--white); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 122px 0 130px; }
.section-heading { display: grid; gap: 80px; grid-template-columns: 180px 1fr; }
.role-list { border-top: 1px solid var(--line); margin-left: 260px; margin-top: 68px; }
.role-list li { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 34px; grid-template-columns: 54px 1fr; padding: 32px 0; }
.role-list > li > span { color: var(--orange); font-family: var(--serif); font-size: 18px; }
.role-list h3 { font-size: 25px; margin-bottom: 8px; }
.role-list p { max-width: 620px; }

.curriculum { padding-bottom: 132px; padding-top: 126px; }
.curriculum-list { background: var(--forest); color: rgba(255, 253, 248, .75); margin-left: 260px; margin-top: 70px; padding: 14px 44px; }
.curriculum-list li { align-items: center; border-bottom: 1px solid rgba(255, 253, 248, .16); display: grid; gap: 28px; grid-template-columns: 42px minmax(190px, .8fr) 1.2fr; min-height: 112px; }
.curriculum-list li:last-child { border-bottom: 0; }
.curriculum-list span { color: #e4c473; font-family: var(--serif); font-size: 17px; }
.curriculum-list strong { color: var(--white); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.curriculum-list p { font-size: 13px; }

.trademark-section { background: var(--forest-deep); color: rgba(255, 253, 248, .76); overflow: hidden; padding: 126px 0; position: relative; }
.trademark-section::before { border: 1px solid rgba(228, 196, 115, .16); border-radius: 50%; content: ""; height: 520px; position: absolute; right: -160px; top: -260px; width: 520px; }
.trademark-inner { align-items: center; display: grid; gap: clamp(70px, 9vw, 130px); grid-template-columns: 1fr minmax(390px, .78fr); position: relative; }
.section-index-light span { color: #e4c473; }
.section-index-light p { color: rgba(255, 253, 248, .46); }
.trademark-copy > .section-label { margin-top: 58px; }
.trademark-copy h2 { color: var(--white); font-size: clamp(36px, 4vw, 54px); font-weight: 600; line-height: 1.5; margin: 17px 0 32px; }
.trademark-copy > p:not(.section-label) { line-height: 2.1; margin-top: 18px; max-width: 610px; }
.registry-card { background: var(--paper); border-radius: 1px 48px 1px 1px; color: var(--text); padding: 44px; }
.registry-mark { align-items: center; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 78px 1fr; grid-template-rows: auto auto; margin-bottom: 28px; padding-bottom: 28px; }
.registry-mark span { align-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); display: flex; font-family: var(--serif); font-size: 18px; grid-row: 1 / 3; height: 58px; justify-content: center; width: 58px; }
.registry-mark strong { color: var(--ink); font-family: var(--serif); font-size: 22px; }
.registry-mark small { color: var(--muted); font-size: 9px; letter-spacing: .22em; }
.registry-card dl div { border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 90px 1fr; padding: 13px 0; }
.registry-card dl div:last-child { border-bottom: 0; }
.registry-card dt { color: var(--muted); font-size: 11px; }
.registry-card dd { color: var(--ink); font-size: 13px; font-weight: 600; }

.inquiry { padding-bottom: 126px; padding-top: 126px; }
.inquiry-panel { align-items: center; background: var(--paper-deep); border-left: 6px solid var(--orange); display: grid; gap: 80px; grid-template-columns: 1fr 420px; padding: 62px 70px; }
.inquiry-panel h2 { font-size: clamp(34px, 3.5vw, 48px); font-weight: 600; margin: 12px 0 18px; }
.inquiry-panel > div:first-child > p:last-child { max-width: 570px; }
.inquiry-actions { display: grid; gap: 12px; }
.inquiry-actions a { background: var(--white); border: 1px solid rgba(35, 62, 52, .15); display: grid; min-height: 88px; padding: 18px 24px; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.inquiry-actions a:hover, .inquiry-actions a:focus-visible { background: var(--forest); color: var(--white); transform: translateX(5px); }
.inquiry-actions span { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.inquiry-actions strong { color: inherit; font-size: 17px; }
.inquiry-actions small { font-size: 10px; }

.footer { background: var(--forest); color: rgba(255, 255, 255, .75); padding: 46px 68px 22px; }
.footer-inner { align-items: end; display: grid; gap: 70px; grid-template-columns: 350px 1fr; margin: 0 auto; max-width: 1180px; }
.footer-brand { color: var(--white); margin-bottom: 18px; }
.footer-brand .brand-mark { color: var(--white); height: 44px; width: 44px; }
.footer p { font-size: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: flex-end; }
.footer nav a { font-size: 12px; }
.footer nav a:hover { color: var(--white); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .14); font-size: 10px !important; margin: 30px auto 0; max-width: 1180px; padding-top: 16px; text-align: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms ease-out, transform 560ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 64px, 980px); }
  .site-header { padding-left: 28px; padding-right: 28px; }
  .global-nav { gap: 18px; }
  .qualification-hero { grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); padding-left: 48px; padding-right: 48px; }
  .story, .section-heading { gap: 48px; grid-template-columns: 140px 1fr; }
  .role-list, .curriculum-list { margin-left: 188px; }
  .inquiry-panel { gap: 50px; grid-template-columns: 1fr 360px; padding: 52px; }
}

@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .site-header { grid-template-columns: 1fr auto; height: var(--header-height); }
  .global-nav, .header-cta { display: none; }
  .menu-button { background: transparent; border: 1px solid currentColor; display: block; height: 44px; position: relative; width: 44px; z-index: 52; }
  .menu-button span { background: currentColor; height: 1px; left: 11px; position: absolute; transition: transform 160ms ease; width: 20px; }
  .menu-button span:first-child { top: 17px; }
  .menu-button span:last-child { top: 25px; }
  .menu-open .menu-button span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-button span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { background: var(--paper); display: block; inset: 0; opacity: 0; padding: 104px 28px 40px; pointer-events: none; position: fixed; transform: translateY(-12px); transition: opacity 180ms ease, transform 180ms ease; z-index: 40; }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-menu nav { border-top: 1px solid var(--line); }
  .mobile-menu a { border-bottom: 1px solid var(--line); display: block; font-family: var(--serif); font-size: 20px; padding: 15px 0; }
  .qualification-hero { gap: 54px; grid-template-columns: 1fr; padding-bottom: 84px; }
  .hero-copy { max-width: 690px; }
  .hero-visual { margin: 0 auto; max-width: 560px; width: 100%; }
  .hero-frame img { aspect-ratio: 5 / 4; }
  .story, .section-heading { grid-template-columns: 110px 1fr; }
  .role-list, .curriculum-list { margin-left: 158px; }
  .trademark-inner { grid-template-columns: 1fr; }
  .registry-card { max-width: 610px; }
  .inquiry-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 40px); }
  body { font-size: 14px; line-height: 1.85; }
  .site-header { padding: 10px 16px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand small { font-size: 8px; margin-bottom: 3px; }
  .brand-mark { flex-basis: 38px; height: 38px; width: 38px; }
  .brand-mark svg { height: 34px; width: 34px; }
  .mobile-menu { padding-left: 20px; padding-right: 20px; }
  .qualification-hero { display: flex; flex-direction: column; min-height: 0; padding: 52px 20px 70px; }
  .qualification-hero::before { height: 74px; width: 4px; }
  .back-link { margin-bottom: 40px; }
  .eyebrow { font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
  .qualification-hero h1 { font-size: clamp(30px, 9.2vw, 40px); line-height: 1.3; margin: 14px 0 25px; white-space: nowrap; }
  .qualification-hero h1 span { display: inline; font-size: 1em; margin: 0; }
  .hero-lead { font-size: 14px; line-height: 2; }
  .hero-meta { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 30px; padding-top: 18px; }
  .hero-meta span { font-size: 12px; }
  .hero-frame { padding: 10px; }
  .hero-frame::after { inset: 20px -8px -8px 20px; }
  .hero-frame img { aspect-ratio: 4 / 3; }
  .hero-visual > p { font-size: 7px; letter-spacing: .12em; margin-top: 20px; }
  .hero-visual > p span { font-size: 23px; }
  .story { display: block; padding-bottom: 82px; padding-top: 82px; }
  .section-index { margin-bottom: 34px; }
  .story-body h2, .section-heading h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.55; margin-top: 12px; }
  .story-body h2 br, .section-heading h2 br { display: none; }
  .story-text { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 36px; padding-top: 25px; }
  .story-text p { line-height: 2; }
  .role-section { padding: 80px 0 82px; }
  .section-heading { display: block; }
  .role-list { margin-left: 0; margin-top: 40px; }
  .role-list li { gap: 18px; grid-template-columns: 36px 1fr; padding: 24px 0; }
  .role-list h3 { font-size: 22px; }
  .role-list p { line-height: 1.9; }
  .curriculum { padding-bottom: 82px; padding-top: 82px; }
  .curriculum-list { margin-left: 0; margin-top: 42px; padding: 8px 20px; }
  .curriculum-list li { align-items: start; gap: 5px 14px; grid-template-columns: 34px 1fr; min-height: 0; padding: 23px 0; }
  .curriculum-list span { grid-row: 1 / 3; }
  .curriculum-list strong { font-size: 17px; line-height: 1.55; }
  .curriculum-list p { font-size: 12px; line-height: 1.75; }
  .trademark-section { padding: 82px 0; }
  .trademark-copy > .section-label { margin-top: 38px; }
  .trademark-copy h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.55; }
  .trademark-copy h2 br { display: none; }
  .trademark-copy > p:not(.section-label) { line-height: 2; }
  .registry-card { border-radius: 1px 32px 1px 1px; padding: 27px 22px; }
  .registry-mark { grid-template-columns: 67px 1fr; }
  .registry-mark strong { font-size: 19px; }
  .registry-card dl div { gap: 12px; grid-template-columns: 76px 1fr; }
  .registry-card dd { overflow-wrap: anywhere; }
  .inquiry { padding-bottom: 82px; padding-top: 82px; }
  .inquiry-panel { border-left-width: 4px; gap: 35px; padding: 36px 24px; }
  .inquiry-panel h2 { font-size: clamp(28px, 8vw, 35px); }
  .inquiry-actions a { min-height: 82px; padding: 16px 18px; }
  .inquiry-actions strong { font-size: 15px; overflow-wrap: anywhere; }
  .footer { padding: 40px 20px 20px; }
  .footer-inner { gap: 36px; }
  .footer-brand { font-size: 17px; }
  .footer nav { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
  .footer nav a { border-bottom: 1px solid rgba(255, 255, 255, .13); padding-bottom: 8px; }
}

@media (max-width: 360px) {
  .brand { font-size: 14px; }
  .qualification-hero h1 { font-size: 29px; }
  .registry-card dl div { grid-template-columns: 1fr; }
  .footer nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
