/*
Theme Name:   With Token Child
Theme URI:    https://withtoken.net
Description:  With Token 公式サイト子テーマ（Kadence ベース）— LP v1 デザインシステム適用
Author:       With Token
Author URI:   https://withtoken.net
Template:     kadence
Version:      1.0.0
Text Domain:  withtoken-child
*/

/* ============================================================
   1. CSS変数 / デザイントークン
   ============================================================ */
:root {
  /* カラー */
  --wt-cream:        #FDF8F0;
  --wt-warm-yellow:  #F5C842;
  --wt-warm-yellow-hover: #E0B030;
  --wt-soft-green:   #7EC8A4;
  --wt-muted-brown:  #8B6F5E;
  --wt-deep-brown:   #3D2B1F;
  --wt-white:        #FFFFFF;

  /* 背景グラデーション */
  --wt-hero-gradient: linear-gradient(135deg, #FDF8F0 0%, #FFF3D4 60%, #E8F5EE 100%);
  --wt-cta-gradient:  linear-gradient(135deg, rgba(245,200,66,0.2) 0%, rgba(126,200,164,0.2) 100%);

  /* タイポグラフィ */
  --wt-font-family:  'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wt-font-light:   300;
  --wt-font-regular: 400;
  --wt-font-medium:  500;
  --wt-font-bold:    700;

  /* ボーダーラジウス */
  --wt-radius-sm:    0.5rem;    /* 8px  */
  --wt-radius-md:    1rem;      /* 16px */
  --wt-radius-lg:    1.5rem;    /* 24px */
  --wt-radius-xl:    2rem;      /* 32px */
  --wt-radius-full:  9999px;

  /* スペーシング */
  --wt-section-py:   5rem;      /* 80px */
  --wt-section-py-sm: 3rem;     /* 48px */
  --wt-container-max: 72rem;    /* 1152px */
  --wt-container-px:  1.5rem;   /* 24px */

  /* シャドウ */
  --wt-shadow-card:  0 4px 16px rgba(61, 43, 31, 0.08);
  --wt-shadow-card-hover: 0 20px 40px rgba(61, 43, 31, 0.12);
  --wt-shadow-btn:   0 4px 12px rgba(245, 200, 66, 0.3);

  /* トランジション */
  --wt-transition:   all 0.2s ease;
  --wt-transition-slow: all 0.3s ease;
}

/* ============================================================
   2. グローバルリセット・ベーススタイル
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--wt-font-family);
  font-weight: var(--wt-font-regular);
  background-color: var(--wt-cream);
  color: var(--wt-deep-brown);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--wt-transition);
}

/* コンテナ共通 */
.wt-container {
  max-width: var(--wt-container-max);
  margin-inline: auto;
  padding-inline: var(--wt-container-px);
}

/* ============================================================
   3. ヘッダー
   ============================================================ */

/* Kadenceのヘッダーを上書き */
#masthead,
.site-header,
.kadence-header,
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(253, 248, 240, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 200, 66, 0.2);
  box-shadow: none;
}

/* ヘッダー内部コンテナ */
#masthead .site-header-wrap,
.kadence-header .kadence-header-wrap,
.wp-block-template-part .wp-block-group {
  max-width: var(--wt-container-max) !important;
  margin-inline: auto !important;
  padding-inline: var(--wt-container-px) !important;
  padding-block: 1rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* サイトロゴ */
.site-branding .site-title,
.site-branding a,
.kadence-header .site-logo a {
  font-family: var(--wt-font-family);
  font-size: 1.25rem;
  font-weight: var(--wt-font-bold);
  letter-spacing: -0.025em;
  color: var(--wt-deep-brown) !important;
  text-decoration: none;
}

/* ナビゲーション */
#site-navigation .nav-menu,
.kadence-header .kadence-navigation-wrap ul.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-navigation .nav-menu li a,
.kadence-header .kadence-navigation-wrap ul.menu li a {
  font-size: 0.875rem;
  font-weight: var(--wt-font-medium);
  color: var(--wt-muted-brown);
  transition: var(--wt-transition);
}

#site-navigation .nav-menu li a:hover,
.kadence-header .kadence-navigation-wrap ul.menu li a:hover {
  color: var(--wt-deep-brown);
}

/* ナビ CTA ボタン（「お問い合わせ」等） */
#site-navigation .nav-menu li.menu-item-cta > a,
.kadence-header .kadence-navigation-wrap ul.menu li.menu-item-cta > a,
#site-navigation .nav-menu li:last-child > a {
  background-color: var(--wt-warm-yellow);
  color: var(--wt-deep-brown) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--wt-radius-full);
  font-weight: var(--wt-font-medium);
  transition: var(--wt-transition);
}

#site-navigation .nav-menu li.menu-item-cta > a:hover,
.kadence-header .kadence-navigation-wrap ul.menu li.menu-item-cta > a:hover {
  background-color: var(--wt-warm-yellow-hover);
  transform: translateY(-1px);
}

/* ============================================================
   4. ボタンコンポーネント
   ============================================================ */

/* プライマリボタン */
.wt-btn-primary,
.wp-block-button__link,
.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wt-warm-yellow);
  color: var(--wt-deep-brown);
  font-family: var(--wt-font-family);
  font-weight: var(--wt-font-bold);
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--wt-radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--wt-shadow-btn);
  transition: var(--wt-transition);
  text-decoration: none;
}

.wt-btn-primary:hover,
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover {
  background-color: var(--wt-warm-yellow-hover);
  color: var(--wt-deep-brown);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.4);
}

/* セカンダリボタン（アウトライン） */
.wt-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--wt-muted-brown);
  font-family: var(--wt-font-family);
  font-weight: var(--wt-font-medium);
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--wt-radius-full);
  border: 2px solid rgba(139, 111, 94, 0.3);
  cursor: pointer;
  transition: var(--wt-transition);
  text-decoration: none;
}

.wt-btn-secondary:hover {
  border-color: var(--wt-muted-brown);
  color: var(--wt-deep-brown);
}

/* ============================================================
   5. ヒーローセクション
   ============================================================ */
.wt-hero,
.home .wp-block-cover:first-of-type,
section.hero-section {
  background: var(--wt-hero-gradient);
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.wt-hero__inner {
  max-width: var(--wt-container-max);
  margin-inline: auto;
  padding: var(--wt-section-py) var(--wt-container-px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.wt-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: var(--wt-font-medium);
  color: var(--wt-soft-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.wt-hero__title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: var(--wt-font-bold);
  color: var(--wt-deep-brown);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.wt-hero__title em,
.wt-hero__title .highlight {
  color: var(--wt-warm-yellow);
  font-style: normal;
}

.wt-hero__desc {
  font-size: 1.125rem;
  color: var(--wt-muted-brown);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.wt-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.wt-hero__visual {
  display: flex;
  justify-content: center;
}

.wt-hero__img-wrapper {
  position: relative;
  display: inline-block;
}

.wt-hero__img-placeholder {
  width: 18rem;
  height: 18rem;
  background-color: rgba(245, 200, 66, 0.2);
  border-radius: var(--wt-radius-xl);
  border: 2px solid rgba(245, 200, 66, 0.3);
  box-shadow: 0 24px 48px rgba(61, 43, 31, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wt-hero__deco-tr {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 5rem;
  height: 5rem;
  background-color: rgba(126, 200, 164, 0.3);
  border-radius: var(--wt-radius-lg);
  z-index: -1;
}

.wt-hero__deco-bl {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 8rem;
  height: 8rem;
  background-color: rgba(245, 200, 66, 0.2);
  border-radius: var(--wt-radius-full);
  z-index: -1;
}

/* ============================================================
   6. ブランドストーリーセクション
   ============================================================ */
.wt-brand-story,
section.brand-story {
  padding-block: var(--wt-section-py);
  background-color: var(--wt-white);
}

.wt-brand-story__inner {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--wt-container-px);
  text-align: center;
}

.wt-section-title {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: var(--wt-font-bold);
  color: var(--wt-deep-brown);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.wt-section-desc {
  font-size: 1.125rem;
  color: var(--wt-muted-brown);
  line-height: 1.9;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* 3バリューグリッド */
.wt-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.wt-value-item {
  text-align: center;
}

.wt-value-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--wt-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.wt-value-icon--yellow { background-color: rgba(245, 200, 66, 0.2); }
.wt-value-icon--green  { background-color: rgba(126, 200, 164, 0.2); }
.wt-value-icon--light  { background-color: rgba(245, 200, 66, 0.1); }

.wt-value-title {
  font-size: 1rem;
  font-weight: var(--wt-font-bold);
  color: var(--wt-deep-brown);
  margin-bottom: 0.5rem;
}

.wt-value-desc {
  font-size: 0.875rem;
  color: var(--wt-muted-brown);
  line-height: 1.6;
}

/* ============================================================
   7. 製品カードグリッド
   ============================================================ */
.wt-products,
section.products-section {
  padding-block: var(--wt-section-py);
  background-color: var(--wt-cream);
}

.wt-products__inner {
  max-width: var(--wt-container-max);
  margin-inline: auto;
  padding-inline: var(--wt-container-px);
}

.wt-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.wt-section-subtext {
  font-size: 1rem;
  color: var(--wt-muted-brown);
  margin-top: 0.5rem;
}

/* カードグリッド */
.wt-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* 製品カード */
.wt-product-card {
  background-color: var(--wt-white);
  border-radius: var(--wt-radius-xl);
  overflow: hidden;
  box-shadow: var(--wt-shadow-card);
  border: 1px solid rgba(245, 200, 66, 0.1);
  transition: var(--wt-transition-slow);
  display: block;
  text-decoration: none;
}

.wt-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wt-shadow-card-hover);
}

.wt-product-card__thumb {
  height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.wt-product-card__thumb--yellow {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
}

.wt-product-card__thumb--slate {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.wt-product-card__thumb--pink {
  background: linear-gradient(135deg, #fce7f3, #f3e8ff);
}

.wt-product-card__body {
  padding: 1.5rem;
}

.wt-product-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--wt-font-medium);
  color: var(--wt-soft-green);
  background-color: rgba(126, 200, 164, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--wt-radius-full);
  margin-bottom: 0.75rem;
}

.wt-product-card__title {
  font-size: 1.125rem;
  font-weight: var(--wt-font-bold);
  color: var(--wt-deep-brown);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.wt-product-card__desc {
  font-size: 0.875rem;
  color: var(--wt-muted-brown);
  line-height: 1.7;
}

.wt-product-card__link {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--wt-font-bold);
  color: var(--wt-warm-yellow);
  margin-top: 1rem;
}

/* 「全て見る」ボタンエリア */
.wt-products__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   8. シーン提案セクション
   ============================================================ */
.wt-scenes,
section.scenes-section {
  padding-block: var(--wt-section-py);
  background-color: var(--wt-white);
}

.wt-scenes__inner {
  max-width: var(--wt-container-max);
  margin-inline: auto;
  padding-inline: var(--wt-container-px);
}

.wt-scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wt-scene-card {
  background-color: var(--wt-cream);
  border-radius: var(--wt-radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.wt-scene-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.wt-scene-card__title {
  font-size: 1rem;
  font-weight: var(--wt-font-bold);
  color: var(--wt-deep-brown);
  margin-bottom: 0.25rem;
}

.wt-scene-card__desc {
  font-size: 0.8125rem;
  color: var(--wt-muted-brown);
  line-height: 1.6;
}

/* ============================================================
   9. Store CTAセクション
   ============================================================ */
.wt-store-cta,
section.store-cta-section {
  padding-block: var(--wt-section-py);
  background: var(--wt-cta-gradient);
}

.wt-store-cta__inner {
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: var(--wt-container-px);
  text-align: center;
}

.wt-store-cta__desc {
  font-size: 1.125rem;
  color: var(--wt-muted-brown);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.wt-store-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   10. フッター
   ============================================================ */
.site-footer,
#colophon,
footer.wp-block-template-part {
  background-color: var(--wt-deep-brown) !important;
  color: var(--wt-white);
  padding-block: 3rem;
}

.wt-footer__inner {
  max-width: var(--wt-container-max);
  margin-inline: auto;
  padding-inline: var(--wt-container-px);
}

.wt-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wt-footer__brand-title {
  font-size: 1rem;
  font-weight: var(--wt-font-bold);
  color: var(--wt-warm-yellow);
  margin-bottom: 1rem;
}

.wt-footer__brand-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.wt-footer__col-title {
  font-size: 1rem;
  font-weight: var(--wt-font-bold);
  color: var(--wt-warm-yellow);
  margin-bottom: 1rem;
}

.wt-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wt-footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--wt-transition);
}

.wt-footer__links a:hover {
  color: var(--wt-white);
}

.wt-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Kadenceフッターウィジェットエリアを上書き */
.site-footer .footer-widget-area,
.kadence-footer .footer-widget-area {
  background-color: transparent !important;
  padding: 0 !important;
}

.site-footer .widget-title,
.site-footer .wp-block-heading {
  color: var(--wt-warm-yellow) !important;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer a:hover {
  color: var(--wt-white);
}

/* ============================================================
   11. WordPressブロックエディタ スタイル上書き
   ============================================================ */

/* Kadenceのグローバルカラー上書き */
.has-deep-brown-color       { color: var(--wt-deep-brown) !important; }
.has-deep-brown-background-color { background-color: var(--wt-deep-brown) !important; }
.has-warm-yellow-color      { color: var(--wt-warm-yellow) !important; }
.has-warm-yellow-background-color { background-color: var(--wt-warm-yellow) !important; }
.has-soft-green-color       { color: var(--wt-soft-green) !important; }
.has-soft-green-background-color { background-color: var(--wt-soft-green) !important; }
.has-cream-color            { color: var(--wt-cream) !important; }
.has-cream-background-color { background-color: var(--wt-cream) !important; }
.has-muted-brown-color      { color: var(--wt-muted-brown) !important; }

/* ブロック間のスペーシング調整 */
.wp-block-group.alignfull {
  padding-inline: var(--wt-container-px);
}

/* ============================================================
   12. メディアクエリ
   ============================================================ */

/* タブレット (640px〜) */
@media (min-width: 640px) {

  .wt-values {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .wt-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wt-hero__cta {
    flex-direction: row;
  }

}

/* タブレット〜 (768px〜) */
@media (min-width: 768px) {

  .wt-hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .wt-hero__img-placeholder {
    width: 24rem;
    height: 24rem;
  }

  .wt-hero__visual {
    justify-content: flex-end;
  }

}

/* デスクトップ (1024px〜) */
@media (min-width: 1024px) {

  .wt-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wt-scene-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  :root {
    --wt-container-px: 1.5rem;
  }

}

/* ============================================================
   13. モバイル特有の調整 (max-width: 640px)
   ============================================================ */
@media (max-width: 639px) {

  .wt-hero__title {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  .wt-hero__inner {
    padding-block: 3rem;
  }

  :root {
    --wt-section-py: 3rem;
  }

  /* モバイルナビ（Kadenceのハンバーガーメニューを尊重） */
  #site-navigation .nav-menu {
    display: none;
  }

}
