:root {
  --blue: #0877b6;
  --blue-dark: #075d93;
  --navy: #082438;
  --red: #d61c3d;
  --ink: #17222b;
  --muted: #667681;
  --line: #dfe7ec;
  --soft: #f2f7fa;
  --white: #fff;
  --shadow: 0 24px 70px rgba(8, 36, 56, .12);
  --container: min(1120px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 112px 0; scroll-margin-top: 86px; }
.section-soft { background: var(--soft); }
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}
.section-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.35;
  letter-spacing: .01em;
}
.section-heading { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); }
.section-heading.align-left { margin-inline: 0; text-align: left; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: .25s ease;
}
.site-header.scrolled {
  color: var(--ink);
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(8,36,56,.06);
  backdrop-filter: blur(12px);
}
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.brand img { width: 64px; height: 60px; padding: 2px; border-radius: 4px; background: rgba(255,255,255,.92); object-fit: contain; }
.global-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.global-nav a { text-decoration: none; position: relative; }
.global-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: currentColor; transition: .2s; }
.global-nav a:hover::after { width: 100%; }
.nav-contact { padding: 12px 20px; border: 1px solid rgba(255,255,255,.58); border-radius: 100px; }
.scrolled .nav-contact { border-color: var(--blue); color: var(--blue-dark); }
.menu-button { display: none; }

.hero { min-height: 780px; height: 100svh; position: relative; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(6,27,43,.18), rgba(6,27,43,.02)),
    url("assets/company02.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,25,39,.88) 0%, rgba(5,25,39,.64) 46%, rgba(5,25,39,.15) 78%); }
.hero-content { position: relative; z-index: 2; padding-top: 74px; }
.eyebrow { margin: 0 0 28px; font-size: 11px; font-weight: 800; letter-spacing: .22em; color: #bce8ff; }
.hero h1 { margin: 0; font-size: clamp(50px, 7.4vw, 96px); line-height: 1.16; letter-spacing: .02em; }
.hero h1 span { color: #aee1fa; }
.hero-copy { margin: 30px 0 0; font-size: clamp(15px, 1.5vw, 19px); line-height: 2; letter-spacing: .03em; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { min-width: 180px; padding: 15px 24px; border-radius: 4px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .05em; transition: .2s; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #0a6da2; transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.scroll-guide { position: absolute; z-index: 2; right: 42px; bottom: 38px; display: flex; align-items: center; gap: 15px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-decoration: none; transform: rotate(90deg); transform-origin: right center; }
.scroll-guide span { width: 70px; height: 1px; background: rgba(255,255,255,.55); position: relative; overflow: hidden; }
.scroll-guide span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateX(-100%); animation: scroll 2.2s infinite; }
@keyframes scroll { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

.message-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: start; }
.message-body { padding-top: 36px; color: #3c4b55; font-size: 16px; }
.message-body p { margin: 0 0 22px; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { position: relative; min-height: 290px; padding: 34px 28px 30px; background: #fff; border-top: 3px solid transparent; box-shadow: 0 10px 38px rgba(8,36,56,.06); transition: .25s; overflow: hidden; }
.service-card:hover { transform: translateY(-7px); border-top-color: var(--blue); box-shadow: var(--shadow); }
.service-number { position: absolute; right: 21px; top: 18px; color: #dce8ee; font: 800 36px/1 Arial, sans-serif; }
.service-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 31px; color: #fff; background: var(--blue-dark); border-radius: 50%; font-weight: 800; }
.service-card:nth-child(even) .service-icon { background: var(--red); }
.service-card h3 { margin: 0; color: var(--navy); font-size: 20px; line-height: 1.55; }
.service-card p { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

.works { background: #fff; }
.works-intro { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; align-items: end; margin-bottom: 54px; }
.works-intro > p { margin: 0; padding-bottom: 8px; color: var(--muted); font-size: 14px; line-height: 2; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.work-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.work-card:hover { transform: translateY(-6px); border-color: #cbd9e1; box-shadow: var(--shadow); }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef3f6; }
.work-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -38px 50px rgba(8,36,56,.06); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-card:hover .work-media img { transform: scale(1.025); }
.work-card.portrait .work-media img { object-fit: contain; padding: 14px; }
.work-body { flex: 1; padding: 25px 25px 28px; }
.work-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: #8496a1; font: 700 10px/1.5 Arial, sans-serif; letter-spacing: .12em; }
.work-meta span { color: var(--blue-dark); }
.work-body h3 { margin: 0; color: var(--navy); font-size: 21px; line-height: 1.45; }
.work-body > p:last-child { margin: 14px 0 0; color: #5c6c76; font-size: 13px; line-height: 1.9; }
.works-note { margin: 24px 0 0; color: #8a99a2; font-size: 11px; }

.officer-summary { display: flex; justify-content: flex-end; margin: -78px 0 46px; }
.president-card { min-width: 325px; padding: 23px 30px; border-left: 4px solid var(--red); background: var(--soft); }
.role { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.president-card h3 { margin: 0; font-size: 24px; }
.name-en { margin: 3px 0 0; color: #8a9aa5; font-size: 10px; letter-spacing: .18em; }
.chairman-grid { display: grid; grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr); gap: 74px; align-items: start; }
.chairman-photo-wrap { position: sticky; top: 112px; }
.chairman-photo { width: 100%; height: auto; object-fit: contain; background: #e6edf0; }
.photo-fallback[hidden] { display: none; }
.photo-fallback { width: 100%; aspect-ratio: 4 / 5.3; display: grid; place-items: center; align-content: center; gap: 8px; color: #fff; background: linear-gradient(145deg, #58788c, #173b51); }
.photo-fallback span { font: 800 70px/1 Arial, sans-serif; letter-spacing: .04em; }
.photo-fallback small { letter-spacing: .2em; }
.chairman-label { position: relative; z-index: 2; width: calc(100% - 36px); margin: -74px 0 0 36px; padding: 22px 26px; color: #fff; background: rgba(8,36,56,.94); box-shadow: var(--shadow); }
.chairman-label p { margin: 0; color: #b8d9e9; font-size: 12px; }
.chairman-label h3 { margin: 2px 0; font-size: 28px; }
.chairman-label span { font-size: 9px; letter-spacing: .18em; opacity: .72; }
.career-intro { padding: 32px 34px; margin-bottom: 36px; color: #fff; background: var(--blue-dark); }
.career-intro h3 { margin: 0; font-size: 22px; line-height: 1.6; }
.career-intro p { margin: 13px 0 0; color: #d9edf7; font-size: 13px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 23px; padding: 0 0 29px; }
.timeline li::before { content: ""; position: absolute; left: 61px; top: 9px; bottom: -5px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 56px; top: 8px; width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; }
.timeline time { color: var(--blue-dark); font: 800 18px/1.5 Arial, sans-serif; }
.timeline p { margin: 0; color: #43535e; font-size: 13.5px; line-height: 1.9; }
.affiliations { margin-top: 15px; padding: 25px 28px; background: var(--soft); border-left: 3px solid var(--blue); }
.affiliations h4 { margin: 0 0 12px; color: var(--navy); }
.affiliations p { margin: 7px 0; color: #50616c; font-size: 13px; }

.section-navy { color: #fff; background: var(--navy); }
.section-navy .section-kicker { color: #73c8f1; }
.section-navy .section-title { color: #fff; }
.company-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.company-list { margin: 0; border-top: 1px solid rgba(255,255,255,.18); }
.company-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.company-list dt { color: #9ccbe1; font-size: 12px; font-weight: 700; }
.company-list dd { margin: 0; font-size: 14px; }
.company-list a { color: #fff; text-underline-offset: 4px; }

.contact { background: linear-gradient(145deg, #edf6fa, #fff 56%); }
.contact-card { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: center; padding: 60px; background: #fff; box-shadow: var(--shadow); }
.contact-card > div:first-child > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.contact-actions { display: grid; gap: 15px; }
.contact-link { position: relative; display: grid; padding: 21px 54px 21px 24px; text-decoration: none; border: 1px solid var(--line); transition: .2s; }
.contact-link:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); transform: translateX(4px); }
.contact-link span { color: var(--muted); font-size: 11px; }
.contact-link:hover span { color: #b9d9e8; }
.contact-link strong { margin-top: 3px; font-size: 15px; word-break: break-all; }
.contact-link b { position: absolute; right: 23px; top: 50%; transform: translateY(-50%); font-size: 21px; }

.site-footer { padding: 42px 0; background: #061a27; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 74px; padding: 3px; border-radius: 3px; background: #fff; }
.footer-brand p { margin: 0; font-size: 12px; }
.footer-inner > a { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.footer-inner small { grid-column: 1 / -1; color: #8197a5; font-size: 10px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --container: min(100% - 36px, 760px); }
  .section { padding: 82px 0; }
  .header-inner { height: 72px; }
  .brand span { display: none; }
  .menu-button { display: grid; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; place-content: center; gap: 5px; }
  .menu-button span { display: block; width: 22px; height: 2px; background: currentColor; transition: .2s; }
  .global-nav { position: absolute; left: 0; right: 0; top: 72px; display: none; padding: 18px 24px 26px; color: var(--ink); background: #fff; box-shadow: 0 20px 30px rgba(8,36,56,.1); flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav.open { display: flex; }
  .global-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-contact { margin-top: 12px; border-color: var(--blue); text-align: center; }
  .hero { min-height: 690px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(5,25,39,.9), rgba(5,25,39,.42)); }
  .scroll-guide { display: none; }
  .message-grid, .company-grid, .contact-card { grid-template-columns: 1fr; gap: 38px; }
  .works-intro { grid-template-columns: 1fr; gap: 22px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-body { padding-top: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .officer-summary { margin: -30px 0 36px; }
  .chairman-grid { grid-template-columns: 1fr; gap: 54px; }
  .chairman-photo-wrap { position: static; max-width: 520px; }
  .contact-card { padding: 42px; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 30px); }
  .section { padding: 70px 0; }
  .section-title { font-size: 32px; }
  .hero { min-height: 650px; }
  .hero-content { padding-top: 62px; }
  .hero h1 { font-size: 48px; }
  .hero-copy br { display: none; }
  .hero-actions { flex-direction: column; max-width: 270px; }
  .button { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work-media { aspect-ratio: 16 / 9; }
  .section { scroll-margin-top: 72px; }
  .service-card { min-height: auto; }
  .officer-summary { display: block; margin: 0 0 36px; }
  .president-card { min-width: 0; }
  .chairman-label { width: calc(100% - 18px); margin-left: 18px; }
  .timeline li { grid-template-columns: 68px 1fr; gap: 17px; }
  .timeline li::before { left: 50px; }
  .timeline li::after { left: 45px; }
  .company-list > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-card { padding: 32px 22px; }
  .contact-link strong { font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > a { justify-self: start; }
  .footer-inner small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
