/* ============================================================
   gigaSPG prototype, shared stylesheet.
   The look is mockups/v2-personal.html ("The company with a face"):
   warm paper ground, ink, deep navy, brand blue, orange reserved
   for one CTA and the one hand-mark. Tokens are V2's, unchanged.
   ============================================================ */

:root{
  --font-sans: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-serif: "Noto Serif CJK JP", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-mono: "Noto Sans Mono CJK JP", ui-monospace, monospace;

  /* ground */
  --paper:      #FAF7F2;
  --paper-warm: #F5F0E7;
  --paper-deep: #EFE8DC;
  --sheet:      #FDFBF7;

  /* ink */
  --ink:        #1F2933;
  --ink-soft:   #46525E;
  --ink-mute:   #5E6874;

  /* brand */
  --navy:       #0A3D62;
  --navy-deep:  #072B45;
  --blue:       #00A3DA;   /* rules, marks, decorative only */
  --blue-link:  #06718F;   /* text-safe darkening of #00A3DA (AA on paper) */
  --orange:     #EB8B2E;   /* the single CTA + the one hand-mark */
  --orange-edge:#C4720F;
  --seal:       #B23A2B;

  --rule:       rgba(31,41,51,.13);
  --rule-soft:  rgba(31,41,51,.08);
  --line-strong:#7E95A9;   /* a visible line in the navy family: table cells */

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  --wrap: 1140px;
  --shadow-sheet: 0 1px 2px rgba(31,41,51,.05), 0 2px 6px rgba(31,41,51,.05), 0 24px 48px -22px rgba(31,41,51,.30);
  --shadow-card: 0 1px 2px rgba(31,41,51,.05), 0 10px 24px -16px rgba(31,41,51,.28);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

/* ---------- bilingual mechanism: only ever hide, never force display back on ---------- */
[data-lang="ja"] [data-l="en"]{ display:none; }
[data-lang="en"] [data-l="ja"]{ display:none; }

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:96px; }
body{
  margin:0;
  background-color:var(--paper);
  background-image:var(--grain);
  color:var(--ink);
  font-family:var(--font-serif);
  font-size:18px;
  line-height:1.9;
  overflow-x:hidden;
  text-align:left;
  font-feature-settings:"palt" 0;
}
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3,h4{ font-family:var(--font-serif); color:var(--navy); font-weight:600; line-height:1.55; margin:0; letter-spacing:.01em; }
p{ margin:0 0 1.1em; text-wrap:pretty; }
p:last-child{ margin-bottom:0; }
a{ color:var(--blue-link); text-underline-offset:.25em; text-decoration-thickness:1px; }
a:hover{ color:var(--navy); }
:focus-visible{ outline:2px solid var(--blue-link); outline-offset:3px; border-radius:2px; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--s5); }
/* Japanese has no spaces, so a heading would break mid-word: a phrase wrapped in .nb moves to the next line whole */
.nb{ display:inline-block; }
/* a telephone number is never broken, whatever the hyphens or spaces in the text a dashboard sets */
a[href^="tel:"]{ white-space:nowrap; }
/* the company name is written gigaSPG, also on a line that is set in capitals */
.as-written{ text-transform:none; }
.sr{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }

/* the shared parts are custom elements (see site.js); they are plain blocks */
giga-header,giga-footer,giga-sender,giga-signature{ display:block; }

/* ---------- section rhythm ---------- */
section{ padding-block:var(--s9); position:relative; }
/* the first section of a page without a hero sits closer to the header */
.page-top{ padding-top:var(--s7); }
@media (max-width:560px){ .page-top{ padding-top:var(--s5); } }
section.tint{ background:linear-gradient(180deg, rgba(239,232,220,.55), rgba(239,232,220,.30)); }
.sec-head{ margin-bottom:var(--s7); max-width:820px; }
h2.sec-title,h1.sec-title{ font-size:clamp(27px,3.4vw,38px); letter-spacing:.02em; }
.sec-lead{ margin-top:var(--s4); color:var(--ink-soft); font-size:19px; max-width:66ch; }
.sub-title{ font-size:22px; margin-top:var(--s8); }
@media (max-width:640px){ section{ padding-block:var(--s8); } }

/* no motion: the page stands still, as a Japanese corporate site does; a reader who asks for less motion also gets no smooth scrolling */
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

/* ---------- a note for the preview only: shown when _mockup-notice.js has marked the page (never on the live site) ---------- */
html:not(.preview) [data-preview]{ display:none !important; }

/* ---------- the dashboard demo's content is on show (content.js): a bar on top of the page ---------- */
.demo-bar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:var(--s2) var(--s4); padding:var(--s3) var(--s4);
  background:#FFF3D6; border-bottom:1px solid #E9C46A; color:var(--ink); font-family:var(--font-sans); font-size:15px; line-height:1.6; text-align:center; }
.demo-bar button{ font:inherit; font-weight:600; color:var(--navy); background:#fff; border:1px solid var(--navy); border-radius:2px; padding:2px var(--s3); cursor:pointer; }
.demo-bar button:hover{ background:var(--navy); color:#fff; }

/* ---------- a fact the client has not supplied yet: always visibly a placeholder ---------- */
.todo{
  display:inline-block; font-family:var(--font-sans); font-size:15px; font-weight:600; line-height:1.6;
  color:var(--ink-mute); white-space:nowrap; padding:1px 9px; border-radius:2px;
  border:1px dashed rgba(31,41,51,.5);
  background:repeating-linear-gradient(-45deg, transparent 0 6px, rgba(31,41,51,.05) 6px 12px);
}

/* ================= header ================= */
giga-header{ position:sticky; top:0; z-index:60; --head-h:79px; }   /* the bar and its rule: the burger menu fills what is left of the screen */
.site-head{
  background:rgba(250,247,242,.94);
  backdrop-filter:saturate(1.1) blur(8px);
  border-bottom:1px solid var(--rule);
}
.head-in{ display:flex; align-items:center; gap:var(--s5); min-height:78px; }
.brand{ display:flex; align-items:center; gap:14px; flex:none; text-decoration:none; }
.brand img{ width:118px; height:auto; }
.head-spacer{ flex:1; }
.mainnav{ flex:none; }
.mainnav ul{ list-style:none; display:flex; gap:var(--s5); margin:0; padding:0; }
.mainnav a,.sub-btn{
  font-family:var(--font-sans); font-size:16px; color:var(--ink); text-decoration:none; white-space:nowrap;
  min-height:48px; min-width:48px; padding:0 2px; display:inline-flex; align-items:center; justify-content:center;
  border-block:2px solid transparent; line-height:1.6;
}
.mainnav a:hover,.sub-btn:hover,.has-sub.open .sub-btn{ color:var(--navy); border-bottom-color:var(--blue); }
.mainnav a[aria-current],.has-sub .sub-btn[aria-current]{ color:var(--navy); font-weight:600; border-bottom-color:var(--navy); }

/* ---------- the company group: one entry that opens a panel of its pages ---------- */
.has-sub{ position:relative; }
.sub-btn{ border-inline:0; background:none; cursor:pointer; gap:7px; }
.sub-btn svg{ flex:none; transition:transform .18s ease; }
.has-sub.open .sub-btn svg{ transform:rotate(180deg); }
.sub-label{ display:none; }
/* The panel hangs from the entry and is laid over the page, so opening it moves nothing. Its top
   padding is see-through: it carries the pointer from the entry down to the card without a gap. */
.sub{
  display:none; position:absolute; top:100%; left:calc(-1 * var(--s5)); padding-top:15px;
  width:max-content; max-width:min(440px, calc(100vw - 2 * var(--s5)));
}
.has-sub.open .sub{ display:block; }
.mainnav .sub ul{
  display:block; padding:var(--s1) 0;
  background:var(--sheet); border:1px solid var(--rule); border-top:3px solid var(--navy); border-radius:2px;
  box-shadow:var(--shadow-sheet);
}
.mainnav .sub li + li{ border-top:1px solid var(--rule-soft); }
.mainnav .sub a{
  display:block; white-space:nowrap; min-height:0; border:0;
  padding:var(--s3) var(--s5); box-shadow:inset 3px 0 0 transparent;
}
.mainnav .sub a:hover{ background:var(--paper-warm); }
.mainnav .sub a[aria-current]{ background:var(--paper-warm); box-shadow:inset 3px 0 0 var(--navy); }
@media (prefers-reduced-motion:reduce){ .sub-btn svg{ transition:none; } }
.langsw{ display:flex; border:1px solid var(--rule); border-radius:2px; overflow:hidden; flex:none; background:var(--sheet); }
.langsw button{
  font-family:var(--font-sans); font-size:15px; font-weight:600; letter-spacing:.06em;
  min-height:48px; min-width:52px; padding:0 12px; border:0; background:transparent; color:var(--ink-mute); cursor:pointer;
}
.langsw button + button{ border-left:1px solid var(--rule); }
.langsw button[aria-pressed="true"]{ background:var(--navy); color:#fff; }
/* contact: the one button in the bar, at its right end */
.site-head .head-contact{ font-size:16px; min-height:48px; padding:0 20px; flex:none; background:var(--navy); color:#fff; white-space:nowrap; }
.site-head .head-contact:hover,.site-head .head-contact[aria-current]{ background:var(--navy-deep); color:#fff; }
.nav-contact{ display:none; }
.burger{ display:none; width:48px; height:48px; border:1px solid var(--rule); background:var(--sheet); border-radius:2px; cursor:pointer; padding:0; align-items:center; justify-content:center; flex:none; }
.burger .bar{ display:block; width:20px; height:1.5px; background:var(--ink); position:relative; }
.burger .bar::before,.burger .bar::after{ content:""; position:absolute; left:0; width:20px; height:1.5px; background:var(--ink); }
.burger .bar::before{ top:-6px; } .burger .bar::after{ top:6px; }

/* the bar needs 1031px in English (the wider bar), so below 1101px the four entries go into the burger menu; the switch and the contact button stay in the bar */
@media (max-width:1100px){
  .head-in{ gap:var(--s4); }
  .burger{ display:flex; }
  .mainnav{
    position:absolute; left:0; right:0; top:100%;
    background:var(--paper); border-bottom:1px solid var(--rule);
    box-shadow:var(--shadow-card); display:none; padding:var(--s3) var(--s5) 0;
  }
  .mainnav.open{ display:block; }
  /* The menu may fill the screen below the bar and scrolls inside itself when it is taller. The list ends in 72px of
     room, the height of the strip where a phone's browser bar and this prototype's design-proposal badge sit, so the
     last link can always be scrolled clear of them. It is the list's padding: a scroller's own does not scroll everywhere. */
  .mainnav{ max-height:calc(100vh - var(--head-h)); max-height:calc(100dvh - var(--head-h)); overflow-y:auto; overscroll-behavior:contain; }
  .mainnav ul{ flex-direction:column; gap:0; }
  .mainnav > ul{ padding-bottom:72px; }
  .mainnav a{ display:flex; justify-content:flex-start; padding:14px 0; border-top:0; border-bottom:1px solid var(--rule-soft); }
  .mainnav a:hover,.mainnav a[aria-current]{ border-bottom-color:var(--rule-soft); }

  /* no second level to open: the group is a quiet label and its pages, listed under it behind one thin rule */
  .sub-btn{ display:none; }
  .sub-label{ display:block; font-family:var(--font-sans); font-size:15px; font-weight:600; letter-spacing:.06em; color:var(--ink-mute); line-height:1.6; padding:var(--s4) 0 var(--s2); }
  .sub,.has-sub.open .sub{ display:block; position:static; padding:0; width:auto; max-width:none; }
  .has-sub{ border-bottom:1px solid var(--rule-soft); padding-bottom:var(--s2); }
  .mainnav .sub ul{ padding:0; background:none; border:0; border-left:2px solid var(--rule); border-radius:0; box-shadow:none; }
  .mainnav .sub li + li{ border-top:0; }
  .mainnav .sub a{ padding:var(--s2) 0 var(--s2) var(--s4); min-height:48px; }
  .mainnav .sub a:hover{ background:none; }
  .mainnav .sub a[aria-current]{ background:none; box-shadow:inset 3px 0 0 var(--navy); }
}
/* a phone has no room for the button beside logo, switch and burger: contact moves into the menu */
@media (max-width:640px){
  .site-head .head-contact{ display:none; }
  .nav-contact{ display:block; }
}
@media (max-width:480px){
  giga-header{ --head-h:71px; }
  .head-in{ gap:var(--s3); min-height:70px; }
  .wrap{ padding-inline:var(--s4); }
  .brand img{ width:96px; }
  .langsw button{ min-width:44px; padding:0 7px; letter-spacing:0; }
}

/* ================= buttons ================= */
.btn{
  font-family:var(--font-sans); font-weight:700; font-size:18px; line-height:1.4;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:56px; padding:14px 30px; border-radius:3px; text-decoration:none; cursor:pointer; border:1px solid transparent;
  transition:background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary{ background:var(--orange); border-color:var(--orange-edge); color:#16212B; box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 8px 18px -12px rgba(196,114,15,.9); }
.btn-primary:hover{ background:#F09A45; color:#16212B; }
.btn-navy{ background:var(--navy); border-color:var(--navy); color:#fff; }
.btn-navy:hover{ background:var(--navy-deep); border-color:var(--navy-deep); color:#fff; }
.btn-quiet{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn-quiet:hover{ background:var(--navy); color:#fff; }
.btn svg{ flex:none; }

/* ================= the letter (CEO message) ================= */
.hero{ padding-block:var(--s7) var(--s9); }

.sheet{
  position:relative; background:var(--sheet); background-image:var(--grain);
  border:1px solid rgba(31,41,51,.09); border-radius:2px;
  box-shadow:var(--shadow-sheet);
  padding:clamp(28px,4.4vw,58px) clamp(24px,4.6vw,66px) clamp(30px,4vw,50px);
}
.sheet::before{ /* stationery margin rule */
  content:""; position:absolute; left:clamp(14px,2.2vw,30px); top:22px; bottom:22px; width:1px;
  background:linear-gradient(180deg, transparent, rgba(0,163,218,.22) 12%, rgba(0,163,218,.22) 88%, transparent);
}
.sheet::after{ /* soft folded-edge shadow at the top */
  content:""; position:absolute; left:6%; right:6%; top:-1px; height:14px; border-radius:50%;
  background:radial-gradient(50% 100% at 50% 0%, rgba(31,41,51,.10), transparent 70%); pointer-events:none;
}

h1.hero-title{
  font-size:clamp(27px,3.3vw,38px); line-height:1.55; letter-spacing:.015em; color:var(--navy-deep);
  margin-bottom:var(--s5); font-weight:600; text-wrap:balance;
}
.letter-body{ font-size:19px; line-height:2.0; color:var(--ink); max-width:62ch; }
.letter-body .salute{ font-weight:600; color:var(--navy); }
.closing{ text-align:left; font-size:19px; color:var(--navy); margin-top:var(--s4); }

/* hand-mark emphasis (the one orange highlight) */
.mark{ position:relative; white-space:nowrap; font-weight:600; color:var(--navy-deep); }
.mark .mark-line{ position:absolute; left:-2px; bottom:-9px; width:calc(100% + 4px); height:11px; }

.sign-block{ margin-top:var(--s6); padding-top:var(--s5); border-top:1px solid var(--rule); display:flex; align-items:center; gap:var(--s5); flex-wrap:wrap; }
.sign-svg{ width:min(310px,74vw); height:auto; flex-basis:100%; }   /* the real signature, once supplied */
.sign-seal{ width:36px; height:auto; flex:none; }
.sign-name{ font-family:var(--font-sans); font-size:16px; color:var(--ink-mute); line-height:1.7; }
.sign-name strong{ display:block; font-family:var(--font-serif); font-size:24px; color:var(--navy); font-weight:600; letter-spacing:.06em; }


/* ---------- right rail ---------- */
.rail-card{
  background:var(--sheet); border:1px solid var(--rule); border-radius:2px;
  box-shadow:var(--shadow-card); padding:var(--s5);
}

/* the sender: the real portrait as a small print, never shown above its natural 139px */
.sender{ display:flex; align-items:center; gap:var(--s5); }
.portrait-print{
  flex:none; width:120px; background:#fff; padding:6px; border:1px solid rgba(31,41,51,.10);
  box-shadow:var(--shadow-card); transform:rotate(-1.4deg);
}
.sender-name{ font-family:var(--font-sans); font-size:16px; color:var(--ink-mute); line-height:1.7; margin:0; }
.sender-name strong{ display:block; font-family:var(--font-serif); font-size:20px; color:var(--navy); font-weight:600; letter-spacing:.04em; line-height:1.6; }


/* ---------- the CEO message page: one sheet, the sender floated top right, the letter around it ---------- */
.letter-page .letter-body{ max-width:none; }
.letter-page > giga-sender{ float:right; width:240px; margin:0 0 var(--s5) var(--s6); }
.letter-page .rail-card.sender{ flex-direction:column; align-items:flex-start; gap:var(--s3); padding:0; background:none; border:0; box-shadow:none; }
/* above the photo's natural 139px: it needs a larger original to stay sharp at this size */
.letter-page .portrait-print{ width:220px; padding:8px; }
.letter-page .closing{ clear:right; }

@media (max-width:560px){
  .hero{ padding-block:var(--s4) var(--s8); }
  .rail-card.sender{ padding:var(--s4); gap:var(--s4); }
  .portrait-print{ width:88px; padding:5px; }
  h1.hero-title{ margin-bottom:var(--s4); }
  .letter-body,.closing{ font-size:18px; line-height:1.9; }
  .sign-block{ margin-top:var(--s4); padding-top:var(--s4); gap:var(--s4); flex-wrap:nowrap; }
  .sign-name strong{ font-size:19px; letter-spacing:.04em; }
  .sign-seal{ width:32px; }
  /* too narrow to flow text beside the portrait: portrait and name sit side by side above the letter */
  .letter-page > giga-sender{ float:none; display:block; width:auto; margin:0 0 var(--s5); }
  .letter-page .rail-card.sender{ flex-direction:row; align-items:center; gap:var(--s4); }
  .letter-page .portrait-print{ width:110px; padding:5px; }
}


/* ================= front page ================= */

/* ---------- hero: the photograph, the sentence laid over its darker left side ---------- */
/* the hero sits close under the header; every section after it keeps the site's one padding */
.home-hero{ padding-block:var(--s5) 0; }
.hh{ position:relative; margin:0; border-radius:6px; overflow:hidden; box-shadow:var(--shadow-sheet); background:var(--navy-deep); }
.hh img{ display:block; width:100%; height:clamp(340px, 36vw, 420px); object-fit:cover; object-position:60% 50%; }
.hh-text{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center;
  padding:var(--s6) clamp(24px, 5vw, 64px); max-width:min(640px, 70%);
  color:#fff;
}
.hh::after{   /* the shade that carries the text; the plant on the right stays clear */
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(90deg, rgba(7,43,69,.88) 0%, rgba(7,43,69,.70) 38%, rgba(7,43,69,.15) 70%, rgba(7,43,69,0) 85%);
}
.hh-text{ z-index:1; }
.hh-title{ font-size:clamp(28px, 3.4vw, 42px); line-height:1.5; color:#fff; font-weight:600; letter-spacing:.02em; margin:0; text-wrap:balance; }
.hh-lead{ font-size:18px; line-height:1.9; color:#E3EDF3; margin:var(--s4) 0 0; max-width:34em; }
@media (max-width:700px){
  /* too narrow to read over the photograph: the sentence sits on navy under it */
  .hh img{ height:220px; }
  .hh::after{ display:none; }
  .hh-text{ position:static; max-width:none; padding:var(--s5); }
  .hh-lead{ font-size:17px; }
}

/* ---------- track record: heading and text side by side, the figures on a navy band ---------- */
.tr-head{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:var(--s5) var(--s7); align-items:start; margin-bottom:var(--s7); }
.tr-head .sec-title{ margin:0; }
.tr-lead{
  margin:0; padding-left:var(--s5); border-left:3px solid var(--orange);
  font-size:18px; line-height:1.95; color:var(--ink-soft);
}
@media (max-width:900px){ .tr-head{ grid-template-columns:minmax(0,1fr); } }

/* the four figures in a plain row between two rules; the + stands on the number's line, at its size */
.figs{ display:grid; grid-template-columns:repeat(var(--n,4),1fr); gap:0; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.fig{ padding:var(--s6) var(--s4); text-align:center; border-left:1px solid var(--rule-soft); }
.fig:first-child{ border-left:0; }
.fig .n{ font-family:var(--font-serif); font-size:clamp(38px,5vw,56px); color:var(--navy); line-height:1.15; font-weight:600; letter-spacing:.01em; white-space:nowrap; }
.fig .plus{ color:var(--orange-edge); }
.fig .n .u{ font-size:.45em; margin-left:.15em; color:var(--ink-soft); }
.fig .lbl{ font-family:var(--font-sans); font-size:16px; color:var(--ink-mute); margin-top:var(--s2); line-height:1.7; }
/* one to six figures (content/texts.json sets --n and data-n): five and six get a smaller number so
   they fit in one row; on a narrower screen five and six stand in three columns, and on a phone in two */
.figs[data-n="5"] .fig .n{ font-size:clamp(34px,4.2vw,48px); }
.figs[data-n="6"] .fig .n{ font-size:clamp(30px,3.6vw,42px); }
.figs[data-n="5"] .fig,.figs[data-n="6"] .fig{ padding-inline:var(--s3); }
@media (min-width:761px) and (max-width:1000px){
  .figs[data-n="5"],.figs[data-n="6"]{ grid-template-columns:repeat(3,1fr); }
  .figs[data-n="5"] .fig:nth-child(4),.figs[data-n="6"] .fig:nth-child(4){ border-left:0; }
  .figs[data-n="5"] .fig:nth-child(n+4),.figs[data-n="6"] .fig:nth-child(n+4){ border-top:1px solid var(--rule-soft); }
}
@media (max-width:760px){
  .figs,.figs[data-n="5"],.figs[data-n="6"]{ grid-template-columns:repeat(2,1fr); }
  .figs[data-n="1"]{ grid-template-columns:minmax(0,1fr); }
  .fig,.figs[data-n="5"] .fig,.figs[data-n="6"] .fig{ padding:var(--s5) var(--s3); border-left:0; border-top:0; }
  .fig .n,.figs[data-n="5"] .fig .n,.figs[data-n="6"] .fig .n{ font-size:clamp(30px, 8.5vw, 40px); }
  .fig:nth-child(even){ border-left:1px solid var(--rule-soft); }
  .fig:nth-child(n+3){ border-top:1px solid var(--rule-soft); }
  .fig:last-child:nth-child(odd){ grid-column:1 / -1; }
}
/* the second heading of the section: the same size as every section heading, the same gap under it as .sec-head */
.tr-sub{ margin:var(--s8) 0 var(--s7); }

/* ---------- the invitation to get in touch, closing the track record ---------- */
.home-ask{
  display:flex; align-items:center; justify-content:space-between; gap:var(--s5); flex-wrap:wrap;
  margin-top:var(--s7); padding:var(--s5) var(--s6); border-radius:6px;
  background:#EEF3F7; border:1px solid rgba(10,61,98,.16);
}
.home-ask-text{ margin:0; font-family:var(--font-serif); font-size:clamp(20px, 2vw, 24px); font-weight:600; line-height:1.6; color:var(--navy); flex:1 1 420px; }
.home-ask .btn{ font-size:16px; min-height:48px; padding:0 20px; }
@media (max-width:560px){ .home-ask{ padding:var(--s5); } .home-ask .btn{ width:100%; } }

/* ---------- projects: the overview map beside a card per project page ---------- */
giga-project-figure{ display:inline; }
giga-project-overview{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:var(--s5); align-items:center; }
.ov-map{
  margin:0; display:flex; flex-direction:column; background:var(--sheet); border:1px solid var(--rule); border-radius:6px;
  box-shadow:var(--shadow-card); padding:var(--s4) var(--s4) var(--s3);
}
/* map.js draws a square view; on the front page at most 460 pixels, centred in its card */
.ov-map svg{ display:block; width:100%; height:auto; aspect-ratio:1 / 1; max-width:460px; margin-inline:auto; border-radius:3px; }
/* the map: a pale sea, white land, hairline prefecture borders (line widths set by map.js, for its zoom) */
.ov-sea{ fill:#E3EBF0; }
.ov-land{ fill:var(--sheet); stroke:var(--line-strong); stroke-linejoin:round; }
.ov-borders{ fill:none; stroke:#D3DCE3; stroke-linejoin:round; }
/* the locator in the top-left corner: all of Japan, the part shown framed in navy */
.ov-locator{ pointer-events:none; }
.ov-loc-sheet{ fill:var(--sheet); stroke:var(--line-strong); }
.ov-loc-land{ fill:#C5D2DC; }
.ov-loc-view{ fill:none; stroke:var(--navy); }
/* the colours of the three groups, shared by dot and card */
.is-sold{ --grp:var(--navy); }
.is-for_sale{ --grp:var(--orange-edge); }
.is-bought{ --grp:var(--blue-link); }
.ov-seg path{ fill:var(--grp); stroke:var(--sheet); }
.ov-hole{ fill:var(--sheet); pointer-events:none; }
.ov-n{ fill:var(--navy); font-family:var(--font-sans); font-weight:700; text-anchor:middle; pointer-events:none; }
.ov-lbl{ fill:var(--ink); font-family:var(--font-sans); font-weight:600; paint-order:stroke; stroke:var(--sheet); stroke-linejoin:round; pointer-events:none; }

/* the three cards share the map's height between them */
.ov-cats{ list-style:none; margin:0; padding:0; display:grid; gap:var(--s3); }
/* one card per page: the name, the count under it, the arrow at the right; nothing moves on hover */
.ov-cats a{
  display:flex; align-items:center; justify-content:space-between; gap:var(--s4);
  text-decoration:none; color:var(--ink);
  background:var(--sheet); border:1px solid var(--rule); border-left:5px solid var(--grp); border-radius:6px;
  box-shadow:var(--shadow-card); padding:var(--s4) var(--s5);
}
.ov-cats a:hover{ border-color:rgba(10,61,98,.35); border-left-color:var(--grp); }
/* one group's page: its prefectures as plain rows, the same card without a link */
.ov-cats.is-list{ align-self:start; }
.ovc-row{
  display:flex; align-items:center; justify-content:space-between; gap:var(--s4); flex-wrap:wrap;
  background:var(--sheet); border:1px solid var(--rule); border-left:5px solid var(--grp); border-radius:6px;
  box-shadow:var(--shadow-card); padding:var(--s3) var(--s5);
}
.ovc-row .ovc-count{ padding-left:0; }
.ovc-text{ display:flex; flex-direction:column; gap:var(--s1); min-width:0; }
.ovc-name{ display:flex; align-items:center; gap:var(--s3); font-family:var(--font-serif); font-size:20px; font-weight:600; color:var(--navy); line-height:1.5; }
.ov-cats a:hover .ovc-name{ text-decoration:underline; text-underline-offset:.22em; text-decoration-thickness:1.5px; }
.ov-key{ width:12px; height:12px; border-radius:50%; background:var(--grp); flex:none; }
.ovc-count{ padding-left:calc(12px + var(--s3)); font-family:var(--font-sans); font-size:15px; font-weight:600; color:var(--ink-mute); }
.ovc-count .todo{ font-size:14px; }
.ovc-go{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; flex:none; border-radius:50%; background:var(--grp); color:#fff; }
@media (max-width:900px){
  giga-project-overview{ grid-template-columns:minmax(0,1fr); }
  .ov-cats{ grid-template-rows:none; }
}

/* ================= news ================= */
.news-date{ font-family:var(--font-sans); font-size:16px; color:var(--ink-mute); }
.news-tag{
  font-family:var(--font-sans); font-size:15px; padding:4px 12px; border-radius:2px;
  background:var(--paper-deep); color:var(--navy); white-space:nowrap;
}
/* the news tiles: three to a row, the image with the date and the title under it; the whole tile is the link */
.news-tiles{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:var(--s5); }
.nt{
  display:flex; flex-direction:column; height:100%; text-decoration:none; color:var(--ink);
  background:var(--sheet); border:1px solid var(--rule); border-radius:6px; overflow:hidden; box-shadow:var(--shadow-card);
}
.nt:hover{ border-color:rgba(10,61,98,.35); }
.nt-media{ display:block; aspect-ratio:16/10; background:var(--paper-warm); border-bottom:1px solid var(--rule-soft); }
.nt-media > img{ width:100%; height:100%; object-fit:cover; }
.nt-logo{ display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.nt-logo img{ width:38%; height:auto; }
.nt-body{ display:flex; flex-direction:column; gap:var(--s3); padding:var(--s4) var(--s5) var(--s5); }
.nt-meta{ display:flex; align-items:center; gap:var(--s3); flex-wrap:wrap; }
.nt-meta .news-tag{ font-size:13.5px; padding:2px 10px; }
.nt-ttl{ font-family:var(--font-serif); font-size:19px; font-weight:600; line-height:1.6; color:var(--navy); }
.nt:hover .nt-ttl{ text-decoration:underline; text-underline-offset:.22em; text-decoration-thickness:1.5px; }
@media (max-width:900px){ .news-tiles{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:560px){ .news-tiles{ grid-template-columns:minmax(0,1fr); gap:var(--s4); } }
.news-all{ margin-top:var(--s5); display:inline-flex; align-items:center; gap:10px; min-height:48px; font-family:var(--font-sans); font-size:17px; color:var(--navy); text-decoration:none; border-bottom:1px solid rgba(31,41,51,.2); }
.news-all:hover{ border-color:var(--navy); }

/* ================= footer ================= */
.site-foot{ background:var(--navy-deep); color:#C6D8E3; padding-block:var(--s8) var(--s6); }
/* four columns: the company, the pages, the company pages, the contact facts */
.foot-grid{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,2.1fr) minmax(0,.9fr); gap:var(--s7); }
.foot-nav{ display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.4fr); gap:var(--s7); }
.foot-plate{ background:#fff; display:inline-block; padding:12px 16px; border-radius:2px; }
.foot-plate img{ width:132px; }
.site-foot p{ font-size:16.5px; color:#B7CCD9; line-height:1.9; }
.foot-plate + p{ margin-top:var(--s4); }
.site-foot h2{ color:#fff; font-size:17px; letter-spacing:.08em; margin-bottom:var(--s3); font-family:var(--font-sans); font-weight:600; }
.foot-links{ list-style:none; margin:0; padding:0; }
.foot-links a{ font-family:var(--font-sans); font-size:16.5px; color:#C6D8E3; text-decoration:none; line-height:1.9; display:inline-flex; align-items:center; min-height:48px; min-width:48px; }
.foot-links a:hover{ color:#fff; text-decoration:underline; }
.foot-facts{ margin:0; font-family:var(--font-sans); font-size:16.5px; }
.foot-facts dt{ color:#8FC9E6; font-size:15px; letter-spacing:.06em; }
.foot-facts dd{ margin:var(--s1) 0 var(--s4); }
.foot-facts a{ color:#C6D8E3; text-decoration:none; }
.foot-facts a:hover{ color:#fff; text-decoration:underline; }
.site-foot .todo{ color:#C6D8E3; border-color:rgba(255,255,255,.5); background:repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255,255,255,.07) 6px 12px); }
.foot-bottom{ border-top:1px solid rgba(255,255,255,.14); margin-top:var(--s7); padding-top:var(--s5); }
.foot-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--s3) var(--s5); }
.foot-bottom small{ font-family:var(--font-sans); font-size:15px; color:#9FB8C7; }
.foot-bottom a{ font-family:var(--font-sans); font-size:15px; color:#C6D8E3; }
.foot-links-bottom{ display:flex; flex-wrap:wrap; gap:var(--s3) var(--s5); }
@media (max-width:980px){
  .foot-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .foot-nav{ grid-column:1 / -1; grid-row:2; }
}
@media (max-width:640px){ .foot-grid,.foot-nav{ grid-template-columns:minmax(0,1fr); gap:var(--s6); } .foot-nav{ grid-row:auto; } }
