@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --blue: #005ea8;
  --blue-dark: #004b87;
  --blue-pale: #e8f3fb;
  --ink: #1b1b1b;
  --muted: #555;
  --border: #c8c8c8;
  --surface: #fff;
  --surface-alt: #f5f6f7;
  --focus: #ffbf47;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 880px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 10px; }

.site-header {
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { font-size: 32px; line-height: 1; }
.brand strong { display: block; font-size: 17px; line-height: 1.3; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
nav a:hover { background: var(--surface-alt); text-decoration: underline; }

.hero {
  padding: 76px 0 82px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f7fbfe 0%, #fff 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 64px;
  align-items: center;
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
h1, h2, h3 { line-height: 1.35; }
h1 { margin: 0 0 24px; font-size: clamp(36px, 6vw, 60px); letter-spacing: -.03em; }
h2 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 40px); }
h3 { margin: 0 0 10px; font-size: 20px; }
.lead { max-width: 760px; margin: 0; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { color: #fff; background: var(--blue-dark); }
.button.secondary { color: var(--blue); background: #fff; }

.hero-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--blue);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.octopus-art { margin-bottom: 16px; font-size: 92px; line-height: 1; text-align: center; }
.card-label { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-card-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; }

.notice { background: #fff8e1; border-bottom: 1px solid #d9c47a; }
.notice-inner { display: flex; gap: 14px; padding: 16px 0; }
.notice-icon {
  flex: 0 0 26px; width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%; background: #6d4c00; color: #fff; font-weight: 700;
}

.section { padding: 84px 0; }
.tinted { background: var(--surface-alt); border-block: 1px solid #e1e1e1; }
.section-intro { max-width: 760px; margin: 0 0 40px; font-size: 17px; color: #333; }

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px;
  border: 1px solid var(--border);
  background: #fff;
}
.card .icon { display: block; margin-bottom: 16px; font-size: 34px; }
.card p { margin: 0; color: #444; }

.data-block {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 40px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.data-block p { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 16px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { width: 30%; background: #f1f3f5; font-weight: 700; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.step-number {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 700;
}
.steps p { margin: 0; color: #444; }

.callout {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 5px solid var(--blue);
  background: #eaf4fb;
}
.callout p { margin: 4px 0 0; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.principles article { min-height: 180px; padding: 24px; background: #fff; }
.principles span { color: var(--blue); font-size: 13px; font-weight: 700; }
.principles h3 { margin-top: 10px; }
.principles p { margin: 0; color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.faq-list { border-top: 1px solid var(--border); }
details {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 48px 14px 20px;
  position: relative;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 24px;
  font-weight: 400;
}
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 20px 22px; color: #444; }

.closing {
  padding: 70px 0;
  background: var(--blue);
  color: #fff;
}
.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.closing .eyebrow { color: #cde7f8; }
.closing h2 { margin-bottom: 10px; }
.closing p { max-width: 680px; margin: 0; }
.closing-octopus { font-size: 110px; filter: grayscale(1) brightness(0) invert(1); }

.site-footer {
  padding: 48px 0 24px;
  background: #1d252c;
  color: #fff;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-grid p { color: #d8dde1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #53606a;
  color: #d8dde1;
  font-size: 13px;
}
.footer-bottom a { color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  nav a { flex: 0 0 auto; }
  .hero { padding: 52px 0 60px; }
  .hero-grid, .data-block { grid-template-columns: 1fr; gap: 32px; }
  .cards.three, .principles { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .closing-inner { align-items: flex-start; }
}
@media (max-width: 560px) {
  h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .cards.three, .principles, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  .principles article { min-height: auto; }
  .actions, .button { width: 100%; }
  .closing-octopus { display: none; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.article{max-width:860px}
.article h1{max-width:18em;margin-bottom:1.5rem}
.article h2{margin-top:3rem}
.article h3{margin-top:2rem}
.article p{max-width:72ch;line-height:2}
.article blockquote{margin:2rem 0;padding:1.25rem 1.5rem;border-left:4px solid var(--blue);background:var(--blue-pale);font-size:1.1rem;font-weight:700}
.article hr{margin:2rem 0;border:0;border-top:1px solid var(--border)}
.article-meta{margin-top:3rem;color:var(--muted);font-size:.9rem}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f1f1f1;padding:.15em .35em;border-radius:3px}


/* Portal UI alignment */
.site-header{border-top:6px solid var(--blue);border-bottom:1px solid #999}
.header-inner{min-height:0;padding:22px 0 18px;align-items:flex-end}
.brand{gap:0;font-size:24px;font-weight:800;line-height:1.3}
.brand-mark{display:none}
.brand strong{font-size:24px;font-weight:800}
.brand small{font-size:14px;letter-spacing:0;color:var(--ink)}
nav{border-top:1px solid #ddd;gap:0;width:100%;overflow-x:auto;flex-wrap:nowrap}
nav a{padding:14px 18px;border-bottom:4px solid transparent;white-space:nowrap;font-size:14px}
nav a:hover,nav a[aria-current="page"]{background:var(--blue-pale);border-bottom-color:var(--blue);text-decoration:none;font-weight:700}
.site-header .header-inner{width:min(calc(100% - 48px),var(--max));margin-inline:auto}
.hero{background:#fff;border-top:1px solid #222;padding:42px 0 38px;margin-bottom:0}
.hero h1{font-size:clamp(36px,6vw,64px)}
.card{border:1px solid #777}
.notice{border:2px solid var(--blue);border-radius:0;background:#fff;padding:20px 22px;margin:24px 0}
.notice strong{display:block;margin-bottom:6px}
.site-footer{background:#f5f6f7;color:var(--ink);border-top:1px solid #777}
.site-footer .footer-bottom{border-top:0;color:#555}
.site-footer .footer-bottom a{color:var(--blue)}
.article.section{padding-top:52px}

/* Shared footer */
.site-footer .footer-inner{max-width:var(--max);margin:auto;padding:34px 24px}
.site-footer .footer-title{font-weight:800;font-size:20px}
.site-footer .small{font-size:14px;color:#555}

/* Shared header: canonicalized from index.html */
.topline{height:6px;background:#0057b8}
.site-header{border:0}
header{border-bottom:1px solid #999;background:#fff}
.head{max-width:var(--max);margin:auto;padding:22px 24px 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.head .brand{font-weight:800;font-size:24px;line-height:1.3;color:var(--ink);text-decoration:none}
.head .brand small{display:block;font-weight:400;font-size:14px;margin-top:4px}
.octo-mark{font-size:38px;line-height:1}
.nav{border-top:1px solid #ddd;display:block;overflow:hidden}
.nav-inner{max-width:var(--max);margin:auto;padding:0 24px;display:flex;gap:0;overflow:auto}
.nav a{display:block;padding:14px 18px;color:#222;text-decoration:none;white-space:nowrap;border-bottom:4px solid transparent;min-height:0;font-size:16px}
.nav a:hover,.nav a[aria-current="page"]{background:#e8f3ff;border-bottom-color:#0057b8;font-weight:700;text-decoration:none}
@media(max-width:760px){.head{padding:18px}.nav-inner{padding:0 12px}.nav a{padding:12px 14px}}

/* Site utility controls */
.utility{max-width:var(--max);margin:auto;padding:10px 24px;display:flex;justify-content:flex-end;align-items:center;gap:8px;border-top:1px solid #ddd}
.site-search{display:flex;gap:6px}
.site-search input{width:min(260px,42vw);min-height:38px;padding:7px 10px;border:1px solid #777;font:inherit}
.site-search button,.utility-button{min-height:38px;padding:6px 12px;border:1px solid #555;background:#fff;color:#222;font:inherit;cursor:pointer}
.site-search button:hover,.utility-button:hover{background:var(--blue-pale)}
.font-controls{display:flex;gap:4px}
html[data-font-size="small"] body{font-size:14px}
html[data-font-size="large"] body{font-size:19px}
html[data-font-size="large"] h1{font-size:clamp(40px,6vw,68px)}
html[data-font-size="small"] h1{font-size:clamp(32px,5vw,56px)}
html[data-font-size="large"] .nav a{font-size:17px}
html[data-font-size="small"] .nav a{font-size:15px}
@media(max-width:760px){.utility{padding:8px 12px;justify-content:flex-start;flex-wrap:wrap}.site-search{flex:1 1 100%}.site-search input{width:100%}}

/* DADS-inspired header: wide/full layout */
.header-container{max-width:var(--max);margin:0 auto}
.header-main{min-height:96px;padding:20px 24px 16px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.header-search{display:flex;align-items:stretch;margin:0}
.header-search input{width:230px;height:44px;padding:8px 12px;border:1px solid #767676;border-right:0;border-radius:0;font:inherit;background:#fff}
.header-search button,.header-tool,.menu-button{min-height:44px;padding:8px 14px;border:1px solid #333;background:#fff;color:#1b1b1b;font:inherit;font-weight:700;cursor:pointer}
.header-search button{background:#0057b8;color:#fff;border-color:#0057b8}
.header-search button:hover{background:#003f88}
.header-tool:hover,.menu-button:hover{background:#e8f3ff}
.font-tools{display:flex}
.font-tools .header-tool{margin-left:-1px}
.nav{border-top:1px solid #ddd}
.nav-inner{max-width:none;margin:0;padding:0 24px;display:flex;gap:0;overflow-x:auto}
.nav a{display:flex;align-items:center;min-height:52px;padding:12px 18px;color:#222;text-decoration:none;white-space:nowrap;border-bottom:4px solid transparent;font-size:16px}
.nav a:hover,.nav a[aria-current="page"]{background:#e8f3ff;border-bottom-color:#0057b8;font-weight:700;text-decoration:none}
.menu-button{display:none}
@media(max-width:760px){
  .header-main{min-height:76px;padding:16px 18px;gap:12px}
  .header-tools{gap:6px}
  .header-search{display:none}
  .font-tools{display:none}
  .menu-button{display:inline-flex;align-items:center;gap:8px}
  .nav{display:none;border-top:1px solid #999}
  .nav.is-open{display:block}
  .nav-inner{padding:0;display:block}
  .nav a{min-height:48px;border-bottom:1px solid #ddd;padding:12px 18px}
}


/* Mobile menu hardening */
.menu-button{display:none}
@media (max-width:900px){
  .header-main{min-height:76px;padding:16px 18px;gap:12px}
  .header-tools{gap:6px}
  .header-search,.font-tools{display:none}
  .menu-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid #333;background:#fff;color:#1b1b1b;font:inherit;font-weight:700;cursor:pointer}
  .menu-button:hover{background:#e8f3ff}
  .nav{display:none}
  .nav.is-open{display:block}
  .nav-inner{display:block;padding:0}
  .nav a{display:flex;min-height:48px;padding:12px 18px;border-bottom:1px solid #ddd}
}


/* Header typography/layout: keep the brand on one line and tools compact */
.header-main .brand{
  display:block;
  flex:0 1 auto;
  min-width:0;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  line-height:1.2;
}
.header-main .brand-title{
  display:block;
  font-size:30px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.02em;
}
.header-main .brand small{
  display:block;
  margin-top:5px;
  font-size:13px;
  line-height:1.2;
  font-weight:400;
  color:#444;
}
.header-tools{
  flex:0 0 auto;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.header-tools button,
.header-search button,
.header-search input{
  white-space:nowrap;
}
.header-tool,.menu-button{white-space:nowrap}
@media(max-width:1100px){
  .header-search{display:none}
}
@media(max-width:900px){
  .header-main .brand-title{font-size:26px}
  .header-main .brand small{font-size:12px}
}
@media(max-width:420px){
  .header-main{padding:14px 16px}
  .header-main .brand-title{font-size:23px}
  .header-main .brand small{font-size:11px}
}


/* Mobile header: Japanese name + menu on first row, English name below */
.header-main{min-width:0}
.header-main .brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:2px;
  min-width:0;
  white-space:nowrap;
  flex:1 1 auto;
  overflow:visible;
}
.header-main .brand-title{
  display:block;
  font-size:30px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.header-main .brand small{
  display:block;
  margin:0;
  font-size:13px;
  line-height:1.2;
  font-weight:400;
  white-space:nowrap;
}
.header-tools{flex:0 0 auto;white-space:nowrap}
@media(max-width:900px){
  .header-main{
    min-height:0;
    padding:16px 18px 14px;
    gap:12px;
    align-items:flex-start;
  }
  .header-main .brand{
    flex:1 1 auto;
    min-width:0;
    overflow:visible;
  }
  .header-main .brand-title{
    font-size:clamp(20px,6vw,26px);
    white-space:nowrap;
  }
  .header-main .brand small{
    font-size:clamp(10px,2.8vw,12px);
    white-space:nowrap;
  }
  .header-tools{
    display:flex;
    align-items:flex-start;
    gap:6px;
    flex:0 0 auto;
  }
  .header-tools .header-tool[data-action="lang"]{display:none}
  .menu-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:0;
    min-height:44px;
    height:44px;
    padding:8px 12px;
    white-space:nowrap;
  }
  .menu-button [data-ja],.menu-button [data-en]{display:inline}
  .menu-button .menu-icon{font-size:20px}
}
@media(max-width:360px){
  .header-main{padding:14px 12px 12px;gap:8px}
  .header-main .brand-title{font-size:20px}
  .header-main .brand small{font-size:9px}
  .menu-button{min-height:42px;height:42px;padding:8px 10px}
}
