/*
 * さつまいも商會「Special Thanks」
 * V2本番用CSS
 *
 * 本文・共通部品：Sawarabi Gothic
 * ヒーローのキャッチコピー・主見出しだけ：Zen Old Mincho
 */

:root {
  --thanks-primary: #8a2f45;
  --thanks-primary-dark: #6e1f2e;
  --thanks-gold: #f9c85b;
  --thanks-text: #3a1f16;
  --thanks-muted: #6d574e;
  --thanks-paper: #fffaf0;
  --thanks-soft: #f8eff1;
  --thanks-border: rgba(110, 31, 46, 0.16);
  --thanks-shadow: 0 12px 32px rgba(74, 38, 22, 0.1);
}

body.thanks-v2-body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--thanks-text);
  background: #fffdf9;
  font-family: "Sawarabi Gothic", sans-serif;
}

.thanks-v2-page,
.thanks-v2-page button,
.thanks-v2-page input,
.thanks-v2-page textarea,
.thanks-v2-page select {
  font-family: "Sawarabi Gothic", sans-serif;
}

.thanks-v2-page *,
.thanks-v2-page *::before,
.thanks-v2-page *::after {
  box-sizing: border-box;
}

.thanks-v2-page h1,
.thanks-v2-page h2,
.thanks-v2-page h3,
.thanks-v2-page p {
  margin-top: 0;
}

.thanks-v2-inner {
  width: min(calc(100% - 36px), 1120px);
  margin: 0 auto;
}

.thanks-v2-page section[id] {
  scroll-margin-top: calc(var(--site-header-height) + 24px);
}

/* Hero */
.thanks-v2-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(249, 200, 91, 0.52),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 250, 240, 0.99),
      rgba(244, 228, 232, 0.97)
    );
}

.thanks-v2-hero::after {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(138, 47, 69, 0.08);
  content: "";
  pointer-events: none;
}

.thanks-v2-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  min-height: clamp(560px, 72vh, 760px);
  padding-top: clamp(68px, 9vw, 116px);
  padding-bottom: clamp(68px, 9vw, 116px);
}

.thanks-v2-hero__copy {
  min-width: 0;
}

.thanks-v2-hero__eyebrow,
.thanks-v2-hero h1 {
  font-family: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.thanks-v2-hero__eyebrow {
  margin-bottom: 12px;
  color: var(--thanks-primary);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.thanks-v2-hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--thanks-primary-dark);
  font-size: clamp(2.7rem, 6.2vw, 5.3rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.025em;
}

.thanks-v2-hero__lead {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--thanks-text);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 2;
}

.thanks-v2-button,
.thanks-v2-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--thanks-primary);
  border-radius: 999px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: var(--thanks-primary);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.thanks-v2-button {
  margin-top: 30px;
}

.thanks-v2-button:visited,
.thanks-v2-card__button:visited {
  color: #fff !important;
}

.thanks-v2-button:hover,
.thanks-v2-button:focus-visible,
.thanks-v2-card__button:hover,
.thanks-v2-card__button:focus-visible {
  color: #fff !important;
  background: var(--thanks-primary-dark);
  transform: translateY(-2px);
}

.thanks-v2-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-v2-hero__visual img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(74, 38, 22, 0.13));
}

/* Intro */
.thanks-v2-intro {
  padding: clamp(42px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--thanks-border);
  background: #fff;
}

.thanks-v2-intro__inner {
  max-width: 880px;
  text-align: center;
}

.thanks-v2-intro p {
  margin-bottom: 0.75rem;
  color: var(--thanks-text);
  font-size: clamp(1.03rem, 1.8vw, 1.16rem);
  line-height: 1.95;
}

.thanks-v2-intro p:last-child {
  margin-bottom: 0;
}

/* Cards */
.thanks-v2-section {
  padding: clamp(66px, 9vw, 110px) 0;
}

.thanks-v2-section__label {
  margin-bottom: 10px;
  color: var(--thanks-primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.thanks-v2-section h2,
.thanks-v2-message h2 {
  max-width: 860px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--thanks-primary-dark);
  font-size: clamp(1.78rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.thanks-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 46px;
}

.thanks-v2-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--thanks-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--thanks-shadow);
}

.thanks-v2-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 245px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 240, 0.96),
      rgba(244, 228, 232, 0.72)
    );
}

.thanks-v2-card__image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.thanks-v2-card__image:hover img {
  transform: scale(1.025);
}

.thanks-v2-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
}

.thanks-v2-card h3 {
  margin-bottom: 16px;
  color: var(--thanks-primary-dark);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.5;
}

.thanks-v2-card p {
  margin-bottom: 1rem;
  color: var(--thanks-text);
  font-size: 1rem;
  line-height: 1.85;
}

.thanks-v2-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 0 20px;
  padding-top: 10px;
}

.thanks-v2-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--thanks-border);
  border-radius: 50%;
  background: var(--thanks-paper);
  transition: transform 0.2s ease;
}

.thanks-v2-socials a:hover {
  transform: translateY(-2px);
}

.thanks-v2-socials img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.thanks-v2-card__button {
  width: 100%;
  margin-top: 0;
}

/* Message */
.thanks-v2-message {
  padding: clamp(66px, 9vw, 104px) 0;
  color: #fff;
  background:
    linear-gradient(
      145deg,
      var(--thanks-primary-dark),
      var(--thanks-primary)
    );
}

.thanks-v2-message__inner {
  text-align: center;
}

.thanks-v2-message__eyebrow {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.thanks-v2-message h2 {
  color: #fff;
}

.thanks-v2-message p:last-child {
  max-width: 760px;
  margin: 22px auto 0;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.9;
}

/* Focus */
.thanks-v2-page a:focus-visible {
  outline: 3px solid var(--thanks-gold);
  outline-offset: 4px;
}

/* Tablet */
@media (max-width: 980px) {
  .thanks-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thanks-v2-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 14px));
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .thanks-v2-hero__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

/* Smartphone */
@media (max-width: 620px) {
  .thanks-v2-inner {
    width: min(calc(100% - 28px), 1120px);
  }

  .thanks-v2-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .thanks-v2-hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .thanks-v2-hero__lead {
    font-size: 1rem;
  }

  .thanks-v2-hero__visual {
    order: -1;
  }

  .thanks-v2-hero__visual img {
    width: min(68vw, 280px);
  }

  .thanks-v2-button {
    width: 100%;
  }

  .thanks-v2-intro__inner {
    text-align: left;
  }

  .thanks-v2-grid {
    grid-template-columns: 1fr;
  }

  .thanks-v2-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .thanks-v2-card__image {
    min-height: 220px;
  }

  .thanks-v2-card__image img {
    height: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-v2-button,
  .thanks-v2-card__button,
  .thanks-v2-socials a,
  .thanks-v2-card__image img {
    transition: none;
  }
}
