:root {
  --blue: #0b5cff;
  --blue-2: #00aeef;
  --blue-3: #006ee8;
  --navy: #071a3d;
  --text: #10213f;
  --muted: #64748b;
  --line: #dbe7f6;
  --soft: #f2f8ff;
  --soft-2: #e9f6ff;
  --card: #ffffff;
  --orange: #ff8a18;
  --green: #16a34a;
  --red: #e11d48;
  --shadow: 0 18px 42px rgba(22, 82, 156, .13);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 48%, #f3f8ff 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 92px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #f4f9ff 100%);
  position: relative;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -14px -14px 14px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 231, 246, .82);
  backdrop-filter: blur(16px);
}

.brand-button {
  border: 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 54%, rgba(255,255,255,0) 76%);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-img {
  width: min(180px, 50vw);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.login-btn {
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #075cbd;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(11, 92, 255, .09);
}

main {
  display: block;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.hero-card,
.feature-card,
.seo-card,
.gate-card,
.content-card,
.card,
.settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
  overflow: hidden;
}

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

.hero-copy h1,
.gate-card h1,
.content-card h1 {
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1.13;
  letter-spacing: 0;
  margin: 0 0 14px;
  font-weight: 1000;
  color: var(--navy);
}

.content-card h1 {
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.18;
}

#contactPanel .content-card h1,
#contactPanel .content-card p {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
  font-weight: 1000;
}

.lead {
  color: #455a78;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.orange-btn,
.outline-add-btn,
.icon-btn,
.text-link,
.chevron,
.footer-link {
  border: 0;
  text-decoration: none;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 15px;
  padding: 13px 18px;
  color: #fff;
  background: linear-gradient(180deg, #15b7ff 0%, #0b5cff 100%);
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(11, 92, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.primary-btn.small {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 15px;
  padding: 13px 18px;
  color: #075cbd;
  background: #eaf6ff;
  border: 1px solid #cbe8ff;
  font-weight: 1000;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 13px;
  padding: 10px 14px;
  color: #075cbd;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 900;
}

.ghost-btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.full {
  width: 100%;
}

.hero-visual {
  margin: 20px 0 2px;
}

.hero-image-card {
  position: relative;
  margin: 0 -8px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: #eaf7ff;
  border: 1px solid rgba(191, 219, 254, .9);
  box-shadow: 0 18px 38px rgba(30, 64, 175, .14);
}

.hero-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.family-card {
  position: relative;
  min-height: 226px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .56)),
    linear-gradient(135deg, #e7f6ff, #f9fbff);
  border: 1px solid rgba(191, 219, 254, .9);
  overflow: hidden;
}

.person {
  position: absolute;
  bottom: 34px;
  width: 74px;
  height: 108px;
  border-radius: 999px 999px 28px 28px;
  background: #ffffff;
  box-shadow: 0 16px 26px rgba(30, 64, 175, .14);
}

.person::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffe3c5;
  border: 4px solid #ffffff;
}

.person span {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .65);
}

.mother {
  left: 58px;
  background: linear-gradient(180deg, #eff6ff, #badcff);
}

.father {
  right: 56px;
  background: linear-gradient(180deg, #dbeafe, #7ca7df);
}

.child {
  left: 50%;
  width: 58px;
  height: 82px;
  bottom: 28px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ecfeff, #a7f3d0);
}

.child::before {
  width: 44px;
  height: 44px;
  top: -30px;
}

.float-chip,
.float-card {
  position: absolute;
  border-radius: 999px;
  color: #075cbd;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 12px 22px rgba(30, 64, 175, .11);
  font-weight: 1000;
}

.chip-wifi {
  left: 18px;
  top: 18px;
  padding: 9px 13px;
}

.chip-yen {
  right: 28px;
  top: 34px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #0b5cff;
}

.float-card {
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  border-radius: 16px;
  padding: 10px 15px;
  text-align: center;
}

.float-card strong,
.float-card span {
  display: block;
}

.float-card span {
  font-size: 11px;
  color: var(--muted);
}

.feature-card,
.seo-card,
.gate-card,
.content-card {
  padding: 22px 18px;
  margin-top: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-kicker {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 1000;
  margin-bottom: 6px;
}

.feature-card h2,
.seo-card h2,
.content-card h2,
.gate-card h2 {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0 0 10px;
  color: var(--navy);
  font-weight: 1000;
}

.feature-card h2 {
  text-align: center;
}

.feature-lead {
  font-size: 18px;
  line-height: 1.55;
  color: #075cbd;
  font-weight: 1000;
  margin-bottom: 14px;
}

.feature-card p,
.seo-card p,
.content-card p,
.gate-card p {
  line-height: 1.82;
  color: #334155;
  font-weight: 700;
}

.feature-visual {
  margin: 18px 0 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eaf6ff);
  border: 1px solid #d8eaff;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.mini-dashboard span,
.mini-dashboard strong {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-radius: 14px;
  background: #ffffff;
  color: #075cbd;
  font-weight: 1000;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .08);
}

.result-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 14px;
}

.result-preview div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  color: #075cbd;
  font-weight: 900;
}

.result-preview span {
  color: var(--muted);
}

.seo-card {
  background: #ffffff;
  border-color: #d8eaff;
}

.gate-card {
  background: #ffffff;
}

.page-head {
  margin: 16px 2px 18px;
  text-align: center;
}

.page-head h1 {
  font-size: 31px;
  line-height: 1.12;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 1000;
}

.page-head p {
  color: #52657f;
  line-height: 1.75;
  margin: 0;
  font-weight: 700;
}

.orbit-head {
  display: block;
  text-align: center;
}

.orbit-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eaf4ff;
  border-radius: 14px;
  padding: 4px;
}

.segmented button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #52657f;
  padding: 9px;
  font-size: 12px;
  font-weight: 1000;
}

.segmented button.active {
  color: #fff;
  background: var(--blue);
}

.month-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  color: var(--text);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.input:focus,
.textarea:focus {
  border-color: #60a5fa;
  outline: 3px solid rgba(96, 165, 250, .2);
}

.compact {
  height: 42px;
  font-size: 12px;
}

.textarea {
  height: auto;
  padding: 12px;
  resize: vertical;
}

.field-label,
label {
  display: block;
  margin: 12px 0 6px;
  color: #26344f;
  font-size: 12px;
  font-weight: 1000;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card,
.candidate-card {
  padding: 16px;
}

.form-title-row,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 1000;
}

.gantt-wrap {
  padding: 12px;
  overflow: visible;
}

.gantt-scroll {
  margin-top: 8px;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-color: #93c5fd #eaf4ff;
  scrollbar-width: thin;
}

.gantt-scroll::-webkit-scrollbar {
  height: 12px;
}

.gantt-scroll::-webkit-scrollbar-track {
  border-radius: 0;
  background: #eaf4ff;
}

.gantt-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eaf4ff;
  border-radius: 0;
  background: #93c5fd;
}

.gantt-days {
  display: grid;
  grid-template-columns: repeat(31, 72px);
  gap: 0;
  min-width: 2232px;
  padding: 0 0 8px;
  color: #3c4a66;
  font-size: 11px;
}

.gantt-days span {
  min-width: 72px;
  text-align: center;
}

.gantt-days .today {
  color: var(--blue);
  font-weight: 1000;
}

.orbit-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carrier-accordion {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.carrier-accordion summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  cursor: pointer;
  font-weight: 1000;
  list-style: none;
}

.carrier-accordion summary::-webkit-details-marker {
  display: none;
}

.carrier-accordion summary em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.drag-handle {
  color: #52657f;
  font-size: 20px;
  line-height: 1;
  touch-action: none;
  cursor: grab;
}

.orbit-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 10px;
}

.orbit-line {
  border: 1px solid #e7eef8;
  border-radius: 14px;
  background: #fbfdff;
  padding: 10px;
}

.orbit-line.dragging {
  opacity: .5;
}

.line-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.line-main strong {
  display: block;
  font-size: 14px;
}

.line-main small {
  color: var(--muted);
}

.line-actions {
  display: flex;
  gap: 6px;
}

.edit-btn,
.delete-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 1000;
}

.delete-btn {
  color: var(--red);
}

.gantt-lane {
  position: relative;
  min-width: 2232px;
  height: 108px;
  margin-top: 0;
  padding-top: 8px;
  overflow: hidden;
  border: 1px solid #edf3fb;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(219, 234, 254, .85) 1px, transparent 1px) 0 0 / 72px 100%, #ffffff;
}

.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-left: 2px dashed var(--blue);
}

.gantt-period,
.gantt-marker {
  position: absolute;
  z-index: 2;
  border-radius: 0;
  padding: 7px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .12);
}

.gantt-period {
  top: 18px;
  height: 38px;
  min-width: 72px;
  border-radius: 0;
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}

.gantt-marker {
  top: 66px;
  min-width: 122px;
  border-radius: 0;
  color: #063d7a;
  background: #dbeafe;
  transform: translateX(-2px);
}

.gantt-period span,
.gantt-period em,
.gantt-marker span,
.gantt-marker em {
  display: block;
  font-style: normal;
}

.gantt-marker.review {
  background: #ef4444;
  color: #fff;
}

.gantt-marker.cashback {
  background: #22c55e;
  color: #fff;
}

.gantt-marker.device {
  background: #3b82f6;
  color: #fff;
}

.gantt-empty {
  position: absolute;
  top: 24px;
  left: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.orbit-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.orbit-meta-chips span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #075cbd;
  background: #eaf6ff;
  font-size: 11px;
  font-weight: 900;
}

.orbit-cost-box {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid #d8eaff;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
}

.orbit-cost-box div {
  display: grid;
  grid-template-columns: minmax(84px, .9fr) minmax(0, 1.4fr);
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.orbit-cost-box strong {
  text-align: right;
  color: #075cbd;
  overflow-wrap: anywhere;
}

.orbit-cost-box .total {
  border-top: 1px solid #e5edf9;
  padding-top: 7px;
  font-weight: 1000;
}

.todo-card,
.task-calendar-card {
  margin-top: 14px;
  padding: 14px;
}

.todo-card h2,
.task-calendar-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
}

.todo-list {
  display: grid;
  gap: 8px;
}

.todo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  border: 1px solid #e5edf9;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
}

.todo-row strong,
.todo-row small {
  display: block;
}

.todo-row small {
  color: var(--muted);
  margin-top: 3px;
}

.task-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.task-weekday {
  color: #64748b;
  font-size: 11px;
  font-weight: 1000;
  text-align: center;
}

.task-day {
  min-height: 76px;
  border: 1px solid #d8eaff;
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
}

.task-day.today {
  border-color: var(--blue);
  background: #eff6ff;
}

.task-day.outside {
  opacity: .42;
  background: #f8fbff;
}

.task-day strong,
.task-day span {
  display: block;
}

.task-day span {
  margin-top: 5px;
  color: #075cbd;
  font-size: 9px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.candidate-card {
  border-radius: 22px;
}

.candidate-card > h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 1000;
  text-align: center;
}

.inner-block {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dfe8f4;
  border-radius: 18px;
  background: #fbfdff;
}

.inner-block h3 {
  margin: -2px 0 14px;
  border-radius: 13px;
  padding: 10px 13px;
  color: #fff;
  font-size: 15px;
  letter-spacing: .03em;
  font-weight: 1000;
}

.mobile-accent h3 {
  background: linear-gradient(90deg, var(--blue), #20b8ff);
}

.internet-accent h3 {
  background: linear-gradient(90deg, #00a7d8, #0b5cff);
}

.add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.outline-add-btn {
  height: 46px;
  border-radius: 13px;
  padding: 0 16px;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid var(--blue);
  font-size: 12px;
  font-weight: 1000;
}

.chip-list {
  min-height: 28px;
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 3px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #075bdc;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 1000;
}

.mini-summary {
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px;
  color: #075cbd;
  background: #eaf6ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.65;
}

.result-card {
  margin: 18px 0;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #f2fff7, #ffffff);
}

.load-state {
  padding: 18px;
  border: 1px solid rgba(11, 92, 255, 0.18);
  border-radius: 18px;
  background: #f4f9ff;
  color: #17345c;
  line-height: 1.8;
  text-align: center;
}

.load-state strong {
  color: #0b5cff;
}

.load-state-error {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff5f5;
  color: #7f1d1d;
}

.load-state-error strong {
  color: #dc2626;
}

.result-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 1000;
  text-align: center;
}

.result-section {
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid #e5edf9;
  border-radius: 14px;
  background: #fff;
}

.result-section h4 {
  margin: 0;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
}

.result-mobile h4 {
  background: var(--blue);
}

.result-internet h4 {
  background: #12a8d6;
}

.result-line {
  display: grid;
  grid-template-columns: minmax(94px, .9fr) minmax(0, 1.55fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid #eef3fa;
  font-size: 12.5px;
}

.result-line:last-child {
  border-bottom: 0;
}

.result-line strong {
  text-align: right;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result-line.total {
  background: #edf5ff;
  font-weight: 1000;
}

.result-line.cb strong {
  color: var(--green);
}

.result-final {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.final-profit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 12px;
  background: #fff2f5;
}

.final-profit.positive {
  border-color: #22c55e;
  background: #f0fdf4;
}

.final-profit span {
  font-weight: 1000;
}

.final-profit strong {
  text-align: right;
  color: var(--red);
  font-size: 22px;
  overflow-wrap: normal;
}

.final-profit.positive strong {
  color: #16a34a;
}

.reward-note {
  text-align: right;
  line-height: 1.65;
}

.orange-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 17px;
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(180deg, #ffb238, #ff7a00);
  box-shadow: 0 16px 30px rgba(255, 122, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .38);
  font-size: 16px;
  font-weight: 1000;
}

.status-line {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.promo-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 800;
  text-align: center;
}

.affiliate-recommendations {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
}

.affiliate-recommendations h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 1000;
}

.affiliate-recommendations p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 700;
}

.affiliate-offer-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.affiliate-offer {
  display: block;
  border: 1px solid #fed7aa;
  border-radius: 15px;
  padding: 13px;
  color: #7c2d12;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  text-decoration: none;
}

.affiliate-offer span {
  display: inline-block;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffedd5;
  font-size: 11px;
  font-weight: 1000;
}

.affiliate-offer strong {
  display: block;
  margin-bottom: 4px;
  color: #9a3412;
  font-size: 17px;
}

.affiliate-offer small {
  display: block;
  color: #7c2d12;
  line-height: 1.55;
  font-weight: 700;
}

.affiliate-banner-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.affiliate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #7c2d12;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.affiliate-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 45, 18, 0.12);
}

.affiliate-banner-body {
  min-width: 0;
  flex: 1;
}

.affiliate-banner-badge {
  display: inline-block;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 1000;
}

.affiliate-banner-title {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 1000;
  color: #9a3412;
}

.affiliate-banner-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  color: #7c2d12;
}

.affiliate-banner-cta {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ea580c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}

.affiliate-banner--docomo {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #9f1239;
}

.affiliate-banner--docomo .affiliate-banner-title { color: #be123c; }
.affiliate-banner--docomo .affiliate-banner-cta { background: #e11d48; }

.affiliate-banner--softbank,
.affiliate-banner--ymobile {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e3a8a;
}

.affiliate-banner--softbank .affiliate-banner-title,
.affiliate-banner--ymobile .affiliate-banner-title { color: #1d4ed8; }
.affiliate-banner--softbank .affiliate-banner-cta,
.affiliate-banner--ymobile .affiliate-banner-cta { background: #2563eb; }

.affiliate-banner--uq,
.affiliate-banner--au {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
}

.affiliate-banner--uq .affiliate-banner-title,
.affiliate-banner--au .affiliate-banner-title { color: #b45309; }
.affiliate-banner--uq .affiliate-banner-cta,
.affiliate-banner--au .affiliate-banner-cta { background: #d97706; }

@media (max-width: 640px) {
  .affiliate-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .affiliate-banner-cta {
    text-align: center;
  }
}

.small-card {
  margin: 14px 0;
  padding: 14px;
  font-size: 12px;
}

.diag-list {
  margin-top: 12px;
  border-top: 1px solid #eef3fa;
}

.diag-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef3fa;
}

.diag-row.warn strong {
  color: #b45309;
}

.content-card h2 {
  margin-top: 22px;
  font-size: 20px;
}

.operator-box {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px;
  background: #f2f8ff;
  border: 1px solid #d8eaff;
}

.operator-box p:last-child {
  margin-bottom: 0;
}

.ad-disclosure {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #d8eaff;
}

.ad-disclosure h2 {
  margin-top: 0;
}

.ad-disclosure p:last-child {
  margin-bottom: 0;
}

.mail-link {
  margin-top: 12px;
}

.site-footer {
  margin: 22px -14px -92px;
  padding: 24px 18px 116px;
  background: #eef7ff;
  border-top: 1px solid #d8eaff;
  text-align: center;
}

.footer-link {
  display: inline-block;
  margin: 6px 8px;
  padding: 0;
  color: #0f4f9a;
  background: transparent;
  font-size: 13px;
  font-weight: 1000;
}

.copyright {
  margin: 14px 0 0;
  color: #6b7a90;
  font-size: 13px;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(400px, calc(100% - 28px));
  height: 66px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 42px rgba(18, 61, 113, .17);
  backdrop-filter: blur(16px);
}

.nav-btn {
  border: 0;
  background: transparent;
}

.bottom-nav .nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #56637a;
  font-size: 10.5px;
  font-weight: 1000;
}

.bottom-nav .nav-btn span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  color: inherit;
  font-size: 17px;
  line-height: 1;
}

.bottom-nav .nav-btn.active {
  color: var(--blue);
}

.bottom-nav .nav-btn.active span {
  color: #fff;
  background: var(--blue);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(380px, calc(100% - 32px));
  transform: translateX(-50%);
  border-radius: 14px;
  padding: 12px 16px;
  color: #fff;
  background: #0f2c48;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  font-weight: 900;
}

.slim {
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 380px) {
  .form-grid,
  .orbit-controls {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .gate-card h1,
  .content-card h1 {
    font-size: 30px;
  }

  .feature-card h2 {
    font-size: 25px;
  }

  .result-line,
  .final-profit {
    grid-template-columns: 1fr;
  }

  .result-line strong,
  .final-profit strong {
    text-align: left;
  }

  .brand-logo-img {
    width: 156px;
  }

  .hero-image-card {
    aspect-ratio: 1 / 1;
    margin-inline: -10px;
  }

  .hero-image-card img {
    object-position: center;
  }
}
