:root {
  --color-primary: #4a90d9;
  --color-primary-dark: #3a7bc8;
  --color-secondary: #5fb98a;
  --color-accent: #ff9640;
  --color-bg: #f7faf9;
  --color-bg-alt: #ffffff;
  --color-text: #2d3436;
  --color-text-light: #5a6a68;
  --color-border: #e3ebe9;
  --color-mascot-body: #ffe8a3;
  --color-mascot-outline: #f2b705;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --font-heading: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.95;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 太字の箇所はすべて見出し用フォント（游ゴシック体）に統一 */
strong,
b,
.eyebrow,
.promo-banner-item,
.mascot-caption,
.section-note,
.price-badge,
.price-recommend,
.price-number,
.price-addon-note,
.required,
  .form-note,
  .footer-qr p {
  font-family: var(--font-heading);
}

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

a {
  color: inherit;
}

.sp-only {
  display: none;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  flex-wrap: wrap;
  transition: padding 0.25s ease;
}


.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text);
}

.logo-text {
  line-height: 1.35;
}

.logo-text rt {
  padding-bottom: 3px;
}

.logo-plus {
  color: var(--color-accent);
}

.mascot-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: width 0.25s ease, height 0.25s ease;
}

.site-nav {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text-light);
  padding-bottom: 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover {
  border-bottom-color: currentColor;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #fff;
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-large {
  padding: 18px 34px;
  font-size: 20px;
}

.btn-header {
  white-space: nowrap;
}

/* ヒーロー */
.hero {
  position: relative;
  padding: 32px 0;
  background: linear-gradient(180deg, #eef7f4 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.35;
}

.blob-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
}

.blob-2 {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 420px;
}

.eyebrow {
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.hero-reading {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0 0 4px;
}

.hero-note {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 0 0 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-actions .btn {
  padding: 14px 20px;
  font-size: 18px;
  white-space: nowrap;
}

.trust-badges {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.trust-badges li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
}

/* 安心感バナー */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  background: #fff;
  border: 3px solid var(--color-accent);
  border-radius: 18px;
  padding: 14px 24px;
  margin: 0 0 24px;
  box-shadow: var(--shadow);
}

.promo-banner-mascot {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.promo-banner-item {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.promo-banner-item--accent {
  color: var(--color-accent);
  font-size: 22px;
}

.promo-banner-divider {
  color: var(--color-border);
  font-weight: 400;
}

@media (max-width: 600px) {
  .promo-banner {
    padding: 14px 18px;
  }
  .promo-banner-item {
    font-size: 16px;
  }
  .promo-banner-item--accent {
    font-size: 19px;
  }
}

.hero-mascot {
  flex: 0 0 auto;
  text-align: center;
  margin: 0 auto;
}

.mascot-hero {
  width: 580px;
  height: auto;
  margin: 0 auto;
}

.mascot-caption {
  margin-top: 4px;
  font-weight: 700;
  color: var(--color-text-light);
}

.promo-banner--hero {
  margin-top: 6px;
}

/* 案内役ペンタくんの吹き出し */
.mascot-tip {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: -8px auto 40px;
}

.mascot-tip-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.mascot-tip-bubble {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--color-primary);
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.mascot-tip-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 9px 10px 9px 0;
  border-style: solid;
  border-color: transparent var(--color-primary) transparent transparent;
}

.mascot-tip-bubble::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

@media (max-width: 600px) {
  .mascot-tip {
    flex-direction: column;
    text-align: center;
  }
  .mascot-tip-bubble::before,
  .mascot-tip-bubble::after {
    display: none;
  }
}

/* セクション共通 */
.section {
  padding: 72px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 33px;
  text-align: center;
  margin: 0 0 16px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: 19px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.features .section-lead {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .features .section-lead {
    white-space: normal;
    max-width: 640px;
  }
}

.highlight-accent {
  color: var(--color-accent);
}

.highlight-primary {
  color: var(--color-primary);
}

.underline-accent {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.section-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
  margin-top: 32px;
}

.problems {
  background: var(--color-bg-alt);
}

/* グリッド / カード */
.grid {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

.card {
  background: var(--color-bg-alt);
  border: 1.5px solid #a9bdb8;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.problems .card {
  background: var(--color-bg);
}

/* フリップカード（こんなお悩みセクション） */
.flip-card {
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-visible .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1.5px solid #a9bdb8;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  overflow: hidden;
}

.flip-card-front .card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 2px;
}

.flip-card-front h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  max-width: 100%;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.flip-card-back p {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.flip-hint {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-light);
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none;
  }
}

.card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
}

.card h3 {
  font-family: var(--font-heading);
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.features {
  background: var(--color-bg);
}

.features-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1.7;
  margin-top: 32px;
}

/* 料金 */
.pricing {
  background: var(--color-bg);
}

.pricing-grid {
  align-items: stretch;
}

.price-card {
  background: var(--color-bg);
  border: 1.5px solid #a9bdb8;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  box-shadow: var(--shadow);
}

.price-card--featured {
  background: #fff8ec;
  border: 2px solid var(--color-accent);
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-recommend {
  color: var(--color-accent);
  font-weight: 700;
  margin: 12px 0 4px;
}

.price-card h3 {
  font-family: var(--font-heading);
  margin: 8px 0;
  font-size: 24px;
}

.price-sub {
  color: var(--color-text-light);
  font-size: 18px;
  min-height: 40px;
}

.price-old {
  color: #b0413e;
  text-decoration: line-through;
  margin: 16px 0 0;
  font-size: 18px;
}

.price-new {
  margin: 4px 0 20px;
}

.price-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary);
}

.price-card--featured .price-number {
  color: var(--color-accent);
}

.price-unit {
  font-size: 18px;
  color: var(--color-text-light);
  margin-left: 4px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  flex: 1;
}

.price-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1.7;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.pricing-addons {
  max-width: 760px;
  margin: 56px auto 0;
}

.pricing-addons-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 20px;
  margin: 0 0 24px;
}

.price-addon-note {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--color-primary);
}

/* 会社概要 */
.company {
  background: var(--color-bg-alt);
}

.company-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1.5px solid #a9bdb8;
}

.company-table th {
  width: 170px;
  color: var(--color-text-light);
  font-weight: 600;
  white-space: nowrap;
}

/* お問い合わせ */
.contact {
  background: var(--color-bg);
}

/* フッター */
.site-footer {
  background: #24302e;
  color: #d9e2e0;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 1.7;
}

.footer-qr p {
  font-weight: 700;
}

.qr-code {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.footer-mascot {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 18px;
  color: #9fb0ad;
}

/* はじめるときの流れ */
.app-preview {
  background: var(--color-bg-alt);
}

.start-flow {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.flow-step {
  position: relative;
  min-height: 330px;
  padding: 32px 24px 28px;
  border: 2px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.flow-step:nth-child(2) {
  background: #fff8ec;
}

.flow-step:nth-child(3) {
  background: #eef7f4;
}

.flow-number,
.flow-badge {
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}

.flow-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
}

.flow-badge {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .03em;
}

.flow-illustration {
  display: block;
  width: min(100%, 220px);
  height: 152px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.flow-step h3 {
  margin: 0 0 12px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.5;
}

.flow-step p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
}

.app-preview-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
}

.contact-preparing {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 24px;
  border: 2px dashed var(--color-border);
  border-radius: 20px;
  background: #fff;
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 900px) {
  .start-flow {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* スクロールリビール（非対応ブラウザでは JavaScript 側で即時表示する） */
@supports (animation: fade-in 1s) {
html.js .card,
html.js .flip-card,
html.js .price-card,
html.js .section-title,
html.js .section-lead,
html.js .company-table {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .price-card--featured {
  transform: translateY(24px) scale(1.05);
}

html.js .card.is-visible,
html.js .flip-card.is-visible,
html.js .price-card.is-visible,
html.js .section-title.is-visible,
html.js .section-lead.is-visible,
html.js .company-table.is-visible {
  opacity: 1;
  transform: translateY(0);
}
}

html.js .price-card--featured.is-visible {
  transform: translateY(0) scale(1.05);
}

html.js .grid .card:nth-child(1),
html.js .grid .flip-card:nth-child(1) { transition-delay: 0s; }
html.js .grid .card:nth-child(2),
html.js .grid .flip-card:nth-child(2) { transition-delay: 0.1s; }
html.js .grid .card:nth-child(3),
html.js .grid .flip-card:nth-child(3) { transition-delay: 0.2s; }
html.js .grid .card:nth-child(4),
html.js .grid .flip-card:nth-child(4) { transition-delay: 0.3s; }
html.js .grid .card:nth-child(5) { transition-delay: 0.4s; }
html.js .grid .card:nth-child(6) { transition-delay: 0.5s; }
html.js .grid .card:nth-child(7) { transition-delay: 0.6s; }
html.js .grid .card:nth-child(8) { transition-delay: 0.7s; }

html.js .pricing-grid .price-card:nth-child(1) { transition-delay: 0s; }
html.js .pricing-grid .price-card:nth-child(2) { transition-delay: 0.15s; }
html.js .pricing-grid .price-card:nth-child(3) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html.js .card,
  html.js .flip-card,
  html.js .price-card,
  html.js .section-title,
  html.js .section-lead,
  html.js .company-table,
html.js .flow-step {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* レスポンシブ */
@media (max-width: 1400px) {
  .mascot-hero {
    width: 420px;
  }
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .price-card--featured {
    transform: none;
  }
  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .hero-actions,
  .trust-badges,
  .promo-banner {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .site-header { position: static; }

  .header-inner {
    gap: 8px;
    padding: 8px 16px;
  }

  .logo { font-size: 18px; }
  .mascot-icon { width: 38px; height: 38px; }

  .sp-only {
    display: inline;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .problems .grid-4 {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero h1 {
    font-size: 30px;
  }
  .section-title {
    font-size: 24px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 8px 16px;
    justify-content: center;
    font-size: 14px;
  }
}
