:root {
  --blue: #075bdc;
  --blue-2: #2f73e6;
  --blue-3: #eaf2ff;
  --ink: #06183d;
  --text: #102346;
  --muted: #5c6b86;
  --line: #d7e1f0;
  --soft-line: #e7eef8;
  --surface: #f7faff;
  --white: #fff;
  --shadow: 0 16px 34px rgba(7, 42, 98, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 14%, rgba(45, 109, 220, 0.12), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f8fbff 46%, #fff 100%);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 56px, 1160px);
  margin: 0 auto;
}

.container-narrow {
  width: min(100% - 56px, 960px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: scale(1.58);
}

.nav {
  display: flex;
  align-items: center;
  gap: 52px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue);
}

.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), #0453c9);
  color: #fff;
  box-shadow: 0 14px 28px rgba(7, 91, 220, 0.22);
}

.primary-button:hover,
.outline-button:hover {
  transform: translateY(-1px);
}

.outline-button {
  border: 1px solid var(--blue);
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
}

.line-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: #06C755;
  font-size: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 0 20px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  display: grid;
  list-style: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--soft-line);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.mobile-nav .primary-button {
  width: 100%;
  margin-top: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.32) 100%),
    url("/assets/showcase/hero-abstract-background.webp") center top / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #f8fbff 86%);
}

.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: 52px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-name {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 700;
}

.hero-lead {
  max-width: 520px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 640px;
  margin: 48px 0 0;
}

.stat {
  padding: 0 34px;
  border-right: 1px solid #b7c8e4;
  text-align: center;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.stat-value {
  color: #5f91dc;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.stat-label {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(112%, 680px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.96;
  mix-blend-mode: multiply;
  filter: saturate(1.05) contrast(1.02);
  transform: none;
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 63% 50%, #000 0 58%, rgba(0, 0, 0, 0.92) 66%, transparent 86%);
  mask-image: radial-gradient(ellipse 58% 56% at 63% 50%, #000 0 58%, rgba(0, 0, 0, 0.92) 66%, transparent 86%);
}

.hero-visual::before {
  display: none;
}

.tech-strip {
  position: relative;
  z-index: 2;
  min-height: 58px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(7, 42, 98, 0.07);
  overflow: hidden;
}

.tech-strip::before,
.tech-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 1;
}

.tech-strip::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.tech-strip::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.tech-track {
  display: flex;
  width: max-content;
  animation: tech-marquee 40s linear infinite;
}

.tech-strip:hover .tech-track {
  animation-play-state: paused;
}

.tech-items {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 18px;
  margin: 0;
  list-style: none;
  min-height: 58px;
}

@keyframes tech-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 視差効果を減らす設定の人にもストリップは見えないと困るので、完全停止ではなく低速化 */
@media (prefers-reduced-motion: reduce) {
  .tech-track {
    animation-duration: 120s;
  }
}

.tech-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ロゴが用意できないサービス用のテキスト専用バッジ */
.tech-item-text {
  padding-left: 4px;
}

.tech-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.tech-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* 横長ロゴ（kintoneなど）は高さ基準でアスペクト比を維持 */
.tech-logo-wide {
  width: auto;
  height: 22px;
  max-width: 110px;
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1 {
  margin-top: 4px;
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.section-lead,
.page-hero-lead {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.plan-card,
.work-card,
.contact-card,
.info-card,
.legal-panel,
.table-card,
.flow-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 392px;
  padding: 14px 14px 22px;
  overflow: hidden;
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #f2f7ff;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.service-card:hover .service-media img,
.work-card:hover .work-thumb img {
  transform: scale(1.03);
}

.card-icon {
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border: 1px solid rgba(7, 91, 220, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 242, 255, 0.82));
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(7, 91, 220, 0.12);
}

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

.card-no {
  display: block;
  padding: 0 10px;
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.service-card h3 {
  margin: 7px 10px 10px;
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3 span {
  display: block;
  margin-top: 5px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  text-transform: none;
}

.service-card p {
  padding: 0 10px;
}

.service-card p,
.plan-card p,
.work-card p,
.info-card p,
.flow-card p,
.legal-panel p,
.legal-panel li {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  min-height: 192px;
  padding: 30px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.plan-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--blue);
}

.plan-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.plan-kicker,
.work-kicker,
.contact-label {
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card h3,
.work-card h3,
.info-card h3,
.flow-card h3 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.work-thumb {
  min-height: 176px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  overflow: hidden;
  background: #f2f7ff;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: transform 0.35s ease;
}

.mock-dark,
.mock-light {
  position: relative;
  height: 100%;
  min-height: 176px;
}

.mock-dark {
  background: linear-gradient(135deg, #061839, #0b315e);
}

.mock-light {
  background: linear-gradient(135deg, #f6fbff, #dbeaff);
}

.mock-dark::before,
.mock-light::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 4px;
}

.mock-dark::before {
  border: 1px solid rgba(124, 181, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(73, 148, 239, 0.55) 0 8%, transparent 8% 18%, rgba(48, 113, 208, 0.4) 18% 29%, transparent 29% 100%),
    radial-gradient(circle at 40% 44%, transparent 0 22%, rgba(124, 181, 255, 0.9) 23% 24%, transparent 25%),
    linear-gradient(160deg, transparent 0 52%, rgba(43, 160, 244, 0.5) 52% 54%, transparent 55%);
}

.mock-light::before {
  border: 1px solid #d7e5f5;
  background:
    linear-gradient(90deg, #fff 0 26%, transparent 26% 30%, #fff 30% 62%, transparent 62% 66%, #fff 66% 100%),
    linear-gradient(180deg, rgba(7, 91, 220, 0.08), transparent);
  box-shadow:
    18px 82px 0 -4px rgba(7, 91, 220, 0.22),
    48px 66px 0 -4px rgba(7, 91, 220, 0.38),
    78px 96px 0 -4px rgba(7, 91, 220, 0.18);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-3);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 260px;
  gap: 18px;
}

.contact-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.contact-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-form-card {
  grid-template-columns: 1fr;
  place-items: center;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(7, 91, 220, 0.22);
}

.contact-form-card .contact-value,
.contact-form-card .contact-label {
  color: #fff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 60px;
  border-bottom: 1px solid var(--soft-line);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -260px;
  width: 520px;
  height: 680px;
  border-radius: 50%;
  background: rgba(7, 91, 220, 0.09);
  transform: rotate(35deg);
}

.page-hero .container,
.page-hero .container-narrow {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-top: 12px;
  font-size: 44px;
}

.page-layout {
  padding: 58px 0 76px;
}

.soft-section {
  background: linear-gradient(180deg, rgba(234, 242, 255, 0.54), rgba(255, 255, 255, 0.78));
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.table-card {
  overflow: hidden;
  margin-top: 18px;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  font-weight: 600;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  background: #f3f8ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.plan-name {
  color: var(--ink);
  font-weight: 900;
}

.price {
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.price-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
}

.page-block {
  padding: 46px 0;
}

.block-title {
  margin: 34px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.info-grid,
.usecase-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.info-card {
  padding: 24px;
  box-shadow: none;
}

.info-card ul,
.legal-panel ul {
  list-style: none;
  margin-top: 10px;
}

.info-card li,
.legal-panel li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
}

.info-card li::before,
.legal-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.flow-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.flow-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  box-shadow: none;
}

.flow-number {
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 900;
}

.cta-section {
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(234, 242, 255, 0.95), rgba(255, 255, 255, 0.88));
  border-top: 1px solid var(--soft-line);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-box h2 {
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: 34px;
  line-height: 1.35;
}

.legal-panel {
  padding: 30px;
  box-shadow: none;
}

.legal-panel + .legal-panel {
  margin-top: 20px;
}

.legal-panel h2 {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--ink);
  font-size: 21px;
}

.legal-panel h3 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.legal-table th {
  width: 30%;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .nav {
    gap: 28px;
  }

  .services-grid,
  .info-grid,
  .usecase-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container,
  .container-narrow {
    width: min(100% - 36px, 1160px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo-wrap {
    width: 48px;
    height: 48px;
  }

  .nav,
  .header-line {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 52px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    min-height: 0;
    justify-content: flex-start;
  }

  .hero-visual img {
    width: min(100%, 620px);
    transform: none;
  }

  .hero-visual::before {
    inset: 24px 8px -8px 28px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero::before {
    right: -290px;
    opacity: 0.72;
  }

  .hero::after {
    right: -210px;
    top: 160px;
    opacity: 0.65;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .stat {
    padding: 0 18px;
  }

  .stat-value {
    font-size: 22px;
  }

  .tech-strip {
    margin-top: 28px;
  }

  .pricing-cards,
  .works-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-card {
    overflow-x: auto;
  }

  table {
    min-width: 620px;
  }
}

@media (max-width: 560px) {
  .container,
  .container-narrow {
    width: min(100% - 28px, 1160px);
  }

  .primary-button,
  .outline-button {
    width: 100%;
    min-height: 50px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-stats,
  .services-grid,
  .info-grid,
  .usecase-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid #b7c8e4;
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 34px 0;
  }

  .section-head h2,
  .page-hero h1 {
    font-size: 27px;
  }

  .plan-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .work-card {
    padding: 12px;
  }

  .flow-card {
    grid-template-columns: 1fr;
  }

  .legal-panel {
    padding: 22px;
  }
}

/* === Contact modal === */
.contact-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  padding: 0;
  border-radius: 14px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 60px rgba(6, 24, 61, 0.28);
  overflow: hidden;
}

.contact-modal::backdrop {
  background: rgba(6, 24, 61, 0.55);
  backdrop-filter: blur(2px);
}

.contact-modal[open] {
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px 28px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.contact-form[hidden] {
  display: none;
}

.contact-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.contact-modal-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-modal-head h2 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
}

.contact-modal-close {
  background: transparent;
  border: 1px solid var(--soft-line);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.contact-modal-close:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.contact-modal-lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: -6px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-field em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-3);
  padding: 2px 6px;
  border-radius: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-weight: 500;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 91, 220, 0.15);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-policy {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form-policy a {
  color: var(--blue);
  text-decoration: underline;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-form-actions .primary-button,
.contact-form-actions .outline-button {
  cursor: pointer;
}

.contact-form-status {
  font-size: 13px;
  min-height: 1.2em;
  color: var(--muted);
}

.contact-form-status.is-loading {
  color: var(--muted);
}

.contact-form-status.is-success {
  color: #137a3f;
}

.contact-form-status.is-error {
  color: #c0364a;
}

@media (max-width: 560px) {
  .contact-form {
    padding: 22px 20px 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-modal-head h2 {
    font-size: 20px;
  }
}

/* === Contact 送信完了画面 === */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 44px 28px 38px;
}

.contact-success[hidden] {
  display: none;
}

.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f6ee;
  color: #137a3f;
  box-shadow: 0 0 0 6px rgba(19, 122, 63, 0.08);
  animation: contact-success-pop 0.4s ease-out both;
}

@keyframes contact-success-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.contact-success-title {
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
}

.contact-success-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
}

.contact-success-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--surface);
  padding: 12px 16px;
  border-radius: var(--radius);
  width: 100%;
}

.contact-success-close {
  margin-top: 6px;
  min-width: 160px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .contact-success {
    padding: 36px 22px 30px;
  }
  .contact-success-title {
    font-size: 20px;
  }
}
