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

/* CSS Variables */
/* ★改善: カラーパレット統一 */
:root {
  --color-primary: #e8456a;       /* メインピンク */
  --color-primary-dark: #c02d52;  /* ダークピンク */
  --color-accent: #ff8c42;        /* アクセントオレンジ */
  --color-trust: #1a3a6b;         /* 信頼感ネイビー */
  --color-bg: #fff8f9;            /* ほんのりピンク背景 */
  --color-text: #333333;
  --color-text-light: #888888;
  --grad-main: linear-gradient(135deg, #e8456a 0%, #ff8c42 100%);
  --grad-hero: linear-gradient(135deg, #ff6b9d 0%, #ff8c42 60%, #ffb347 100%);
  --font-base: 16px;
}

/* Base */
html {
  font-size: var(--font-base);
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header notice bar */
.site-header__notice-bar {
  width: 100%;
  background-color: #e5e5e5;
  color: #555;
  font-size: 12px;
  text-align: center;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ★ヘッダー改善 */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(232, 69, 106, 0.1);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

/* ★ロゴ改善 */
.site-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e8456a 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* 広告・PRテキスト */
.header-ad-label {
  font-size: 0.75rem;
  color: #aaaaaa;
  letter-spacing: 0.05em;
}


/* Sections & headings */
.section {
  padding: 60px 0;
}

.section__title {
  font-size: 22px;
  text-align: center;
  display: inline-block;
  margin: 0 auto 32px;
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
  /* ★改善: グラデーションテキスト */
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Contact form */
.section--contact {
  /* keeps same vertical rhythm as other sections */
}

.section__text {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.contact-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.contact-form__field + .contact-form__field {
  margin-top: 16px;
}

.contact-form__label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.contact-form__required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.75rem;
  color: #fff;
  background-color: var(--color-accent);
  border-radius: 999px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.contact-form__textarea {
  resize: vertical;
}

.contact-form__actions {
  margin-top: 20px;
  text-align: center;
}

.contact-form__submit {
  min-width: 180px;
}

/* Hero section */
.hero {
  /* ★改善: ヒーローグラデーション＆オーバーレイ */
  position: relative;
  margin-top: 24px;
  margin-bottom: 32px;
  padding: 32px 20px 36px;
  border-radius: 24px;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero__title {
  font-size: 2.6rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero__lead {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__cta-button {
  width: 100%;
  padding-inline: 0;
}

.hero__figure {
  max-width: 260px;
  margin: 0 auto;
}

.hero__figure img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__content {
    flex: 1 1 55%;
  }

  .hero__figure {
    flex: 1 1 40%;
    max-width: 320px;
  }
}

@media (min-width: 768px) {
  .hero {
    margin-top: 24px;
    margin-bottom: 40px;
    padding: 32px 32px 36px;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__lead {
    font-size: 1rem;
    max-width: 48rem;
  }

  .hero__cta-button {
    width: auto;
    min-width: 260px;
  }
}

.problem-list {
  list-style: none;
  margin-top: 12px;
}

.problem-list__item {
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
}

.solution-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.solution-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 14px 14px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.solution-card__icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.solution-card__title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.solution-card__text {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .solution-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Ranking cards */
.ranking-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ranking-card {
  position: relative;
  background-color: #fff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  /* ★改善: 多段シャドウでカードをリッチに */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(232, 69, 106, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking-card--1 {
  border: 2px solid var(--color-accent);
}

.ranking-card--1st::before {
  content: '👑 おすすめNo.1';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-main);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.ranking-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(232, 69, 106, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.1);
}

.ranking-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ranking-card__badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--color-primary);
  border-radius: 999px;
}

.ranking-card__recommend {
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
}

.ranking-card__title {
  font-size: 1.05rem;
  margin: 8px 0 4px;
}

.ranking-card__rating {
  font-size: 0.9rem;
  color: #f39c12;
  margin-bottom: 8px;
}

.ranking-card__points {
  list-style: disc;
  padding-left: 1.2em;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.ranking-card__points li + li {
  margin-top: 4px;
}

.ranking-card__button {
  width: 100%;
  padding-inline: 0;
}

@media (min-width: 768px) {
  .ranking-cards {
    max-width: 720px;
    margin-inline: auto;
  }
}

/* Howto section */
.howto-block + .howto-block {
  margin-top: 16px;
}

.howto-block__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.howto-block__text {
  font-size: 0.9rem;
}

/* FAQ section */
.section--faq {
  border-top: 1px solid #e2e6ea;
}

.section--solution,
.section--howto {
  background-color: var(--color-bg);
}

.faq-list {
  margin-top: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item__button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 0.95rem;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #d0d7de;
  cursor: pointer;
}

.faq-item__question {
  text-align: left;
  font-weight: 600;
}

.faq-item__icon {
  margin-left: 8px;
  font-size: 1rem;
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-item__body {
  margin-top: 4px;
}

.faq-item__answer {
  padding: 4px 4px 14px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.is-open .faq-item__button {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* CTA final */
.section--cta {
  padding-top: 60px;
}

.cta-final {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  padding: 24px 20px 28px;
  text-align: center;
}

.cta-final__title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.cta-final__sub {
  font-size: 0.9rem;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* ★改善: CTAボタン共通スタイル */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 69, 106, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(232, 69, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 69, 106, 0); }
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-main);
  border-radius: 50px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* About */
.section--about {
  padding-top: 60px;
}

.about__name {
  font-weight: 600;
  margin-bottom: 8px;
}

.about__profile {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.about__contact {
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Footer */
.site-footer {
  background-color: #333;
  color: #ccc;
  padding: 16px 0 20px;
  margin-top: 32px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.site-footer__info {
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: #ccc;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

/* Fixed CTA bar (mobile) */
.cta-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  z-index: 1000;
}

.cta-bar--hidden {
  display: none;
}

@media (min-width: 768px) {
  .cta-bar {
    display: none;
  }
}

/* ★改善: セクション背景の交互設定 */
.section:nth-of-type(odd) {
  background-color: #ffffff;
}

.section:nth-of-type(even) {
  background-color: var(--color-bg);
}

/* ★改善: セクション波形の区切り */
.section-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ★改善: スクロール時フェードイン */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.affiliate-notice {
  text-align: center;
  font-size: 11px;
  color: #888;
  background: #f9f9f9;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.affiliate-notice {
  text-align: center;
  font-size: 11px;
  color: #888;
  background: #f9f9f9;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}




