:root {
  --navy: #073a78;
  --navy-dark: #062b57;
  --blue: #2e86c6;
  --sky: #eaf5fb;
  --red: #d94a43;
  --ink: #17263a;
  --muted: #5c6876;
  --line: #dce4eb;
  --paper: #ffffff;
  --off-white: #f6f9fb;
  --shadow: 0 24px 60px rgba(17, 50, 82, .12);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans JP", sans-serif; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header { position: fixed; inset: 0 0 auto; height: 92px; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(7,58,120,.08); transition: height .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { height: 76px; box-shadow: 0 8px 30px rgba(7,40,75,.08); backdrop-filter: blur(12px); }
.header-inner { width: min(calc(100% - 64px), var(--max)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 15px; min-width: 350px; }
.brand img { width: 88px; height: 70px; object-fit: contain; transition: height .3s ease, width .3s ease; }
.is-scrolled .brand img { width: 72px; height: 58px; }
.brand-name { display: grid; line-height: 1.35; white-space: nowrap; }
.brand-name strong { color: var(--navy-dark); font-family: "Noto Serif JP", serif; font-size: 1.08rem; letter-spacing: .015em; }
.brand-name small { margin-top: 5px; font-size: .82rem; color: var(--muted); }
.global-nav { display: flex; align-items: center; gap: clamp(15px, 1.45vw, 26px); font-size: .84rem; font-weight: 600; }
.global-nav > a:not(.nav-contact) { padding: 28px 0 25px; position: relative; white-space: nowrap; }
.global-nav > a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; bottom: 19px; width: 0; height: 2px; background: var(--red); transition: width .25s ease; }
.global-nav > a:hover::after, .global-nav > a:focus-visible::after { width: 100%; }
.nav-contact { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; color: #fff; background: var(--navy); border-radius: 4px; transition: background .2s ease, transform .2s ease; }
.nav-contact:hover { background: var(--blue); transform: translateY(-2px); }
.menu-button { display: none; width: 46px; height: 46px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .25s ease, opacity .2s ease; }

.hero { min-height: 680px; height: min(82vh, 820px); padding-top: 92px; display: grid; grid-template-columns: minmax(480px, 46%) 1fr; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #fff 66%, #f2f8fc 100%); }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(40px, 7vw, 130px); padding-right: 40px; }
.hero-copy::before { content: ""; position: absolute; left: clamp(40px, 7vw, 130px); top: 22%; width: 34px; height: 2px; background: var(--red); }
.eyebrow { margin: 0 0 20px; color: var(--navy); font-size: .73rem; font-weight: 700; letter-spacing: .24em; }
.hero h1 { margin: 0 0 26px; color: var(--navy-dark); font-family: "Noto Serif JP", serif; font-size: clamp(2.8rem, 3.8vw, 4.4rem); line-height: 1.35; letter-spacing: .04em; }
.hero-lead { margin: 0 0 38px; color: #40536b; font-size: clamp(.96rem, 1.1vw, 1.12rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; width: fit-content; min-width: 206px; padding: 14px 20px; border: 1px solid transparent; border-radius: 3px; font-weight: 600; line-height: 1.4; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: var(--blue); }
.hero-visual { position: relative; min-width: 0; background: var(--sky); }
.hero-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 40px 0 70px rgba(255,255,255,.2); }
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-controls { position: absolute; z-index: 5; right: 34px; bottom: 28px; display: flex; gap: 9px; padding: 12px; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); }
.slide-dot { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(7,58,120,.25); cursor: pointer; }
.slide-dot.is-active { background: var(--red); }

.quick-links { position: relative; z-index: 8; width: min(calc(100% - 64px), 1320px); margin: -58px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: var(--shadow); }
.quick-card { min-height: 168px; padding: 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px; background: #fff; border-right: 1px solid var(--line); transition: transform .25s ease, background .25s ease; }
.quick-card:last-child { border-right: 0; }
.quick-card:hover { z-index: 2; transform: translateY(-6px); background: #fbfdff; }
.quick-icon { color: var(--red); font-family: "Noto Serif JP", serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; border-top: 2px solid var(--red); padding-top: 6px; }
.quick-card strong { display: block; margin-bottom: 12px; color: var(--navy-dark); font-family: "Noto Serif JP", serif; font-size: 1.08rem; }
.quick-card small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.card-arrow { color: var(--navy); }

.section { padding: 120px 0; }
.section-inner { width: min(calc(100% - 64px), var(--max)); margin: auto; }
.section-heading { margin-bottom: 54px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .contact h2 { margin: 0; color: var(--navy-dark); font-family: "Noto Serif JP", serif; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.35; letter-spacing: .05em; }
.section-heading > p { max-width: 520px; margin: 0 0 5px; color: var(--muted); font-size: .95rem; }
.services { background: var(--off-white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 355px; padding: 42px 36px 36px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.service-number { position: absolute; right: 24px; top: 20px; color: #dfeaf3; font-family: "Noto Serif JP", serif; font-size: 3.7rem; font-weight: 700; line-height: 1; }
.line-icon { width: 52px; height: 52px; margin-bottom: 32px; display: grid; place-items: center; color: var(--navy); border: 1px solid var(--blue); font-size: 1.5rem; }
.service-card h3 { margin: 0 0 24px; color: var(--navy-dark); font-family: "Noto Serif JP", serif; font-size: 1.32rem; line-height: 1.65; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.systems { position: relative; overflow: hidden; color: #fff; background: var(--navy-dark); }
.systems::before { content: ""; position: absolute; right: -140px; top: -190px; width: 520px; height: 520px; border: 1px solid rgba(130,195,231,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(130,195,231,.035), 0 0 0 140px rgba(130,195,231,.025); }
.systems-heading { position: relative; z-index: 1; margin-bottom: 42px; }
.systems-heading .eyebrow { margin-bottom: 10px; color: #82c3e7; }
.systems-heading h2 { margin: 0; color: #fff; font-family: "Noto Serif JP", serif; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.45; letter-spacing: .05em; }
.system-links { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.system-link { min-height: 138px; padding: 28px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.system-link:not(.is-disabled):hover { transform: translateY(-5px); background: rgba(255,255,255,.14); border-color: #82c3e7; }
.system-link small { display: block; margin-bottom: 9px; color: #82c3e7; font-size: .67rem; font-weight: 700; letter-spacing: .18em; }
.system-link strong { display: block; color: #fff; font-family: "Noto Serif JP", serif; font-size: 1.12rem; }
.system-link-status { flex: 0 0 auto; padding: 6px 11px; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.2); border-radius: 100px; font-size: .69rem; }
.system-link.is-disabled { cursor: default; pointer-events: none; }

.greeting { overflow: hidden; }
.greeting-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.greeting-image { position: relative; }
.greeting-image::before { content: ""; position: absolute; z-index: -1; right: -44px; bottom: -44px; width: 72%; height: 72%; background: var(--sky); }
.greeting-image img { width: 100%; aspect-ratio: 1.12; object-fit: cover; box-shadow: var(--shadow); }
.image-caption { position: absolute; left: -16px; bottom: 18px; padding: 9px 14px; color: #fff; background: var(--navy); font-size: .65rem; letter-spacing: .18em; }
.greeting-copy h2 { margin: 0 0 32px; color: var(--navy-dark); font-family: "Noto Serif JP", serif; font-size: clamp(1.85rem, 3vw, 3rem); line-height: 1.55; }
.greeting-copy > p:not(.eyebrow):not(.signature) { margin: 0 0 20px; color: var(--muted); font-size: .94rem; }
.signature { margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: right; }
.signature strong { color: var(--ink); font-size: .95rem; }

.company { background: linear-gradient(180deg, #f5f9fc, #fff); }
.company-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.company-info { padding: 20px 42px; background: #fff; border-top: 4px solid var(--navy); box-shadow: 0 18px 45px rgba(17,50,82,.08); }
.company-info dl { margin: 0; }
.company-info dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company-info dl > div:last-child { border-bottom: 0; }
.company-info dt { color: var(--navy); font-size: .83rem; font-weight: 700; }
.company-info dd { margin: 0; color: #3f4d5d; font-size: .9rem; }
.company-info dd small { color: var(--muted); }
.access-card { display: grid; grid-template-rows: 48% 1fr; background: var(--navy-dark); color: #fff; }
.access-card > img { width: 100%; height: 100%; object-fit: cover; }
.access-card-body { padding: 32px 36px; }
.access-card .eyebrow { margin-bottom: 8px; color: #9cc9e7; }
.access-card h3 { margin: 0 0 17px; font-family: "Noto Serif JP", serif; font-size: 1.4rem; }
.access-card p { color: rgba(255,255,255,.76); font-size: .9rem; }
.access-card small { color: rgba(255,255,255,.58); }
.text-link { display: inline-flex; gap: 14px; margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid #fff; font-size: .85rem; font-weight: 600; }

.contact { padding: 105px 32px; text-align: center; color: #fff; background: linear-gradient(115deg, rgba(6,43,87,.98), rgba(7,58,120,.94)), url("assets/slide2.png") center/cover; }
.contact-inner { max-width: 780px; margin: auto; }
.contact .eyebrow { color: #9fd1ee; }
.contact h2 { color: #fff; }
.contact-inner > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.contact-actions { margin-top: 42px; display: flex; justify-content: center; align-items: stretch; gap: 22px; }
.contact-phone { min-width: 300px; padding: 13px 28px; display: grid; color: #fff; border: 1px solid rgba(255,255,255,.38); text-align: left; }
.contact-phone small, .contact-phone span { color: rgba(255,255,255,.66); font-size: .7rem; }
.contact-phone strong { font-family: "Noto Serif JP", serif; font-size: 1.75rem; letter-spacing: .05em; }
.button-light { align-self: center; color: var(--navy); background: #fff; }
.button-light:hover { color: #fff; background: var(--blue); }

.site-footer { padding: 54px 0 28px; background: #fff; }
.footer-inner { width: min(calc(100% - 64px), var(--max)); margin: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 95px; height: 72px; object-fit: contain; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .75rem; }
.footer-brand strong { color: var(--navy-dark); font-family: "Noto Serif JP", serif; font-size: .95rem; }
.footer-meta { text-align: right; color: var(--muted); font-size: .75rem; line-height: 1.65; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--navy); }
.copyright { grid-column: 1 / -1; margin: 25px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: #8792a0; font-size: .65rem; letter-spacing: .08em; text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1100px) {
  .brand-name { display: none; }
  .brand { min-width: auto; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .site-header, .site-header.is-scrolled { height: 72px; }
  .header-inner { width: calc(100% - 32px); }
  .brand { min-width: 0; gap: 10px; }
  .brand img, .is-scrolled .brand img { width: 68px; height: 56px; }
  .brand-name { display: grid; }
  .brand-name strong { font-size: .76rem; }
  .brand-name small { display: none; }
  .menu-button { display: block; position: relative; z-index: 1002; }
  .menu-button.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button.is-active span:nth-child(2) { opacity: 0; }
  .menu-button.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav { position: fixed; inset: 0; z-index: 1001; padding: 110px 38px 50px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,.985); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .global-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .global-nav > a:not(.nav-contact) { padding: 17px 0; border-bottom: 1px solid var(--line); font-family: "Noto Serif JP", serif; font-size: 1.12rem; }
  .global-nav > a:not(.nav-contact)::after { display: none; }
  .nav-contact { margin-top: 30px; justify-content: center; padding: 16px; }
  .hero { height: auto; min-height: 0; padding-top: 72px; grid-template-columns: 1fr; }
  .hero-copy { min-height: 500px; padding: 85px 32px 70px; }
  .hero-copy::before { left: 32px; top: 58px; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .hero-visual { height: 55vw; min-height: 330px; margin-top: 0; }
  .quick-links { width: calc(100% - 32px); margin-top: -25px; }
  .section { padding: 85px 0; }
  .section-inner { width: calc(100% - 40px); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 38px; }
  .systems-heading { margin-bottom: 38px; }
  .system-links { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .greeting-grid, .company-grid { grid-template-columns: 1fr; }
  .greeting-grid { gap: 70px; }
  .greeting-image img { aspect-ratio: 1.45; }
  .access-card { grid-template-rows: 310px auto; }
}

@media (max-width: 560px) {
  .header-inner { width: calc(100% - 24px); }
  .hero-copy { min-height: 465px; padding: 76px 24px 58px; }
  .hero-copy::before { left: 24px; top: 52px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); letter-spacing: .02em; white-space: nowrap; }
  .hero-lead br { display: none; }
  .hero-visual { min-height: 280px; }
  .slide-controls { right: 15px; bottom: 15px; }
  .quick-links { grid-template-columns: 1fr; width: calc(100% - 24px); }
  .quick-card { min-height: 128px; padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-card:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .section-inner { width: calc(100% - 32px); }
  .service-card { padding: 34px 26px; }
  .system-link { min-height: 112px; padding: 23px 20px; }
  .greeting-image::before { right: -15px; bottom: -24px; }
  .greeting-image img { aspect-ratio: 1; }
  .company-info { padding: 12px 24px; }
  .company-info dl > div { grid-template-columns: 1fr; gap: 5px; padding: 16px 0; }
  .access-card { grid-template-rows: 230px auto; }
  .access-card-body { padding: 28px 24px; }
  .contact { padding: 75px 20px; }
  .contact-actions { flex-direction: column; }
  .contact-phone { min-width: 0; text-align: center; }
  .button-light { width: 100%; }
  .footer-inner { width: calc(100% - 32px); grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
}
