/* Shadowly official site — dark palette, mobile first */
:root {
  --bg: #120D26;
  --bg-deep: #0B0818;
  --card: #1E1740;
  --fill: #2A2152;
  --fill2: #3A2F6E;
  --label: #FFFFFF;
  --secondary: #B5AED6;
  --tertiary: #6C6590;
  --brand: #5B3FD1;
  --accent: #A996FF;
  --on-accent: #1A1040;
  --orange: #FF8A45;
  --line: rgba(169, 150, 255, 0.18);
  --radius-btn: 14px;
  --radius-card: 16px;
  --header-h: 60px;
  --max: 1080px;
  --legal-max: 720px;
  --font: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(18, 13, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--label);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
  min-width: 0;
}
.logo:hover { text-decoration: none; color: var(--label); }
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-main > a:not(.btn) {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
}
.nav-main > a:not(.btn):hover { color: var(--label); }
.nav-main > a[aria-current="page"]:not(.btn) { color: var(--label); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  height: 50px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 16px rgba(169, 150, 255, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); color: var(--on-accent); }
.btn-header {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  background: var(--accent);
  color: var(--on-accent);
}
.btn-header:hover { filter: brightness(1.06); color: var(--on-accent); }
.btn.is-placeholder {
  position: relative;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 20px 48px;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -80px;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91, 63, 209, 0.42) 0%, rgba(18, 13, 38, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 36px;
  justify-items: center;
}
.hero-copy { text-align: center; max-width: 36rem; }
.hero-mascot {
  width: 88px;
  height: auto;
  margin: 0 auto 12px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--fill);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-weight: 800;
  margin-bottom: 14px;
}
.lead {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 24px;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.6;
}
.ph-note {
  color: var(--tertiary);
  font-size: 12px;
}

/* Phones */
.hero-phones {
  position: relative;
  width: min(100%, 280px);
}
.phone {
  margin: 0;
  background: #0B0818;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #2A2152,
    0 18px 40px rgba(0, 0, 0, 0.45);
}
.phone img { width: 100%; }
.phone-back { display: none; }

/* Sections */
.section {
  padding: 8px 20px 56px;
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--label);
  margin-bottom: 16px;
}
.features {
  display: grid;
  gap: 12px;
}
.feature {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature p { font-size: 14px; color: var(--secondary); line-height: 1.65; }

.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--fill);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--secondary); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--fill);
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
}
.chips-wrap { margin-top: 8px; }
.chips-label {
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* Plan */
.plan-lead {
  color: var(--secondary);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 44rem;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  background: var(--fill);
}
.compare tbody th { font-weight: 600; color: var(--secondary); width: 40%; }
.compare td { font-weight: 600; }
.compare .pro { color: var(--accent); }
.plan-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--secondary);
}
.plan-note a { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 32px 20px 40px;
}
.site-footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-tag {
  font-size: 13px;
  color: var(--secondary);
  margin: 8px 0 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--label); }
.footer-nav a[aria-current="page"] { color: var(--label); }
.footer-note, .footer-copy {
  font-size: 12px;
  color: var(--tertiary);
  line-height: 1.6;
}
.footer-copy { margin-top: 6px; }

/* Legal / support pages */
.page {
  padding: 28px 20px 64px;
}
.page-inner { max-width: var(--legal-max); margin: 0 auto; }
.page h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
}
.page h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 10px;
  letter-spacing: 0;
  color: var(--label);
}
.page h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--secondary);
}
.page p, .page li {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.75;
}
.page ul, .page ol { padding-left: 1.2em; margin: 0 0 8px; }
.page li { margin: 4px 0; }
.draft-banner {
  background: var(--fill);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 24px;
  line-height: 1.65;
}
.dummy {
  color: var(--tertiary);
  font-size: 14px;
  background: rgba(42, 33, 82, 0.45);
  border-left: 3px solid var(--fill2);
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 8px;
}

/* Placeholders */
.ph {
  display: inline;
  color: var(--accent);
  background: rgba(91, 63, 209, 0.22);
  border-radius: 6px;
  padding: 0.05em 0.4em;
  font-weight: 600;
}

/* Tokushoho definition list */
.spec {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 16px 0 8px;
}
.spec-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
}
.spec-row dd {
  font-size: 15px;
  color: var(--label);
  line-height: 1.65;
}
.spec-row dd.long { color: var(--secondary); font-size: 14px; }

.callout {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--secondary);
  margin: 16px 0 8px;
  line-height: 1.65;
}
.callout strong { color: var(--label); font-weight: 700; }

.support-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  margin: 16px 0;
}
.support-card h2 { margin: 0 0 8px; font-size: 15px; color: var(--secondary); }
.support-mail {
  font-size: 16px;
  font-weight: 700;
  color: var(--label);
  word-break: break-all;
}


/* Plan cards */
.plan-cards {
  display: grid;
  gap: 12px;
}
.plan-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 16px 18px 14px;
}
.plan-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.plan-card.pro h3 { color: var(--accent); }
.plan-card dl { display: grid; gap: 10px; }
.plan-card div { display: grid; gap: 2px; }
.plan-card dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
}
.plan-card dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  line-height: 1.5;
}
.plan-card.pro dd { color: var(--accent); }
.plan-extra {
  margin-top: 12px;
  font-size: 15px;
  color: var(--secondary);
}

/* Google Form placeholder */
.form-embed {
  margin-top: 16px;
  min-height: 280px;
  border: 1.5px dashed var(--fill2);
  border-radius: var(--radius-card);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
}
.form-embed p { color: var(--secondary); font-size: 14px; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 12px 0 8px; }

/* Footer grouping */
.footer-brand { margin-bottom: 18px; }
.footer-brand .logo { margin-bottom: 0; }
.footer-tag { margin: 8px 0 0; }

/* Tablet (768px〜) */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .site-header-inner, .hero, .section, .page { padding-left: 32px; padding-right: 32px; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 17px; max-width: 36rem; margin-left: auto; margin-right: auto; }
  .hero-copy { max-width: 40rem; }
  .hero-phones { width: 300px; }
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .plan-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .section { padding-bottom: 64px; }
  .page { padding-top: 40px; padding-bottom: 80px; }
  .page h1 { font-size: 30px; }
  .spec-row {
    grid-template-columns: 11rem 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 20px;
  }
  .spec-row dt { font-size: 13px; padding-top: 2px; }
  .form-embed { min-height: 360px; }
  .site-footer { padding: 36px 32px 44px; }
  .site-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 40px;
    align-items: start;
  }
  .footer-brand { margin-bottom: 0; }
  .footer-nav {
    justify-content: flex-end;
    margin: 0;
    padding-top: 6px;
  }
  .footer-copy { grid-column: 1 / -1; margin-top: 8px; }
}

/* PC (1024px〜、1280px を基準) */
@media (min-width: 1024px) {
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .hero::before { left: 22%; top: -120px; width: 640px; height: 640px; transform: none; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    align-items: center;
    justify-items: stretch;
    gap: 48px;
  }
  .hero-copy { text-align: left; max-width: none; }
  .hero-mascot { margin: 0 0 8px; }
  .hero h1 { font-size: 48px; margin-bottom: 16px; }
  .lead { font-size: 18px; margin-left: 0; margin-right: 0; max-width: none; }
  .hero-actions { align-items: flex-start; }
  .hero-phones {
    width: 420px;
    height: 540px;
    justify-self: end;
  }
  .phone-back {
    display: block;
    position: absolute;
    left: 0;
    top: 56px;
    width: 230px;
    transform: rotate(-7deg);
    z-index: 1;
  }
  .phone-front {
    position: absolute;
    right: 0;
    top: 0;
    width: 250px;
    transform: rotate(5deg);
    z-index: 2;
  }
  .page { padding: 48px 32px 96px; }
  .page h1 { font-size: 32px; }
  .spec-row { grid-template-columns: 12.5rem 1fr; }
  /* 特商法の料金・条件は改行を残す */
  .form-embed { min-height: 420px; }
  #listening .feature,
  #plan .feature { max-width: 40rem; }
}

@media (min-width: 1280px) {
  .hero-phones { width: 460px; height: 580px; }
  .phone-back { width: 250px; top: 64px; }
  .phone-front { width: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-back, .phone-front { transform: none; }
}

/* Pending (URL 未設定) と埋め込みフォーム */
.btn.is-pending,
.btn[aria-disabled="true"] {
  background: var(--fill2);
  color: var(--secondary);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}
.btn.is-pending:hover,
.btn[aria-disabled="true"]:hover {
  filter: none;
  color: var(--secondary);
}
.pending-note {
  font-size: 13px;
  color: var(--tertiary);
  line-height: 1.6;
}
.form-iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  height: 80vh;
  margin-top: 16px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--card);
}
.form-iframe[hidden],
.form-embed[hidden] {
  display: none;
}
.page .stack p + p { margin-top: 10px; }
.page .legal-list {
  padding-left: 1.2em;
  margin: 0 0 12px;
}
.page .legal-list li {
  margin: 6px 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.75;
}
.mailto {
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: normal;
}
.support-mail .mailto { color: var(--label); }
.support-mail .mailto:hover { color: var(--accent); }
.support-mail { word-break: normal; overflow-wrap: anywhere; }

/* 404 */
.not-found {
  text-align: center;
  padding: 64px 20px 96px;
}
.not-found h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}
.not-found p {
  color: var(--secondary);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .form-iframe { min-height: 720px; }
}
@media (min-width: 1024px) {
  .form-iframe { min-height: 800px; }
  .not-found h1 { font-size: 32px; }
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 16px;
  margin: 16px 0 8px;
}
.contact-form .field-row {
  display: grid;
  gap: 16px;
}
.contact-form .field {
  display: grid;
  gap: 6px;
}
.field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--label);
}
.req-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: var(--fill);
  color: var(--label);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  appearance: none;
}
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--tertiary);
}
.contact-form input:disabled,
.contact-form textarea:disabled,
.contact-form input[type="checkbox"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.contact-form .field.has-error input[type="text"],
.contact-form .field.has-error input[type="email"],
.contact-form .field.has-error textarea {
  border-color: #E86B6B;
}
.field-error {
  font-size: 12px;
  color: #FF8A8A;
  line-height: 1.5;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.field-turnstile .turnstile-slot {
  min-height: 0;
}
.contact-form [data-form-submit] {
  width: 100%;
}
.form-pending-note {
  background: var(--fill);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.65;
}
.form-status {
  font-size: 14px;
  line-height: 1.65;
  min-height: 1.4em;
}
.form-status.is-success { color: #8EE0B0; }
.form-status.is-error { color: #FF8A8A; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.effective-date {
  margin-top: 32px;
  font-size: 13px;
  color: var(--tertiary);
}

@media (min-width: 768px) {
  .contact-form .field-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .contact-form textarea { min-height: 180px; }
}
@media (min-width: 1024px) {
  .contact-form textarea { min-height: 200px; }
}
