:root {
  --navy: #17324d;
  --navy-dark: #10263a;
  --blue: #316b8a;
  --pale-blue: #eef4f6;
  --text: #253746;
  --muted: #667784;
  --line: #dbe3e7;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 227, 231, 0.8);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 64px, 1200px);
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { display: block; width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.logo-name { display: flex; flex-direction: column; gap: 3px; }
.logo-name strong { color: var(--navy-dark); font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: 0.09em; }
.logo-name small { color: var(--blue); font-family: Arial, sans-serif; font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: 0.18em; }

.global-nav { display: flex; align-items: center; gap: 38px; }
.global-nav a { position: relative; padding: 31px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.global-nav a::after { content: ""; position: absolute; right: 0; bottom: 22px; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.global-nav a:hover::after, .global-nav a:focus-visible::after { transform: scaleX(1); }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 110px);
  padding: 180px 32px 110px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero::before { content: ""; position: absolute; top: 88px; right: 8%; width: 1px; height: 30%; background: var(--line); }
.hero-decoration { position: absolute; right: -10vw; bottom: -23vw; width: 54vw; height: 54vw; min-width: 620px; min-height: 620px; border: 1px solid var(--line); border-radius: 50%; }
.hero-decoration::before, .hero-decoration::after { content: ""; position: absolute; border-radius: 50%; }
.hero-decoration::before { inset: 10%; border: 1px solid var(--line); }
.hero-decoration::after { inset: 23%; background: var(--pale-blue); opacity: 0.75; }

.hero-inner { position: relative; z-index: 1; width: min(100%, 1200px); }
.hero-label { margin: 0 0 30px; color: var(--blue); font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.28em; }
h1 { margin: 0; color: var(--navy-dark); font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; font-size: clamp(34px, 4.1vw, 60px); font-weight: 600; line-height: 1.48; letter-spacing: 0.045em; }
h1 span { display: block; white-space: nowrap; }
.accent-line { width: 56px; height: 3px; margin: 38px 0 32px; background: var(--blue); }
.hero-copy { margin: 0 0 42px; color: var(--muted); font-size: 16px; line-height: 2; letter-spacing: 0.075em; }

.contact-button { display: inline-flex; width: 230px; min-height: 62px; padding: 0 24px 0 28px; align-items: center; justify-content: space-between; color: var(--white); background: var(--navy); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; box-shadow: 0 10px 26px rgba(23, 50, 77, 0.14); transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.contact-button:hover, .contact-button:focus-visible { background: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 50, 77, 0.2); }
.arrow { font-family: Arial, sans-serif; font-size: 20px; font-weight: 400; transition: transform 0.25s ease; }
.contact-button:hover .arrow { transform: translateX(4px); }

.scroll-guide { position: absolute; z-index: 2; right: 5%; bottom: 44px; margin: 0; color: var(--muted); font-family: Arial, sans-serif; font-size: 9px; letter-spacing: 0.24em; writing-mode: vertical-rl; }
.scroll-guide span { display: inline-block; width: 1px; height: 52px; margin-bottom: 12px; background: var(--navy); }

.company-section { padding: 116px 32px 126px; background: #f6f8f9; scroll-margin-top: 88px; }
.company-inner { width: min(100%, 1100px); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: 0.7fr 1fr; column-gap: 70px; align-items: end; margin-bottom: 64px; }
.section-label { grid-column: 1 / -1; margin: 0 0 18px; color: var(--blue); font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.26em; }
.section-heading h2 { margin: 0; color: var(--navy-dark); font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; font-size: clamp(34px, 4vw, 50px); font-weight: 600; letter-spacing: 0.08em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.95; letter-spacing: 0.05em; }
.company-content { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 76px; }
.company-content h3 { display: flex; margin: 0 0 28px; padding-bottom: 17px; align-items: baseline; gap: 14px; color: var(--navy-dark); border-bottom: 2px solid var(--navy); font-size: 20px; letter-spacing: 0.08em; }
.company-content h3 span { color: var(--blue); font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 0.12em; }
.profile-list { margin: 0; }
.profile-list > div { display: grid; grid-template-columns: 90px 1fr; padding: 17px 0; border-bottom: 1px solid var(--line); }
.profile-list dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.profile-list dd { margin: 0; color: var(--text); font-size: 14px; line-height: 1.7; letter-spacing: 0.04em; }
.text-link { color: var(--navy); text-decoration: underline; text-decoration-color: #aebdc6; text-underline-offset: 4px; overflow-wrap: anywhere; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.text-link:hover, .text-link:focus-visible { color: var(--blue); text-decoration-color: var(--blue); }
.history-list { margin: 0; padding: 0; list-style: none; }
.history-list li { position: relative; display: grid; grid-template-columns: 108px 1fr; gap: 22px; padding: 0 0 27px 20px; border-left: 1px solid #c7d4db; }
.history-list li:last-child { padding-bottom: 0; }
.history-list li::before { content: ""; position: absolute; top: 4px; left: -5px; width: 9px; height: 9px; background: var(--blue); border: 3px solid #f6f8f9; border-radius: 50%; box-shadow: 0 0 0 1px var(--blue); }
.history-list time { color: var(--navy); font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.history-list p { margin: -3px 0 0; font-size: 13px; line-height: 1.8; letter-spacing: 0.035em; }

.site-footer { color: #c9d2d8; background: var(--navy-dark); }
.footer-inner { width: min(100% - 64px, 1200px); min-height: 110px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-company { margin: 0; color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; }
.copyright { margin: 0; font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 0.12em; }

.contact-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; color: var(--white); background: var(--navy-dark); border: 0; overflow: auto; }
.contact-dialog::backdrop { background: rgba(7, 20, 31, 0.7); backdrop-filter: blur(5px); }
.contact-dialog[open] { animation: dialog-in 0.35s ease both; }
.contact-dialog-inner { position: relative; width: min(100% - 80px, 1200px); min-height: 100%; margin: 0 auto; padding: 100px 0 70px; display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 80px; align-items: center; }
.contact-dialog-inner::before { content: "T"; position: fixed; right: -2vw; bottom: -19vw; color: transparent; font-family: "Times New Roman", serif; font-size: min(70vw, 850px); font-style: italic; line-height: 1; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055); pointer-events: none; }
.contact-close { position: fixed; z-index: 2; top: 32px; right: max(40px, calc((100vw - 1200px) / 2)); width: 62px; height: 62px; padding: 0; color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.contact-close:hover, .contact-close:focus-visible { background: var(--blue); border-color: var(--blue); }
.contact-close span { position: absolute; top: 23px; left: 18px; width: 25px; height: 1px; background: currentColor; transform: rotate(45deg); }
.contact-close span:nth-child(2) { transform: rotate(-45deg); }
.contact-close small { position: absolute; right: 0; bottom: 10px; left: 0; font-family: Arial, sans-serif; font-size: 7px; letter-spacing: 0.15em; }
.contact-intro { position: relative; z-index: 1; }
.contact-kicker { margin: 0 0 18px; color: #8bb8cf; font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.3em; }
.contact-intro h2 { margin: 0 0 35px; font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; font-size: clamp(42px, 5vw, 68px); font-weight: 500; letter-spacing: 0.09em; }
.contact-intro h2 span { display: block; white-space: nowrap; }
.contact-intro > p:last-child { margin: 0; color: #b9c8d2; font-size: 14px; line-height: 2; letter-spacing: 0.06em; }
.contact-options { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(255, 255, 255, 0.14); }
.contact-option { position: relative; min-height: 245px; padding: 34px 32px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: #183852; overflow: hidden; transition: background 0.25s ease, transform 0.25s ease; }
.contact-option-primary { grid-column: 1 / -1; min-height: 210px; background: var(--blue); }
a.contact-option:hover, a.contact-option:focus-visible { z-index: 1; background: #397a9b; transform: translateY(-3px); }
.contact-option-label { color: #a9c7d7; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.25em; }
.contact-option-primary .contact-option-label { color: #d7e8ef; }
.contact-option strong { font-family: Arial, sans-serif; font-size: clamp(27px, 3.4vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: 0.02em; }
.contact-option-mail strong { font-size: clamp(21px, 2.15vw, 31px); }
.contact-option small { color: #b8cad4; font-size: 10px; letter-spacing: 0.08em; }
.contact-option-primary small { color: #e0ecf1; }
.contact-option-arrow { position: absolute; right: 28px; bottom: 26px; font-family: Arial, sans-serif; font-size: 24px; }
.contact-dialog-company { position: fixed; bottom: 28px; left: max(40px, calc((100vw - 1200px) / 2)); margin: 0; color: rgba(255, 255, 255, 0.35); font-family: Arial, sans-serif; font-size: 9px; letter-spacing: 0.22em; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .header-inner { width: calc(100% - 40px); height: 70px; }
  .logo { gap: 9px; }
  .logo img { width: 36px; height: 36px; }
  .logo-name strong { font-size: 14px; letter-spacing: 0.06em; }
  .logo-name small { font-size: 6px; letter-spacing: 0.13em; }
  .menu-button { display: flex; padding: 4px 0; align-items: center; gap: 10px; border: 0; color: var(--navy); background: transparent; cursor: pointer; }
  .menu-button-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
  .menu-icon { position: relative; width: 25px; height: 16px; }
  .menu-icon span { position: absolute; right: 0; width: 25px; height: 1px; background: var(--navy); transition: top 0.25s ease, transform 0.25s ease; }
  .menu-icon span:first-child { top: 3px; }
  .menu-icon span:last-child { top: 12px; }
  .menu-button[aria-expanded="true"] .menu-icon span:first-child { top: 8px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon span:last-child { top: 8px; transform: rotate(-45deg); }
  .global-nav { position: fixed; top: 70px; right: 0; left: 0; padding: 24px 30px 32px; display: grid; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease; }
  .global-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .global-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .global-nav a::after { display: none; }
  .hero { min-height: calc(100svh - 92px); padding: 134px 24px 78px; place-items: center start; }
  .hero::before { top: 70px; right: 24px; height: 18%; }
  .hero-decoration { right: -380px; bottom: -300px; }
  .hero-label { margin-bottom: 22px; font-size: 10px; letter-spacing: 0.22em; }
  h1 { font-size: clamp(29px, 8.3vw, 42px); line-height: 1.55; letter-spacing: 0.03em; }
  h1 span { display: inline; white-space: normal; }
  .accent-line { width: 44px; margin: 28px 0 24px; }
  .hero-copy { max-width: 32em; margin-bottom: 34px; font-size: 14px; line-height: 1.9; }
  .desktop-break { display: none; }
  .contact-button { width: 210px; min-height: 58px; }
  .scroll-guide { display: none; }
  .company-section { padding: 78px 24px 84px; scroll-margin-top: 70px; }
  .section-heading { display: block; margin-bottom: 48px; }
  .section-label { margin-bottom: 14px; }
  .section-heading h2 { margin-bottom: 20px; font-size: 34px; }
  .section-heading > p:last-child { font-size: 13px; }
  .company-content { grid-template-columns: 1fr; gap: 58px; }
  .company-content h3 { margin-bottom: 20px; font-size: 18px; }
  .profile-list > div { grid-template-columns: 78px 1fr; padding: 15px 0; }
  .profile-list dd { font-size: 13px; }
  .history-list li { grid-template-columns: 86px 1fr; gap: 13px; padding: 0 0 25px 16px; }
  .history-list p { font-size: 12px; }
  .footer-inner { width: calc(100% - 48px); min-height: 116px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .contact-dialog-inner { width: calc(100% - 40px); padding: 105px 0 72px; display: block; }
  .contact-dialog-inner::before { right: -30vw; bottom: -12vw; font-size: 130vw; }
  .contact-close { top: 18px; right: 20px; width: 55px; height: 55px; }
  .contact-close span { top: 20px; left: 15px; }
  .contact-close small { bottom: 8px; }
  .contact-intro { margin-bottom: 40px; }
  .contact-intro h2 { margin-bottom: 21px; font-size: 40px; }
  .contact-intro > p:last-child { font-size: 12px; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-option, .contact-option-primary { grid-column: auto; min-height: 172px; padding: 25px 22px; }
  .contact-option strong { font-size: clamp(26px, 8vw, 38px); }
  .contact-option-mail strong { font-size: clamp(22px, 6.7vw, 30px); }
  .contact-option-arrow { right: 22px; bottom: 20px; }
  .contact-dialog-company { position: relative; bottom: auto; left: auto; margin-top: 30px; }
}

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