:root {
  --navy: #071b34;
  --navy-light: #0e2948;
  --black: #111820;
  --gray: #66717c;
  --line: #d9dde1;
  --pale: #f2f4f6;
  --white: #fff;
  --header-h: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; color: var(--black); background: var(--white); font-family: "Noto Sans JP", sans-serif; line-height: 1.85; letter-spacing: .04em; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-h); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.header-inner { display: flex; align-items: stretch; justify-content: space-between; height: 100%; max-width: 1440px; margin: auto; padding-left: 4vw; }
.logo { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; }
.logo-mark { display: grid; place-items: center; width: 39px; height: 43px; color: white; background: var(--navy); font: 700 24px/1 Georgia, serif; transform: skew(-8deg); }
.logo strong { display: block; font-size: 16px; letter-spacing: .08em; }
.logo small { display: block; color: #68717b; font-size: 8px; letter-spacing: .15em; }
.global-nav { display: flex; align-items: stretch; white-space: nowrap; overflow-x: auto; }
.global-nav a { display: grid; place-items: center; padding: 0 16px; font-size: 12px; font-weight: 600; transition: color .2s, background .2s; }
.global-nav a:hover { color: #395e87; background: #f5f7f9; }
.global-nav .nav-contact { padding-inline: 27px; color: var(--white); background: var(--navy); }

.hero { position: relative; min-height: 730px; margin-top: var(--header-h); background: var(--pale); }
.hero-photo { position: absolute; inset: 0 0 0 36%; overflow: hidden; background: #6e7881; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,27,52,.18), transparent 45%); }
.hero-panel { position: relative; z-index: 2; width: 53%; min-height: 650px; padding: 110px 5vw 80px 8vw; background: var(--white); clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.eyebrow { margin-bottom: 22px; color: #6f7b87; font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.hero h1 { margin-bottom: 34px; font-family: "Noto Serif JP", serif; font-size: clamp(38px,4.2vw,64px); line-height: 1.48; letter-spacing: .06em; }
.hero-copy { margin-bottom: 28px; color: #4f5a65; font-size: 14px; }
.text-link { display: inline-flex; gap: 45px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid var(--black); font-size: 13px; font-weight: 600; }
.hero-number { position: absolute; right: 3vw; bottom: 24px; z-index: 3; display: flex; align-items: baseline; gap: 7px; color: white; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-number strong { font: 700 44px/1 Georgia, serif; letter-spacing: .04em; }
.hero-number span { font-size: 12px; }

.section { padding: 120px max(5vw, 24px); }
.section-heading { max-width: 1140px; margin: 0 auto 55px; }
.section-heading h2, .contact h2 { margin-bottom: 22px; font-family: "Noto Serif JP", serif; font-size: clamp(32px, 3.5vw, 48px); letter-spacing: .08em; }
.section-heading > p:last-child { color: var(--gray); font-size: 14px; }
.strength-grid { display: grid; grid-template-columns: repeat(3,1fr); max-width: 1140px; margin: auto; border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); }
.strength-card { position: relative; padding: 48px 5%; border-right: 1px solid var(--line); }
.strength-card:first-child { border-left: 1px solid var(--line); }
.strength-card .number { color: #97a0a8; font: 500 13px Georgia, serif; }
.strength-card h3 { margin: 28px 0 22px; font-family: "Noto Serif JP", serif; font-size: 22px; line-height: 1.65; }
.strength-card p { margin: 0; color: var(--gray); font-size: 13px; }

.section-dark { color: var(--white); background: var(--navy); }
.section-heading.light .eyebrow, .section-heading.light > p:last-child { color: #aab6c4; }
.works-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 45px 28px; max-width: 1140px; margin: auto; }
.work-wide { grid-row: span 2; }
.work-item .image-frame { height: 230px; background: #26384b; }
.work-wide .image-frame { height: 570px; }
.works-grid > .work-item:last-child { transform: translateY(-11px); }
.work-meta { position: relative; padding: 20px 0 0 95px; }
.work-meta span { position: absolute; left: 0; top: 24px; color: #9cabb9; font-size: 11px; }
.work-meta h3 { margin-bottom: 2px; font-size: 17px; }
.work-meta p { margin: 0; color: #9cabb9; font-size: 12px; }

.facility-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; max-width: 1140px; margin: auto; align-items: center; }
.facility .section-heading { margin: 0; }
.spec-list { margin: 45px 0 0; border-top: 1px solid var(--black); font-size: 13px; }
.spec-list div { display: flex; justify-content: space-between; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--gray); }
.facility-images { position: relative; height: 610px; }
.machine-main { position: absolute; inset: 0 0 80px 9%; background: #9aa1a7; }
.machine-sub { position: absolute; left: 0; bottom: 0; width: 45%; height: 230px; border: 10px solid var(--white); background: #66717c; }

.history { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--pale); }
.history-photo { min-height: 690px; background: #717b83; }
.history-content { align-self: center; max-width: 660px; padding: 90px 7vw; }
.history-content h2 { white-space: nowrap; font-family: "Noto Serif JP", serif; font-size: clamp(28px,2.8vw,40px); }
.history-content .lead { margin: 30px 0; font-family: "Noto Serif JP", serif; font-size: 18px; font-weight: 600; }
.history-content > p:not(.eyebrow):not(.lead) { color: var(--gray); font-size: 13px; }
.history-years { margin-top: 38px; border-top: 1px solid #adb4ba; }
.history-years div { display: grid; grid-template-columns: 90px 1fr; padding: 12px 0; border-bottom: 1px solid #cfd4d8; font-size: 12px; }
.history-years strong { color: var(--navy); font-family: Georgia, serif; }

.recruit { color: var(--white); background: linear-gradient(110deg, rgba(7,27,52,.98), rgba(7,27,52,.87)), url("../images/recruit.jpg") center/cover; }
.recruit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; max-width: 1140px; margin: auto; align-items: end; }
.recruit h2 { margin-bottom: 0; font-family: "Noto Serif JP", serif; font-size: clamp(34px,3.7vw,50px); line-height: 1.5; }
.recruit-inner > div:last-child p { color: #c0cad4; font-size: 14px; }
.outline-button { display: flex; justify-content: space-between; margin-top: 28px; padding: 18px 22px; border: 1px solid #738398; font-size: 13px; font-weight: 600; transition: background .2s; }
.outline-button:hover { background: rgba(255,255,255,.08); }

.contact { text-align: center; }
.contact-heading { margin: 0 auto 48px; }
.contact-heading > p:last-child { color: var(--gray); font-size: 14px; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: auto; border: 1px solid var(--line); }
.contact-options a { display: flex; flex-direction: column; justify-content: center; min-height: 190px; padding: 25px; }
.contact-options span { margin-bottom: 8px; font-size: 12px; }
.contact-options strong { font-size: 25px; letter-spacing: .08em; }
.contact-options small { margin-top: 5px; color: #7b858f; font-size: 11px; }
.phone-card { border-right: 1px solid var(--line); }
.mail-card { color: white; background: var(--navy); }
.mail-card small { color: #bbc5cf; }

.site-footer { padding: 65px max(5vw,24px) 20px; color: white; background: #081522; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; max-width: 1140px; margin: auto; }
.footer-logo small { color: #83909e; }
.footer-company p { margin: 25px 0 50px; color: #aab3bc; font-size: 11px; }
.back-top { font-size: 10px; letter-spacing: .15em; border-bottom: 1px solid #53606d; }
.copyright { max-width: 1140px; margin: auto; padding-top: 17px; border-top: 1px solid #293440; color: #64717d; font-size: 9px; }

.image-frame { overflow: hidden; }
.image-frame img { transition: transform .7s ease; }
.work-item:hover img { transform: scale(1.025); }
img.placeholder { display: none; }
.image-frame:has(img.placeholder), .hero-photo:has(img.placeholder) {
  position: relative;
  background: linear-gradient(135deg, #adb4ba, #56636d);
}
.image-frame:has(img.placeholder)::after, .hero-photo:has(img.placeholder)::before {
  content: "PHOTO";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.65); font: 600 12px/1 "Noto Sans JP", sans-serif; letter-spacing: .3em;
}

@media (max-width: 980px) {
  :root { --header-h: 104px; }
  .header-inner { display: block; padding: 9px 0 0; overflow: hidden; }
  .logo { height: 42px; padding-left: 18px; }
  .logo-mark { width: 30px; height: 33px; font-size: 18px; }
  .logo strong { font-size: 13px; }
  .global-nav { height: 52px; margin-top: 1px; border-top: 1px solid var(--line); }
  .global-nav a { padding: 0 15px; font-size: 11px; }
  .global-nav .nav-contact { padding-inline: 20px; }
  .hero { min-height: 700px; }
  .hero-panel { width: 65%; padding-left: 6vw; }
  .hero-photo { left: 42%; }
  .strength-card { padding-inline: 3%; }
}

@media (max-width: 700px) {
  .global-nav a { padding-inline: 11px; }
  .global-nav .nav-contact { padding-inline: 16px; }
  .hero { min-height: auto; padding-bottom: 0; background: white; }
  .hero-photo { position: relative; inset: auto; height: 54vw; min-height: 270px; }
  .hero-panel { width: 100%; min-height: 0; padding: 55px 24px 65px; clip-path: none; }
  .hero h1 { font-size: clamp(27px,8.3vw,37px); }
  .hero-copy { font-size: 13px; }
  .hero-number { top: calc(54vw - 55px); bottom: auto; }
  .hero-number strong { font-size: 33px; }
  .pc-only { display: none; }
  .section { padding: 82px 24px; }
  .section-heading { margin-bottom: 38px; }
  .strength-grid { grid-template-columns: 1fr; }
  .strength-card { padding: 35px 20px; border-right: 1px solid var(--line); }
  .strength-card:not(:last-child) { border-bottom: 1px solid var(--line); }
  .strength-card h3 { margin-block: 16px; font-size: 20px; }
  .works-grid { grid-template-columns: 1fr; gap: 45px; }
  .work-wide { grid-row: auto; }
  .works-grid > .work-item:last-child { transform: none; }
  .work-wide .image-frame, .work-item .image-frame { height: 65vw; min-height: 245px; }
  .work-meta { padding-left: 82px; }
  .facility-layout { grid-template-columns: 1fr; gap: 50px; }
  .facility-images { height: 110vw; max-height: 570px; }
  .history { grid-template-columns: 1fr; }
  .history-photo { min-height: 85vw; }
  .history-content { padding: 75px 24px; }
  .history-content h2 { font-size: clamp(26px, 7.5vw, 32px); }
  .recruit-inner { grid-template-columns: 1fr; gap: 35px; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-options a { min-height: 170px; }
  .phone-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-options strong { font-size: 21px; }
  .footer-main { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
