:root {
  --blue: #124a86;
  --navy: #092847;
  --ink: #14293d;
  --muted: #465b6e;
  --mist: #eef4f9;
  --line: #d7e1ea;
  --header: 78px;
  --gutter: clamp(1.25rem, 4.4vw, 4.75rem);
  font-family: "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", sans-serif;
  color: var(--ink);
  background: white;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body, figure, h1, h2, h3 { margin: 0; }
body { font-size: 1rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2685d1; outline-offset: 4px; }
p { margin: .65em 0 1em; }
address { font-style: normal; }
.wrap { width: min(100% - var(--gutter) * 2, 78rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: white; color: var(--blue); }

.site-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header); width: min(100% - var(--gutter) * 2, 92rem); margin-inline: auto; display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.brand { display: inline-block; flex: none; }
.brand img { width: clamp(10rem, 16vw, 14rem); }
.desktop-nav, .article-header-links { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.7rem); }
.desktop-nav a, .article-header-links a { color: var(--navy); font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .article-header-links a:hover { text-decoration: underline; }
.desktop-nav a[href="#contact"], .article-header-links .header-contact { padding: .66rem 1rem; background: var(--blue); color: white; }
.mobile-menu { display: none; }

.hero { position: relative; overflow: clip; isolation: isolate; min-height: clamp(36rem, 70vh, 49rem); display: grid; align-items: center; color: white; background: #071728; }
.hero-media, .hero-slide, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-slide { object-fit: cover; object-position: 62% center; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-current { opacity: 1; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgb(5 18 31 / .97) 0%, rgb(6 22 37 / .82) 27%, rgb(8 26 43 / .48) 51%, rgb(7 21 33 / .12) 82%), linear-gradient(0deg, rgb(3 15 26 / .55), transparent 34%); }
.hero-content { padding-block: clamp(3rem, 6vw, 6rem) 7.25rem; }
.hero-since { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem; color: #e4f2ff; font: 600 .875rem/1.5 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.hero-since::before { content: ""; width: 2rem; height: 1px; background: #8fc2ec; }
.hero h1 { font-size: clamp(2.5rem, 4.45vw, 4.85rem); font-weight: 800; line-height: 1.32; letter-spacing: .025em; }
.hero h1 { white-space: pre-line; }
.hero-lead { max-width: 36rem; margin: 1.35rem 0 1.65rem; color: #edf4fa; line-height: 1.95; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .65rem 1.45rem; background: var(--blue); border: 1px solid transparent; color: white; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.button:hover { background: #0b365f; }
.hero .button { border-color: #5287bb; }
.hero .button:hover { background: #1a5c9e; }
.button-light { background: white; color: var(--blue); }
.button-light:hover { background: var(--mist); }
.hero-controls { position: absolute; inset: auto 0 1.6rem; display: flex; align-items: center; justify-content: start; }
.hero-controls button { width: 2.45rem; min-height: 2.75rem; border: 0; padding: 0; background: none; }
.hero-controls button[data-slide]::after { content: ""; display: block; height: 2px; width: 1.85rem; margin-inline: auto; background: #c4d4e4; opacity: .68; }
.hero-controls button[aria-pressed="true"]::after, .hero-controls button:hover::after { opacity: 1; background: white; }
.hero-controls .pause { width: auto; margin-left: .55rem; padding-inline: .55rem; color: white; font-size: .875rem; }
.hero-controls .pause:hover { text-decoration: underline; }

.section { padding-block: clamp(3.75rem, 8vw, 7.75rem); }
.section-heading { margin-bottom: 1.15rem; }
.section-heading h2 { font-size: clamp(1.85rem, 3.55vw, 3.05rem); line-height: 1.22; letter-spacing: .035em; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem; color: var(--blue); font: 700 .82rem/1.3 Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }
.section-intro { max-width: 43rem; margin-bottom: 2rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.4rem, 5vw, 5rem); align-items: center; }
.section h3 { font-size: clamp(1.12rem, 2.04vw, 1.65rem); line-height: 1.55; }
.section p { color: var(--muted); }
.news-section { background: var(--mist); padding-block: clamp(1.55rem, 3.6vw, 3.5rem); }
.news-layout { display: grid; grid-template-columns: minmax(10.5rem, .28fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 3vw, 3.5rem); }
.news-section .section-heading { margin: .45rem 0 0; }
.news-section h2 { font-size: clamp(1.55rem, 2.65vw, 2.35rem); }
.news-item { display: grid; grid-template-columns: 6rem 5rem 1fr; align-items: baseline; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid #c9d8e7; text-decoration: none; }
.news-item:first-child { border-top: 1px solid #c9d8e7; }
.news-item time, .cat { color: var(--blue); font-size: .875rem; }
.news-item time { font-variant-numeric: tabular-nums; }
.news-link .txt { text-decoration: underline; text-decoration-color: #829bb6; }
.news-link:hover { color: var(--blue); }
.news-link:hover .txt { text-decoration-color: currentColor; }
.framed-photo img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.framed-photo figcaption { color: var(--muted); margin-top: .5rem; font-size: .875rem; }
.text-link { display: inline-block; margin-top: .3rem; color: var(--blue); font-weight: 700; }
.philosophy { padding-block: clamp(2.7rem, 5vw, 5.5rem); color: white; background: linear-gradient(117deg, var(--navy) 0%, var(--navy) 61%, var(--blue) 61.2%, var(--blue) 100%); }
.philosophy .eyebrow, .contact-band .eyebrow { color: #c5e2ff; }
.philosophy h2 { font-size: clamp(1.35rem, 3vw, 2.15rem); }
.creed { font-size: clamp(1.5rem, 3.4vw, 3.3rem); font-weight: 700; line-height: 1.55; margin-bottom: 0; }
.service-grid { gap: clamp(1rem, 2.6vw, 2.5rem); align-items: stretch; }
.service-card { display: flex; flex-direction: column; background: var(--mist); border-bottom: 3px solid var(--blue); }
.service-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-card > div { padding: clamp(1.05rem, 2.6vw, 2.4rem); }
.service-card p { margin-bottom: 0; }
.works-section { background: var(--mist); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.45rem, 1.3vw, 1.3rem); }
.works-grid img { width: 100%; }
.equipment-intro { margin-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.equipment-intro img { aspect-ratio: 16 / 8; }
table { width: 100%; border-collapse: collapse; text-align: start; }
.equip th, .equip td, .co th, .co td { padding: .72rem clamp(.42rem, 1.8vw, 1.3rem); border-bottom: 1px solid var(--line); text-align: start; }
.equip th { color: white; background: var(--blue); }
.equip :is(th, td):last-child { width: 12%; text-align: center; white-space: nowrap; }
.equip tbody tr:nth-child(even) { background: #f6f8fb; }
.equip .cat { font-size: inherit; }
.fine-print { font-size: .875rem; }
.recruit-section { background: var(--mist); }
.recruit-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.recruit-intro .button { margin-top: .45rem; }
.rec-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 2.5rem); margin-top: clamp(1.75rem, 4vw, 3.5rem); }
.rec-card { background: white; padding: clamp(1.25rem, 3.2vw, 2.8rem); border-top: 2px solid var(--blue); }
.rec-card p:last-child, .rec-card ul:last-child { margin-bottom: 0; }
.rec-card ul { padding-inline-start: 1.2rem; }
.company-grid { align-items: start; gap: clamp(1.6rem, 3vw, 3.4rem); }
.co { border-top: 2px solid var(--blue); }
.co td { overflow-wrap: anywhere; }
.co th { width: 36%; background: var(--mist); color: var(--blue); }
.company-map iframe { border: 0; width: 100%; min-height: 21rem; display: block; background: var(--mist); }
.contact-band { background: var(--blue); color: white; padding-block: clamp(2.7rem, 6vw, 5.75rem); }
.contact-band p { margin-bottom: 0; }
.contact-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.4rem, 5vw, 5rem); }
.contact-ways { display: grid; gap: 1.2rem; }
.contact-ways > div { padding-top: .7rem; border-top: 1px solid #8bb0d4; }
.contact-ways span, .contact-ways small, .article-contact small { display: block; }
.contact-ways img { width: min(100%, 18rem); margin-top: .24rem; }
.contact-ways a, .article-contact > a:first-child { color: white; font: 700 clamp(1.75rem, 3vw, 2.7rem)/1.35 Arial, sans-serif; }
.site-footer { background: #f5f8fb; color: var(--navy); padding-block: clamp(1.5rem, 4vw, 3rem); }
.footer-inner { display: grid; gap: 1rem; grid-template-columns: 1fr auto; align-items: start; }
.footer-inner address { font-size: .875rem; margin-top: .65rem; }
.footer-inner small { grid-column: 1 / -1; padding-top: .7rem; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .875rem; }
.page-top { position: fixed; z-index: 4; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--navy); border: 1px solid #adcae4; color: white; text-decoration: none; font: bold 1.4rem/1 Arial, sans-serif; }

.article-page main > article, .crumb { width: min(100% - var(--gutter) * 2, 53rem); margin: auto; }
.crumb { padding-block: 1.2rem; color: var(--muted); font-size: .875rem; }
.crumb span { margin-inline: .5rem; }
.art-head { padding: clamp(1rem, 5vw, 2.4rem); background: var(--mist); border-left: 4px solid var(--blue); }
.art-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .65rem; }
.art-meta time { font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 700; }
.art-head h1 { font-size: clamp(1.55rem, 4.05vw, 2.65rem); line-height: 1.4; }
.art-body { margin-block: 2.25rem; }
.art-body a, .pager a, .back-list a { color: var(--blue); }
.art-figure { margin-block: 1.75rem; padding: clamp(.65rem, 3vw, 2rem); background: var(--mist); }
.art-figure img { margin-inline: auto; }
.art-figure figcaption { margin-top: .6rem; text-align: center; font-size: .875rem; }
.art-data { background: var(--mist); padding: .5rem 1rem; }
.art-data div { display: grid; grid-template-columns: minmax(5rem, .4fr) 1fr; gap: .5rem; padding-block: .4rem; border-bottom: 1px solid var(--line); }
.art-data div:last-child { border: none; }
.art-data dt { color: var(--blue); font-weight: 700; }
.art-data dd { margin: 0; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.pager a { padding: .65rem; background: var(--mist); }
.pager .nx { grid-column: 2; }
.back-list { text-align: center; margin: 1.5rem 0 3.5rem; font-weight: 700; }
.article-contact .button { margin-top: .65rem; }

@media (max-width: 71rem) {
  :root { --header: 68px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; place-items: center; list-style: none; width: 3rem; min-height: 3rem; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 1.65rem; height: 2px; background: var(--blue); }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; content: ""; }
  .menu-icon::before { transform: translateY(-.43rem); }
  .menu-icon::after { transform: translateY(.43rem); }
  .mobile-menu[open] .menu-icon { background: transparent; }
  .mobile-menu[open] .menu-icon::before { transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { transform: rotate(-45deg); }
  .mobile-menu nav { position: absolute; inset: 100% 0 auto; max-height: calc(100vh - var(--header)); max-height: calc(100dvh - var(--header)); overflow-y: auto; display: grid; background: white; color: var(--navy); padding: .4rem var(--gutter) 1rem; border-block: 1px solid var(--line); box-shadow: 0 1rem 1.5rem rgb(9 40 71 / .14); }
  .mobile-menu nav > a { padding-block: .61rem; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
  .menu-phone { display: flex; align-items: baseline; gap: .4rem .8rem; flex-wrap: wrap; margin-top: .65rem; }
  .menu-phone a { font-weight: 700; color: var(--blue); }
  .menu-phone span { font-size: .875rem; }
}

@media (max-width: 46rem) {
  :root { --header: 66px; }
  .hero { min-height: clamp(30rem, 77vh, 42rem); min-height: clamp(30rem, 77svh, 42rem); }
  .hero-slide { object-position: 59% center; }
  .hero::after { background: linear-gradient(180deg, rgb(5 20 34 / .62), rgb(6 22 36 / .67) 55%, rgb(3 16 27 / .85)); }
  .hero-content { text-align: center; padding-block: 3.4rem 5.6rem; }
  .hero h1 { font-size: clamp(1.55rem, 6.75vw, 3.1rem); line-height: 1.51; }
  .hero-since, .hero-controls { justify-content: center; }
  .hero-since { column-gap: .4rem; letter-spacing: .095em; margin-bottom: 1.2rem; }
  .hero-since::before { display: none; }
  .hero-lead { margin: 1.1rem auto 1.35rem; font-size: clamp(.95rem, 3.9vw, 1.06rem); max-width: 28rem; }
  .hero-controls { bottom: .85rem; }
  .split, .rec-blocks, .contact-layout, .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-layout { gap: 1.05rem; }
  .news-item { grid-template-columns: auto 1fr; gap: .15rem .8rem; }
  .news-item .txt { grid-column: 1 / -1; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-map iframe { min-height: 17rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .equip th, .equip td, .co th, .co td { font-size: .875rem; }
  .article-header-links .header-contact { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .button { transition: none; }
}

.header-phone { display: none; }
.hero-news { position: absolute; right: max(var(--gutter), calc((100% - 78rem) / 2)); bottom: 2rem; z-index: 1; color: white; font-size: .875rem; font-weight: 700; }
.works-grid figcaption { margin: .35rem 0 .7rem; color: var(--muted); font-size: .875rem; }
@media (min-width: 86rem) { .desktop-nav .header-phone, .article-header-links .header-phone { display: inline; color: var(--blue); } }
@media (max-width: 46rem) {
  .hero-content { padding-bottom: 7.4rem; }
  .hero-controls { bottom: 2rem; }
  .hero-news { right: 50%; bottom: .7rem; transform: translateX(50%); }
}

/* Editorial redesign */
:root {
  --paper: #f5f7f9;
  --mist: #eaf0f5;
  --line: #d2dce5;
  --navy: #092642;
}

.header-inner { min-height: var(--header); }
.desktop-nav { gap: clamp(.7rem, 1.6vw, 1.6rem); }
.desktop-nav a[href="#contact"], .article-header-links .header-contact { background: transparent; border: 1px solid var(--blue); color: var(--blue); }
.desktop-nav a[href="#contact"]:hover, .article-header-links .header-contact:hover { background: var(--blue); color: white; text-decoration: none; }

.redesign-hero {
  display: block;
  min-height: 0;
  padding-top: clamp(1.4rem, 4vw, 4.35rem);
  color: var(--navy);
  background: #fff;
}
.redesign-hero::after { content: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2.4vw, 2.55rem); }
.redesign-hero .hero-content { padding: 1.2rem 0 1.8rem; text-align: start; }
.redesign-hero .hero-since {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
  gap: .2rem .85rem;
  margin: 0 0 clamp(1.1rem, 3vw, 2.2rem);
  color: var(--blue);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .075em;
}
.redesign-hero .hero-since::before { display: none; }
.hero-since span[lang] { font-family: Arial, sans-serif; font-size: .85rem; letter-spacing: .12em; }
.hero-since span + span { padding-inline-start: .8rem; border-inline-start: 1px solid #adbed0; letter-spacing: .025em; }
.redesign-hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 3.81vw, 3.7rem);
  font-weight: 800;
  line-height: 1.37;
  letter-spacing: .012em;
}
.redesign-hero .hero-lead { max-width: 29rem; margin: clamp(1rem, 2.1vw, 1.8rem) 0 1.45rem; color: var(--muted); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(1rem, 2.1vw, 1.85rem); }
.hero-actions .button { border-color: var(--blue); min-height: 3.4rem; padding-inline: clamp(1rem, 2.4vw, 1.9rem); }
.hero-actions .text-link { margin: 0; padding: .62rem 0; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  min-height: clamp(24rem, 40vw, 34.5rem);
  z-index: 0;
  color: white;
  background: var(--blue);
}
.hero-visual::after { position: absolute; inset: auto 0 0 auto; width: min(19%, 6.75rem); height: clamp(.25rem, .85vw, .75rem); content: ""; background: #79b8ec; }
.redesign-hero .hero-media { position: relative; z-index: 0; overflow: hidden; background: var(--navy); }
.redesign-hero .hero-slide { object-position: 63% center; }
.hero-visual .visual-bottom { min-height: 3.75rem; padding: .25rem clamp(.8rem, 2vw, 1.6rem) .4rem; display: flex; align-items: center; justify-content: space-between; }
.hero-visual .photo-label { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.hero-visual .hero-controls { position: static; width: auto; margin: 0; }
.hero-visual .hero-controls button { width: 2rem; }
.hero-visual .hero-controls button[data-slide]::after { width: 1.35rem; }
.hero-visual .hero-controls .pause { width: auto; margin-left: .2rem; }
.hero-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: clamp(1.25rem, 3vw, 2.6rem) 0; border-block: 1px solid var(--line); }
.hero-directory a { display: flex; flex-direction: column; gap: .1rem; justify-content: center; min-height: 5.15rem; padding: .55rem clamp(.45rem, 2vw, 1.7rem); color: var(--blue); font-size: clamp(.9rem, 1.5vw, 1.1rem); font-weight: 700; text-decoration: none; }
.hero-directory a + a { border-inline-start: 1px solid var(--line); }
.hero-directory a:hover { background: var(--mist); text-decoration: underline; }
.hero-directory a span { color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.55; }

.redesign-home .section { padding-block: clamp(3.3rem, 7.5vw, 7.25rem); }
.redesign-home .section-heading { margin-bottom: 1.05rem; }
.redesign-home .eyebrow { letter-spacing: .115em; }
.redesign-home .eyebrow::before { width: .72rem; height: .72rem; border: 1px solid currentColor; background: transparent; }
.redesign-home .works-section { background: #fff; }
.works-heading { display: flex; align-items: flex-end; gap: 1rem 2rem; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.works-heading .section-intro { margin: 0 0 .95rem; }
.redesign-home .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.8vw, 1.8rem); margin-top: clamp(.7rem, 2.45vw, 2.2rem); }
.redesign-home .works-grid figure { min-width: 0; display: flex; flex-direction: column; background: var(--paper); }
.redesign-home .works-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.redesign-home .works-grid figcaption { flex: 1; margin: 0; padding: .65rem clamp(.55rem, 1.4vw, 1.25rem); color: var(--navy); font-size: clamp(.875rem, 1.25vw, 1.02rem); font-weight: 700; border-bottom: 1px solid var(--line); }
.redesign-home #service { color: white; background: var(--navy); }
.redesign-home #service .eyebrow, .redesign-home #service .section-intro { color: #dcebf8; }
.redesign-home .service-card { background: #0f355b; border-bottom: 1px solid #678bab; }
.redesign-home .service-card p { color: #e7f0f8; }
.redesign-home #equipment { background: var(--paper); }
.redesign-home .equip tbody tr:nth-child(even) { background: white; }
.redesign-home .about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.redesign-home .about-layout img { aspect-ratio: 16 / 11; }
.redesign-home .philosophy { background: var(--blue); }
.redesign-home .news-section { background: var(--paper); padding-block: clamp(2.8rem, 5vw, 5rem); }
.redesign-home .recruit-section { background: var(--paper); }
.redesign-home .rec-card { border-top: 0; border-left: 2px solid var(--blue); }
.redesign-home #contact { background: var(--navy); }
.article-page .art-head { border-left: 0; border-top: .25rem solid var(--blue); padding: clamp(1.15rem, 5.5vw, 3rem); background: var(--paper); }
.article-page .art-figure, .article-page .pager a { background: var(--paper); }

@media (max-width: 57rem) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .redesign-hero .hero-content { padding: .65rem 0 0; }
  .redesign-hero h1 { font-size: clamp(1.7rem, 7.7vw, 3.5rem); }
  .hero-visual { min-height: 0; }
  .redesign-hero .hero-media { aspect-ratio: 16 / 9; }
  .redesign-hero .hero-slide { object-position: 62% center; }
  .hero-visual .visual-bottom { min-height: 3.2rem; }
}

@media (max-width: 46rem) {
  .redesign-hero { padding-top: 1.65rem; }
  .redesign-hero .hero-since { margin-bottom: .85rem; font-size: .79rem; }
  .hero-since span[lang] { font-size: .75rem; }
  .redesign-hero .hero-lead { margin-block: .9rem 1rem; }
  .hero-actions .button { min-height: 2.95rem; }
  .hero-directory a { padding: .5rem .25rem; align-items: center; text-align: center; min-height: 3.55rem; }
  .hero-directory a span { display: none; }
  .works-heading { display: block; }
  .works-heading .section-intro { margin: 0; }
  .redesign-home .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .redesign-home .about-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 22rem) {
  .redesign-hero h1 { font-size: 7.65vw; letter-spacing: 0; }
}
/* Machining-led presentation */
.reference-home { --frame: min(calc(100% - 2 * clamp(0px, 2.1vw, 34px)), 98rem); }
.reference-home .site-header {
  width: var(--frame);
  margin: 1rem auto 0;
  background: linear-gradient(110deg, #061c32, #0a2e52 68%, #124a86);
  border: 0;
  border-radius: 1rem 1rem 0 0;
  color: #fff;
}
.reference-home .header-inner { min-height: 4.15rem; width: min(100% - 3rem, 85rem); gap: 1rem; }
.reference-home .site-header .brand img { width: clamp(12rem, 17.5vw, 15rem); }
.reference-home .desktop-nav { gap: clamp(.64rem, 1.35vw, 1.45rem); }
.reference-home .desktop-nav a { color: #f3f8fd; font-size: .875rem; }
.reference-home .desktop-nav a[href="#contact"] { background: #124a86; border: 1px solid #7098bb; padding: .53rem .78rem; }
.reference-home .desktop-nav a[href="#contact"]:hover { background: #2065a5; }
.reference-home .desktop-nav .header-phone { display: none; }

.reference-hero {
  display: block;
  min-height: 0;
  width: var(--frame);
  margin-inline: auto;
  color: white;
  background: #06172a;
}
.reference-hero::after { content: none; }
.hero-main { position: relative; isolation: isolate; min-height: clamp(29rem, 39vw, 38rem); display: grid; align-items: center; }
.hero-main::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #041222f7 0%, #041526dd 20%, #05192c9e 38%, #061b3024 63%, #061a2c04 100%), linear-gradient(0deg, #0313207a, transparent 29%);
}
.reference-hero .hero-slide { object-position: 57% 52%; }
.reference-hero .hero-content { padding: clamp(2.6rem, 5vw, 4.7rem) 0 clamp(3.5rem, 5.2vw, 5rem); text-align: start; }
.reference-hero .hero-since {
  display: inline-flex;
  justify-content: start;
  gap: .65rem;
  align-items: center;
  border-bottom: 1px solid #a1c1da9c;
  padding-bottom: .55rem;
  margin-bottom: 1.2rem;
  font: 700 .75rem/1.4 Arial, sans-serif;
  letter-spacing: .17em;
  color: #dfecf8;
}
.reference-hero .hero-since::before { content: none; }
.reference-hero .hero-since span { padding-inline-start: .65rem; border-inline-start: 1px solid #a1c1da9c; letter-spacing: inherit; }
.reference-hero h1 {
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;
  font-size: clamp(2.15rem, 3.9vw, 3.85rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .01em;
  text-wrap: wrap;
  text-shadow: 0 2px 15px #041121b0;
}
.reference-hero .hero-lead { max-width: 28rem; margin: 1.25rem 0 1.35rem; color: #edf5ff; line-height: 1.85; }
.reference-hero .hero-actions { gap: .55rem .7rem; }
.reference-hero .hero-actions .button { min-height: 2.95rem; padding-inline: clamp(.72rem, 1.5vw, 1.25rem); background: linear-gradient(120deg,#185d9e,#124a86); border: 1px solid #5089bd; font-size: .9rem; }
.reference-hero .hero-actions .button:hover { background: #2167a9; }
.reference-hero .hero-actions .hero-secondary { background: #071b2e87; border-color: #a7bfd5; }
.reference-hero .hero-actions .hero-secondary:hover { background: #124a86; }
.reference-hero .hero-controls { inset: auto max(1.1rem, calc((100% - 78rem) / 2)) .45rem auto; width: auto; margin: 0; }
.reference-hero .hero-controls button[data-slide]::after { width: 1.4rem; }
.reference-hero .hero-controls button { width: 1.75rem; }
.reference-hero .hero-controls .pause { width: auto; margin-left: .2rem; }

.hero-facts { background: linear-gradient(112deg, #0b2d50, #124a86 70%, #155794); border-top: 1px solid #3974aa; }
.facts-inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding-block: .9rem; }
.facts-inner a { min-height: 3.55rem; display: flex; align-items: center; justify-content: center; gap: clamp(.55rem, 1.5vw, 1.4rem); color: #fff; text-decoration: none; padding: .2rem .35rem; }
.facts-inner a + a { border-inline-start: 1px solid #91b2d3a6; }
.facts-inner a:hover strong { text-decoration: underline; }
.facts-inner a > span:last-child { display: grid; gap: .1rem; }
.facts-inner a > span > span { font-size: .875rem; line-height: 1.4; color: #e5f1ff; }
.facts-inner strong { color: #fff; line-height: 1.1; font: 700 clamp(1.6rem, 2.6vw, 2.55rem)/1.1 Georgia, serif; }
.facts-inner strong small { font-size: .47em; }
.facts-inner a:last-child strong { font-family: inherit; font-size: clamp(.95rem, 1.9vw, 1.35rem); }
.fact-icon { position: relative; display: block; flex: none; width: 1.95rem; height: 1.8rem; color: #e9f5ff; }
.fact-icon::before, .fact-icon::after { position: absolute; content: ""; display: block; }
.fact-factory::before { width: 90%; height: 53%; left: 5%; bottom: 5%; border: 2px solid; background: repeating-linear-gradient(90deg,transparent 0 .25rem,currentColor .26rem .37rem,transparent .38rem .55rem) center / 72% .22rem no-repeat; }
.fact-factory::after { border: 2px solid; width: 29%; height: 36%; right: 5%; bottom: 57%; transform: skewY(-15deg); }
.fact-machine::before { width: 100%; height: 78%; top: 8%; border: 2px solid; border-radius: .11rem; }
.fact-machine::after { inset: 27% 19% auto; width: 42%; height: 35%; border: 2px solid; box-shadow: .67rem .02rem 0 -.12rem; }
.fact-parts::before { width: 66%; aspect-ratio: 1; bottom: 4%; left: 17%; border: 2px solid; transform: rotate(45deg) skew(-12deg,-12deg); }
.fact-parts::after { width: 66%; aspect-ratio: 1; bottom: 28%; left: 17%; border: 2px solid; background: #124a86; transform: rotate(45deg) skew(-12deg,-12deg); }

.reference-home .technology { padding-block: clamp(2rem, 3.65vw, 3.7rem); }
.technology-layout { display: grid; grid-template-columns: minmax(14rem, .76fr) minmax(0, 2fr); align-items: center; gap: clamp(1.4rem, 3vw, 3.2rem); }
.technology-copy { padding-inline-start: clamp(.4rem, 1.25vw, 1.1rem); }
.reference-home :is(.technology, .works-section) .eyebrow { gap: .8rem; letter-spacing: .153em; }
.reference-home :is(.technology, .works-section) .eyebrow::before { background: #124a86; width: .3rem; height: 1.45rem; transform: skewX(-22deg); }
.reference-home :is(.technology, .works-section) h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif; font-size: clamp(1.63rem, 2.6vw, 2.42rem); line-height: 1.25; }
.technology-copy p { margin: 0 0 .65rem; }
.technology-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .43rem; padding-inline: 2.05rem 2.05rem; }
.technology-tile { isolation: isolate; position: relative; overflow: hidden; transform: skewX(-16deg); min-height: clamp(12rem, 22vw, 18.5rem); background: #092b4e; color: white; }
.technology-tile img { position: absolute; width: 100%; height: 100%; object-fit: cover; transform: skewX(16deg) scale(1.34); filter: saturate(.76); }
.technology-tile:nth-child(1) img { object-position: 60% center; }
.technology-tile:nth-child(2) img { object-position: 57% center; }
.technology-tile:nth-child(3) img { object-position: 54% center; }
.technology-tile::after { position: absolute; content: ""; inset: 0; background: linear-gradient(0deg,#031529 0%,#04182c69 49%,#124a8621 100%); }
.technology-tile figcaption { position: absolute; z-index: 1; inset: auto .55rem .85rem clamp(.75rem,2.3vw,1.65rem); transform: skewX(16deg); font-size: clamp(.87rem, 1.6vw, 1.3rem); font-weight: 700; line-height: 1.42; }
.technology-tile figcaption span { display: block; margin-top: .15rem; font: 700 .68rem/1.3 Arial,sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #e0ecf8; }

.reference-home .works-section { padding: 0 0 clamp(2.5rem, 5vw, 5rem); background: white; }
.reference-home .works-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(12.5rem,.67fr) minmax(0,2fr); gap: clamp(1.25rem,3vw,3rem); padding: clamp(1.4rem,3.2vw,3rem); background: linear-gradient(130deg,#eaf1f7,#dce9f5 78%,#e4eff9); overflow: hidden; }
.reference-home .works-panel::after { position: absolute; z-index: -1; content: ""; inset: auto 0 0 auto; width: 3.9rem; aspect-ratio: 1; background: #124a86; clip-path: polygon(100% 0,100% 100%,0 100%); }
.reference-home .works-heading { display: block; border: 0; padding: .15rem 0 0; }
.reference-home .works-heading .section-intro { margin: 0; }
.reference-home .works-grid { gap: .68rem; }
.reference-home .works-grid figure { background: #f6f9fc; }
.reference-home .works-grid figcaption { margin: 0; padding: .4rem .55rem; color: #153855; font-weight: 700; }
.reference-home #equipment { background: #f5f8fb; }
.reference-home .philosophy { background: #0a2a49; }

@media (max-width: 71rem) {
  .reference-home .menu-icon, .reference-home .menu-icon::before, .reference-home .menu-icon::after { background: white; }
  .reference-home .mobile-menu[open] .menu-icon { background: transparent; }
  .reference-home .mobile-menu nav { border-top-color: #afc7dd; }
}
@media (max-width: 56rem) {
  .technology-layout { grid-template-columns: minmax(0,1fr); }
  .technology-copy { padding-inline-start: 0; max-width: 32rem; }
  .technology-tiles { padding-inline: 1.75rem; }
  .reference-home .works-panel { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 46rem) {
  .reference-home { --frame: 100%; }
  .reference-home .site-header { margin-top: 0; border-radius: 0; }
  .reference-home .header-inner { width: calc(100% - 2 * var(--gutter)); min-height: var(--header); }
  .hero-main { min-height: max(29rem, 62svh); }
  .reference-hero .hero-slide { object-position: 59% center; }
  .hero-main::after { background: linear-gradient(90deg,#061425f2 0%,#071b2cd6 23%,#061a2d82 75%,#061a2d57 100%),linear-gradient(0deg,#06182ebd,transparent 52%); }
  .reference-hero h1 { font-size: clamp(1.4rem, 7.35vw, 3rem); letter-spacing: 0; line-height: 1.37; }
  .reference-hero .hero-content { padding: 2.05rem 0 3.9rem; }
  .reference-hero .hero-since { font-size: .67rem; margin-bottom: 1rem; letter-spacing: .13em; }
  .reference-hero .hero-lead { margin: .95rem 0 1.15rem; }
  .reference-hero .hero-controls { inset: auto 1.1rem .2rem auto; }
  .facts-inner { width: 100%; padding: .55rem .35rem; }
  .facts-inner a { flex-direction: column; text-align: center; justify-content: start; gap: .35rem; padding: .25rem .2rem; }
  .fact-icon { width: 1.3rem; height: 1.1rem; }
  .fact-machine::after { box-shadow: .41rem .01rem 0 -.06rem; }
  .facts-inner strong { font-size: 1.32rem; }
  .facts-inner a:last-child strong { font-size: .83rem; }
  .facts-inner a > span:last-child { flex: 1; align-content: space-between; gap: .22rem; }
  .facts-inner a > span > span { font-size: .72rem; }
  .technology-tiles { padding: 0 .65rem; gap: .27rem; }
  .technology-tile { min-height: clamp(7.35rem,30vw,12rem); transform: skewX(-8deg); }
  .technology-tile img { transform: skewX(8deg) scale(1.16); }
  .technology-tile figcaption { inset: auto .24rem .48rem .38rem; transform: skewX(8deg); font-size: .74rem; }
  .technology-tile figcaption span { display: none; }
  .reference-home .works-panel { padding: 1.15rem; }
  .reference-home .works-grid { gap: .45rem; }
  .reference-home .works-grid figcaption { font-size: .78rem; }
}

.reference-home .news-section { padding-block: clamp(1.35rem, 2.65vw, 2.5rem); }
.reference-home .technology h2 { font-size: clamp(1.4rem, 2.15vw, 2rem); }
.technology-heading-line { white-space: nowrap; }
@media (max-width: 56rem) {
  .reference-home .technology h2 { font-size: clamp(1.4rem, 5.3vw, 2rem); }
}

/* Two homepage facts and shared article styling */
.reference-hero .facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 61rem; }
.reference-hero .hero-actions .hero-secondary { background: linear-gradient(120deg, #185d9e, #124a86); border-color: #6096c7; }
.reference-hero .hero-actions .hero-secondary:hover { background: #2167a9; }

.reference-article .desktop-nav a[href="index.html#contact"] { background: #124a86; border: 1px solid #7098bb; padding: .53rem .78rem; }
.reference-article .desktop-nav a[href="index.html#contact"]:hover { background: #2065a5; }
.reference-article .desktop-nav a[aria-current] { text-decoration: underline; text-decoration-color: #9dd2ff; text-underline-offset: .45em; }
.reference-article .mobile-menu a[aria-current] { color: var(--blue); text-decoration: underline; }
.reference-article main > article { width: var(--frame); }
.reference-article .art-head {
  border: 0;
  padding: clamp(1.9rem, 4.8vw, 4.25rem) var(--gutter);
  color: white;
  background: linear-gradient(116deg, #061c32 0%, #0b2d50 64%, #124a86 100%);
}
.reference-article .art-heading-inner { max-width: 63rem; margin-inline: auto; }
.reference-article .article-kicker {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin: 0 0 .85rem;
  color: #d9edff;
  font: 700 .75rem/1.4 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.reference-article .article-kicker::before { content: ""; width: .22rem; height: 1rem; background: #93c9f9; transform: skewX(-22deg); }
.reference-article .art-meta { margin-bottom: .45rem; }
.reference-article .art-meta :is(time, .cat) { color: #d9edff; }
.reference-article .art-head h1 { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif; font-size: clamp(1.65rem, 3.9vw, 3rem); line-height: 1.4; text-wrap: pretty; }
.reference-article .crumb, .reference-article :is(.art-body, .pager, .back-list) { width: min(100% - 2 * var(--gutter), 53rem); margin-inline: auto; }
.reference-article .crumb { border-bottom: 1px solid var(--line); }
.reference-article .art-body { margin-block: clamp(1.65rem, 4vw, 3rem); }
.reference-article :is(.art-data, .art-figure, .pager a) { background: #edf4fa; }
.reference-article .pager a { border-bottom: 1px solid #aac0d5; }
.reference-article .contact-band { background: #124a86; }

@media (max-width: 46rem) {
  .reference-hero .facts-inner a { justify-content: center; }
  .reference-hero .facts-inner a > span:last-child { flex: initial; }
  .reference-article .art-head { padding-block: 1.75rem 2rem; }
  .reference-article .pager a { overflow-wrap: anywhere; }
}

.reference-hero .hero-media {
  overflow: hidden;
  --cut-scale: 1.055;
  --shop-scale: 1.09;
  --shop-pan-start: 1.65%;
  --shop-pan-end: -1.65%;
  --building-scale: 1.075;
}

.reference-hero .hero-slide.is-current { z-index: 1; }
.reference-hero .hero-slide.is-outgoing { opacity: 1; transition: none; }

.reference-hero .hero-slide:is(.is-current, .is-outgoing) {
  animation-duration: 5.8s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.reference-hero.is-motion-playing .hero-slide:is(.is-current, .is-outgoing) {
  animation-play-state: running;
}

.reference-hero .hero-slide:nth-child(1):is(.is-current, .is-outgoing) {
  animation-name: hero-camera-cut;
  transform-origin: 71% 43%;
}

.reference-hero .hero-slide:nth-child(2):is(.is-current, .is-outgoing) {
  animation-name: hero-camera-shop;
}

.reference-hero .hero-slide:nth-child(3):is(.is-current, .is-outgoing) {
  animation-name: hero-camera-building;
  transform-origin: 59% 48%;
}

@keyframes hero-camera-cut {
  from { transform: scale(1); }
  to { transform: scale(var(--cut-scale)); }
}

@keyframes hero-camera-shop {
  from { transform: translateX(var(--shop-pan-start)) scale(var(--shop-scale)); }
  to { transform: translateX(var(--shop-pan-end)) scale(var(--shop-scale)); }
}

@keyframes hero-camera-building {
  from { transform: scale(var(--building-scale)); }
  to { transform: scale(1); }
}

@media (max-width: 46rem) {
  .reference-hero .hero-media {
    --cut-scale: 1.026;
    --shop-scale: 1.047;
    --shop-pan-start: 0.8%;
    --shop-pan-end: -0.8%;
    --building-scale: 1.035;
  }

  .reference-hero .hero-slide:nth-child(1):is(.is-current, .is-outgoing) {
    transform-origin: 77% 43%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-hero .hero-slide:is(.is-current, .is-outgoing) {
    animation: none;
    transition: none;
  }
}
