/* =========================================
   GOMA商店  クオリティアップ版スタイル
   基調カラー：白 × 緑（シンプル・清潔感）
   構成・文言は公開サイト版と同一。見た目のみ強化
   ========================================= */

:root {
  --green: #2e7d4f;
  --green-dark: #1f5c39;
  --green-deep: #17452b;
  --green-light: #e8f3ec;
  --green-accent: #4caf7d;
  --text: #22291f;
  --text-light: #5c6660;
  --white: #ffffff;
  --bg-alt: #f4f9f5;
  --border: #dce7df;
  --gold: #f5b301;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(23, 69, 43, 0.06), 0 4px 12px rgba(23, 69, 43, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 69, 43, 0.06), 0 12px 28px rgba(23, 69, 43, 0.10);
  --shadow-lg: 0 4px 10px rgba(23, 69, 43, 0.08), 0 20px 44px rgba(23, 69, 43, 0.14);
  --max-width: 1080px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.02em;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 固定ヘッダー分のアンカーずれ防止 */
section[id] {
  scroll-margin-top: 84px;
}

/* スクロール表示アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* カードが並ぶ場所は順番にふわっと出す */
.cards .reveal:nth-child(2),
.review-cards .reveal:nth-child(2),
.about-images .reveal:nth-child(2),
.shop-links .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.cards .reveal:nth-child(3),
.review-cards .reveal:nth-child(3),
.about-images .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
   ヘッダー
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(23, 69, 43, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.global-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.global-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s, background 0.2s;
}

.global-nav a:hover {
  color: var(--green-dark);
  background: var(--green-light);
}

/* ハンバーガーボタン */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   ヒーロー
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #edf7f0 0%, #fbfdfb 55%, var(--white) 100%);
  padding: clamp(88px, 12vw, 132px) 0 clamp(96px, 13vw, 140px);
}

/* 背景の柔らかい円形装飾（CSSのみ） */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.blob-1 {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle at 35% 35%, rgba(76, 175, 125, 0.16), rgba(76, 175, 125, 0) 68%);
}

.blob-2 {
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -140px;
  background: radial-gradient(circle at 60% 40%, rgba(46, 125, 79, 0.12), rgba(46, 125, 79, 0) 70%);
}

.blob-3 {
  width: 220px;
  height: 220px;
  right: 16%;
  bottom: -60px;
  background: radial-gradient(circle at 50% 50%, rgba(223, 110, 119, 0.08), rgba(223, 110, 119, 0) 70%);
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero-lead {
  color: var(--green);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 26px;
}

.hero-text {
  color: var(--text-light);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  margin-bottom: 40px;
}

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

/* =========================================
   ボタン
   ========================================= */
.btn {
  display: inline-block;
  padding: 15px 38px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease-out), background 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(46, 125, 79, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(46, 125, 79, 0.4);
}

.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(46, 125, 79, 0.3);
}

/* =========================================
   セクション共通
   ========================================= */
.section {
  padding: clamp(72px, 9vw, 100px) 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-accent), var(--green));
  border-radius: 4px;
}

.section-lead {
  text-align: center;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-lead + .section-lead {
  margin-top: -28px;
}

/* =========================================
   カード（強み）
   ========================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 30px 38px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-light), #f3faf5);
  color: var(--green);
}

.card-icon svg {
  width: 38px;
  height: 38px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: left;
}

/* =========================================
   ショップリンク
   ========================================= */
.shop-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px 34px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

/* モールカラーの上部アクセントライン */
.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.shop-card-rakuten::before {
  background: #bf0000;
}

.shop-card-amazon::before {
  background: #ff9900;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 175, 125, 0.5);
  box-shadow: var(--shadow-lg);
}

.shop-card:hover::before {
  transform: scaleX(1);
}

.shop-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 0 4px var(--green-light);
  transition: box-shadow 0.3s;
}

.shop-card:hover .shop-icon {
  box-shadow: 0 0 0 4px var(--green-accent);
}

.shop-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--green-dark);
}

.shop-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

.platform-badge {
  width: auto;
  height: 40px;
  margin: 14px auto 0;
  object-fit: contain;
}

.rakuten-text-badge {
  align-self: center;
  margin-top: 14px;
  padding: 9px 22px;
  background: #bf0000;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(191, 0, 0, 0.24);
}

/* =========================================
   実績バンド
   ========================================= */
.stats {
  background: linear-gradient(120deg, var(--green-deep) 0%, var(--green-dark) 55%, #26694300 140%), var(--green-dark);
  color: var(--white);
  padding: 48px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.stat {
  position: relative;
}

/* 2項目の間に細い区切り線 */
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.stat-value {
  display: block;
  font-size: clamp(2.1rem, 4.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 1rem;
  font-weight: 700;
  margin-left: 4px;
}

.stat-label {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* =========================================
   私たちについて 画像
   ========================================= */
.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin: 48px auto 0;
}

.about-images figure {
  margin: 0;
}

.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-images img {
  width: 100%;
  height: auto;
}

.about-images figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 14px;
}

.about-images-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}

.about-images-3 img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 10px;
  background: linear-gradient(135deg, var(--green-accent), var(--green));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 0 3px 8px rgba(46, 125, 79, 0.28);
}

/* =========================================
   評価サマリー
   ========================================= */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: -16px auto 40px;
  padding: 18px 32px;
  width: fit-content;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.rating-stars {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.rating-stars-bg {
  color: #d5ddd7;
}

.rating-stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 92%; /* 4.6 / 5 */
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

.rating-text {
  font-size: 0.95rem;
  color: var(--text-light);
}

.rating-text strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 2px;
  font-variant-numeric: tabular-nums;
}

.rating-denom {
  font-size: 0.85rem;
}

/* =========================================
   お客様の声（レビュー）
   ========================================= */
.reviews {
  background: linear-gradient(180deg, var(--green-light) 0%, #f0f8f2 100%);
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-sm);
}

/* 引用符の装飾 */
.review-card::after {
  content: "\201D";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--green-light);
  pointer-events: none;
}

.stars {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.star-score {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.star-denom {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
}

.review-body {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.shop-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-amazon {
  background: #fff3e0;
  color: #c9741a;
}

.badge-rakuten {
  background: #fdeaea;
  color: #c0392b;
}

/* =========================================
   会社概要テーブル
   ========================================= */
.company-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.company-table th,
.company-table td {
  padding: 22px 26px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 160px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================
   お問い合わせ
   ========================================= */
.contact-inner {
  text-align: center;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: var(--white);
  padding: 52px 0 44px;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--green-light);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--green-light);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--white);
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-sep {
  margin: 0 10px;
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* =========================================
   特定商取引法に基づく表記ページ
   ========================================= */
.legal-table th {
  white-space: normal;
  width: 230px;
}

.legal-table td a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 680px) {
  .legal-table th {
    width: 130px;
  }
}

/* =========================================
   レスポンシブ（タブレット）
   ========================================= */
@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

/* =========================================
   レスポンシブ（スマホ）
   ========================================= */
@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
  }

  .global-nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(23, 69, 43, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .global-nav.is-open {
    max-height: 360px;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .global-nav li {
    border-top: 1px solid var(--border);
  }

  .global-nav li:first-child {
    border-top: none;
  }

  .global-nav a {
    display: block;
    padding: 16px 24px;
    border-radius: 0;
  }

  .hero {
    padding: 64px 0 72px;
  }

  /* 幅が狭いときはコピーを1行に収める */
  .hero-lead {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .shop-links {
    grid-template-columns: 1fr;
  }

  .review-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* 縦並びでは区切り線を横向きに */
  .stat + .stat::before {
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
    height: 1px;
    width: 64px;
  }

  .about-images {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .rating-summary {
    padding: 14px 22px;
  }

  .company-table th {
    width: 110px;
    padding: 16px;
  }

  .company-table td {
    padding: 16px;
  }
}
