:root {
  --bg: #071014;
  --bg-soft: #0b151a;
  --panel: rgba(15, 27, 33, 0.82);
  --panel-solid: #0f1b21;
  --line: rgba(153, 227, 239, 0.14);
  --line-strong: rgba(153, 227, 239, 0.24);
  --text: #edf9fb;
  --text-soft: #b5c7cb;
  --muted: #789097;
  --accent: #83dfef;
  --accent-strong: #b0f3ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  --header-bg: rgba(7,16,20,.72);
  --overlay: rgba(0,0,0,.68);
  --hero-line: rgba(255,255,255,.05);
  --section-line: rgba(255,255,255,.04);
  --footer-line: rgba(255,255,255,.06);
  --radius: 22px;
  --shell: 1180px;
}

:root[data-theme="light"] {
  --bg: #f7fbfc;
  --bg-soft: #edf5f7;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --line: rgba(20, 71, 80, 0.14);
  --line-strong: rgba(20, 71, 80, 0.25);
  --text: #102327;
  --text-soft: #496067;
  --muted: #73858a;
  --accent: #2da9bd;
  --accent-strong: #147f92;
  --shadow: 0 30px 90px rgba(34, 69, 76, 0.14);
  --header-bg: rgba(247,251,252,.78);
  --overlay: rgba(13, 30, 35, .38);
  --hero-line: rgba(20,71,80,.08);
  --section-line: rgba(20,71,80,.08);
  --footer-line: rgba(20,71,80,.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7fbfc;
    --bg-soft: #edf5f7;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-solid: #ffffff;
    --line: rgba(20, 71, 80, 0.14);
    --line-strong: rgba(20, 71, 80, 0.25);
    --text: #102327;
    --text-soft: #496067;
    --muted: #73858a;
    --accent: #2da9bd;
    --accent-strong: #147f92;
    --shadow: 0 30px 90px rgba(34, 69, 76, 0.14);
    --header-bg: rgba(247,251,252,.78);
    --overlay: rgba(13, 30, 35, .38);
    --hero-line: rgba(20,71,80,.08);
    --section-line: rgba(20,71,80,.08);
    --footer-line: rgba(20,71,80,.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 8%, rgba(131, 223, 239, .1), transparent 28%),
    radial-gradient(circle at 12% 60%, rgba(77, 158, 174, .08), transparent 24%);
}

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--footer-line);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--accent-strong); background: rgba(131,223,239,.06); }
.brand-name { font-size: 15px; }
.brand-sub { margin-left: 5px; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 25px; margin-left: auto; }
.nav a { font-size: 13px; color: var(--text-soft); transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(127,127,127,.06); }
.theme-btn { min-height: 30px; padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.theme-btn:hover { color: var(--text); }
.theme-btn.is-active { background: var(--panel-solid); color: var(--text); box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--line-strong); background: rgba(131,223,239,.05); }

.hero { min-height: 760px; display: grid; align-items: center; border-bottom: 1px solid var(--hero-line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; padding: 90px 0 110px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 700; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(58px, 9vw, 112px); line-height: .91; letter-spacing: -.06em; }
.hero h1 span { color: var(--accent-strong); }
.hero-copy { max-width: 610px; color: var(--text-soft); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.primary-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 17px; border-radius: 13px; font-size: 13px; font-weight: 700; transition: transform .2s, border-color .2s, background .2s; }
.primary-btn { background: var(--accent); color: #072027; border: 1px solid var(--accent); }
.secondary-btn { border: 1px solid var(--line-strong); color: var(--text); background: rgba(127,127,127,.055); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); }
.secondary-btn.disabled { opacity: .55; pointer-events: none; }

.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; transform: rotate(-18deg); }
.orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 22px var(--accent); }
.orbit-a { width: 390px; height: 190px; }
.orbit-a::after { top: 8px; right: 54px; }
.orbit-b { width: 450px; height: 270px; transform: rotate(26deg); }
.orbit-b::after { bottom: 24px; left: 35px; }
.core { width: 175px; height: 175px; display: grid; place-items: center; border-radius: 48px; border: 1px solid var(--line-strong); background: radial-gradient(circle, rgba(131,223,239,.2), rgba(10,24,29,.9)); box-shadow: var(--shadow); }
.core span { font-size: 64px; color: var(--accent-strong); text-shadow: 0 0 34px rgba(131,223,239,.38); }
.hero-caption { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: min(100%, 280px); padding: 15px 18px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); }
.hero-caption small, .hero-caption span { display: block; color: var(--muted); }
.hero-caption small { font-size: 9px; letter-spacing: .14em; }
.hero-caption strong { display: block; margin: 5px 0 2px; font-size: 22px; }
.hero-caption span { font-size: 11px; }

.section { padding: 105px 0; }
.section-muted { background: var(--bg-soft); border-block: 1px solid var(--section-line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-title { margin: 6px 0 0; font-size: clamp(37px, 5vw, 62px); line-height: 1; letter-spacing: -.05em; }
.section-desc { max-width: 650px; margin: 14px 0 0; color: var(--text-soft); font-size: 14px; }
.result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 27px; }
.search-field { flex: 1; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(127,127,127,.045); }
.search-field > span:not(.sr-only) { color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-field input::placeholder { color: #657980; }
.toolbar-selects { display: flex; gap: 12px; }
.field { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; outline: 0; background: rgba(127,127,127,.045); color: var(--text); }
.field:focus, .search-field:focus-within { border-color: var(--line-strong); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.service-card { min-width: 0; }
.service-hit-area { width: 100%; min-height: 365px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); cursor: pointer; transition: transform .22s, border-color .22s, background .22s; }
.service-hit-area:hover { transform: translateY(-5px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(131,223,239,.08), rgba(255,255,255,.015)); }
.service-card-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.service-index { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 700; border: 1px solid var(--line); }
.status-live { color: var(--accent-strong); background: rgba(131,223,239,.08); }
.status-progress { color: #e3d39b; background: rgba(227,211,155,.08); }
.status-closed { color: #c9a4ad; background: rgba(201,164,173,.08); }
.service-icon { width: 58px; height: 58px; margin: 32px 0 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(131,223,239,.06); color: var(--accent-strong); font-weight: 800; }
.service-meta { color: var(--accent); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.service-hit-area h3 { margin: 6px 0 8px; font-size: 23px; letter-spacing: -.035em; }
.service-hit-area p { margin: 0; color: var(--text-soft); font-size: 13px; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.tag-row span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.service-more { display: inline-flex; gap: 8px; margin-top: auto; padding-top: 25px; color: var(--text); font-size: 12px; font-weight: 700; }
.empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-soft); }
.empty span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.about-copy p { margin: 0 0 18px; color: var(--text-soft); font-size: 16px; }
.about-copy .muted { color: var(--muted); font-size: 13px; }
.about-actions {
  margin-top: 1.5rem;
}

.contact-card { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(131,223,239,.06), rgba(255,255,255,.02)); }

.site-footer { border-top: 1px solid var(--footer-line); padding: 26px 0 36px; color: var(--muted); font-size: 11px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text-soft); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: var(--overlay); backdrop-filter: blur(8px); }
.modal-backdrop.is-open { display: flex; }
.modal { width: min(720px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--panel-solid); box-shadow: var(--shadow); }
.modal-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.modal-head > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.modal-head strong { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; width: fit-content; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.modal-body { padding: 24px; }
.modal-status { width: fit-content; }
.modal-lead { margin: 15px 0 6px; font-size: 21px; line-height: 1.45; }
.modal-copy { color: var(--text-soft); font-size: 14px; }
.modal-block { margin-top: 27px; }
.modal-block h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.modal-list { margin: 0; padding-left: 19px; color: var(--text-soft); font-size: 13px; }
.modal-action { margin-top: 27px; }

@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 390px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 64px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .theme-switcher { max-width: 100%; }
  .theme-btn { padding-inline: 7px; }
  .hero-grid { padding: 70px 0 85px; }
  .hero h1 { font-size: clamp(55px, 18vw, 85px); }
  .hero-visual { min-height: 330px; }
  .orbit-a { width: 285px; height: 145px; }
  .orbit-b { width: 335px; height: 205px; }
  .core { width: 140px; height: 140px; }
  .section { padding: 75px 0; }
  .section-head, .toolbar, .contact-card, .footer-inner { align-items: stretch; flex-direction: column; }
  .toolbar-selects { width: 100%; }
  .toolbar-selects .field { flex: 1; min-width: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-hit-area { min-height: 330px; }
  .contact-card { align-items: flex-start; }
  .footer-inner { display: flex; }
}

@media (max-width: 420px) {
  .theme-btn { font-size: 9px; padding-inline: 6px; }
  .icon-btn { width: 36px; height: 36px; }
}
