/* Layout: 水平線 — 上は砂浜の明るい紙面、下に深い海の帯。事業は行で並べ、ライフガード旗の赤黄を安全の一点だけに使う */
:root {
  --paper: #f2f6f5;
  --paper-2: #e6eeed;
  --ink: #0f2430;
  --muted: #4c6069;
  --line: #c6d3d4;
  --sea: #0b5e6b;
  --sea-deep: #08303b;
  --on-sea: #e9f3f2;
  --flag-r: #d23b28;
  --flag-y: #f0bf2c;
  --tbd-bg: #fff1c2;
  --tbd-fg: #6b4a00;
  --f-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1a20; --paper-2: #10242c; --ink: #e3ecec; --muted: #93a8ae; --line: #22404a;
    --sea: #48aab5; --sea-deep: #051319; --on-sea: #dcebea;
    --tbd-bg: #3a3010; --tbd-fg: #f3d98a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1a20; --paper-2: #10242c; --ink: #e3ecec; --muted: #93a8ae; --line: #22404a;
  --sea: #48aab5; --sea-deep: #051319; --on-sea: #dcebea;
  --tbd-bg: #3a3010; --tbd-fg: #f3d98a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.brand b { font-family: var(--f-display); font-weight: 900; font-size: 17px; letter-spacing: .04em; }
.brand span { font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .site-head nav { display: none; } }

/* hero */
.hero { padding-block: clamp(56px, 10vw, 112px) clamp(40px, 6vw, 64px); }
.coords { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; margin: 0 0 28px; }
.hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 6.4vw, 72px); line-height: 1.28; letter-spacing: .01em; margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sea); }
.hero p { max-width: 34em; color: var(--muted); margin: 28px 0 0; font-size: 17px; }

/* sea band */
.sea { position: relative; overflow: hidden; background: var(--sea-deep); color: var(--on-sea); }
.sea::before { content: ""; position: absolute; inset: 0; opacity: .22;
  background-image: repeating-linear-gradient(180deg, transparent 0 13px, var(--on-sea) 13px 14px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  animation: swell 9s ease-in-out infinite alternate; }
@keyframes swell { from { transform: translateY(0); } to { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .sea::before { animation: none; } }
.sea .wrap { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px 48px; align-items: end; padding-block: 56px; }
.stat-num { font-family: var(--f-label); font-weight: 600; font-size: clamp(64px, 12vw, 128px); line-height: .9; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .42em; margin-left: .08em; }
.stat-text { min-width: 0; max-width: 30em; padding-bottom: 8px; }
.stat-text b { display: block; font-size: 18px; font-weight: 700; }
.stat-text span { font-size: 14px; opacity: .8; }
@media (max-width: 640px) { .sea .wrap { grid-template-columns: 1fr; } }

/* sections */
section.block { padding-block: clamp(64px, 9vw, 104px); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 32px); margin: 0; letter-spacing: .04em; }
.sec-head span { font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* services */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 180px 1fr; gap: 8px 40px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.svc .tag { font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: .2em; color: var(--sea); display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.svc .body { min-width: 0; }
.svc h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; margin: 0 0 6px; }
.svc p { margin: 0; color: var(--muted); max-width: 36em; }
.flag { width: 16px; height: 16px; flex: none; background: linear-gradient(135deg, var(--flag-r) 50%, var(--flag-y) 50%); border-radius: 1px; }
.dev { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; border: 1px solid var(--sea); color: var(--sea); padding: 0 8px; border-radius: 99px; margin-left: 8px; vertical-align: 3px; }
@media (max-width: 640px) { .svc li { grid-template-columns: 1fr; } }

/* company */
.profile { margin: 0; display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--ink); }
.profile dt, .profile dd { padding-block: 18px; border-bottom: 1px solid var(--line); margin: 0; }
.profile dt { color: var(--muted); font-size: 14px; }
.profile dd { min-width: 0; }
.tbd { background: var(--tbd-bg); color: var(--tbd-fg); font-size: 13px; padding: 2px 8px; border-radius: 3px; }
@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; }
  .profile dt { border-bottom: 0; padding-bottom: 0; }
  .profile dd { padding-top: 4px; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-grid > * { min-width: 0; }
.contact-lead p { margin: 0 0 12px; color: var(--muted); }
form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
label .req { color: var(--flag-r); font-size: 12px; margin-left: 4px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: transparent; }
button { justify-self: start; font: inherit; font-weight: 700; letter-spacing: .08em; background: var(--sea-deep); color: var(--on-sea); border: 0; border-radius: 4px; padding: 14px 36px; cursor: pointer; }
button:hover { background: var(--sea); }
.notice { font-size: 13px; color: var(--muted); margin: 0; }
.notice[data-state="sent"] { color: var(--sea); font-weight: 700; }
@media (max-width: 760px) { .contact-grid, .row2 { grid-template-columns: 1fr; } }

/* footer */
footer { padding-block: 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer .mono { font-family: var(--f-mono); font-size: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page { padding-block: clamp(64px, 10vw, 120px); min-height: 50vh; }
.page h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 24px; }
.page p { color: var(--muted); max-width: 36em; }
.back { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--sea); }
footer nav a { color: var(--muted); }
