:root {
  --bg: #ffffff;
  --ink: #555555;
  --heading: #4f4f4f;
  --muted: #666666;
  --subtle: #999999;
  --line: #dfe5ec;
  --soft: #f4f7fb;
  --navy: #07111d;
  --navy-2: #0a1b2c;
  --cyan: #18d3f5;
  --teal: #244a73;
  --teal-dark: #173452;
  --gold: #b88746;
  --coral: #c85f4a;
  --shadow: 0 18px 44px rgba(20, 33, 43, .10);
  --radius: 8px;
  --max: 1120px;
  --subtitle-size: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(7, 17, 29, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(24, 211, 245, .14);
  border: 1px solid rgba(24, 211, 245, .42);
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  white-space: nowrap;
}

.nav-cta {
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: #263238;
}

.site-nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: min(790px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 10, 18, .98) 0%, rgba(5, 13, 23, .92) 36%, rgba(5, 13, 23, .42) 70%, rgba(5, 13, 23, .16) 100%),
    linear-gradient(0deg, rgba(5, 13, 23, .92) 0%, rgba(5, 13, 23, 0) 34%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: var(--subtitle-size);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

p,
li,
dd,
small {
  overflow-wrap: break-word;
  word-break: normal;
}

.nowrap {
  white-space: nowrap;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 800;
  color: #fff;
}

.heading-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.page-hero .heading-kicker {
  color: #e4c680;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(16px, 2vw, 20px);
}

.hero .eyebrow {
  color: var(--cyan);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-chips span,
.proposal-strip span {
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: 12px 16px;
  border: 1px solid rgba(24, 211, 245, .58);
  border-radius: 8px;
  background: rgba(24, 211, 245, .08);
  color: #fff;
}

.hero-chips span:nth-child(2),
.proposal-strip span:nth-child(2) {
  border-color: rgba(40, 207, 170, .58);
  background: rgba(40, 207, 170, .08);
}

.hero-chips span:nth-child(3),
.proposal-strip span:nth-child(3) {
  border-color: rgba(184, 135, 70, .72);
  background: rgba(184, 135, 70, .10);
}

.hero-chips strong {
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.2;
}

.hero-chips span:nth-child(2) strong {
  color: #28cfaa;
}

.hero-chips span:nth-child(3) strong {
  color: #e2b35d;
}

.hero-chips small {
  color: rgba(255, 255, 255, .70);
  font-weight: 700;
}

.hero-actions,
.cta-row,
.form-actions,
.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.button.primary {
  background: var(--cyan);
  color: #263238;
  box-shadow: 0 10px 28px rgba(24, 211, 245, .22);
}

.button.secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.intro {
  padding-top: 96px;
}

.section.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.wide-head {
  max-width: 1080px;
}

.section-head h2,
.split h2,
.message h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.message-title {
  font-size: clamp(28px, 3.1vw, 38px);
  margin-bottom: 20px;
}

.diagram-section {
  padding-top: 24px;
}

.channel-graphic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(44px, 90px) minmax(220px, .95fr) minmax(44px, 90px) minmax(190px, 1fr);
  align-items: center;
  gap: 0;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7,17,29,.98), rgba(10,27,44,.96)),
    radial-gradient(circle at 50% 45%, rgba(24,211,245,.18), transparent 36%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.channel-graphic::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  pointer-events: none;
}

.channel-node,
.channel-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-height: 166px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.channel-node span,
.channel-core span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.channel-node strong,
.channel-core strong {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
}

.channel-node small,
.channel-core small {
  color: rgba(255,255,255,.68);
  font-weight: 700;
}

.channel-core {
  min-height: 210px;
  place-items: center;
  text-align: center;
  border-color: rgba(24,211,245,.58);
  background: linear-gradient(180deg, rgba(24,211,245,.16), rgba(255,255,255,.05));
}

.channel-core strong {
  font-size: clamp(20px, 2.2vw, 26px);
  white-space: nowrap;
}

.channel-line {
  position: relative;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(24,211,245,.2), rgba(24,211,245,.9), rgba(184,135,70,.85));
}

.channel-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(184,135,70,.95);
  border-right: 2px solid rgba(184,135,70,.95);
  transform: translateY(-50%) rotate(45deg);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.signal-grid div {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.signal-grid b {
  color: var(--gold);
  font-size: 18px;
}

.signal-grid span {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.section-head.compact {
  text-align: center;
  margin-inline: auto;
}

.two-column,
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.intro-copy {
  display: grid;
  gap: 12px;
  max-width: 780px;
  padding: 24px 0 4px;
}

.intro-copy p,
.rich-text p,
.message p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.intro-copy p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.9;
}

.flow,
.card-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.flow-item,
.card,
.detail-card,
.panel,
.message-box,
.form-shell,
.kpi-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.flow-item,
.card,
.detail-card,
.panel,
.message-box,
.form-shell,
.kpi-box {
  padding: clamp(22px, 3vw, 32px);
}

.flow-item h3,
.card h3,
.detail-card h2,
.panel h2,
.panel h3,
.kpi-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
  white-space: nowrap;
}

.flow-item p,
.card p,
.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.flow-item p {
  font-size: 14px;
  line-height: 1.7;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eaf0f7;
  color: var(--teal-dark);
  font-weight: 800;
}


.split {
  align-items: start;
}

.rich-text {
  display: grid;
  gap: 16px;
}

.accent-panel {
  border-color: rgba(36, 74, 115, .22);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(760px, 100%);
  margin: 0 auto 24px;
}

.metric {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.metric strong {
  color: var(--teal-dark);
  font-size: 52px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.kpi-box {
  width: min(760px, 100%);
  margin: 0 auto;
  box-shadow: none;
}

.kpi-box ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.kpi-box li {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
  font-weight: 700;
}

.message {
  width: min(920px, calc(100% - 40px));
}

.message-box {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
}

.message-box p + p {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

.breadcrumb {
  width: min(1120px, calc(100% - 40px));
  margin: 1.25rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: inherit;
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.page-main {
  background: #fff;
}

.page-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 92px max(20px, calc((100vw - var(--max)) / 2)) 68px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,17,29,.99), rgba(7,17,29,.93) 44%, rgba(7,17,29,.42) 68%, rgba(7,17,29,.12)),
    url("images/hero-miyage-partner.png") center right / cover no-repeat;
}

.page-hero h1 {
  max-width: 660px;
  color: #fff;
}

.page-hero p {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255,255,255,.78);
}

.page-hero .hero-actions,
.page-hero .proposal-strip {
  max-width: 660px;
}

.page-hero .eyebrow {
  color: var(--cyan);
}

.proposal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.proposal-strip span {
  min-width: 154px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

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

.step-list div {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-list span {
  color: var(--coral);
  font-weight: 800;
}

.step-list p {
  margin: 10px 0 0;
  font-weight: 800;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.form-page {
  min-height: calc(100vh - 72px);
  padding: 54px 20px 86px;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 62%);
}

.form-shell {
  width: min(820px, 100%);
  margin: 0 auto;
}

.form-shell h1 {
  font-size: clamp(28px, 5vw, 42px);
}

.form-lead {
  margin: 14px 0 28px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.field,
.choice-group {
  display: grid;
  gap: 8px;
}

.field span,
.choice-group legend {
  color: var(--heading);
  font-weight: 800;
}

.field b,
.choice-group b {
  margin-left: 6px;
  color: var(--coral);
  font-size: 12px;
}

.field em {
  margin-left: 6px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #ccd6da;
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(36, 74, 115, .16);
  border-color: var(--teal);
}

.choice-group {
  min-width: 0;
  padding: 0;
  border: 0;
}

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

.choice-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.choice-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

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

.error-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(200, 95, 74, .35);
  border-radius: 8px;
  background: #fff6f3;
  color: #7a2e20;
}

.error-box ul {
  margin: 8px 0 0;
  padding-left: 1.3em;
}

.confirm-list {
  display: grid;
  gap: 0;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.confirm-list div {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--line);
}

.confirm-list div:last-child {
  border-bottom: 0;
}

.confirm-list dt,
.confirm-list dd {
  margin: 0;
  padding: 14px 16px;
}

.confirm-list dt {
  background: var(--soft);
  font-weight: 800;
}

.complete {
  text-align: center;
}

.complete p {
  color: var(--muted);
}

.always-inline {
  display: flex;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav:not(.always-inline) {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(7,17,29,.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav:not(.always-inline) a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5,13,23,.98) 0%, rgba(5,13,23,.86) 54%, rgba(5,13,23,.54) 100%);
  }

  .hero-media img {
    object-position: 63% center;
  }

  .two-column,
  .split,
  .flow,
  .card-grid,
  .detail-grid,
  .step-list,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .channel-graphic {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .channel-line {
    width: 2px;
    height: 38px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(24,211,245,.2), rgba(24,211,245,.9), rgba(184,135,70,.85));
  }

  .channel-line::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(-50%) rotate(135deg);
  }

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

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

  .flow-item h3,
  .card h3,
  .detail-card h2,
  .panel h2,
  .panel h3,
  .kpi-box h3 {
    white-space: normal;
  }

}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .always-inline {
    gap: 12px;
    font-size: 13px;
  }

  .eyebrow {
    white-space: normal;
  }

  .nowrap {
    white-space: normal;
  }

  .page-hero br {
    display: none;
  }

  .section,
  .message {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 62px 0;
  }

  .section.muted {
    padding-inline: 14px;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 92px;
  }

  .button {
    width: 100%;
  }

  .choice-grid,
  .kpi-box ul {
    grid-template-columns: 1fr;
  }

  .confirm-list div {
    grid-template-columns: 1fr;
  }

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