/* 共通CSS - index.astro と dog.astro で使用される共通スタイル */

/* 共通設定は /styles/global-variables.css の :root に集約 */

/* ページ全体のレイアウト */
.human-page section,
.dog-page section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ヒーローの色帯をナビまで回り込ませる */
.hero-band {
  width: 100%;
}

.hero-band--human {
  background: #e96400;
  /* ナビゲーション背面とヒーロー画像上下にオレンジの余白を付与 */
  padding: 80px 0 24px;
}

.hero-band--dog {
  background: #ffcc00;
}

/* 共通タイトル */
.section-title {
  font-family: var(--font-family);
  font-size: var(--fs-3xl);
  font-weight: 700;
  text-align: center;
  margin: 0 0 60px 0;
  color: var(--text-color);
}

.section-title.accent {
  color: var(--primary-color);
}

.subtitle {
  font-family: var(--font-family);
  font-size: var(--fs-md);
  text-align: center;
  color: #666;
  margin: -40px 0 40px 0;
}

.pre-title {
  font-family: var(--font-family);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--text-color);
  text-align: center;
  margin: 0 0 8px 0;
}

/* 背景色 */
.bg-gray {
  background: var(--gray-bg);
}

/* 共通ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(237, 108, 0, 0.3);
}

.btn-primary:hover {
  background: #d65a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 108, 0, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-purple {
  background: #5b66cf;
  color: #fff;
  border-radius: 999px;
  padding: 18px 28px;
  box-shadow: 0 8px 18px rgba(91,102,207,0.25);
}

.btn span {
  font-size: 16px;
}

.btn i {
  font-size: 24px;
}

/* 共通説明文 */
.description, .note {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.note {
  font-size: 14px;
  color: #666;
}

/* バッジ */
.badge {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
}

.badge.speech {
  display: inline-block;
  padding: 8px 80px;
  border: 2px solid #007640;
  color: #007640;
  border-radius: 24px;
  position: relative;
  margin-bottom: 16px;
  font-size: 16px;
}

.badge.speech::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-left: 2px solid #007640;
  border-bottom: 2px solid #007640;
  transform: rotate(-45deg);
  background: #fff;
}

/* アイコン共通 */
.icon {
  width: 60px;
  height: 60px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* レポート詳細（クリップボード）- 共通スタイル */
.report-details {
  position: relative;
}

.report-details .clipboard {
  position: relative;
  border: 2px solid #d7d7d7;
  border-radius: 16px;
  padding: 48px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  z-index: 1;
  margin-top: 0;
}

.report-details .clipboard .clip-head {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.report-details .clipboard .clip-head-img {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -70px);
  width: 160px;
  height: auto;
  display: block;
}

.report-details .feature-box {
  background: #fff8d9;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.report-details .feature-box h2 {
  font-size: 28px;
  color: var(--primary-color);
  margin: 0 0 8px 0;
  text-align: center;
}

.report-details .feature-box p {
  margin: 0;
  color: #444;
  line-height: 1.9;
  font-size: 18px;
}

.report-details .report-title {
  font-size: 24px;
  color: #666;
  font-weight: 600;
  margin: 10px 0;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 14px;
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 4px;
}

.report-list img {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.item-heading {
  margin: 0;
  font-weight: 800;
  color: #333;
  font-size: 24px;
}

.item-heading.orange {
  color: var(--primary-color);
}

.item-heading.blue {
  color: #316CDE;
}

.item-heading.green {
  color: #2FA855;
}

.item-sub {
  margin: 4px 0 0;
  color: #666;
  font-size: 18px;
}

.report-note {
  text-align: right;
  color: #666;
  font-size: 16px;
  margin-top: 8px;
}

/* あぶらについてセクション - 共通スタイル */
.about-oil .section-header .pre-title.accent {
  color: var(--primary-color);
  font-weight: 700;
}

.about-oil .section-header .section-title.accent {
  font-size: var(--fs-3xl);
  margin-top: 6px;
}

.oil-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.oil-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: none;
  max-width: 640px;
  margin: 0 auto;
}

.oil-card h3 {
  font-size: var(--fs-lg);
  margin: 0 0 10px 0;
  color: #333;
  font-weight: 800;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.oil-card h3 .q {
  width: 32px;
  height: 32px;
  display: inline-block;
  background: url('/images/icon_q.webp') center/contain no-repeat;
  border: none;
  color: transparent;
  font-size: 0;
  margin: 0;
  border-radius: 0;
}

.oil-card p {
  font-size: var(--fs-md);
  line-height: 1.9;
  color: #444;
  margin: 0;
}

/* 共通CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 0 20px 20px 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cta.orange {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.cta.orange:hover {
  background: #d65a00;
}

.cta.outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: #fff;
}

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

/* レスポンシブ対応 */
@media screen and (max-width: 840px) {
  .human-page section,
  .dog-page section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .report-details .clipboard {
    padding: 22px 16px;
  }
}

@media screen and (max-width: 540px) {
  .human-page section,
  .dog-page section {
    padding: 40px 24px;
  }

  /* ヒト用ヒーローバンド：スマホで余白をさらに縮小 */
  .hero-band--human {
    padding: 16px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .pre-title {
    font-size: 20px;
  }

  .report-list .item-heading {
    font-size: 20px;
  }

  .report-list .item-sub {
    font-size: 16px;
  }

  .report-note {
    font-size: 14px;
  }

  .report-details .feature-box h2 {
    font-size: 24px;
  }

  .report-details .feature-box p {
    font-size: 14px;
  }

  .report-details .clipboard {
    padding: 20px;
  }

  .btn {
    padding: 12px 24px;
  }

  .btn span {
    font-size: 14px;
  }

  .icon {
    width: 48px;
    height: 48px;
  }
}
