:root {
  --bg: #f5f8fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #0f3d75;
  --primary-2: #1d75b8;
  --accent: #14b8a6;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29,117,184,0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(20,184,166,0.15), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f2f7fb 42%, #ffffff 100%);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px; /* 角丸いらなければ削除OK */

  background: url('../img/seg.png') center/contain no-repeat;

  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.brand-text small {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}
.brand-text span { display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a, .mobile-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover, .nav a.is-active, .mobile-menu a.is-active { background: rgba(15,61,117,0.08); color: var(--primary); }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}
.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
  position: relative;
  content: "";
}
.mobile-toggle span::before { position: absolute; top: -6px; }
.mobile-toggle span::after { position: absolute; top: 6px; }
.mobile-menu {
  display: none;
  padding-bottom: 14px;
  gap: 6px;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 30px rgba(29,117,184,0.24);
}
.btn-secondary {
  color: var(--primary);
  background: white;
  border: 1px solid rgba(15,61,117,0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.btn-ghost {
  color: white;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero { padding: 48px 0 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy, .hero-visual {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.hero-copy {
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,184,166,0.10);
  color: #0f766e;
  border: 1px solid rgba(20,184,166,0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
  margin: 20px 0 18px;
  letter-spacing: -0.03em;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 38em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-points {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.point {
  padding: 14px 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 16px;
  font-size: 14px;
}
.point strong { display: block; font-size: 18px; color: var(--primary); margin-bottom: 4px; }
.hero-visual {
  padding: 18px;
  display: grid;
  gap: 18px;
  min-height: 560px;
  background: linear-gradient(160deg, rgba(15,61,117,0.05), rgba(20,184,166,0.08)), var(--surface-strong);
}
.visual-main {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15,61,117,0.6), rgba(29,117,184,0.35)),
    url('../img/outside2.png') center/cover;
  overflow: hidden;
}
.glass-note {
  position: absolute;
  top: 24px;
  right: 24px;
  width: min(100%, 340px);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 18px 18px 16px;
  color: white;
}
.glass-note h3 { margin: 0 0 8px; font-size: 20px; }
.glass-note p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.9); }
.visual-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-card, .service-card, .message-card, .showcase-card, .panel, .process-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
.mini-card, .service-card, .panel, .showcase-card { padding: 24px; }
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15,61,117,0.10), rgba(20,184,166,0.14));
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 700;
}

.section {
  padding: 38px 0;
  position: relative;
  border-radius: 30px;
  transition: background-color .45s ease, box-shadow .45s ease, transform .45s ease;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(15,61,117,0.04), rgba(20,184,166,0.04));
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.reveal-section {
  margin: 40px 0;
  padding: 32px;
}
.reveal-section.is-active {
  background-color: rgba(255,255,255,0.56);
  box-shadow: 0 18px 50px rgba(15,23,42,0.06);
  transform: translateY(-2px);
}
.reveal-section.is-active::before { opacity: 1; }
.is-hero-active { background-color: transparent; box-shadow: none; transform: none; }
.is-hero-active::before { display: none; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-2);
  font-weight: 800;
  margin-bottom: 8px;
}
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.18; margin: 0; letter-spacing: -0.02em; }
.section-head p, .panel p, .service-card p, .mini-card p, .showcase-card p, .process-step p { color: var(--muted); margin: 10px 0 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card h3, .mini-card h3, .panel h3 { margin: 0 0 10px; font-size: 22px; }

.process-wrap { padding: 30px; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.process-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  min-height: 200px;
}
.process-step small {
  display: block;
  color: var(--primary-2);
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.process-step strong { display: block; font-size: 18px; line-height: 1.5; }
.message-card { padding: 32px; }
.message-card p { margin: 0 0 16px; color: var(--muted); }
.signature { margin-top: 22px; font-weight: 700; color: var(--primary); }
.showcase-card strong { display: block; line-height: 1.7; }
.panel h3 { margin-top: 0; }
.list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.cta-box {
  background: linear-gradient(135deg, rgba(15,61,117,0.96), rgba(29,117,184,0.82));
  color: white;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.cta-box p { color: rgba(255,255,255,0.9); }
.cta-side { display: flex; gap: 12px; flex-wrap: wrap; }

footer { padding: 40px 0 60px; }
.footer-box {
  background: #0b1729;
  color: rgba(255,255,255,0.88);
  border-radius: 28px;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-box strong { color: white; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-copy { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.6); }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease, box-shadow .3s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-section.is-active .service-card,
.reveal-section.is-active .mini-card,
.reveal-section.is-active .process-step,
.reveal-section.is-active .showcase-card,
.reveal-section.is-active .panel,
.reveal-section.is-active .message-card {
  box-shadow: 0 14px 32px rgba(15,23,42,0.06);
}

@media (max-width: 1080px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { padding: 40px; }
}

@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .nav { display: none; }
  .mobile-toggle { display: inline-block; }
  .topbar-inner { min-height: 68px; }
  .hero-copy { padding: 28px; }
  .hero-points, .visual-subgrid, .process, .cta-box { grid-template-columns: 1fr; }
  .section { padding: 28px 0; }
  .section-head { display: block; }
  .glass-note {
    position: static;
    width: auto;
    margin: 16px;
  }
  .cta-box { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section, .reveal-section::before, [data-reveal] {
    transition: none !important;
    transform: none !important;
  }
  [data-reveal] { opacity: 1 !important; }
}

.page-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}
.page-intro {
  padding-top: 46px;
}
.page-intro-grid {
  align-items: start;
}
.page-intro-copy {
  padding: 24px 0;
}
.page-photo-panel {
  overflow: hidden;
}
.page-photo {
  min-height: 320px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15,61,117,0.55), rgba(29,117,184,0.30)),
    url('../img/outside2.png') center/cover;
}
.page-photo-note {
  padding-top: 18px;
}
.page-photo-note strong {
  display: block;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
}
.info-table {
  margin: 0;
}
.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-row:first-child {
  padding-top: 0;
  border-top: 0;
}
.info-row:last-child {
  padding-bottom: 0;
}
.info-row dt {
  font-weight: 700;
  color: var(--muted);
}
.info-row dd {
  margin: 0;
}
@media (max-width: 720px) {
  .page-intro {
    padding-top: 28px;
  }
  .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* Contact form */
.contact-layout {
  align-items: start;
}
.contact-form {
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: grid;
  gap: 8px;
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-field label {
  font-weight: 700;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(29,117,184,0.55);
  box-shadow: 0 0 0 4px rgba(29,117,184,0.12);
}
.required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(230, 120, 149, 0.14);
  color: #b03052;
}
.field-error {
  margin: 0;
  font-size: 13px;
  color: #b03052;
}
.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
}
.form-alert.is-error {
  background: rgba(176, 48, 82, 0.08);
  border: 1px solid rgba(176, 48, 82, 0.16);
  color: #8f2240;
}
.form-actions {
  margin-top: 22px;
}
.contact-side-card + .contact-side-card {
  margin-top: 18px;
}
.compact-info-table .info-row {
  grid-template-columns: 90px 1fr;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.thanks-wrap {
  max-width: 820px;
}
.thanks-panel {
  padding: 36px;
  text-align: center;
}
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .compact-info-table .info-row {
    grid-template-columns: 1fr;
  }
}
