/* 父の日ギフト専用CSS
   Webページの外部CSSに titi_fathersday.css を指定して使用 */

.kgw-fathers {
  --fd-bg: #fffaf0;
  --fd-card: #ffffff;
  --fd-ink: #342414;
  --fd-muted: #74634d;
  --fd-red: #b7352d;
  --fd-red-dark: #8f241e;
  --fd-gold: #c8a45d;
  --fd-gold-soft: #f5ead0;
  --fd-brown: #5b3b21;
  --fd-line: #ead8b8;
  color: var(--fd-ink);
  line-height: 1.8;
}

.kgw-fathers *,
.kgw-fathers *::before,
.kgw-fathers *::after {
  box-sizing: border-box;
}

.kgw-fathers img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.kgw-fathers a {
  color: inherit;
}

.kgw-fathers-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7df 0%, #fff 52%, #f2d7c6 100%);
  border: 1px solid var(--fd-line);
  box-shadow: 0 16px 40px rgba(77, 44, 15, 0.12);
  margin: 0 0 22px;
}

.kgw-fathers-hero__image {
  background: #f7ead3;
}

.kgw-fathers-hero__image img {
  width: 100%;
  display: block;
}

.kgw-fathers-hero__body {
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
}

.kgw-fathers-hero__eyebrow,
.kgw-fathers-section__label,
.kgw-fathers-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin: 0 0 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--fd-gold-soft);
  color: var(--fd-red-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.kgw-fathers-hero__title {
  margin: 0;
  color: var(--fd-brown);
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.kgw-fathers-hero__lead {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--fd-muted);
  font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.kgw-fathers-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.kgw-fathers-btn,
.kgw-fathers-textlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.kgw-fathers-btn:hover,
.kgw-fathers-textlink:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.kgw-fathers-btn--main {
  background: linear-gradient(135deg, var(--fd-red), var(--fd-red-dark));
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(183, 53, 45, 0.24);
}

.kgw-fathers-btn--sub {
  background: #fff;
  color: var(--fd-red-dark) !important;
  border: 1px solid #dfb98d;
}

.kgw-fathers-service {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}

.kgw-fathers-service__item {
  background: #fff;
  border: 1px solid var(--fd-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(77, 44, 15, 0.07);
}

.kgw-fathers-service__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fd-bg);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.kgw-fathers-service strong {
  display: block;
  color: var(--fd-brown);
  font-size: 1.03rem;
  line-height: 1.45;
}

.kgw-fathers-service p {
  margin: 6px 0 0;
  color: var(--fd-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.kgw-fathers-attention {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.kgw-fathers-attention img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--fd-line);
}

.kgw-fathers-jump {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid var(--fd-line);
  backdrop-filter: blur(6px);
}

.kgw-fathers-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--fd-brown) !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #ead8b8;
}

.kgw-fathers-jump a:hover {
  background: var(--fd-brown);
  color: #fff !important;
  text-decoration: none;
}

.kgw-fathers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: start;
}

.kgw-fathers-section {
  margin: 0 0 38px;
}

.kgw-fathers-section__head {
  text-align: center;
  margin: 0 auto 18px;
}

.kgw-fathers-section__title {
  margin: 0;
  color: var(--fd-brown);
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.4;
}

.kgw-fathers-section__lead {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--fd-muted);
}

.kgw-fathers-pickup-grid,
.kgw-fathers-guide-grid,
.kgw-fathers-set-grid {
  display: grid;
  gap: 18px;
}

.kgw-fathers-pickup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kgw-fathers-pickup-card,
.kgw-fathers-guide-card,
.kgw-fathers-set-card,
.kgw-fathers-sidebox {
  background: var(--fd-card);
  border: 1px solid var(--fd-line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(77, 44, 15, 0.08);
}

.kgw-fathers-pickup-card {
  overflow: hidden;
}

.kgw-fathers-pickup-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.kgw-fathers-pickup-card__image {
  display: block;
  background: #f8ead1;
  overflow: hidden;
}

.kgw-fathers-pickup-card__image img {
  width: 100%;

  object-fit: cover;
  transition: transform 0.28s ease;
}

.kgw-fathers-pickup-card:hover .kgw-fathers-pickup-card__image img,
.kgw-fathers-guide-card:hover img {
  transform: scale(1.03);
}

.kgw-fathers-pickup-card__body {
  padding: 18px;
}

.kgw-fathers-pickup-card h3,
.kgw-fathers-guide-card strong,
.kgw-fathers-set-card h3 {
  color: var(--fd-brown);
  line-height: 1.45;
}

.kgw-fathers-pickup-card h3 {
  margin: 3px 0 8px;
  font-size: 1.25rem;
}

.kgw-fathers-pickup-card p,
.kgw-fathers-guide-card p,
.kgw-fathers-set-card p,
.kgw-fathers-set-card li {
  color: var(--fd-muted);
}

.kgw-fathers-pickup-card p {
  margin: 0 0 14px;
}

.kgw-fathers-textlink {
  min-height: 40px;
  padding: 7px 15px;
  background: var(--fd-brown);
  color: #fff !important;
  font-size: 0.94rem;
}

.kgw-fathers-guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kgw-fathers-guide-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  padding-bottom: 16px;
}

.kgw-fathers-guide-card:hover {
  text-decoration: none;
}

.kgw-fathers-guide-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7ead3;
  transition: transform 0.28s ease;
}

.kgw-fathers-guide-card__catch {
  display: inline-block;
  margin: 14px 14px 6px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--fd-red-dark);
  background: var(--fd-gold-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.kgw-fathers-guide-card strong {
  display: block;
  margin: 0 14px 5px;
  font-size: 1.06rem;
}

.kgw-fathers-guide-card p {
  margin: 0 14px;
  font-size: 0.93rem;
  line-height: 1.65;
}

.kgw-fathers-sankyo {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  border: 1px solid var(--fd-line);
}

.kgw-fathers-sankyo-intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--fd-line);
}

.kgw-fathers-sankyo-intro img {
  width: 100%;
}

.kgw-fathers-sankyo-intro p {
  margin: 0;
  color: var(--fd-muted);
}

.kgw-fathers-set-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kgw-fathers-set-card {
  padding: 16px;
  overflow: hidden;
}

.kgw-fathers-set-card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start;
}

.kgw-fathers-set-card--wide h3 {
  grid-column: 1 / -1;
}

.kgw-fathers-set-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  text-align: center;
}

.kgw-fathers-set-card img {
  display: block;
  width: 180px;
  max-width: 100%;
  margin: 0 auto 12px;
  border-radius: 12px;
}

.kgw-fathers-set-card p {
  margin: 0 0 10px;
  font-size: 0.94rem;
}

.kgw-fathers-set-card ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 0.92rem;
}

.kgw-fathers-products {
  scroll-margin-top: 90px;
}

.kgw-fathers-sidebar {
  position: sticky;
  top: 70px;
}

.kgw-fathers-sidebox {
  padding: 14px;
  margin: 0 0 16px;
}

.kgw-fathers-sidebox h2 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fd-gold-soft);
  color: var(--fd-brown);
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: center;
}

.kgw-fathers-sidebox p {
  margin: 0 0 10px;
  color: var(--fd-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.kgw-fathers-budget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.kgw-fathers-budget-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--fd-bg);
  border: 1px solid var(--fd-line);
  color: var(--fd-brown) !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.kgw-fathers-budget-list a:hover {
  background: var(--fd-brown);
  color: #fff !important;
  text-decoration: none;
}

.kgw-fathers-more {
  margin-top: 18px;
  padding-top: 8px;
}

/* 既存の買い物カゴモジュールがカード内で崩れにくいようにする */
.kgw-fathers-set-card table,
.kgw-fathers-set-card form {
  max-width: 100%;
}

.kgw-fathers-set-card input,
.kgw-fathers-set-card select,
.kgw-fathers-set-card button {
  max-width: 100%;
}

@media (max-width: 900px) {
  .kgw-fathers-layout {
    grid-template-columns: 1fr;
  }

  .kgw-fathers-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .kgw-fathers-sidebox {
    margin: 0;
  }

  .kgw-fathers-sidebox:last-child {
    grid-column: 1 / -1;
  }

  .kgw-fathers-set-grid,
  .kgw-fathers-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kgw-fathers-set-card--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .kgw-fathers {
    line-height: 1.75;
  }

  .kgw-fathers-hero {
    border-radius: 16px;
  }

  .kgw-fathers-hero__body {
    padding: 20px 14px 22px;
  }

  .kgw-fathers-hero__title {
    font-size: 1.55rem;
  }

  .kgw-fathers-hero__lead br,
  .kgw-fathers-hero__title br {
    display: none;
  }

  .kgw-fathers-hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kgw-fathers-service,
  .kgw-fathers-pickup-grid,
  .kgw-fathers-guide-grid,
  .kgw-fathers-set-grid,
  .kgw-fathers-sidebar {
    grid-template-columns: 1fr;
  }

  .kgw-fathers-jump {
    position: static;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .kgw-fathers-jump a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .kgw-fathers-pickup-card--wide,
  .kgw-fathers-set-card--wide {
    display: block;
    grid-column: auto;
  }

  .kgw-fathers-pickup-card__body,
  .kgw-fathers-set-card,
  .kgw-fathers-sidebox {
    padding: 14px;
  }

  .kgw-fathers-sankyo {
    padding: 14px;
    border-radius: 18px;
  }

  .kgw-fathers-sankyo-intro {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .kgw-fathers-guide-card img {
    aspect-ratio: 16 / 11;
  }
}
