:root {
  --blue-900: #082558;
  --blue-800: #0a367f;
  --blue-700: #0057d9;
  --blue-600: #1468e8;
  --blue-500: #2b7dff;
  --blue-200: #cfe1ff;
  --blue-100: #edf5ff;
  --cyan-100: #eaf8ff;
  --ink: #2b1d10;
  --muted: #6e5b48;
  --line: #ead9c8;
  --surface: #ffffff;
  --soft: #fdf6ee;
  --yellow: #ffd84a;
  --yellow-dark: #e3a900;
  --green: #0dba72;
  --orange-900: #8c3f1f;
  --orange-800: #a8492a;
  --orange-700: #d97757;
  --orange-600: #e08a6d;
  --orange-500: #ec9b78;
  --orange-400: #f0b193;
  --orange-300: #f8d2bd;
  --orange-200: #fcebdc;
  --orange-100: #fdf4eb;
  --warm-900: #2b1d10;
  --warm-700: #4a3a2c;
  --warm-600: #5c4838;
  --warm-500: #6e5b48;
  --warm-300: #b59982;
  --warm-100: #fdf6ee;
  --shadow: 0 18px 50px rgba(58, 28, 12, 0.14);
  --radius: 8px;
  --container: 1200px;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
  --font-heading: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
main [id] {
  scroll-margin-top: 88px;
}

@media (max-width: 760px) {
  section[id],
  main [id] {
    scroll-margin-top: 68px;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.7;
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 210, 189, 0.55), transparent 620px),
    radial-gradient(circle at 0% 30%, rgba(253, 244, 235, 0.85), transparent 480px),
    linear-gradient(180deg, rgba(253, 244, 235, 0.7), transparent 520px),
    #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
}

.text-nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-title-first {
  display: inline;
}

.hero-title-first span {
  display: inline;
}

.hero-tool-line {
  display: inline;
}

.mobile-break {
  display: inline;
}

.tool-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  max-width: 100%;
  margin-right: 0.08em;
  line-height: 1;
  vertical-align: -0.08em;
}

.tool-logo {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: min(52vw, 270px);
  height: 0.82em;
}

.tool-separator {
  flex: 0 0 auto;
  color: #7891b4;
  font-size: 0.86em;
  font-weight: 900;
  line-height: 1;
}

.codex-wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92em;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 78px;
  padding: 10px clamp(20px, 4vw, 40px);
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid rgba(248, 210, 189, 0.55);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--warm-900);
}

.brand-lockup {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  line-height: 1;
}

.service-logo-image {
  display: block;
  width: auto;
  height: clamp(34px, 3.1vw, 44px);
}

.service-name {
  color: var(--blue-900);
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand-provider {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.brand-by {
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(112px, 10vw, 146px);
  height: auto;
}

.site-header .brand-by {
  color: #333333;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
}

.site-header .brand-logo {
  width: clamp(58px, 5.5vw, 78px);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--warm-700);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a + a::before,
.site-footer nav a + a::before {
  margin-right: 18px;
  color: var(--warm-300);
  content: "/";
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 87, 217, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) 0 54px;
}

.hero-image-section,
.section-image {
  width: 100%;
  margin: 0;
  padding: 0;
}

.section-image-frame {
  display: block;
  width: 100%;
}

.section-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.hero-image-frame {
  display: block;
  width: 100%;
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-cta {
  position: absolute;
  left: 3%;
  top: 71%;
  width: 33%;
  height: 8%;
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.hero-image-cta:hover,
.hero-image-cta:focus-visible {
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .hero-image-cta {
    left: 9%;
    top: 28%;
    width: 82%;
    height: 7%;
  }
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 4px 12px;
  color: var(--orange-900);
  font-size: 13px;
  font-weight: 800;
  background: var(--orange-100);
  border: 1px solid var(--orange-300);
  border-radius: 999px;
}

h1,
h2,
h3,
h4,
p,
li,
strong {
  overflow-wrap: anywhere;
}

p {
  min-width: 0;
}

h1 {
  margin: 0;
  color: var(--warm-900);
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.3vw, 40px);
  font-weight: 900;
  line-height: 1.36;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 24px 0 22px;
  color: var(--warm-700);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.9;
}

.hero-badges,
.final-cta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--warm-700);
  font-size: 13px;
  font-weight: 800;
}

.hero-badges li,
.final-cta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badges li::before,
.final-cta li::before,
.check-list li::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  content: "✓";
  background: var(--orange-700);
  border-radius: 50%;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(420px, 100%);
  min-height: 66px;
  margin-top: 26px;
  padding: 0 28px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(180deg, #2786ff, #0058d8);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(0, 87, 217, 0.28);
}

.primary-button svg,
.secondary-button svg,
.step-options svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-note {
  margin: 14px 0 0 74px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.support-note::before {
  margin-right: 8px;
  content: "◎";
  color: var(--orange-700);
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mock-panel,
.small-card,
.result-card,
.menu-card,
.topic-grid article {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mock-panel {
  padding: 18px;
}

.mock-panel h2 {
  margin: 0 0 13px;
  font-size: 15px;
  line-height: 1.45;
}

.video-panel,
.summary-panel {
  grid-column: 1;
}

.metrics-panel,
.trend-panel,
.channel-panel {
  grid-column: 2;
}

.video-panel {
  grid-row: span 2;
}

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

.video-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f6c4a1, #fff8f0);
  border: 1px solid var(--orange-200);
  border-radius: 6px;
}

.video-tile::after {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 30px;
  height: 10px;
  content: "";
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
}

.video-tile.product {
  background:
    radial-gradient(circle at 55% 42%, rgba(255, 231, 135, 0.95) 0 12px, transparent 13px),
    linear-gradient(90deg, transparent 42%, rgba(154, 97, 32, 0.75) 43% 58%, transparent 59%),
    linear-gradient(180deg, #fbd5b5, #fdf0e3 62%, #d7c2a8);
}

.video-tile.product-alt {
  background:
    radial-gradient(circle at 54% 42%, rgba(255, 225, 101, 0.95) 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 45%, rgba(147, 92, 39, 0.82) 46% 58%, transparent 59%),
    linear-gradient(180deg, #fce5d0, #fff5db 65%, #c7b49d);
}

.video-tile.person-a {
  background:
    radial-gradient(circle at 52% 28%, #f1d0b7 0 11px, transparent 12px),
    linear-gradient(90deg, transparent 38%, #4a2c18 39% 64%, transparent 65%),
    linear-gradient(180deg, #fff8f0 0 54%, #e8c5a8 55% 100%);
}

.video-tile.person-b {
  background:
    radial-gradient(circle at 54% 31%, #e9c5a9 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 42%, #5c3a26 43% 62%, transparent 63%),
    linear-gradient(180deg, #fdf0e3 0 50%, #d3bd9e 51% 100%);
}

.video-tile.person-c {
  background:
    radial-gradient(circle at 50% 30%, #e5bf9d 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 40%, #ffffff 41% 61%, transparent 62%),
    linear-gradient(180deg, #fdf0e3 0 55%, #d8b8a0 56% 100%);
}

.video-tile.studio {
  background:
    linear-gradient(90deg, transparent 56%, rgba(74, 44, 24, 0.65) 57% 66%, transparent 67%),
    linear-gradient(180deg, #fff8f0 0 58%, #ead9c8 59% 100%);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-row div {
  min-width: 0;
}

.metric-label {
  display: block;
  color: var(--warm-500);
  font-size: 10px;
  font-weight: 800;
}

.metric-row strong {
  display: block;
  margin-top: 2px;
  color: var(--warm-900);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
}

.metric-row em {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.line-chart {
  width: 100%;
  height: auto;
}

.grid-line {
  fill: none;
  stroke: #f4e5d8;
  stroke-width: 2;
}

.chart-line,
.dashboard-preview polyline {
  fill: none;
  stroke: var(--orange-700);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dates {
  display: flex;
  justify-content: space-between;
  color: var(--warm-500);
  font-size: 10px;
  font-weight: 700;
}

.summary-panel p {
  margin: 0 0 12px;
  color: var(--warm-700);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

.summary-panel a {
  display: inline-flex;
  padding: 5px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--orange-700);
  border-radius: 5px;
}

.channel-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
}

.channel-panel h2 {
  grid-column: 1 / -1;
}

.donut,
.small-donut {
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#d97757 0 42%, #ec9b78 42% 71%, #f8d2bd 71% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 39%, #000 40%);
  mask: radial-gradient(circle, transparent 0 39%, #000 40%);
}

.channel-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--warm-700);
  font-size: 11px;
  font-weight: 700;
}

.channel-panel li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.facebook {
  background: var(--orange-700);
}

.instagram {
  background: var(--orange-500);
}

.audience {
  background: var(--orange-300);
}

.section {
  padding: 46px 0;
}

.section-heading {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 22px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--warm-900);
  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.45;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--warm-700);
  font-size: 17px;
  font-weight: 800;
}

.pains,
.diagnosis,
.steps {
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 210, 189, 0.35), transparent 480px),
    linear-gradient(180deg, rgba(253, 244, 235, 0.78), rgba(255, 255, 255, 0.92)),
    #fff;
  border-top: 1px solid rgba(248, 210, 189, 0.55);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.small-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 260px;
  padding: 27px 20px 24px;
  text-align: center;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 15px;
  color: var(--orange-700);
  background: var(--orange-100);
  border-radius: 50%;
}

.icon-circle svg,
.topic-grid svg,
.step-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.small-card h3 {
  margin: 0 0 11px;
  color: var(--warm-900);
  font-size: 19px;
  line-height: 1.55;
}

.small-card p {
  margin: 0;
  color: var(--warm-700);
  font-size: 14px;
  font-weight: 700;
}

.center-note {
  width: min(var(--container), calc(100% - 40px));
  margin: 28px auto 0;
  color: var(--warm-900);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.center-note::first-letter {
  color: var(--orange-700);
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 40px;
  align-items: stretch;
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.check-list {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--warm-900);
  font-size: 15px;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--orange-200);
  border-radius: 8px;
}

.result-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  align-items: center;
  min-width: 0;
  min-height: 230px;
  padding: 34px;
}

.bulb {
  position: relative;
  display: block;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #fff5ad 0 22%, #ffd84a 23% 35%, transparent 36%);
  border: 6px solid var(--orange-500);
  border-radius: 50%;
}

.bulb::after {
  position: absolute;
  left: 41px;
  bottom: 24px;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--orange-700);
  border-radius: 3px 3px 8px 8px;
}

.result-card p {
  margin: 0;
  color: var(--warm-900);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.55;
}

.result-card strong {
  color: var(--orange-700);
}

.advisor {
  background:
    radial-gradient(circle at 100% 50%, rgba(248, 210, 189, 0.2), transparent 520px),
    #fff;
}

.advisor-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  background:
    radial-gradient(circle at 0% 100%, rgba(248, 210, 189, 0.45), transparent 380px),
    linear-gradient(135deg, rgba(253, 244, 235, 0.95), rgba(255, 255, 255, 0.98)),
    #fff;
  border: 1px solid var(--orange-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.advisor-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--orange-100);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius);
}

.advisor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 32%;
}

.advisor-copy {
  min-width: 0;
}

.advisor-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 12px;
  color: var(--orange-900);
  font-size: 13px;
  font-weight: 900;
  background: var(--orange-100);
  border: 1px solid var(--orange-300);
  border-radius: 999px;
}

.advisor-copy h2 {
  margin: 0;
  color: var(--warm-900);
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.45;
}

.advisor-copy p {
  margin: 16px 0 0;
  color: var(--warm-700);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.95;
}

.advisor-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  color: var(--warm-900);
  font-size: 15px;
  font-weight: 800;
}

.advisor-points li {
  display: flex;
  gap: 8px;
}

.advisor-points li::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  content: "✓";
  background: var(--orange-700);
  border-radius: 50%;
}

.workshop {
  background:
    radial-gradient(circle at 0% 50%, rgba(248, 210, 189, 0.25), transparent 480px),
    radial-gradient(circle at 100% 100%, rgba(253, 244, 235, 0.6), transparent 420px),
    #fff;
}

.select-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(820px, calc(100% - 40px));
  min-height: 48px;
  margin: 0 auto -24px;
  padding: 0 26px;
  color: var(--orange-800);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 900;
  text-align: center;
  background: #fff;
  border: 2px solid var(--orange-300);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(217, 119, 87, 0.15);
}

.select-ribbon::before {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-right: 12px;
  color: #fff;
  content: "✓";
  background: var(--orange-700);
  border-radius: 50%;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 54px 16px 28px;
  border: 1px solid var(--orange-200);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 210, 189, 0.25), transparent 360px),
    #fff;
}

.menu-card {
  min-width: 0;
  padding: 26px;
  box-shadow: none;
}

.menu-title {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.menu-title > div,
.feature-cols > div,
.step-options a > div {
  min-width: 0;
}

.menu-title span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-700));
  border-radius: 7px;
}

.menu-title h3 {
  margin: 0 0 6px;
  color: var(--warm-900);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1.35;
}

.menu-title p {
  margin: 0;
  color: var(--warm-700);
  font-size: 15px;
  font-weight: 700;
}

.creative-preview,
.dashboard-preview {
  display: grid;
  min-height: 250px;
  margin-bottom: 22px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8f0, #fde9d8);
  border: 1px solid var(--orange-200);
  border-radius: 8px;
}

.creative-preview {
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.phone-frame {
  display: grid;
  place-items: center;
  width: 112px;
  height: 220px;
  padding: 8px;
  background: #2b1d10;
  border-radius: 28px;
  box-shadow: 0 14px 30px rgba(43, 29, 16, 0.28);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 218, 85, 0.95) 0 14px, transparent 15px),
    linear-gradient(90deg, transparent 36%, rgba(143, 96, 45, 0.85) 37% 62%, transparent 63%),
    linear-gradient(180deg, #fbd5b5, #fff8f0 55%, #d9c0a5);
  border-radius: 20px;
}

.creative-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.creative-mosaic .summary-strip {
  grid-column: 1 / -1;
  height: 88px;
  background:
    linear-gradient(90deg, rgba(217, 119, 87, 0.92) 0 42%, transparent 43%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0 7px, transparent 8px 17px),
    #5c3a26;
  border-radius: 7px;
}

.dashboard-preview {
  grid-template-columns: 1fr 150px;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

.mini-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-metrics strong {
  padding: 10px;
  color: var(--warm-900);
  background: #fff;
  border: 1px solid var(--orange-200);
  border-radius: 6px;
}

.dashboard-preview svg {
  width: 100%;
  height: 110px;
  align-self: center;
  background: #fff;
  border: 1px solid var(--orange-200);
  border-radius: 6px;
}

.bar-row {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 110px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--orange-200);
  border-radius: 6px;
}

.bar-row span {
  flex: 1;
  min-width: 10px;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-700));
  border-radius: 4px 4px 0 0;
}

.bar-row span:nth-child(1) { height: 22%; }
.bar-row span:nth-child(2) { height: 35%; }
.bar-row span:nth-child(3) { height: 48%; }
.bar-row span:nth-child(4) { height: 61%; }
.bar-row span:nth-child(5) { height: 88%; }
.bar-row span:nth-child(6) { height: 72%; }

.small-donut {
  width: 92px;
  align-self: center;
  justify-self: center;
}

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

.feature-cols h4 {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 12px;
  color: #fff;
  font-size: 14px;
  background: var(--orange-700);
  border-radius: 5px;
}

.feature-cols ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--warm-700);
  font-size: 14px;
  font-weight: 700;
}

.feature-cols li {
  display: flex;
  gap: 8px;
}

.feature-cols li::before {
  content: "・";
  color: var(--orange-700);
  font-weight: 900;
}

.caution {
  margin: 24px auto 0;
  color: #ff527a;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 78px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.step-chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  padding: 0;
  padding-right: 18px;
  margin: 0;
  list-style: none;
}

.step-chain::after {
  position: absolute;
  top: 92px;
  left: calc(50% - 35px);
  width: 70px;
  height: 3px;
  content: "";
  background: var(--orange-700);
}

.step-connector {
  position: relative;
  align-self: stretch;
  min-height: 364px;
}

.step-connector::before,
.step-connector::after,
.step-options a::before {
  position: absolute;
  content: "";
  background: var(--orange-700);
}

.step-connector::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
}

.step-connector::after {
  top: 56px;
  right: 0;
  bottom: 56px;
  width: 3px;
}

.step-chain li {
  position: relative;
  min-width: 0;
  text-align: center;
}

.step-number,
.step-options span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-700));
  border-radius: 50%;
}

.step-number {
  position: absolute;
  left: 30px;
  top: 0;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 20px auto 14px;
  color: var(--orange-700);
  background: var(--orange-100);
  border-radius: 50%;
}

.step-icon svg {
  width: 74px;
  height: 74px;
}

.step-chain strong {
  display: block;
  color: var(--orange-800);
  font-size: 20px;
}

.step-chain p,
.step-options p {
  margin: 4px 0 0;
  color: var(--warm-700);
  font-size: 14px;
  font-weight: 700;
}

.step-options {
  display: grid;
  gap: 14px;
}

.step-options a {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  gap: 16px;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--orange-200);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(217, 119, 87, 0.12);
}

.step-options a::before {
  top: 50%;
  left: -78px;
  width: 78px;
  height: 3px;
  transform: translateY(-50%);
}

.step-options a:nth-child(2)::before {
  display: none;
}

.step-options strong {
  color: var(--orange-800);
  font-size: 20px;
  line-height: 1.35;
}

.topics {
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 210, 189, 0.25), transparent 480px),
    linear-gradient(180deg, rgba(253, 244, 235, 0.4), rgba(255, 255, 255, 0.95)),
    #fff;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topic-grid article {
  display: grid;
  place-items: center;
  min-height: 155px;
  padding: 16px 12px;
  color: var(--orange-700);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(253, 244, 235, 0.35), rgba(255, 255, 255, 0.95));
  border: 1px solid var(--orange-200);
  box-shadow: none;
}

.topic-grid h3 {
  margin: 8px 0 0;
  color: var(--orange-800);
  font-size: 14px;
  line-height: 1.35;
}

.final-cta {
  padding: clamp(52px, 8vw, 78px) 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 88% 88%, rgba(236, 155, 120, 0.38), transparent 38%),
    radial-gradient(circle at 12% 18%, rgba(217, 119, 87, 0.32), transparent 36%),
    linear-gradient(135deg, #2b1d10, #5c3a26 48%, #2b1d10);
}

.final-cta h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.55;
}

.final-cta p {
  margin: 16px 0 4px;
  font-size: 19px;
  font-weight: 800;
}

.secondary-button {
  color: #fff;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-700));
  box-shadow: 0 18px 35px rgba(217, 119, 87, 0.32);
}

.final-cta ul {
  justify-content: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.final-cta li::before {
  color: #fff;
  background: var(--orange-700);
}

.timerex-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 28px);
}

.timerex-modal[hidden] {
  display: none;
}

.timerex-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 18%, rgba(236, 155, 120, 0.42), transparent 55%),
    radial-gradient(circle at 78% 82%, rgba(217, 119, 87, 0.38), transparent 60%),
    linear-gradient(135deg, rgba(43, 29, 16, 0.55), rgba(74, 44, 24, 0.5));
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  cursor: pointer;
}

.timerex-modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 94vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(40px, 4vw, 56px) clamp(12px, 2vw, 22px) clamp(16px, 2vw, 22px);
  color: var(--ink);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.timerex-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--warm-900);
  background: #fff;
  border: 1px solid var(--orange-200);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(43, 29, 16, 0.18);
  cursor: pointer;
}

.timerex-modal-close:hover {
  color: var(--orange-700);
  border-color: var(--orange-300);
}

.timerex-modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

body.no-scroll {
  overflow: hidden;
}

#timerex_calendar {
  min-height: 720px;
  background: #fff;
  border-radius: 10px;
}

#timerex_calendar iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

@media (max-width: 760px) {
  .timerex-modal {
    padding: 16px 12px;
  }

  .timerex-modal-content {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 14px;
    padding: 46px 8px 14px;
  }

  .timerex-modal-close {
    top: 10px;
    right: 10px;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 56px);
  color: #fff;
  background: linear-gradient(135deg, #2b1d10, #4a3a2c);
}

.footer-brand {
  color: #fff;
}

.footer-wordmark {
  display: block;
  width: auto;
  height: 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer nav a + a::before {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    max-width: 760px;
  }

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

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

  .menu-grid,
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .step-chain {
    max-width: 560px;
    margin: 0 auto;
    padding-right: 0;
  }

  .step-connector,
  .step-options a::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto auto;
    align-items: center;
    min-height: 56px;
    padding: 8px 14px;
    gap: 10px;
  }

  .brand-logo {
    width: 92px;
  }

  .brand-by {
    font-size: 11px;
  }

  .site-header .brand-logo {
    width: 44px;
  }

  .site-header .brand-by {
    font-size: 9px;
  }

  .brand {
    justify-content: flex-start;
    gap: 8px;
  }

  .brand-lockup {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .service-logo-image {
    height: 26px;
    max-width: none;
  }

  .service-name {
    font-size: 20px;
  }

  .header-cta {
    width: auto;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    width: min(calc(100% - 32px), var(--container));
    padding-top: 36px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(28px, 7vw, 34px);
  }

  .tool-lockup {
    gap: 8px;
    margin-top: 0.18em;
    vertical-align: -0.04em;
  }

  .hero-tool-line,
  .hero-tool-suffix,
  .mobile-break {
    display: block;
  }

  .tool-logo {
    max-width: min(49vw, 184px);
    height: 0.64em;
  }

  .codex-wordmark {
    font-size: 0.76em;
  }

  .lead {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero-visual,
  .diagnosis-layout,
  .advisor-card {
    grid-template-columns: 1fr;
  }

  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100% - 32px, var(--container));
  }

  .small-card {
    padding: 18px 12px 16px;
  }

  .small-card h3 {
    font-size: 15px;
    line-height: 1.45;
  }

  .small-card p {
    font-size: 12px;
    line-height: 1.6;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .icon-circle svg {
    width: 30px;
    height: 30px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100% - 32px, var(--container));
  }

  .diagnosis-layout,
  .steps-layout {
    width: min(100% - 32px, var(--container));
  }

  .center-note {
    width: min(100% - 32px, var(--container));
    font-size: 16px;
    line-height: 1.65;
  }

  .final-cta p {
    font-size: 15px;
    line-height: 1.7;
  }

  .final-cta h2 {
    font-size: 22px;
    line-height: 1.5;
  }

  .topic-grid article {
    min-height: 130px;
    padding: 14px 10px;
  }

  .topic-grid h3 {
    font-size: 13px;
  }

  .advisor-card {
    width: min(100% - 32px, 620px);
  }

  .advisor-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-title-first,
  .hero-title-first span {
    display: block;
  }

  .metrics-panel,
  .trend-panel,
  .channel-panel,
  .video-panel,
  .summary-panel {
    grid-column: auto;
  }

  .video-panel {
    grid-row: auto;
  }

  .summary-panel,
  .channel-panel {
    display: none;
  }

  .channel-panel {
    grid-template-columns: 110px 1fr;
  }

  .primary-button,
  .secondary-button {
    min-height: 58px;
    font-size: 17px;
  }

  .support-note {
    margin-left: 0;
    text-align: center;
  }

  .section {
    padding: 38px 0;
  }

  .section-heading {
    width: min(100% - 32px, var(--container));
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .small-card {
    min-height: auto;
  }

  .result-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .select-ribbon {
    width: min(calc(100% - 32px), 560px);
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    border-radius: 12px;
  }

  .select-ribbon::before {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    font-size: 13px;
  }

  .menu-grid {
    width: calc(100% - 32px);
    padding: 50px 10px 16px;
  }

  .menu-card {
    padding: 18px;
  }

  .menu-title {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .menu-title span {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .creative-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 14px;
  }

  .phone-frame {
    width: 96px;
    height: 190px;
    border-radius: 22px;
  }

  .creative-mosaic {
    width: 100%;
    max-width: 320px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .bar-row {
    height: 120px;
  }

  .small-donut {
    width: 110px;
  }

  .feature-cols,
  .step-chain {
    grid-template-columns: 1fr;
  }

  .step-chain {
    max-width: 460px;
    gap: 26px;
  }

  .step-chain::after {
    display: none;
  }

  .step-chain li {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 118px;
    padding: 16px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(58, 28, 12, 0.1);
  }

  .step-chain li:not(:first-child)::before {
    position: absolute;
    top: -22px;
    left: 50%;
    width: 0;
    height: 0;
    content: "";
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 14px solid var(--orange-700);
    transform: translateX(-50%);
  }

  .step-options {
    position: relative;
    margin-top: 64px;
  }

  .step-options::before {
    position: absolute;
    top: -56px;
    left: 50%;
    width: 0;
    height: 0;
    content: "";
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 14px solid var(--orange-700);
    transform: translateX(-50%);
  }

  .step-options::after {
    position: absolute;
    top: -36px;
    left: 50%;
    padding: 4px 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    content: "下記のいずれかを選択";
    background: var(--orange-700);
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .step-number {
    top: 8px;
    left: 8px;
    z-index: 1;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .step-icon {
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
    margin: 0;
  }

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

  .step-chain strong {
    font-size: 17px;
    line-height: 1.45;
  }

  .step-chain p {
    margin-top: 2px;
  }

  .step-options a {
    grid-template-columns: 36px 1fr 24px;
    min-height: 98px;
    padding: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .site-footer nav a + a::before {
    content: none;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand {
    justify-content: flex-start;
  }

  .site-header .service-logo-image {
    height: 22px;
  }

  .site-header .brand-logo {
    width: 38px;
  }

  .header-cta {
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-badges,
  .final-cta ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  h1 {
    font-size: 24px;
    line-height: 1.48;
  }

  .lead {
    font-size: 14px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .channel-panel {
    grid-template-columns: 1fr;
  }

  .donut {
    width: 150px;
    margin: 0 auto;
  }
}
