:root {
  --bg: #e8edf3;
  --surface: #e8edf3;
  --text: #2b3440;
  --muted: #5d6877;
  --accent: #2f7d8c;
  --accent-strong: #246673;
  --on-accent: #ffffff;
  --shadow-dark: rgba(163, 177, 198, 0.65);
  --shadow-light: rgba(255, 255, 255, 0.9);
  --glass: rgba(232, 237, 243, 0.78);
  --hero-glow: rgba(255, 255, 255, 0.7);
  --hero-from: #dfe8ef;
  --hero-mid: #cfdde6;
  --hero-to: #e9eef2;
  --radius: 24px;
  --radius-sm: 14px;
  --raised: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
  --raised-sm: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  --inset: inset 4px 4px 10px var(--shadow-dark), inset -4px -4px 10px var(--shadow-light);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #262b33;
    --surface: #262b33;
    --text: #e4e8ee;
    --muted: #a3adba;
    --accent: #5fb3c2;
    --accent-strong: #7cc6d3;
    --on-accent: #10262b;
    --shadow-dark: rgba(14, 17, 21, 0.7);
    --shadow-light: rgba(58, 65, 76, 0.55);
    --glass: rgba(38, 43, 51, 0.88);
  --hero-glow: rgba(95, 179, 194, 0.12);
  --hero-from: #2b323b;
  --hero-mid: #232a32;
  --hero-to: #2e353e;
  }
}
:root[data-theme="dark"] {
  --bg: #262b33;
  --surface: #262b33;
  --text: #e4e8ee;
  --muted: #a3adba;
  --accent: #5fb3c2;
  --accent-strong: #7cc6d3;
  --on-accent: #10262b;
  --shadow-dark: rgba(14, 17, 21, 0.7);
  --shadow-light: rgba(58, 65, 76, 0.55);
  --glass: rgba(38, 43, 51, 0.88);
  --hero-glow: rgba(95, 179, 194, 0.12);
  --hero-from: #2b323b;
  --hero-mid: #232a32;
  --hero-to: #2e353e;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; letter-spacing: 0.04em; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--surface);
  box-shadow: var(--raised-sm);
}
.brand-name { font-size: 15px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, box-shadow .2s;
}
.nav a:hover { color: var(--text); box-shadow: var(--inset); }
.nav .nav-cta { color: var(--accent-strong); box-shadow: var(--raised-sm); }
.nav .nav-cta:hover { box-shadow: var(--inset); }
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 14px; }
  .nav a { white-space: nowrap; }
}
/* 社名と問い合わせボタンが並ばない幅では、HERO のボタンから問い合わせてもらう */
@media (max-width: 400px) {
  .nav { display: none; }
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--raised-sm);
  transition: box-shadow .2s, transform .2s, background .2s;
}
.btn:hover { box-shadow: var(--inset); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--raised-sm); transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 17px; }
.btn:focus-visible, .nav a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* HERO */
.hero { padding: 24px 0 56px; }
.hero-photo {
  position: relative;
  min-height: min(78vh, 680px);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(16px, 4vw, 48px);
  box-shadow: var(--raised);
  /* 写真がまだないときの下地 */
  background:
    radial-gradient(1200px 500px at 85% 10%, var(--hero-glow), transparent 60%),
    linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 45%, var(--hero-to) 100%);
}
.hero-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  position: relative;
  max-width: 560px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(30, 45, 60, 0.12);
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
.lead { margin-top: 18px; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* セクション */
.section { padding: 56px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 32px); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--raised);
  padding: clamp(24px, 4vw, 40px);
}

/* ノビット */
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}
.feature-icon {
  padding: 18px;
  border-radius: 28px;
  box-shadow: var(--inset);
}
.feature-icon img { width: 96px; height: 96px; border-radius: 22px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: var(--inset);
  margin-bottom: 12px;
}
.feature h3 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 12px; }
.feature-body > p { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 28px; }
.pills li {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--raised-sm);
}
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; }
  .feature-icon { justify-self: start; padding: 14px; }
  .feature-icon img { width: 72px; height: 72px; }
}

/* そのほかの事業 */
.group-title {
  font-size: 15px;
  color: var(--muted);
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--shadow-dark); }
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.service h4 { font-size: 18px; margin: 20px 0 10px; }
.service p { color: var(--muted); font-size: 15px; }
.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: var(--inset);
  color: var(--accent);
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 会社概要 */
.profile dl { margin: 0; }
.profile dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--shadow-dark);
}
.profile dl > div:last-child { border-bottom: none; }
.profile dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.profile dd { margin: 0; }
.profile ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 640px) {
  .profile dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* お問い合わせ */
.contact { text-align: center; }
.contact h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 16px; }
.contact > p:not(.eyebrow):not(.note) { color: var(--muted); margin-bottom: 28px; }
.contact .btn-lg { word-break: break-all; }
.note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* フッター */
.site-footer { padding: 40px 0 48px; color: var(--muted); font-size: 13px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
