:root {
  --bg: #071a2d;
  --bg-deep: #04111e;
  --panel: rgba(10, 29, 50, 0.78);
  --panel-strong: rgba(11, 34, 58, 0.92);
  --card: rgba(255, 255, 255, 0.95);
  --text: #eef6ff;
  --muted: #c8d6e5;
  --line: rgba(106, 224, 214, 0.24);
  --line-strong: rgba(106, 224, 214, 0.55);
  --accent: #ff8a65;
  --accent-2: #59f3d2;
  --accent-3: #62a8ff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(53, 110, 168, 0.22), transparent 35%),
    radial-gradient(circle at 85% 18%, rgba(36, 203, 177, 0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(68, 98, 183, 0.25), transparent 40%),
    linear-gradient(180deg, #08192c 0%, #06111c 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.22;
}

body::after {
  background:
    radial-gradient(circle at 20% 60%, rgba(89,243,210,0.08), transparent 26%),
    radial-gradient(circle at 75% 32%, rgba(98,168,255,0.08), transparent 22%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 17, 30, 0.72);
  border-bottom: 1px solid rgba(125, 198, 255, 0.12);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(118, 248, 231, 0.35);
  background:
    radial-gradient(circle at 50% 50%, rgba(89,243,210,0.18), transparent 65%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  position: relative;
  box-shadow: inset 0 0 24px rgba(89,243,210,0.12);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(118, 248, 231, 0.4);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

.brand-mark::after {
  inset: 15px;
  background: rgba(98,168,255,0.45);
  border: none;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  padding: 12px 18px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  border: 1px solid rgba(255, 138, 101, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "E = mc²   ·   ∫ f(x)dx   ·   ∂/∂t   ·   Σ riskᵢ   ·   uncertainty";
  position: absolute;
  left: 5%;
  top: 11%;
  color: rgba(182, 211, 255, 0.13);
  font-family: Georgia, serif;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  letter-spacing: 0.08em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(89,243,210,0.28);
  border-radius: 999px;
  color: #b8fff0;
  background: rgba(13, 41, 62, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  box-shadow: 0 0 16px rgba(89,243,210,0.8);
}

.hero-copy h1,
.page-hero h1,
.section-title h2 {
  margin: 18px 0 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1 { font-size: clamp(2rem, 4vw, 3.7rem); }
.hero-copy p,
.lead,
.page-hero p {
  color: var(--muted);
  font-size: 1.03rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn,
button.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9b75, #ff7f61 60%, #e86c52);
  color: white;
  box-shadow: 0 18px 40px rgba(255, 129, 95, 0.32);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(118, 248, 231, 0.25);
  background: rgba(255,255,255,0.04);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.visual-panel {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(12, 36, 60, 0.95), rgba(6, 18, 31, 0.82)),
    linear-gradient(90deg, rgba(98,168,255,0.16), transparent);
  border: 1px solid rgba(104, 194, 255, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-panel::before,
.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
}

.visual-panel::before {
  background:
    radial-gradient(circle at 72% 18%, rgba(89,243,210,0.18), transparent 20%),
    radial-gradient(circle at 25% 70%, rgba(98,168,255,0.18), transparent 26%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
  opacity: 0.68;
}

.visual-panel::after {
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(118, 248, 231, 0.18) 44% 45%, transparent 45% 100%),
    linear-gradient(45deg, transparent 0 62%, rgba(98,168,255,0.16) 62% 63%, transparent 63% 100%);
}

.equation-note,
.wave-note {
  position: absolute;
  color: rgba(220, 240, 255, 0.18);
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.equation-note.top { top: 72px; left: 42px; }
.equation-note.mid { top: 220px; right: 40px; }
.wave-note { bottom: 32px; left: 24px; right: 24px; height: 110px; }

.wave-note svg {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.einstein-svg {
  position: absolute;
  inset: 80px 40px 80px 70px;
  width: calc(100% - 110px);
  height: calc(100% - 160px);
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.4));
}

.geo-cube,
.geo-cube::before,
.geo-cube::after {
  position: absolute;
  border: 1px solid rgba(118, 248, 231, 0.28);
}

.geo-cube {
  width: 170px;
  height: 170px;
  left: 48px;
  bottom: 58px;
  transform: rotate(45deg);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(89,243,210,0.04));
}

.geo-cube::before,
.geo-cube::after {
  content: "";
  inset: 18px;
  border-radius: 10px;
}

.geo-cube::after { inset: 38px; }

.section {
  position: relative;
  padding: 48px 0 88px;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title p { color: var(--muted); max-width: 760px; margin: 0 auto; }

.issue-grid,
.solution-grid,
.service-grid,
.contact-grid,
.policy-grid {
  display: grid;
  gap: 24px;
}

.issue-grid,
.solution-grid,
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244, 250, 255, 0.95));
  color: #0c2036;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.65);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(98,168,255,0.12), transparent 40%, rgba(89,243,210,0.08));
  pointer-events: none;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #e8f4ff, #f5ffff);
  box-shadow: inset 0 0 0 1px rgba(76, 151, 214, 0.15);
}

.card-icon svg { width: 34px; height: 34px; }

.card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.45;
}

.card p,
.card li { color: #2f4962; }

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.statement-panel {
  margin-top: 36px;
  padding: 36px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(7, 25, 44, 0.88), rgba(6, 18, 31, 0.96)),
    linear-gradient(90deg, rgba(98,168,255,0.12), transparent);
  border: 1px solid rgba(98,168,255,0.16);
  box-shadow: var(--shadow);
}

.statement-panel::before {
  display: block;
  color: rgba(196, 221, 255, 0.15);
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.page-hero {
  padding: 88px 0 32px;
}

.page-shell {
  position: relative;
  padding-bottom: 70px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(89,243,210,0.06), transparent 28%),
    linear-gradient(315deg, rgba(98,168,255,0.08), transparent 32%);
  pointer-events: none;
}

.glass-block {
  position: relative;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(9, 30, 51, 0.82), rgba(7, 21, 36, 0.95));
  border: 1px solid rgba(111, 192, 255, 0.16);
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(89,243,210,0.18);
  color: #bffef2;
  font-size: 0.85rem;
}

.service-card .tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(89,243,210,0.75);
}

.service-card h3 { margin: 0; font-size: 1.35rem; }
.service-card p { margin: 0; color: var(--muted); }
.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.service-card li + li { margin-top: 8px; }

.contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.contact-card,
.form-card,
.policy-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 30, 51, 0.9), rgba(6, 18, 30, 0.98));
  border: 1px solid rgba(114, 206, 255, 0.16);
  box-shadow: var(--shadow);
}

.contact-card,
.policy-card {
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.contact-item {
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-item strong,
.form-group label,
.policy-card h2,
.policy-section h3 { display: block; margin-bottom: 8px; }

.form-card { padding: 34px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-weight: 700;
  color: #f0f7ff;
}

.required {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 138, 101, 0.14);
  border: 1px solid rgba(255, 138, 101, 0.3);
  color: #ffc6b6;
  font-size: 0.75rem;
  vertical-align: middle;
}

.input,
textarea.input {
  width: 100%;
  border: 1px solid rgba(130, 192, 255, 0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus {
  border-color: rgba(89,243,210,0.52);
  box-shadow: 0 0 0 4px rgba(89,243,210,0.12);
  background: rgba(255,255,255,0.08);
}

textarea.input {
  min-height: 170px;
  resize: vertical;
}

.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.form-agree input { margin-top: 6px; }
.form-agree a { color: #8de8ff; text-decoration: underline; }
.error {
  min-height: 1.25em;
  color: #ffb6b6;
  font-size: 0.88rem;
}

.input.invalid,
.form-agree.invalid {
  border-color: rgba(255, 122, 122, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(255, 122, 122, 0.12);
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  z-index: 60;
}

.confirm-dialog.open { display: flex; }

.confirm-panel {
  width: min(100%, 760px);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 30, 51, 0.98), rgba(6, 18, 30, 1));
  border: 1px solid rgba(114, 206, 255, 0.18);
  box-shadow: var(--shadow);
}

.confirm-panel h3 { margin-top: 0; }
.confirm-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}
.confirm-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}
.confirm-item strong { display: block; margin-bottom: 8px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.policy-grid {
  grid-template-columns: 1fr;
}

.policy-card h2 { margin-top: 0; }
.policy-section + .policy-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(126, 192, 255, 0.12);
  background: rgba(4, 12, 22, 0.5);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a { color: #b4eaff; }

@media (max-width: 1024px) {
  .hero-grid,
  .contact-grid,
  .issue-grid,
  .solution-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .einstein-svg {
    inset: 60px 24px 86px 36px;
    width: calc(100% - 60px);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 76px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand-text { font-size: 1rem; letter-spacing: 0.1em; }
  .main-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .hero { padding-top: 48px; }
  .hero-copy h1 { font-size: 1.9rem; }
  .hero-visual { min-height: 420px; }
  .statement-panel, .glass-block, .form-card, .contact-card, .policy-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; }
}


.home-page {
  background:
    linear-gradient(180deg, rgba(5, 15, 26, 0.88), rgba(5, 15, 26, 0.96)),
    url("assets/top-hero.png") top center / cover no-repeat fixed,
    linear-gradient(180deg, #08192c 0%, #06111c 100%);
}

.home-page::after {
  background:
    radial-gradient(circle at 18% 68%, rgba(89,243,210,0.1), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(98,168,255,0.14), transparent 24%);
}

.hero-home {
  min-height: 840px;
  padding: 84px 0 70px;
  background:
    linear-gradient(90deg, rgba(6, 18, 30, 0.84) 0%, rgba(6, 18, 30, 0.54) 36%, rgba(6, 18, 30, 0.22) 58%, rgba(6, 18, 30, 0.52) 100%),
    linear-gradient(180deg, rgba(7, 24, 40, 0.1), rgba(7, 24, 40, 0.52)),
    url("assets/top-hero.png") right top / cover no-repeat;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.24;
}

.hero-home .hero-grid {
  min-height: 680px;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 24px;
  align-items: start;
}

.hero-copy-glass {
  margin-top: 36px;
  padding: 34px 34px 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(6, 20, 34, 0.72), rgba(7, 24, 40, 0.56));
  border: 1px solid rgba(142, 194, 255, 0.15);
  box-shadow: 0 26px 60px rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
}

.hero-copy-glass p,
.hero-copy-glass .lead {
  color: #e6f0fb;
}

.hero-copy-glass .lead {
  margin-top: 28px;
  max-width: 34rem;
}

.hero-spacer {
  min-height: 660px;
}

.service-page {
  background:
    linear-gradient(180deg, rgba(5, 15, 26, 0.9), rgba(5, 15, 26, 0.97)),
    url("assets/service-bg.png") top center / cover no-repeat fixed,
    linear-gradient(180deg, #08192c 0%, #06111c 100%);
}

.service-hero {
  min-height: 700px;
  padding: 80px 0 42px;
  background:
    linear-gradient(180deg, rgba(5, 16, 28, 0.4), rgba(5, 16, 28, 0.82) 74%, rgba(5, 16, 28, 0.95) 100%),
    url("assets/service-bg.png") center top / cover no-repeat;
}

.service-hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 540px) 1fr;
  gap: 28px;
  align-items: start;
}

.service-hero-copy {
  margin-top: 34px;
  padding: 30px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 21, 36, 0.72), rgba(7, 21, 36, 0.5));
  border: 1px solid rgba(116, 191, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.28);
}

.service-hero-face {
  min-height: 520px;
}

@media (max-width: 1024px) {
  .hero-home .hero-grid,
  .service-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-home {
    background-position: 72% top;
  }

  .hero-spacer,
  .service-hero-face {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .hero-home {
    min-height: auto;
    padding: 48px 0 40px;
    background-position: 78% top;
  }

  .hero-home .hero-grid {
    min-height: auto;
  }

  .hero-copy-glass,
  .service-hero-copy {
    margin-top: 12px;
    padding: 24px;
  }

  .service-hero {
    min-height: auto;
    background-position: 54% top;
  }
}
/* ==========================================
   トップページ (index.html) の背景設定
   ========================================== */

/* 1. ページ全体の背景設定 */
.home-page {
  /* 【修正】グラデーションを左側（テキスト裏）は濃く、右側（顔の上）は完全に透明に調整 */
  background-image: linear-gradient(90deg, rgba(5, 15, 26, 0.92) 0%, rgba(5, 15, 26, 0.8) 40%, rgba(5, 15, 26, 0) 80%), url("../top-bg.jpg");
  background-size: cover;           
  background-position: center center; 
  background-repeat: no-repeat;
  background-attachment: fixed;     
  background-color: #0d283c;       
  color: #ffffff;
}

/* 2. ヒーローセクション */
.home-page .hero-home {
  background: transparent;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 84px 0 70px;
}

.home-page .hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.24;
  pointer-events: none;
}

/* 3. 左側のテキストエリア（磨りガラス効果） */
.home-page .hero-copy-glass {
  background: rgba(13, 40, 60, 0.75); 
  backdrop-filter: blur(10px);        
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  color: #ffffff;
}

/* 4. 後続セクション・カードの調整 */
.home-page .section {
  background: transparent;
}

.home-page .card {
  background: rgba(255, 255, 255, 0.05); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
}

.home-page .card h3 {
  color: #59F3D2; 
}

.home-page .card p {
  color: #e0e0e0;
}

.home-page .statement-panel {
  background: rgba(13, 40, 60, 0.5);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================
   サービス・問い合わせページ共通 背景設定
   ========================================== */

/* 1. ページ全体の背景設定 */
.service-page {
  background-image: 
    linear-gradient(180deg, rgba(5, 15, 26, 0.85), rgba(5, 15, 26, 0.95)), 
    url("service-bg.jpg"); 
  background-size: cover;          
  background-position: center top; 
  background-repeat: no-repeat;
  background-attachment: fixed;    
  background-color: #071c2c;       
  color: #ffffff;
}

.service-hero {
  background: transparent;
  padding: 80px 0 42px;
}

/* 2. セクション全体の透明化と余白調整 */
.service-page .section {
  background: transparent;
  padding-top: 60px !important;    
}

/* 3. サービスカードおよび問い合わせカード */
.service-page .glass-block.service-card,
.service-page .contact-card,
.service-page .form-card {
  background: rgba(10, 29, 50, 0.75) !important; 
  border: 1px solid rgba(106, 224, 214, 0.25) !important; 
  backdrop-filter: blur(12px);         
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
}

.service-page .glass-block.service-card {
  padding: 35px;
  border-radius: 22px;                 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-page .glass-block.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(89, 243, 210, 0.15);
}

.service-page .service-card ul li {
  color: #c8d6e5; 
}

.service-page .service-card h3 {
  color: #59f3d2; 
  font-size: 1.35rem;
  margin-top: 0;
}

.service-page .form-group label {
  color: #ffffff;
}

/* ==========================================
   レスポンシブ（スマホ・タブレット画面用の調整）
   ========================================== */

@media (max-width: 760px) {
  /* --- 1. ヘッダーと見切れメニューの完璧な修正 --- */
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(4, 17, 30, 0.92); 
  }

  /* 横幅の有効スペースを最大化して見切れを絶対に防ぐ */
  .site-header .container {
    width: 100% !important;
    padding: 0 12px !important;
    margin: 0;
  }

  .header-inner {
    min-height: 60px;       
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;   
    justify-content: space-between;
    align-items: center;
    gap: 4px;
  }

  .brand {
    gap: 6px;
    flex-shrink: 0;         
  }

  .brand-mark {
    width: 26px;            
    height: 26px;
    border-radius: 8px;
  }
  .brand-mark::before, .brand-mark::after { inset: 4px; }
  .brand-mark::after { inset: 8px; }

  .brand-text {
    font-size: 0.8rem;      
    letter-spacing: 0.04em;
  }

  .main-nav {
    width: auto !important;
    justify-content: flex-end;
    gap: 2px;               
    flex-wrap: nowrap !important;
    flex-shrink: 1;
  }

  .nav-link {
    font-size: 0.7rem;      
    letter-spacing: 0.02em;
    padding: 6px 8px;       
  }

  /* --- 2. 背景画像を明るくして、最背面に完全固定する修正 --- */
  .hero {
    padding-top: 20px;
  }

  .home-page {
    position: relative;
    background: #050f1a !important; 
    z-index: 0;
  }

  /* 💡【明るさ調整版】疑似要素のグラデーションを薄くして、アインシュタインをくっきり浮き上がらせます */
  .home-page::before {
    content: "" !important;
    position: fixed !important;    
    inset: 0 !important;           
    z-index: -1 !important;        
    
    /* 黒いマスクの透明度（最後の数値）を 0.4→0.2 や 0.7→0.45 に薄めて明るくしました */
    background-image: 
      linear-gradient(180deg, rgba(5, 15, 26, 0.1) 0%, rgba(5, 15, 26, 0.25) 40%, rgba(5, 15, 26, 0.95) 95%), 
      url("top-bg-sp.jpg") !important;
    
    background-size: 100% auto !important; 
    background-position: center top !important; 
    background-repeat: no-repeat !important;
  }

  /* 古い記述のヒーロー背景を完全にクリア */
  .hero-home {
    min-height: auto !important;
    padding: 32px 0 40px !important;
    background: transparent !important; 
  }

  .hero-home .hero-grid {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  /* 磨りガラス風テキストエリアをスマホ向けに最適化 */
  .hero-copy-glass {
    margin-top: 16px;
    padding: 20px;
    background: rgba(6, 20, 34, 0.65) !important;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-copy h1 {
    font-size: 1.4rem;
    line-height: 1.35;
  }

  .statement-panel, .glass-block, .form-card, .contact-card, .policy-card { 
    padding: 20px; 
  }
  
  .form-grid { 
    grid-template-columns: 1fr; 
  }
  
  .footer-grid { 
    align-items: flex-start; 
  }

  /* 丸ボタンのスマホ最適化 */
  .btn-primary {
    display: inline-flex !important;
    width: auto !important;           
    min-width: 180px;                 
    padding: 12px 24px !important;    
    border-radius: 999px !important;  
    font-size: 0.9rem !important;    
    line-height: 1.3 !important;      
    text-align: center;
    box-shadow: 0 12px 30px rgba(255, 129, 95, 0.4) !important;
  }
}