/* Global Gateway corporate site
   layout: quiet top page (one photo, news, three doors); working lower pages with in-page navigation.
   The logo's gold door frame appears once per page hero, nowhere else. */
:root {
  --ultra: #020089;       /* brand blue, carried over from the current site */
  --ultra-deep: #010056;
  --ink: #1a1c33;
  --sub: #545871;
  --line: #d9dce6;
  --mist: #f3f4f8;
  --paper: #ffffff;
  --gold: #ffca00;        /* logo door: outer frame */
  --door-blue: #0533ff;   /* logo door: middle frame */
  --door-green: #00d000;  /* logo door: inner frame */
  --f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-en: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --f-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ultra); text-underline-offset: 3px; }
a:hover { color: var(--ultra-deep); }
:focus-visible { outline: 2px solid var(--ultra); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; letter-spacing: 0.06em; word-break: auto-phrase; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ultra); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.num { font-family: var(--f-en); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* staging only: remove for production */
.stg-bar { background: #fff4cc; color: #5c4400; font-size: 13px; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid #e8d48a; letter-spacing: 0.04em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.gtranslate { display: flex; align-items: center; flex-shrink: 0; }
.gtranslate::before { content: ""; width: 18px; height: 18px; margin-right: 7px; flex-shrink: 0; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2340' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.6 3 14.4 0 18M12 3c-3 3.6-3 14.4 0 18'/%3E%3C/svg%3E"); }
.gtranslate .goog-te-gadget { font-size: 0 !important; line-height: 0; color: transparent; }
.gtranslate .goog-te-gadget > span { display: none !important; }
.gtranslate .goog-te-combo { margin: 0 !important; font: 500 14px/1.2 var(--f-sans, inherit); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; max-width: 170px; cursor: pointer; }
.gtranslate .goog-te-combo:hover { border-color: var(--ultra); }
body { top: 0 !important; }
.skiptranslate.goog-te-banner-frame, iframe.goog-te-banner-frame { display: none !important; }
@media (max-width: 860px) { .gtranslate .goog-te-combo { max-width: 128px; padding: 7px 10px; } .gtranslate::before { margin-right: 5px; } }
.brand img { height: 42px; width: auto; }
.global-nav { display: flex; align-items: center; gap: 32px; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.global-nav ul a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.global-nav ul a:hover { color: var(--ultra); border-bottom-color: var(--ultra); }
.global-nav ul a[aria-current="page"] { color: var(--ultra); border-bottom-color: var(--ultra); }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--ultra); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 2px; }
.nav-cta:hover { background: var(--ultra-deep); color: #fff; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; border-radius: 2px; cursor: pointer; }
@media (max-width: 1140px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .global-nav.is-open { display: flex; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .global-nav ul a:hover, .global-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-cta { margin-top: 16px; justify-content: center; }
  .brand img { height: 34px; }
  .site-header .wrap { min-height: 68px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 2px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--ultra); }
.btn-primary { background: var(--ultra); color: #fff; }
.btn-primary:hover { background: var(--ultra-deep); border-color: var(--ultra-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ultra); }
.btn-line:hover { background: var(--ultra); color: #fff; }
.btn-white { background: #fff; color: var(--ultra); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: #fff; color: var(--ultra); }
.chev { width: 8px; height: 12px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top hero ---------- */
.hero { position: relative; background: var(--ultra-deep); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0; transition: opacity .9s ease; }
.hero-img.is-active { opacity: 1; }
.hero-copy { display: grid; }
.hero-copy .line { grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease; }
.hero-copy .line.is-active { opacity: 1; }
.hero-dots { display: flex; gap: 10px; margin-top: 32px; }
.hero-dots .dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .38); cursor: pointer; transition: background .3s, transform .3s; }
.hero-dots .dot:hover { background: rgba(255, 255, 255, .7); }
.hero-dots .dot.is-active { background: #fff; transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .hero-img, .hero-copy .line { transition: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(1, 0, 40, 0.42); }
.hero .wrap { position: relative; z-index: 1; display: flex; align-items: center; min-height: clamp(420px, 52vw, 600px); padding-block: 64px; }
.gate { position: relative; max-width: 640px; padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 56px); border: 3px solid var(--gold); background: rgba(1, 0, 40, 0.35); }
.gate::before, .gate::after { content: ""; position: absolute; pointer-events: none; }
.gate::before { inset: 0; border: 3px solid var(--door-blue); }
.gate::after { inset: 3px; border: 3px solid var(--door-green); }
.gate > * { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-family: var(--f-mincho); font-weight: 600; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.45; letter-spacing: 0.08em; }
.hero .lead { margin-top: 20px; font-size: clamp(15px, 1.5vw, 17px); line-height: 2; color: #e6e7f2; }
.hero .motto { margin-top: 28px; font-family: var(--f-en); font-style: italic; font-size: 15px; color: #ffe27a; letter-spacing: 0.02em; }

/* ---------- page header (lower pages) ---------- */
.page-head { position: relative; background: var(--ultra-deep); color: #fff; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; background: rgba(1, 0, 40, 0.5); }
.page-head .wrap { position: relative; z-index: 1; min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-block: 48px; }
.page-head h1 { margin: 0; font-family: var(--f-mincho); font-weight: 600; font-size: clamp(30px, 4vw, 44px); line-height: 1.4; }
.page-head .en { font-family: var(--f-en); font-style: italic; font-size: 16px; color: #ffe27a; letter-spacing: 0.02em; }
.page-head.plain { background: var(--ultra); }
.page-head.plain::after { display: none; }
.crumbs { border-bottom: 1px solid var(--line); background: var(--paper); }
.crumbs ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--sub); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--sub); }

/* in-page nav */
.local-nav { background: var(--mist); }
.local-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.local-nav a { display: block; padding: 18px 24px 18px 0; margin-right: 24px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.local-nav a:hover { color: var(--ultra); text-decoration: underline; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec.mist { background: var(--mist); }
.sec + .sec:not(.mist):not(.band) { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.sec h2 { margin: 0; font-family: var(--f-mincho); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.5; }
.sec h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: 0.05em; }
.sec-lead { max-width: 40em; color: var(--sub); margin-top: -16px; margin-bottom: 40px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }
.prose { max-width: 40em; }
.prose p + p { margin-top: 1.2em; }

/* news list */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news li { border-bottom: 1px solid var(--line); }
.news a, .news .row { display: grid; grid-template-columns: 112px 96px minmax(0, 1fr) 16px; align-items: baseline; gap: 8px 20px; padding: 22px 4px; color: var(--ink); text-decoration: none; }
.news a:hover .ttl { color: var(--ultra); text-decoration: underline; }
.news time { font-family: var(--f-en); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--sub); letter-spacing: 0.02em; }
.news .cat { font-size: 12px; font-weight: 700; color: var(--ultra); border: 1px solid currentColor; padding: 0 8px; text-align: center; line-height: 22px; justify-self: start; }
.news .cat.press { color: var(--sub); }
.news .ttl { font-size: 15px; line-height: 1.8; }
.news .media { display: block; font-size: 13px; color: var(--sub); margin-top: 4px; }
.news .chev { color: var(--sub); align-self: center; }
@media (max-width: 640px) {
  .news a, .news .row { grid-template-columns: auto auto 1fr; padding: 18px 0; }
  .news .ttl { grid-column: 1 / -1; }
  .news .chev { display: none; }
}

/* three doors (top page) */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.door { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); text-decoration: none; }
.door .ph { aspect-ratio: 16 / 9; background: var(--ultra-deep); overflow: hidden; }
.door .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.door:hover .ph img { transform: scale(1.03); }
.door .tx { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 26px; border: 1px solid var(--line); border-top: 0; flex: 1; }
.door .t { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mincho); font-weight: 600; font-size: 22px; letter-spacing: 0.08em; }
.door .t .chev { color: var(--ultra); }
.door .d { font-size: 14px; color: var(--sub); line-height: 1.8; }
.door:hover .t { color: var(--ultra); }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* ultramarine band */
.band { background: var(--ultra); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 6vw, 72px); }
.band h2 { margin: 0; font-family: var(--f-mincho); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; }
.band p { margin-top: 10px; color: #dfe0f3; max-width: 36em; font-size: 15px; }

/* brands */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.brands li { border-top: 1px solid var(--line); padding-top: 14px; }
.brands .n { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.brands .k { display: block; font-size: 12px; color: var(--sub); }

/* spec tables (dl) */
.spec { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--ink); }
.spec dt, .spec dd { margin: 0; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; font-size: 15px; }
.spec dd ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 640px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } .spec dd { padding-top: 6px; } }

/* timeline */
.history { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin: 0; }
.history dt { font-family: var(--f-en); font-variant-numeric: tabular-nums; color: var(--ultra); padding: 14px 0; border-top: 1px solid var(--line); letter-spacing: 0.02em; }
.history dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.history .yr { font-size: 15px; }

/* values */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.values div { padding: 24px 0; border-top: 1px solid var(--line); }
.values dt { font-family: var(--f-en); font-size: 20px; font-weight: 700; color: var(--ultra); letter-spacing: 0.02em; }
.values dd { margin: 6px 0 0; font-size: 15px; color: var(--sub); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* message */
.message { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.sign { margin-top: 32px; font-family: var(--f-mincho); font-size: 18px; letter-spacing: 0.1em; }
.sign small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--sub); letter-spacing: 0.04em; }
.profile { border-top: 1px solid var(--ink); padding-top: 20px; font-size: 14px; color: var(--sub); }
.profile h3 { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.profile dl { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; margin: 0; }
.profile dt { font-family: var(--f-en); font-variant-numeric: tabular-nums; color: var(--ink); }
.profile dd { margin: 0; }
@media (max-width: 860px) { .message { grid-template-columns: 1fr; } }

.purpose { font-family: var(--f-mincho); font-size: clamp(32px, 5vw, 52px); font-weight: 600; letter-spacing: 0.18em; line-height: 1.4; margin: 0; }
.purpose-sub { margin-top: 12px; font-size: 17px; }

/* business finder */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { min-height: 44px; padding: 0 22px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; border-radius: 2px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab:hover:not([aria-selected="true"]) { border-color: var(--ultra); color: var(--ultra); }
.finder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.finder li { border-top: 1px solid var(--line); }
.finder a { display: grid; grid-template-columns: minmax(0, 1fr) 12px; gap: 16px; align-items: center; padding: 20px 4px; color: var(--ink); text-decoration: none; }
.finder a:hover strong { color: var(--ultra); text-decoration: underline; }
.finder strong { display: block; font-size: 16px; }
.finder span { display: block; font-size: 14px; color: var(--sub); line-height: 1.7; margin-top: 4px; }
.finder .chev { color: var(--ultra); }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* business blocks */
.biz { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px 56px; padding-block: 48px; border-top: 1px solid var(--line); }
.biz:first-of-type { border-top: 1px solid var(--ink); }
.biz h3 { font-family: var(--f-mincho); font-weight: 600; font-size: 24px; letter-spacing: 0.08em; }
.biz .brandline { margin-top: 8px; font-size: 13px; color: var(--sub); }
.biz ul { margin: 16px 0 0; padding-left: 1.2em; }
.biz li { margin-top: 4px; }
.biz .btn-row { margin-top: 24px; }
@media (max-width: 860px) { .biz { grid-template-columns: 1fr; } }

/* cases */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.case { border-top: 3px solid var(--ultra); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.case .who { font-size: 13px; color: var(--sub); }
.case h3 { font-size: 18px; }
.case h3 a.case-ttl { color: var(--ink); text-decoration: none; }
.case h3 a.case-ttl:hover { color: var(--ultra); text-decoration: underline; }
.case p { font-size: 15px; color: var(--sub); }
.case .src { font-size: 13px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; gap: 32px; } }

/* MVNO */
.lp-hero { background: var(--ultra); color: #fff; }
.lp-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: clamp(64px, 8vw, 104px); }
.lp-hero .gate { max-width: none; }
.lp-hero h1 { margin: 0; font-family: var(--f-mincho); font-weight: 600; font-size: clamp(30px, 4vw, 48px); line-height: 1.5; letter-spacing: 0.08em; }
.lp-hero .lead { margin-top: 20px; color: #e3e4f4; font-size: 16px; }
.lp-hero .btn-row { margin-top: 32px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,0.35); }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.35); }
.facts dt { font-size: 14px; color: #cfd0ee; }
.facts dd { margin: 0; font-size: 17px; font-weight: 700; }
.facts dd small { display: block; font-size: 13px; font-weight: 400; color: #cfd0ee; }
@media (max-width: 900px) { .lp-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.scheme { display: grid; grid-template-columns: 1fr 40px 1.3fr 40px 1fr 40px 1fr; align-items: stretch; }
.scheme .node { border: 1px solid var(--line); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.scheme .node.us { border: 2px solid var(--ultra); }
.scheme .node b { font-size: 16px; }
.scheme .node span { font-size: 13px; color: var(--sub); line-height: 1.7; }
.scheme .arr { display: flex; align-items: center; justify-content: center; color: var(--sub); }
@media (max-width: 900px) {
  .scheme { grid-template-columns: 1fr; }
  .scheme .arr { height: 32px; transform: rotate(90deg); }
}

.roles { width: 100%; border-collapse: collapse; font-size: 15px; }
.roles th, .roles td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.roles thead th { border-bottom: 1px solid var(--ink); font-size: 14px; color: var(--sub); font-weight: 500; }
.roles tbody th { font-weight: 700; width: 30%; }
.roles .on { color: var(--ultra); font-weight: 700; }
.roles .off { color: var(--sub); }
.tbl-scroll { overflow-x: auto; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.plan { border: 1px solid var(--line); padding: 32px; }
.plan.main { border: 2px solid var(--ultra); }
.plan h3 { font-family: var(--f-mincho); font-weight: 600; font-size: 24px; }
.plan > p { margin-top: 12px; color: var(--sub); font-size: 15px; }
.plan .spec { margin-top: 24px; grid-template-columns: 7em minmax(0, 1fr); font-size: 14px; }
.plan .spec dt, .plan .spec dd { padding: 12px 2px; font-size: 14px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 20px 20px 24px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 20px; }
.steps li:last-child { border-right: 0; }
.steps .no { font-family: var(--f-en); color: var(--ultra); font-size: 14px; }
.steps b { display: block; margin-top: 6px; font-size: 17px; }
.steps span { display: block; margin-top: 6px; font-size: 14px; color: var(--sub); line-height: 1.7; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; background: var(--mist); padding: clamp(28px, 4vw, 48px); }
.feature .mag { font-family: var(--f-en); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; color: var(--ultra); border-left: 3px solid var(--gold); padding-left: 20px; }
.feature .mag small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--sub); margin-top: 10px; letter-spacing: 0.04em; }
.feature h3 { font-family: var(--f-mincho); font-weight: 600; font-size: 22px; letter-spacing: 0.06em; }
.feature p { margin-top: 12px; color: var(--sub); font-size: 15px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; } }

.faq { border-top: 1px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 12px; padding: 20px 4px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--f-en); color: var(--ultra); }
.faq summary .pm { color: var(--sub); justify-self: end; transition: transform 0.2s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 0 4px 22px; color: var(--sub); font-size: 15px; }
.faq .a::before { content: "A"; font-family: var(--f-en); color: var(--sub); }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.req { font-size: 12px; color: #fff; background: var(--ultra); padding: 0 6px; margin-left: 8px; font-weight: 500; vertical-align: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9bdcc; border-radius: 2px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ultra); outline-offset: 0; border-color: var(--ultra); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; min-height: 44px; }
.choices input { width: 18px; height: 18px; accent-color: var(--ultra); }
.consent { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.consent input { width: 20px; height: 20px; accent-color: var(--ultra); }
.form-note { font-size: 14px; color: var(--sub); }
.form-status { grid-column: 1 / -1; padding: 16px 20px; border-left: 3px solid var(--ultra); background: var(--mist); font-size: 15px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* recruit */
.jobs { border-top: 1px solid var(--ink); }
.job { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px 40px; padding: 28px 4px; border-bottom: 1px solid var(--line); }
.job h3 { font-size: 18px; }
.job .type { font-size: 13px; color: var(--sub); margin-top: 4px; }
.job dl { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; }
.job dt { color: var(--sub); }
.job dd { margin: 0; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; } }

.env { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.env h3 { font-size: 17px; }
.env p { margin-top: 8px; font-size: 15px; color: var(--sub); }
@media (max-width: 860px) { .env { grid-template-columns: 1fr; gap: 28px; } }

/* access */
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); font-size: 14px; }
.site-footer .top { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-block: 56px 40px; }
.site-footer .co img { height: 36px; width: auto; }
.site-footer .co address { margin-top: 16px; font-style: normal; color: var(--sub); line-height: 1.8; }
.sitemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sitemap h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.sitemap h2 a { color: var(--ink); text-decoration: none; }
.sitemap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sitemap a { color: var(--sub); text-decoration: none; }
.sitemap a:hover { color: var(--ultra); text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid var(--line); padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--sub); font-size: 13px; }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr; } .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- WordPress ---------- */
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
a.tab[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ultra); border: 1px solid currentColor; padding: 0 8px; line-height: 22px; }
.cat-tag.press { color: var(--sub); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.entry h2 { font-family: var(--f-mincho); font-weight: 600; font-size: 24px; margin: 2em 0 0.6em; }
.entry h3 { font-size: 18px; margin: 1.8em 0 0.5em; }
.entry p + p, .entry ul, .entry ol { margin-top: 1.2em; }
.entry img { margin-block: 24px; }

/* Contact Form 7 inside .gg-form (markup templates in README.md) */
.gg-form .wpcf7-form-control-wrap { display: block; }
.gg-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.gg-form .wpcf7-list-item { margin: 0; }
.gg-form .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; font-size: 15px; }
.gg-form .wpcf7-list-item input { width: 18px; height: 18px; accent-color: var(--ultra); }
.gg-form .wpcf7-acceptance input { width: 20px; height: 20px; accent-color: var(--ultra); }
.gg-form .wpcf7-not-valid-tip { color: #b42318; font-size: 14px; margin-top: 6px; }
.gg-form .wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 20px; border: 0; border-left: 3px solid var(--ultra); background: var(--paper); }
.gg-form .wpcf7 form.invalid .wpcf7-response-output, .gg-form .wpcf7 form.failed .wpcf7-response-output { border-left-color: #b42318; }
.gg-form .wpcf7-spinner { vertical-align: middle; }
.field .label { font-size: 14px; font-weight: 700; }

/* recruit: job heading and other types */
.job-title { margin-bottom: 20px; }
.job-title h3 { font-family: var(--f-mincho); font-weight: 600; font-size: 24px; letter-spacing: 0.06em; }
.job-title p { margin-top: 4px; font-size: 14px; color: var(--sub); }
.other-types { margin-top: 56px; padding: 28px 32px; background: var(--mist); }
.other-types p { margin-top: 8px; font-size: 15px; color: var(--sub); }
.cases-6 { row-gap: 48px; }
.cases-more { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--sub); line-height: 1.9; }
.cases-more span { color: var(--ink); font-weight: 500; }
.cases-more::before { content: "＋"; display: block; margin: 0 auto 10px; width: 34px; height: 34px; line-height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--ultra); font-size: 18px; }

/* privacy policy */
.policy { max-width: 46em; font-size: 16px; }
.policy h2 { font-size: 22px; padding-top: 1.4em; margin-top: 1.6em; border-top: 1px solid var(--line); }
.policy h2:first-of-type { margin-top: 2em; }
.policy h3 { font-size: 16px; color: var(--ultra); }
.policy ul { padding-left: 1.4em; list-style: disc; }
.policy li + li { margin-top: 0.4em; }
.policy .table-scroll { margin-top: 1.2em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.policy table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.policy th { background: var(--mist); font-weight: 500; white-space: nowrap; }
.policy .table-scroll + p { margin-top: 1.2em; }
.policy .policy-date { margin-top: 3em; text-align: right; color: var(--sub); font-size: 14px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .bottom .legal a { color: inherit; }
.site-footer .bottom .legal a:hover { color: var(--ultra); }

/* ---------- responsive refinements: optimize across all device sizes ---------- */
/* large / wide monitors: use the extra width and scale text up slightly */
@media (min-width: 1600px) {
  :root { --wrap: 1280px; }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1400px; }
}
/* small phones: trim oversized vertical rhythm so content isn't buried */
@media (max-width: 480px) {
  .sec { padding-block: clamp(48px, 13vw, 72px); }
  .gate { padding: 28px 22px; }
  .hero .wrap { padding-block: 48px; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
}
/* landscape phones / short viewports: don't let the hero fill more than the screen */
@media (max-height: 540px) and (orientation: landscape) {
  .hero .wrap { min-height: auto; padding-block: 44px; }
  .page-head .wrap { min-height: auto; padding-block: 36px; }
}
/* make the translate dropdown comfortable on very small screens */
@media (max-width: 400px) {
  .gtranslate .goog-te-combo { max-width: 104px; }
}
/* sub-brand suffix such as "powered by dinomo": smaller, lighter */
.pw { font-size: 0.72em; font-weight: 400; letter-spacing: 0.02em; white-space: nowrap; }
/* business models listed under a business heading */
.biz .models { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.biz .models li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.biz .models li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--ultra); }
.nw { white-space: nowrap; }
/* keep nav labels on one line */
.global-nav ul a, .nav-cta { white-space: nowrap; }
.biz p + p { margin-top: 0.9em; }
[id] { scroll-margin-top: 100px; }

/* ---------- language selector: pill with the standard "translate" (文A) icon ---------- */
.gtranslate { gap: 6px; height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; transition: border-color .2s; }
.gtranslate:hover { border-color: var(--ultra); }
.gtranslate::before { width: 20px; height: 20px; margin-right: 0; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23020089'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E"); }
/* label shown until (or if) Google's dropdown loads */
.gtranslate:empty::after { content: "Language"; font: 700 13px/1 var(--f-body); color: var(--ultra); letter-spacing: 0.04em; }
.gtranslate .goog-te-combo { border: 0; background: transparent; padding: 4px 0; font: 700 13px/1.2 var(--f-body); color: var(--ultra); max-width: 150px; }
@media (max-width: 480px) {
  .gtranslate { height: 38px; padding: 0 10px; }
  .gtranslate:empty::after { content: "言語"; }
  .gtranslate .goog-te-combo { max-width: 96px; }
}
.menu-btn { white-space: nowrap; }
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .menu-btn { padding: 0 10px; gap: 6px; }
}

/* ---------- language menu (drives Google Translate) ---------- */
.lang { position: relative; flex-shrink: 0; }
.lang-btn { font: 700 13px/1 var(--f-body); color: var(--ultra); letter-spacing: 0.04em; }
.lang-label .sp { display: none; }
@media (max-width: 480px) { .lang-label .pc { display: none; } .lang-label .sp { display: inline; } }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 210px; max-height: min(70vh, 440px); overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(10, 12, 40, 0.14); }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 6px; font: 500 14px/1.3 var(--f-body); color: var(--ink); letter-spacing: 0.02em; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--mist); color: var(--ultra); }
.lang-menu button[aria-current="true"] { color: var(--ultra); font-weight: 700; }
.lang-menu button[aria-current="true"]::after { content: " ✓"; }
.lang-note { padding: 10px 12px; font-size: 12px; line-height: 1.6; color: var(--sub); border-top: 1px solid var(--line); margin-top: 4px; }
.gt-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.goog-tooltip, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.lang-menu { right: auto; left: 50%; transform: translateX(-50%); }
.hero-img.img-r, .page-head img.img-r, .door .ph img.img-r { object-position: 96% 88%; }
/* shown on the first hero slide only (space is kept so nothing jumps) */
/* per-slide extras (motto on slide 1, CTA on slide 2) share one spot */
.hero [data-slide-only] { transition: opacity .7s ease, visibility .7s ease; }
.hero [data-slide-only].is-off { opacity: 0; visibility: hidden; }
.hero-copy .en { font-family: var(--f-en); font-weight: 700; letter-spacing: 0.01em; }
.hero-copy .en { font-weight: 400; }
@media (min-width: 900px) { .hero .gate { max-width: 760px; } }

.hero-extra { display: grid; margin-top: 28px; }
.hero-extra > * { grid-area: 1 / 1; }
.hero-extra .motto { margin-top: 0; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-cta-note { font-size: 15px; line-height: 1.8; color: #ffe27a; letter-spacing: 0.04em; }
.hero-cta .btn { min-height: 52px; padding: 0 28px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.hero-cta .btn .chev { transition: transform .2s; }
.hero-cta .btn:hover .chev { transform: translateX(3px); }
@media (max-width: 480px) { .hero-cta .btn { width: 100%; } }
.hero-cta .btn-ghost { box-shadow: none; border-color: #fff; color: #fff; }
.hero-cta .btn-ghost:hover, .hero-cta .btn-ghost:focus-visible { background: #fff; color: var(--ultra); border-color: #fff; }
.hero .motto-ja { margin: 0; font-family: var(--f-mincho); font-weight: 600; font-size: clamp(20px, 2vw, 24px); color: #ffe27a; letter-spacing: 0.2em; }
/* slide 2 English line: elegant serif italic in the gate's gold, with a short gold rule */
.hero-copy .en { display: inline-block; margin-top: 0.15em; font-family: var(--f-en); font-style: italic; font-weight: 400; letter-spacing: 0.01em; color: #ffe27a; background: linear-gradient(90deg, #fff4c2, #ffca00 60%, #ffe27a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy .en::before { content: ""; display: block; width: 56px; height: 2px; margin: 0.15em 0 0.35em; background: var(--gold); }
/* per-slide lead text shares one spot */
.hero-leads { display: grid; margin-top: 20px; }
.hero-leads > .lead { grid-area: 1 / 1; margin-top: 0; }
.hero-cta .motto-ja { margin-bottom: -4px; }
.hero-leads > * { grid-area: 1 / 1; }
.hero-leads .lead-block .lead { margin-top: 0; }
/* paragraph title on slide 4: same serif italic gold as slide 2's English, light weight */
.hero .lead-title { margin: 0 0 10px; font-family: var(--f-en); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: 0.14em; background: linear-gradient(90deg, #fff4c2, #ffca00 60%, #ffe27a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #ffe27a; }

@media (max-width: 600px) { .facts div { grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; } }

/* ---------- form fields: soft inset shadow and rounded corners (matches the current g-gateway.com form) ---------- */
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea,
.gg-form input[type="text"], .gg-form input[type="email"], .gg-form input[type="tel"], .gg-form select, .gg-form textarea {
  border: 0; border-radius: 20px; padding: 10px 20px; background-color: var(--mist);
  box-shadow: inset 2px 2px 5px #bdbdbd, inset -5px -5px 10px #fff;
  transition: box-shadow .2s ease-in-out; -webkit-appearance: none; appearance: none;
}
.field textarea, .gg-form textarea { padding: 16px 20px; }
.field select, .gg-form select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23232a4e' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center;
}
.field input:focus, .field select:focus, .field textarea:focus,
.gg-form input[type="text"]:focus, .gg-form input[type="email"]:focus, .gg-form input[type="tel"]:focus, .gg-form select:focus, .gg-form textarea:focus {
  outline: none; box-shadow: inset 1px 1px 2px #bdbdbd, inset -1px -1px 2px #fff, 0 0 0 2px var(--ultra);
}

/* larger logo */
.brand img { height: 54px; }
.site-header .wrap { min-height: 92px; }
.site-footer .co img { height: 46px; }
@media (max-width: 1140px) { .brand img { height: 44px; } .site-header .wrap { min-height: 72px; } }

/* service list on the top page: each item links to its service site */
.brands li:has(> a) { padding-top: 0; }
.brands a { display: block; padding-top: 14px; padding-right: 24px; position: relative; color: inherit; text-decoration: none; }
.brands a::after { content: ""; position: absolute; right: 4px; top: 22px; width: 8px; height: 8px; border-top: 2px solid var(--ultra); border-right: 2px solid var(--ultra); transform: rotate(45deg); transition: right .2s; }
.brands a:hover .n, .brands a:focus-visible .n { color: var(--ultra); text-decoration: underline; text-underline-offset: 4px; }
.brands a:hover::after { right: 0; }
.brands li:has(> a:hover) { border-top-color: var(--ultra); }

/* ================= phone / tablet refinements ================= */
/* text: no stray single characters, no mid-word breaks in headings and buttons */
h1, h2, h3, .door .t, .lead-title { line-break: strict; }
p, li, dd { line-break: strict; overflow-wrap: anywhere; }
.btn { text-align: center; line-height: 1.5; padding-block: 10px; }
.btn .nw { display: inline-block; }

/* comfortable touch targets (44px) without changing how things look */
.hero-dots { gap: 0; margin-left: -12px; }
.hero-dots .dot { width: 34px; height: 44px; border-radius: 0; background: none; position: relative; }
.hero-dots .dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .38); transition: background .3s, transform .3s; }
.hero-dots .dot:hover { background: none; }
.hero-dots .dot:hover::before { background: rgba(255, 255, 255, .7); }
.hero-dots .dot.is-active { background: none; transform: none; }
.hero-dots .dot.is-active::before { background: #fff; transform: scale(1.3); }
.hero-dots { margin-top: 12px; margin-bottom: -12px; }
.more { min-height: 44px; }
.case .src a, .case a.src { display: inline-block; padding-block: 9px; }
.choices label, .consent label { min-height: 44px; }

/* hero on phones and tablets: each slide reads as one block (no empty bands between
   headline, text and button); the frame keeps one height so the page never jumps */
@media (max-width: 899px) {
  .hero .wrap { min-height: 0; align-items: stretch; padding-block: clamp(28px, 6vw, 48px); }
  .hero .gate { display: flex; flex-direction: column; width: 100%; max-width: none; }
  .hero-copy, .hero-leads, .hero-extra { display: block; }
  .hero-copy .line:not(.is-active), .hero [data-slide-only].is-off { display: none; }
  .hero.is-live .hero-copy .line.is-active, .hero.is-live [data-slide-only]:not(.is-off) { animation: gg-fade .7s ease both; }
  .hero-dots { margin-top: auto; padding-top: 20px; }
  .hero h1 { font-size: clamp(28px, 6.2vw, 44px); }
  .hero .lead { line-height: 1.9; }
}
@keyframes gg-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-copy .line.is-active, .hero [data-slide-only]:not(.is-off) { animation: none; } }
@media (min-width: 600px) and (max-width: 899px) {
  .hero .gate { padding: 44px 48px; }
  .hero-leads, .hero-extra { max-width: 34em; }
}

/* tablets: use the width instead of stretching one column */
@media (min-width: 600px) and (max-width: 1100px) {
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .door .ph { aspect-ratio: 4 / 3; }
  .door .tx { padding: 16px 16px 20px; }
  .door .t { font-size: 18px; letter-spacing: 0.04em; }
  .door .d { font-size: 13px; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) and (max-width: 860px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .band .btn-row { width: 100%; }
  .lp-hero .btn-row .btn { flex: 1 1 0; padding-inline: 12px; }
}

/* phones */
@media (max-width: 599px) {
  .door .ph { aspect-ratio: 2 / 1; }
  .door .tx { padding: 18px 20px 22px; }
  .door .t { font-size: 20px; }
  .brands { grid-template-columns: 1fr; gap: 0; }
  .brands li { padding-bottom: 14px; }
  .band .btn-row { width: 100%; flex-direction: column; }
  .lp-hero h1 { font-size: clamp(25px, 7.2vw, 32px); letter-spacing: 0.05em; }
  .page-head h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .sec-head h2 { font-size: clamp(22px, 6.4vw, 28px); }
  .facts dd { font-size: 16px; }
  .cases-more { text-align: left; }
  .cases-more::before { margin-left: 0; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .gate { padding: 24px 18px; }
  .hero h1 { font-size: 26px; letter-spacing: 0.05em; }
  .hero-cta .btn { padding-inline: 12px; font-size: 14px; }
  .facts div { grid-template-columns: 5.6em minmax(0, 1fr); gap: 10px; }
  .facts dd { font-size: 15px; }
}
/* iPhone notch / home indicator in landscape */
@supports (padding: max(0px)) {
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

/* hero slide 5: the logo alone on white (no frame, no text, no dark veil) */
.hero-img-logo { box-sizing: border-box; object-fit: contain; object-position: center; background: #fff; padding: clamp(24px, 6vw, 72px) max(24px, calc((100% - 640px) / 2)); }
.hero::after { transition: opacity .9s ease; }
.gate { transition: border-color .7s ease, background-color .7s ease; }
.gate::before, .gate::after { transition: opacity .7s ease; }
.hero.is-plain::after { opacity: 0; }
.hero.is-plain .gate { border-color: transparent; background-color: transparent; }
.hero.is-plain .gate::before, .hero.is-plain .gate::after { opacity: 0; }
.hero.is-plain .hero-dots .dot::before { background: rgba(1, 0, 40, .25); }
.hero.is-plain .hero-dots .dot:hover::before { background: rgba(1, 0, 40, .5); }
.hero.is-plain .hero-dots .dot.is-active::before { background: var(--ultra); }
.hero-dots .dot::before { transition: background .7s ease, transform .3s; }

/* ================= phones: tabs and buttons never spill ================= */
.only-sp { display: none; }
.btn, .tab, .nav-cta, .menu-btn, .lang-btn { min-width: 0; max-width: 100%; }
.btn .chev, .btn svg { flex-shrink: 0; }
@media (max-width: 599px) {
  .only-pc { display: none; }
  .only-sp { display: inline; }
  /* buttons: full width, text centred, wraps between phrases rather than overflowing */
  .btn { width: 100%; padding-inline: 14px; gap: 8px; font-size: 15px; letter-spacing: 0.02em; white-space: normal; overflow-wrap: anywhere; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { width: 100%; padding-inline: 14px; }
  /* tab strips: equal columns that always fit the screen */
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tabs[data-news-filter], .tabs-news { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tab { width: 100%; padding: 0 4px; font-size: 14px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs[data-news-filter] .tab, .tabs-news .tab { font-size: 13px; }
  a.tab { display: flex; align-items: center; justify-content: center; text-decoration: none; }
  /* in-page menu (company page): one tidy row */
  .local-nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .local-nav a { padding: 14px 0; margin-right: 0; font-size: 13px; letter-spacing: 0; white-space: nowrap; }
  /* header */
  .site-header .wrap { gap: 8px; }
  .lang-btn { padding-inline: 10px; }
  .menu-btn { padding: 0 10px; gap: 6px; font-size: 13px; letter-spacing: 0; }
  .choices { gap: 4px 16px; }
}
@media (max-width: 374px) {
  .brand img { height: 36px; }
  .btn { font-size: 14px; padding-inline: 10px; letter-spacing: 0; }
  .tabs[data-news-filter] .tab, .tabs-news .tab { font-size: 12px; }
  .local-nav a { font-size: 12px; }
}
@media (max-width: 339px) {
  .menu-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { padding: 0 12px; }
}

/* phone / tablet hero: no empty bands. The frame is exactly as tall as the slide's content
   and eases to the next height; text settles in with a short, soft rise */
@media (max-width: 899px) {
  .hero .gate { overflow: hidden; transition: height .65s cubic-bezier(.22, .61, .36, 1), border-color .7s ease, background-color .7s ease; will-change: height; }
  .hero.is-live .hero-copy .line.is-active, .hero.is-live [data-slide-only]:not(.is-off) { animation: gg-rise .7s cubic-bezier(.22, .61, .36, 1) both; }
  .hero.is-live .hero-leads > [data-slide-only]:not(.is-off) { animation-delay: .08s; }
  .hero.is-live .hero-extra > [data-slide-only]:not(.is-off) { animation-delay: .16s; }
  .hero-dots { padding-top: 14px; }
  .hero .wrap { padding-block: clamp(20px, 5vw, 40px); }
}
@media (max-width: 599px) {
  .hero .gate { padding: 26px 22px 18px; }
  .hero h1 { line-height: 1.4; }
  .hero-leads { margin-top: 14px; }
  .hero .lead { font-size: 15px; line-height: 1.85; }
  .hero-extra { margin-top: 20px; }
  .hero .lead-title { margin-bottom: 6px; }
  .hero-cta { gap: 12px; }
}
@keyframes gg-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .gate { transition: none; }
  .hero.is-live .hero-copy .line.is-active, .hero.is-live [data-slide-only]:not(.is-off) { animation: none; }
}

.btn .nw .chev { margin-left: 8px; vertical-align: -1px; }

@media (max-width: 599px) { .btn { flex-wrap: wrap; row-gap: 0; column-gap: 6px; } }

.feature .mag-ja { font-family: var(--f-mincho); font-weight: 600; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: 0.08em; }

/* ================= phone / tablet first view: picture banner =================
   Same idea as the previous corporate site: a full-width picture at a fixed ratio that
   cross-fades every 3 seconds, with only the headline over it. No frame, no long text. */
@media (max-width: 899px) {
  .hero { aspect-ratio: 16 / 9; }
  .hero .wrap { position: absolute; inset: 0; max-width: none; min-height: 0; padding: 0; display: block; }
  .hero .gate { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; height: auto !important; min-height: 0 !important;
    display: block; overflow: visible; padding: 0 var(--gutter) 10px; border: 0; background: none; transition: none; }
  .hero .gate::before, .hero .gate::after { display: none; }
  .hero-leads, .hero-extra { display: none; }
  .hero-copy { display: grid; margin-top: 0; }
  .hero-copy .line:not(.is-active) { display: block; }
  .hero.is-live .hero-copy .line.is-active { animation: none; }
  .hero-copy .line { transition: opacity .9s ease; }
  .hero h1 { font-size: clamp(22px, 5.6vw, 40px); line-height: 1.4; letter-spacing: 0.08em; text-shadow: 0 1px 14px rgba(1, 0, 40, .55); }
  .hero-copy .en { font-size: 0.82em; }
  .hero::after { background: linear-gradient(to top, rgba(1, 0, 40, .78) 0%, rgba(1, 0, 40, .38) 38%, rgba(1, 0, 40, .08) 72%, rgba(1, 0, 40, .12) 100%); }
  .hero-img { object-position: center; }
  .hero-dots { margin: 6px 0 0 -12px; padding-top: 0; }
  .hero-img-logo { padding: 9% 14% 13%; }
}
@media (max-width: 599px) {
  .hero { aspect-ratio: 5 / 4; }
  .hero .gate { padding: 0 var(--gutter) 6px; }
  .hero-img-logo { padding: 12% 10% 16%; }
}
/* landscape phones: keep the banner inside the screen */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .hero { aspect-ratio: auto; height: calc(100vh - 72px); min-height: 240px; }
}

/* phone / tablet: the three destinations of the hero, always visible right under the banner */
.hero-links { display: none; }
@media (max-width: 899px) {
  .hero-links { display: block; background: var(--ultra-deep); color: #fff; }
  .hero-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-links li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
  .hero-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 76px; padding: 14px 16px; color: #fff; text-decoration: none; }
  .hero-links li:first-child a { padding-left: 0; }
  .hero-links li:last-child a { padding-right: 0; }
  .hero-links .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .hero-links .note { font-size: 12px; line-height: 1.5; color: #ffe27a; letter-spacing: 0.04em; }
  .hero-links .ttl { font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: 0.03em; }
  .hero-links .chev { flex-shrink: 0; transition: transform .2s; }
  .hero-links a:hover .chev, .hero-links a:active .chev { transform: translateX(3px); }
  .hero-links a:active { background: rgba(255, 255, 255, .06); }
}
@media (max-width: 599px) {
  .hero-links ul { grid-template-columns: 1fr; }
  .hero-links li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .hero-links a, .hero-links li:first-child a, .hero-links li:last-child a { min-height: 68px; padding: 12px 0; }
  .hero-links .note { font-size: 13px; }
  .hero-links .ttl { font-size: 16px; }
}

/* hero motto: same size as the slide titles (QUALITY & DESIGN / BORDERLESS) */
.hero .motto { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }

/* header / footer logo: the door artwork from the 5th hero slide, in its original proportions */
.brand img { height: 84px; width: auto; }
.site-header .wrap { min-height: 108px; }
.site-footer .co img { height: 76px; width: auto; }
@media (max-width: 1140px) { .brand img { height: 66px; } .site-header .wrap { min-height: 84px; } }
@media (max-width: 420px) { .brand img { height: 58px; } .site-header .wrap { min-height: 76px; } }
@media (max-width: 339px) { .brand img { height: 50px; } .site-header .wrap { min-height: 68px; } }

/* ================= desktop hero: no empty bands inside the frame =================
   Only the current slide's text takes up room, so headline, text and button sit together.
   The frame eases to each slide's height and stays vertically centred in a hero of fixed height. */
@media (min-width: 900px) {
  .hero .wrap { align-items: center; padding-block: 56px; }
  .hero .gate { width: 100%; max-width: 720px; overflow: hidden; padding: 44px 52px 30px;
    transition: height .7s cubic-bezier(.22, .61, .36, 1), border-color .7s ease, background-color .7s ease; }
  .hero-copy, .hero-leads, .hero-extra { display: block; }
  .hero-copy .line:not(.is-active), .hero [data-slide-only].is-off { display: none; }
  .hero.is-live .hero-copy .line.is-active, .hero.is-live [data-slide-only]:not(.is-off) { animation: gg-rise .7s cubic-bezier(.22, .61, .36, 1) both; }
  .hero.is-live .hero-leads > [data-slide-only]:not(.is-off) { animation-delay: .08s; }
  .hero.is-live .hero-extra > [data-slide-only]:not(.is-off) { animation-delay: .16s; }
  .hero h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.4; }
  .hero-leads { margin-top: 22px; }
  .hero .lead { line-height: 1.9; }
  .hero-extra { margin-top: 26px; }
  .hero .lead-title { margin-bottom: 8px; }
  .hero .gate { display: flex; flex-direction: column; }
  .hero-dots { margin-top: auto; padding-top: 22px; margin-bottom: -8px; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero .gate { transition: none; }
  .hero.is-live .hero-copy .line.is-active, .hero.is-live [data-slide-only]:not(.is-off) { animation: none; }
}

/* ================= header that fits any language (classes set by site.js) ================= */
html.nav-tight .global-nav { gap: 18px; }
html.nav-tight .global-nav ul { gap: 16px; }
html.nav-tight .global-nav ul a { font-size: 14px; letter-spacing: 0; }
html.nav-tight .nav-cta { padding: 0 14px; font-size: 13px; }
html.nav-tight .site-header .wrap { gap: 16px; }
html.nav-fold .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
html.nav-fold .global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
html.nav-fold .global-nav.is-open { display: flex; }
html.nav-fold .global-nav ul { flex-direction: column; gap: 0; }
html.nav-fold .global-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
html.nav-fold .global-nav ul a:hover, html.nav-fold .global-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
html.nav-fold .nav-cta { margin-top: 16px; justify-content: center; }
/* inside the folded menu long labels wrap instead of running off */
html.nav-fold .global-nav ul a, html.nav-fold .nav-cta { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1140px) { .global-nav ul a, .nav-cta { white-space: normal; overflow-wrap: anywhere; } .nav-cta { padding-block: 10px; text-align: center; } }
.global-nav.is-open { max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
/* narrow screens with long labels: menu button becomes an icon, language name is shortened */
html.hdr-min .menu-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.hdr-min .menu-btn { padding: 0 12px; }
.lang-label { display: inline-block; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; line-height: 1.5; }
html.hdr-min .lang-label { max-width: 5.5em; }
html.hdr-min2 .lang-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.hdr-min2 .lang-btn { padding: 0 9px; }

/* ================= any language, any width =================
   Japanese copy is short and never needs to break inside a word; translated copy can be
   2-3x longer with very long words. Text may therefore always break rather than spill,
   and "keep on one line" hints only apply to the Japanese original. */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, dt, th, td, summary, label, figcaption, .btn, .tab, .door .t, .lead-title { overflow-wrap: anywhere; }
html[class*="translated-"] .nw, html:not([lang^="ja"]) .nw { white-space: normal; }
html[class*="translated-"] body, html:not([lang^="ja"]) body { -webkit-hyphens: auto; hyphens: auto; }
html[class*="translated-"] h1, html[class*="translated-"] h2, html[class*="translated-"] h3,
html:not([lang^="ja"]) h1, html:not([lang^="ja"]) h2, html:not([lang^="ja"]) h3 { letter-spacing: 0.01em; word-break: normal; line-height: 1.32; }
html[class*="translated-"] .hero-copy .line, html:not([lang^="ja"]) .hero-copy .line { letter-spacing: 0.02em; }
/* grid / flex children may shrink below their longest word */
main :where(div, section, article, li, dl, dd, dt, figure, a, p, h1, h2, h3, h4, table) { min-width: 0; }
img, svg, video, iframe { max-width: 100%; }
/* tabs: labels wrap onto a second line instead of being cut off */
.tab { height: auto; padding-block: 9px; line-height: 1.3; text-align: center; }
@media (max-width: 599px) {
  .tab { white-space: normal; overflow: visible; text-overflow: clip; padding: 9px 6px; }
  html[class*="translated-"] .tabs[data-news-filter], html[class*="translated-"] .tabs-news,
  html:not([lang^="ja"]) .tabs[data-news-filter], html:not([lang^="ja"]) .tabs-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[class*="translated-"] .local-nav ul, html:not([lang^="ja"]) .local-nav ul { flex-wrap: wrap; justify-content: flex-start; gap: 0 18px; }
  html[class*="translated-"] .local-nav a, html:not([lang^="ja"]) .local-nav a { white-space: normal; padding: 10px 0; }
}
/* FAQ rows: the +/- mark keeps its place however long the question is */
summary { gap: 12px; }
summary .pm { flex: 0 0 auto; }
/* tables scroll inside themselves on very small screens instead of widening the page */
.table-wrap, .facts { max-width: 100%; }

/* ================= language menu: all languages at a glance =================
   A grid instead of one long list: 3 columns on desktop / tablet, 2 on phones, where the
   panel spans the screen under the header. Reading order (left to right) keeps priority. */
.lang-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: min(540px, calc(100vw - 24px)); min-width: 0; max-height: min(78vh, 620px); max-height: min(78dvh, 620px); padding: 8px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lang-menu li { min-width: 0; }
.lang-menu button { min-height: 44px; padding: 8px 10px; overflow-wrap: anywhere; }
.lang-menu .lang-note { grid-column: 1 / -1; }
@media (max-width: 899px) {
  .lang-menu { width: min(480px, calc(100vw - 24px)); }
}
@media (max-width: 599px) {
  .site-header .lang { position: static; }
  .lang-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); left: 12px; right: 12px; top: calc(100% + 6px); width: auto; transform: none; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
}
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .lang-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
}
