:root {
  --ink: #20242b;
  --muted: #515965;
  --blue: #2073d0;
  --blue-light: #edf4ff;
  --line: #dce2eb;
  --soft: #f5f7fa;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(164deg, #f7fcff 5%, #e3f5ff 34%, #f7fbff 68%, #e2f3fd); color: var(--ink); font: 500 1rem/1.75 var(--font); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.shell { width: min(92%, 1240px); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .45rem .8rem; background: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .5rem; align-items: baseline; font: 700 clamp(1.42rem, 3vw, 2.1rem)/1 Georgia, serif; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand small { font: 700 .59rem/1 var(--font); letter-spacing: .08em; }
.header nav { display: flex; align-items: center; gap: clamp(.65rem, 3.2vw, 2.6rem); font-size: .88rem; font-weight: 700; }
.header nav a { text-decoration: none; white-space: nowrap; }
.nav-contact { border: 1px solid var(--line); padding: .52rem .8rem; border-radius: 999px; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); padding-block: clamp(3.6rem, 7vw, 6.5rem); }
main { overflow: clip; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 -50vw; background: radial-gradient(ellipse at 42% 15%, #fff 2%, #fff0 44%), linear-gradient(225deg, #37baea7a, #2073d030 66%, #fff 100%); }
.label { color: #30557f; font-size: .85rem; font-weight: 800; letter-spacing: .105em; }
.hero h1 { margin: .32rem 0 .9rem; color: #102944; font-size: clamp(2.6rem, 6.1vw, 6.15rem); letter-spacing: -.065em; line-height: 1.13; }
.hero-description { margin-bottom: 1.55rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.3rem); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .65rem 1.05rem; border-radius: .5rem; text-decoration: none; font-weight: 800; }
.primary { background: var(--ink); color: #fff; }
.primary:hover { background: var(--blue); color: #fff; }
.hero .primary { background: #1768bd; }
.hero .primary:hover { background: #10569e; }
.hero-service-flow { display: grid; gap: .55rem; justify-items: start; padding: .5rem .25rem; }
.hero-service-flow > div { width: min(93%, 23rem); padding: .55rem .9rem; border: 1px solid #ffffffd9; border-radius: .8rem; background: linear-gradient(125deg, #ffffffdf, #f0faff95); box-shadow: 0 8px 25px #226fac19; color: #1c4770; }
.hero-service-flow > div:nth-child(even) { justify-self: end; }
.hero-service-flow strong, .hero-service-flow span { display: block; }
.hero-service-flow strong { font-size: clamp(.89rem, 1.45vw, 1.18rem); line-height: 1.35; }
.hero-service-flow span { font-size: .78rem; line-height: 1.45; color: #375771; }
.showcase { border-block: 1px solid var(--line); padding: clamp(2.8rem, 6vw, 5rem) 0; background: #ffffff9c; }
.section-heading { margin-bottom: clamp(1.65rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.6rem); letter-spacing: -.05em; line-height: 1.23; }
.section-heading h2, .company h2, .contact h2 { margin-top: .25rem; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.phone-column { min-width: 0; display: grid; place-items: center; gap: 1rem; }
.phone { position: relative; width: 100%; padding: 8px; border: 1px solid #474d59; border-radius: 2.2rem; background: #242830; box-shadow: 0 18px 28px #242b3e29, inset 0 0 0 2px #15171c; }
.viewport { width: 100%; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 1.65rem; background: white; touch-action: pan-x pinch-zoom; cursor: grab; }
.viewport:active { cursor: grabbing; }
.phone-track { display: flex; flex-direction: column; height: 100%; transition: transform .47s cubic-bezier(.24,.72,.26,1); }
.phone-track.is-dragging { transition: none; }
.phone-slide { flex: 0 0 100%; min-height: 0; }
.phone-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; }
.carousel-controls { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.carousel-controls button, .carousel-controls span { min-height: 42px; display: inline-grid; place-items: center; padding: .25rem .57rem; }
.carousel-controls button { min-width: 42px; border: 1px solid var(--line); border-radius: .45rem; background: #fff; color: var(--ink); font-weight: 800; }
.carousel-controls button:hover { color: var(--blue); border-color: var(--blue); }
.carousel-controls span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.swipe-hint { color: var(--muted); font-size: .77rem; }
.showcase-copy { min-width: 0; container-type: inline-size; }
@media (min-width: 681px) and (min-height: 940px) {
  .showcase-copy { position: sticky; top: 1rem; }
}
.descriptions { display: grid; padding: .6rem 0 1.45rem; border-bottom: 1px solid var(--line); }
.description { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.description.is-current { visibility: visible; opacity: 1; animation: describe .36s ease-out; }
.description h3 { margin: .3rem 0 .6rem; font-size: clamp(1.55rem, 3.55vw, 3.1rem); letter-spacing: -.045em; line-height: 1.19; }
.description p:not(.label) { color: var(--muted); max-width: 36rem; }
.description a { display: inline-block; margin-top: .8rem; font-size: .9rem; font-weight: 800; color: var(--blue); }
@keyframes describe { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
.scope { padding-top: 1.3rem; scroll-margin-top: 1rem; }
.scope h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); letter-spacing: -.04em; }
.scope-intro, .scope-note { font-size: .86rem; color: var(--muted); }
.scope-note { margin-top: .7rem; }
.scope-table { width: 100%; border-collapse: collapse; margin-top: .85rem; font-size: .8rem; }
.scope-table th, .scope-table td { border-bottom: 1px solid var(--line); padding: .35rem .28rem; text-align: center; }
.scope-table thead { background: var(--soft); }
.scope-table tr th:first-child { text-align: left; }
.scope-row { transition: background .2s; color: var(--muted); }
.scope-row.is-current { background: var(--blue-light); }
.scope-row button { border: 0; background: transparent; text-align: left; color: inherit; font-size: .83rem; line-height: 1.3; font-weight: 800; padding: .33rem .4rem; min-height: 36px; }
.scope-row button:hover { text-decoration: underline; }
.scope-row.is-current button { color: var(--blue); }
.check { display: inline-grid; place-items: center; flex: none; width: 1.28rem; height: 1.28rem; border-radius: 50%; background: #e4e8ee; color: #58616e; font-weight: 800; transition: background .2s, color .2s; }
.scope-row.is-current .check { background: var(--blue); color: white; }
.scope-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.35rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 6.2rem); }
.company p:not(.label), .contact p:not(.label) { color: var(--muted); margin: .85rem 0 1rem; }
.company a:not(.company-preview) { font-size: .9rem; font-weight: 800; }
.company-preview { border: 1px solid var(--line); overflow: hidden; border-radius: .8rem; }
.company-preview img { width: 100%; height: auto; }
.contact { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(225deg, #37baea30, #2073d015); border-block: 1px solid var(--line); }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; min-height: 85px; font-size: .84rem; color: var(--muted); }
@container (max-width: 530px) {
  .scope-table, .scope-table tbody { display: block; }
  .scope-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .scope-row { display: flex; flex-wrap: wrap; gap: .3rem .45rem; align-items: center; padding: .42rem .5rem; border-bottom: 1px solid var(--line); }
  .scope-row th:first-child { flex-basis: 100%; padding: 0; border: 0; }
  .scope-row td { display: none; }
  .scope-row td.covered { display: inline-flex; gap: .28rem; align-items: center; border: 0; padding: 0 .2rem; }
  .scope-label { position: static; width: auto; height: auto; clip-path: none; }
}
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; gap: 1.35rem; }
  .hero-service-flow > div { width: min(86%, 23rem); }
  .desktop { display: none; }
  .showcase-grid, .company { grid-template-columns: 1fr; }
  .phone { width: 50vw; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-service-flow > div { animation: show-service-card 7s ease-in-out infinite both; }
  .hero-service-flow > div:nth-child(2) { animation-delay: .32s; }
  .hero-service-flow > div:nth-child(3) { animation-delay: .64s; }
  .hero-service-flow > div:nth-child(4) { animation-delay: .96s; }
  .hero-service-flow > div:nth-child(5) { animation-delay: 1.28s; }
  @keyframes show-service-card {
    0%, 100% { opacity: 0; transform: translate(1rem, .65rem) scale(.97); }
    10%, 78% { opacity: 1; transform: none; }
    91% { opacity: 0; transform: translate(-.7rem, -.45rem); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-track, .scope-row, .check { transition: none; }
  .description.is-current { animation: none; }
}
