@font-face {
  font-family: Pretendard;
  src: url("assets/fonts/pretendard-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Pretendard;
  src: url("assets/fonts/pretendard-bold.woff2") format("woff2");
  font-weight: 650 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #112640;
  --muted: #4d6072;
  --paper: #f5f7f4;
  --line: #d7e0dc;
  --accent: #086157;
  --aqua: #9ddfd1;
  --white: #fff;
  font-family: Pretendard, "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.18; word-break: keep-all; letter-spacing: -.047em; }
p { line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
:focus-visible { outline: 3px solid #058b78; outline-offset: 4px; }
section[id] { scroll-margin-top: 98px; }
.wrap { width: min(1200px, 100% - 104px); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 114px); }
.skip { position: fixed; z-index: 5; inset: 12px auto auto 12px; transform: translateY(-160%); padding: 12px 18px; background: var(--white); }
.skip:focus { transform: translateY(0); }

.header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: var(--white); }
.nav { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.brand { width: fit-content; text-decoration: none; }
.brand img, .footer-brand img { width: 132px; }
.nav-links { display: flex; align-items: center; gap: clamp(24px, 3.7vw, 55px); }
.nav-links a, .nav-contact { font-size: .94rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { justify-self: end; border: 1px solid #a8bbb4; border-radius: 4px; padding: 11px 17px; }
.nav-contact:hover { background: #eaf3ee; }

.hero { background: var(--paper); }
.hero-grid { min-height: 566px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 4.4vw, 64px); padding-block: 54px; }
.hero-copy { padding-block: 16px; }
.overline, .section-label { color: var(--accent); font-weight: 700; font-size: .94rem; letter-spacing: -.01em; }
.overline { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.overline span { width: 14px; height: 2px; background: var(--accent); }
h1 { font-size: clamp(2.55rem, 4.35vw, 4.25rem); font-weight: 760; line-height: 1.16; }
h1 em { font-style: normal; color: var(--accent); }
.hero-lead { max-width: 37ch; margin-top: 25px; color: var(--muted); font-size: clamp(1.0625rem, 1.55vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 49px; padding: 12px 20px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-weight: 700; font-size: .96rem; transition: background-color 170ms, color 170ms, border-color 170ms; }
.button-main { background: var(--ink); color: var(--white); }
.button-main:hover { background: var(--accent); }
.button-quiet { border-color: #acbfba; color: var(--ink); }
.button-quiet:hover { background: #e5eeea; border-color: #7fa79b; }
.hero-visual { border-radius: 6px; overflow: hidden; aspect-ratio: 1.18; min-width: 0; background: #102233; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); font-weight: 740; }
.section-label { margin-bottom: 10px; }
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 7vw, 100px); }
.about > p { color: var(--muted); font-size: 1.13rem; max-width: 52ch; }

.service-section { background: #122940; color: var(--white); }
.service-section .section-label { color: var(--aqua); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 37px; }
.section-top > p { color: var(--muted); max-width: 31ch; padding-bottom: 4px; }
.service-section .section-top > p, .service p { color: #c5d4dd; }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #456074; }
.service { padding: 29px 26px 34px 0; }
.service + .service { border-left: 1px solid #456074; padding-left: clamp(20px, 3vw, 40px); }
.service h3, .connection h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 690; }
.service p { margin-top: 11px; max-width: 27ch; }
.motif { width: 38px; height: 38px; position: relative; display: inline-grid; place-content: center; margin-bottom: 19px; color: var(--aqua); }
.motif-grid { grid-template: repeat(2, 7px) / repeat(2, 7px); gap: 4px; border: 1px solid #619a99; border-radius: 4px; }
.motif-grid i { border: 1px solid currentColor; border-radius: 1px; }
.motif-phone { border: 1px solid #619a99; border-radius: 4px; }
.motif-phone i { width: 14px; height: 22px; border: 1px solid currentColor; border-radius: 3px; position: relative; }
.motif-phone i::after { content: ""; position: absolute; width: 4px; height: 1px; background: currentColor; bottom: 3px; left: 4px; }
.motif-flow { display: inline-flex; gap: 3px; align-items: center; justify-content: center; border: 1px solid #619a99; border-radius: 4px; }
.motif-flow i { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.motif-flow i:nth-child(2) { background: currentColor; }

.product-section { background: var(--paper); }
.product-list { display: grid; grid-template-columns: 1.15fr .85fr; gap: 19px; }
.product { overflow: hidden; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.product-visual { height: clamp(235px, 24vw, 342px); display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; }
.desktop-visual { background: #e4eae9; padding: 28px 34px; }
.computer { background: #172d40; padding: 9px 9px 13px; position: relative; width: min(480px, 94%); border-radius: 11px; box-shadow: 0 14px 38px #11264038; margin-bottom: 12px; }
.computer::after { content: ""; position: absolute; bottom: -10px; left: -5%; width: 110%; height: 9px; background: #8298a5; border-radius: 1px 1px 11px 11px; }
.computer img { width: 100%; aspect-ratio: 1300 / 646; object-fit: cover; border-radius: 4px; background: var(--white); }
.phone-visual { background: #d8e8e2; padding: 24px; }
.phone { height: clamp(164px, 18.5vw, 245px); aspect-ratio: 274 / 390; align-self: center; position: relative; background: #101f2f; padding: 15px 7px 7px; border: 2px solid #6c8090; border-radius: 20px; box-shadow: 0 14px 35px #11264038; }
.phone::before { content: ""; position: absolute; inset: 6px auto auto 50%; width: 30px; height: 4px; border-radius: 7px; background: #53677a; transform: translateX(-50%); }
.phone img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; background: #101f2f; }
.product-copy { padding: clamp(24px, 3vw, 38px); }
.product-type { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; color: var(--accent); font-size: .93rem; font-weight: 700; }
.product-status { border-radius: 4px; padding: 2px 7px; background: #edf3ef; font-size: .78rem; line-height: 1.45; }
.product h3 { margin-top: 6px; font-size: clamp(1.9rem, 3vw, 2.65rem); }
.product-copy > p:not(.product-type) { margin-top: 13px; color: var(--muted); max-width: 43ch; }
.product-link { display: inline-flex; margin-top: 19px; min-height: 30px; align-items: center; color: var(--accent); font-weight: 720; text-underline-offset: 6px; }
.product-link:hover { color: var(--ink); }
.connection { margin-top: 23px; border: 1px solid var(--line); border-radius: 7px; background: #edf3ef; padding: clamp(22px, 3.5vw, 38px); display: grid; grid-template-columns: 1fr minmax(228px, 29%); align-items: center; gap: 25px; }
.connection p:last-child { max-width: 64ch; margin-top: 11px; color: var(--muted); }
.connection-line { display: flex; align-items: center; gap: 7px; justify-self: stretch; }
.connection-line span { color: var(--ink); padding: 10px 12px; border: 1px solid #9eb8af; background: #f9fbf9; border-radius: 4px; text-align: center; font-weight: 700; white-space: nowrap; }
.connection-line i { flex: 1; min-width: 10px; border-top: 1px solid #71978c; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 8vw, 106px); }
.contact-grid p:last-child:not(.section-label) { color: var(--muted); margin-top: 20px; font-size: 1.075rem; max-width: 46ch; }
.contact-actions { display: grid; gap: 10px; }
.contact-actions a { border: 1px solid var(--line); border-radius: 5px; text-decoration: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 18px; padding: 18px 20px; background: var(--paper); transition: background-color 170ms, border-color 170ms; }
.contact-actions a:hover { background: #e8f1eb; border-color: #7fa79b; }
.contact-actions strong { font-size: 1.05rem; }
.contact-actions span { color: var(--accent); overflow-wrap: anywhere; }

.footer { padding: 38px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(180px, .55fr) 1.45fr; gap: 26px; }
.footer-brand { display: grid; align-content: start; gap: 10px; }
.footer-brand strong { font-size: .92rem; }
.business { font-size: .9rem; color: var(--muted); }
.business p { display: flex; flex-wrap: wrap; gap: 1px 19px; }
.business a { text-underline-offset: 3px; }
.business .copyright { margin-top: 11px; }

.variant-b .hero { color: var(--white); background: #122940; }
.variant-b .hero-grid { min-height: 600px; grid-template-columns: .94fr 1.06fr; }
.variant-b .overline, .variant-b h1 em { color: var(--aqua); }
.variant-b .overline span { background: var(--aqua); }
.variant-b .hero-lead { color: #d1dde3; }
.variant-b .hero-visual { aspect-ratio: 1.27; outline: 1px solid #456074; }
.variant-b .button-main { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.variant-b .button-main:hover { background: var(--white); }
.variant-b .button-quiet { color: var(--white); border-color: #739488; }
.variant-b .button-quiet:hover { background: #2e4c61; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { min-height: 0; }
  .hero-visual { aspect-ratio: 1; }
  .nav-links { gap: 22px; }
}

@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding-block: 63px; }
  section[id] { scroll-margin-top: 116px; }
  .nav { min-height: 0; grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 10px; }
  .brand img { width: 111px; }
  .nav-links { grid-area: 2 / 1 / auto / span 2; gap: 23px; overflow-wrap: anywhere; min-height: 41px; }
  .nav-contact { grid-area: 1 / 2; padding: 8px 10px; }
  .nav-links a, .nav-contact { font-size: .89rem; }
  .hero-grid, .variant-b .hero-grid { grid-template-columns: 1fr; gap: 25px; min-height: 0; padding-block: 35px 26px; }
  .hero-copy { padding-block: 0; }
  h1 { font-size: clamp(2.1rem, 8.7vw, 3.35rem); }
  .hero-visual, .variant-b .hero-visual { aspect-ratio: 1.52; }
  .overline { margin-bottom: 15px; font-size: .9rem; }
  .hero-lead { font-size: 1.03rem; margin-top: 15px; }
  .actions { margin-top: 22px; gap: 8px; }
  .button { padding-inline: 13px; }
  .about, .product-list, .contact-grid, .footer-grid, .connection { grid-template-columns: 1fr; gap: 18px; }
  .section-top { display: grid; align-items: start; gap: 13px; margin-bottom: 24px; }
  .section-top > p { padding: 0; }
  .service-list { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 18px 0 20px 54px; position: relative; border-left: 0; }
  .service + .service { border-top: 1px solid #456074; }
  .service .motif { position: absolute; left: 0; top: 18px; margin: 0; }
  .service p { margin-top: 6px; }
  .product-visual { height: 212px; }
  .desktop-visual { padding: 24px; }
  .phone { height: 170px; }
  .contact-grid { gap: 22px; }
}

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