/*
Theme Name: Palkids
Theme URI: https://test.palkids.co.jp
Author: Institute Of Child English Education
Author URI: https://test.palkids.co.jp
Description: パルキッズ公式Webサイトのカスタムテーマ
Version: 1.0
License: 株式会社児童英語研究所
License URI: https://test.palkids.co.jp
Text Domain: palkids
*/

/* ========================================
   リセットCSS
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Zen Maru Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  color: #333;
  line-height: 1.8;
  background-color: #f4f0e8;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* ========================================
   カラー設定（参考サイトより）
======================================== */
:root {
  --primary-color: #2c5f8d;
  --secondary-color: #f59e42;
  --accent-color: #e85d3c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #f4f0e9;
  --white: #fff;
  --border-color: #e0e0e0;
}

/* ========================================
   共通レイアウト
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* ========================================
   ヘッダー・ナビゲーション
======================================== */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
  max-width: 300px;
}

.site-logo a {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--white);
  padding: 5px;
  transition: all 0.3s;
  display: block;
}

.site-logo a:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

@keyframes logoBob {
  0%, 100% { transform: translateY(0) scale(1); }
  45%      { transform: translateY(-6px) scale(1.03); }
  55%      { transform: translateY(-6px) scale(1.03); }
}

.site-logo img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  animation: logoBob 3s ease-in-out infinite;
  will-change: transform;
}

.site-logo a:hover img {
  animation-play-state: paused;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-menu {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-menu li a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transition: all 0.3s;
  text-align: center;
  line-height: 1.3;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-menu li a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
}

.nav-menu .btn-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 5px;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: #e74c3c;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu .btn-text {
  font-size: 0.75rem;
  display: block;
  line-height: 1.2;
}

.nav-menu .points-number {
  color: #e74c3c;
  font-weight: 700;
  font-size: 1rem;
}

.nav-menu .btn-login {
  background-color: #5dade2;
  color: var(--white);
}

.nav-menu .btn-mypage {
  background-color: #f093fb;
  color: var(--white);
}

.nav-menu .btn-cart {
  background-color: #fad961;
  color: #333;
}

.nav-menu .btn-points {
  background-color: #a8edea;
  color: #333;
}

.nav-menu .btn-login:hover,
.nav-menu .btn-mypage:hover,
.nav-menu .btn-points:hover {
  opacity: 0.85;
}

.nav-menu .btn-cart:hover {
  opacity: 0.85;
  background-color: #fad961; /* グローバルの .btn-cart:hover による色変化をリセット */
}

/* ハンバーガーメニュー（既存 mobile-menu-toggle） */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s;
}

/* ========================================
   ハンバーガーボタン（nav 内、円形）
======================================== */
.btn-hamburger {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  font-family: inherit;
  padding: 10px;
}

.btn-hamburger:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
}

.btn-hamburger .btn-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  display: block;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* アクティブ時（×アイコン） */
.btn-hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.btn-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.btn-hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================================
   ナビゲーションドロワー
======================================== */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 70px 32px 48px;
  box-shadow: -4px 0 28px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-drawer.active {
  transform: translateX(0);
}

/* 閉じるボタン */
.nav-drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  line-height: 1;
}

.nav-drawer-close:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ロゴ */
.nav-drawer-logo {
  padding-bottom: 4px;
}

.nav-drawer-logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* メニューリスト */
.nav-drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.nav-drawer-menu li {
  border-bottom: 1px solid var(--border-color);
}

.nav-drawer-menu li:first-child {
  border-top: 1px solid var(--border-color);
}

.nav-drawer-menu li a {
  display: flex;
  align-items: center;
  padding: 15px 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.25s;
  gap: 8px;
}

.nav-drawer-menu li a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.nav-drawer-menu li a:hover {
  color: var(--primary-color);
  padding-left: 14px;
  opacity: 1;
}

.nav-drawer-menu li a:hover::before {
  transform: rotate(45deg) translate(3px, -3px);
}

/* CTAボタン */
.nav-drawer-cta {
  margin-top: auto;
}

.nav-drawer-cta-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 66, 0.4);
  transition: all 0.3s;
}

.nav-drawer-cta-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 66, 0.5);
}

/* ========================================
   パンくずリスト
======================================== */
.breadcrumb {
  background-color: var(--bg-color);
  padding: 12px 20px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--text-light);
}

.breadcrumb-list a {
  color: var(--primary-color);
}

/* ========================================
   ヒーローヘッダー
======================================== */
.hero-section {
  padding: 0;
  position: relative;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 700px;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.hero-button:hover {
  background-color: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* ========================================
   パルキッズについて
======================================== */
.about-palkids {
  background-color: var(--bg-color);
  padding: 80px 0 0 0;
  overflow: hidden;
}

.about-palkids .section-title {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 1px rgba(255, 255, 255, 0.7),
    0 3px 2px rgba(255, 255, 255, 0.5),
    0 4px 4px rgba(0, 0, 0, 0.05),
    0 5px 8px rgba(0, 0, 0, 0.03),
    1px 1px 0 rgba(255, 255, 255, 0.8),
    -1px -1px 0 rgba(255, 255, 255, 0.8);
}

.about-content {
  max-width: 100%;
  margin: 0;
}

.about-item {
  position: relative;
  margin-bottom: 0;
  background: var(--white);
}

.about-item:nth-child(odd) {
  background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(245,247,250,0.95) 100%);
}

.about-item:nth-child(even) {
  background: linear-gradient(to left, rgba(255,255,255,0.95) 0%, rgba(245,247,250,0.95) 100%);
}

.about-item-bg {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  position: relative;
}

.about-item-reverse .about-item-bg {
  direction: rtl;
}

.about-item-reverse .about-item-bg > * {
  direction: ltr;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 95, 141, 0.1) 0%, rgba(245, 158, 66, 0.1) 100%);
  z-index: 1;
}

.about-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-item:hover .about-image img {
  transform: scale(1.08);
}

.about-text-wrapper {
  display: flex;
  align-items: center;
  padding: 60px 80px;
  position: relative;
}

.about-text-wrapper::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(44, 95, 141, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about-text {
  position: relative;
  z-index: 1;
}

.about-number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(44, 95, 141, 0.08);
  line-height: 1;
  margin-bottom: -30px;
  font-family: 'Arial Black', sans-serif;
}

.about-subtitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.4;
  position: relative;
}

.about-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  margin-bottom: 25px;
  border-radius: 2px;
}

.about-description {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 30px;
}

.about-features {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(44, 95, 141, 0.05) 0%, rgba(245, 158, 66, 0.05) 100%);
  border-radius: 25px;
  border: 2px solid rgba(44, 95, 141, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.15);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* ========================================
   おすすめ教材
======================================== */
.recommended-materials {
  background-color: var(--bg-color);
  padding: 60px 0;
}

.recommended-materials .section-title {
  text-align: left;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 2px solid #333;
}

.materials-slider-container {
  position: relative;
  margin-bottom: 30px;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.materials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.materials-arrow:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.materials-arrow-left {
  left: 10px;
}

.materials-arrow-right {
  right: 10px;
}

.material-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.kyozai-recommended-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: #e85c00;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.material-link {
  display: block;
  flex: 1;
  text-decoration: none;
}

.material-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5dade2, #f093fb, #a8edea);
  opacity: 0;
  transition: opacity 0.4s;
}

.material-card:hover::before {
  opacity: 1;
}

.material-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.material-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f9f9f9;
  aspect-ratio: 1 / 1;
  padding: 10px;
  transition: transform 0.4s;
}

.material-card:hover .material-image {
  transform: scale(1.05);
}

.material-info {
  padding: 15px 15px;
  background: linear-gradient(to bottom, var(--white) 0%, #fafafa 100%);
}

.material-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2c3e50;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.material-description {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
  min-height: 2.5em;
}

.material-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: #e74c3c;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding-top: 10px;
  border-top: 2px solid #f0f0f0;
}

.material-price::before {
  content: '¥';
  font-size: 1rem;
  font-weight: 600;
  color: #999;
}

.material-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 15px 15px;
  background-color: var(--white);
}

.btn-cart,
.btn-detail {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-cart {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-cart:hover {
  background-color: #e08020;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 66, 0.4);
}

.btn-detail {
  background-color: var(--white);
  color: #2c5f8d;
  border: 2px solid #2c5f8d;
}

.btn-detail:hover {
  background-color: #2c5f8d;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.3);
}

.materials-link {
  text-align: right;
}

.materials-link a {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.materials-link a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  opacity: 1;
}

/* ========================================
   パルキッズ通信最新号
======================================== */
.webmagazine-latest-section {
  background: var(--bg-color);
}

.wm-latest-list {
  margin-top: 8px;
  margin-bottom: 24px;
}

.wm-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.wm-list-date {
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
}

.wm-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.wm-list-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(44, 95, 141, 0.08);
  border: 1px solid rgba(44, 95, 141, 0.3);
  padding: 3px 10px 3px 8px;
  border-radius: 20px;
  align-self: flex-start;
}

.wm-list-cat::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
}

.wm-list-title {
  font-size: 1rem;
  color: #333;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.wm-list-title:hover { color: var(--primary-color); }

.btn-wm-list-read {
  display: inline-block;
  flex-shrink: 0;
  padding: 7px 18px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

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

@media (max-width: 768px) {
  .wm-list-item { flex-wrap: wrap; gap: 8px; }
  .wm-list-date { min-width: auto; }
  .wm-list-content { width: 100%; }
  .btn-wm-list-read { margin-left: auto; }
}

/* ========================================
   お知らせ
======================================== */
.news-section {
  background-color: var(--bg-color);
  padding: 60px 0;
}

.news-section .section-title {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #333;
  text-align: left;
}

.news-link {
  text-align: right;
  margin-top: 30px;
}

.news-link a {
  display: inline-block;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}

.news-link a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  opacity: 1;
}

.news-list {
  max-width: 100%;
  margin: 0;
}

.news-item {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid #ddd;
}

.news-item a {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  transition: opacity 0.3s;
}

.news-item a:hover {
  opacity: 0.6;
}

.news-date {
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-self: flex-start;
}

.news-category {
  display: inline-block;
  padding: 2px 8px;
  background-color: var(--white);
  color: #333;
  font-size: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  white-space: nowrap;
}

.news-title {
  font-size: 1rem;
  color: #333;
  font-weight: 400;
}

/* ========================================
   コンテンツボタン
======================================== */
.content-buttons {
  background-color: var(--bg-color);
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.content-button {
  display: block;
  padding: 40px 20px;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s;
}

.content-button:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.3);
  opacity: 1;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background-color: #7ec8e3;
  color: #333;
  padding: 0 0 20px;
  position: relative;
  margin-top: 80px;
}

.wave-top {
  position: absolute;
  top: -119px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(0);
  pointer-events: none; /* 装飾用SVGが上に重なり本文末尾のリンクのクリックを奪うのを防ぐ */
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 120px;
  vertical-align: bottom;
}

.site-footer .container {
  padding-top: 50px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-links a {
  display: block;
  padding: 8px 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #333;
  opacity: 1;
}

.footer-info {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-company {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-url {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
}

/* ========================================
   資料請求ボタン（追従）
======================================== */
.fixed-request-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  animation: pulse 3s ease-in-out infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.fixed-request-button.visible {
  opacity: 1;
  visibility: visible;
}

.fixed-request-button a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background: #e74c3c;
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(232, 93, 60, 0.6);
  transition: all 0.5s ease-out;
  padding: 15px;
  border: 4px solid var(--white);
  position: relative;
}

.request-button-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(60, 60, 60, 0.75);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  padding: 0;
  z-index: 1000;
  transition: background 0.2s ease;
  animation: none;
}

.request-button-close:hover {
  background: rgba(0, 0, 0, 0.95);
}

.fixed-request-button a::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: #e74c3c;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: ripple 3s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.request-main {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.request-mid {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.request-sub {
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.fixed-request-button a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(232, 93, 60, 0.6);
  opacity: 1;
}

/* ========================================
   左側固定ウィジェット
======================================== */
.fixed-left-widgets {
  position: fixed;
  bottom: 30px;
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
}

.fixed-left-widgets.visible {
  opacity: 1;
  visibility: visible;
}

.left-widgets-close {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(60, 60, 60, 0.75);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  padding: 0;
  z-index: 1000;
  transition: background 0.2s ease;
}

.left-widgets-close:hover {
  background: rgba(0, 0, 0, 0.95);
}

.left-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  height: 50px;
  padding: 0 20px 0 15px;
  border-radius: 0 25px 25px 0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-out;
  white-space: nowrap;
}

.left-widget:hover {
  padding-right: 25px;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.widget-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.widget-text {
  line-height: 1.3;
}

.podcast-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.podcast-widget:hover {
  background: linear-gradient(135deg, #7c8ff0 0%, #8a5bb5 100%);
}

.campaign-widget {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.campaign-widget:hover {
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* タブレット (768px～1023px) */
@media (max-width: 1023px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

  .nav-menu {
    gap: 12px;
  }

  .nav-menu li a {
    font-size: 0.75rem;
    width: 85px;
    height: 85px;
    padding: 8px;
  }
  
  .nav-menu .btn-icon {
    font-size: 1.5rem;
    margin-bottom: 3px;
  }
  
  .nav-menu .btn-text {
    font-size: 0.7rem;
  }
}

/* スマホ (～767px) */
@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 25px;
  }

  /* ヘッダー */
  .header-inner {
    padding: 8px 10px;
    gap: 10px;
  }

  .site-logo {
    flex-shrink: 1;
    min-width: 0;
  }
  
  .site-tagline {
    display: none;
  }

  .site-logo img {
    height: 40px;
  }

  .main-navigation {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: auto;
  }

  .nav-menu li {
    width: auto;
  }
  
  .nav-menu li a {
    display: flex;
    width: 55px;
    height: 55px;
    padding: 6px;
    font-size: 0.6rem;
    border-radius: 50%;
    margin: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
  }
  
  .nav-menu .btn-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  /* モバイルでのハンバーガーボタン縮小 */
  .btn-hamburger {
    width: 55px;
    height: 55px;
    gap: 3px;
    padding: 6px;
  }

  .hamburger-line {
    width: 16px;
    height: 2px;
  }

  .btn-hamburger .btn-text {
    font-size: 0.5rem;
  }

  .btn-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .btn-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
  
  .nav-menu .btn-text {
    font-size: 0.55rem;
    line-height: 1.1;
    text-align: center;
  }
  
  .nav-menu .points-number {
    font-size: 0.7rem;
  }
  
  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
    top: -3px;
    right: -5px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  /* ヒーロー */
  .hero-slider {
    height: 300px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .hero-button {
    padding: 10px 25px;
    font-size: 0.9rem;
    max-width: 200px;
  }

  /* パルキッズについて */
  .about-palkids {
    padding: 50px 0;
  }
  
  .about-palkids .section-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }
  
  .about-item-bg {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .about-item-reverse .about-item-bg {
    direction: ltr;
  }
  
  .about-image-wrapper {
    min-height: 250px;
    max-height: 300px;
  }
  
  .about-text-wrapper {
    padding: 30px 20px;
  }
  
  .about-text-wrapper::before {
    display: none;
  }
  
  .about-number {
    font-size: 3rem;
    margin-bottom: -20px;
  }
  
  .about-subtitle {
    font-size: 1.3rem;
  }
  
  .about-description {
    font-size: 0.9rem;
  }
  
  .about-features {
    gap: 10px;
  }
  
  .feature-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .feature-icon {
    font-size: 1.2rem;
  }

  /* おすすめ教材 */
  .materials-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scroll-behavior: smooth;
  }
  
  .materials-grid::-webkit-scrollbar {
    height: 6px;
  }
  
  .materials-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .materials-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
  }
  
  .material-card {
    flex: 0 0 calc(50% - 7.5px);
    min-width: calc(50% - 7.5px);
    scroll-snap-align: start;
  }
  
  .materials-arrow {
    display: flex;
  }

  /* ボタン */
  .buttons-grid {
    grid-template-columns: 1fr;
  }

  .content-button {
    padding: 30px 20px;
  }

  /* ニュース */
  .news-item {
    flex-direction: column;
    gap: 10px;
  }

  /* フッター */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 固定ボタン */
  .fixed-request-button {
    bottom: 15px;
    right: 15px;
  }

  .fixed-request-button a {
    width: 80px;
    height: 80px;
    padding: 8px;
    border: 2px solid var(--white);
  }
  
  .fixed-request-button a::before {
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
  }
  
  .request-main {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  .request-mid {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }
  
  .request-sub {
    font-size: 0.5rem;
  }
  
  /* 左側ウィジェット */
  .fixed-left-widgets {
    bottom: 15px;
  }
  
  .left-widget {
    height: 45px;
    font-size: 0.75rem;
    padding: 0 15px 0 12px;
    gap: 8px;
  }
  
  .left-widget:hover {
    padding-right: 18px;
  }
  
  .widget-icon {
    font-size: 1.3rem;
  }
}

/* ========================================
   ① ヒーローヘッダー（1枚固定）
======================================== */
.hero-fixed-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-fixed-inner {
  position: relative;
  width: 100%;
  height: 600px;
}

.hero-fixed-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-fixed-overlay {
  position: absolute;
  inset: 0;
  /* 画像を明るく保ちつつ最小限のグラデーション */
  background: linear-gradient(
    to right,
    rgba(0, 10, 30, 0.15) 0%,
    rgba(0, 10, 30, 0.05) 60%,
    rgba(0, 10, 30, 0)    100%
  );
}

.hero-fixed-content {
  position: absolute;
  top: 80%;
  left: 60px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  max-width: 560px;
}

.hero-fixed-eyebrow {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.35);
  paint-order: stroke fill;
}

.hero-fixed-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
  paint-order: stroke fill;
}

.hero-fixed-subtitle {
  font-size: 1rem;
  color: #fff;
  line-height: 1.85;
  margin-bottom: 28px;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.4);
  paint-order: stroke fill;
}

.hero-fixed-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s;
  white-space: nowrap;
}

.hero-btn-primary {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 66, 0.5);
}

.hero-btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 66, 0.6);
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-btn-secondary:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

@media (max-width: 768px) {
  .hero-fixed-inner { height: 480px; }

  .hero-fixed-content {
    top: 70%;
    transform: translateY(-50%);
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 0;
  }

  .hero-fixed-title { font-size: 1.6rem; }
  .hero-fixed-subtitle { font-size: 0.9rem; }
  .hero-btn { padding: 13px 22px; font-size: 0.9rem; }
}

/* ========================================
   ② カルーセルバナー（横長）
======================================== */
.banner-carousel-section {
  background: #fff;
}

.banner-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.banner-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.banner-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.banner-slide a { display: block; }

.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px;
  object-fit: cover;
}

.banner-arrow {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
  line-height: 1;
}

.banner-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.banner-arrow-prev { left: 12px; }
.banner-arrow-next { right: 12px; }

.banner-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 0 8px;
  background: #fff;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
}

.banner-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

/* ========================================
   ③ パルキッズ簡単説明
======================================== */
.about-simple-section { background: var(--white); }

.section-lead {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 50px;
  line-height: 1.9;
}

.about-simple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-simple-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-color);
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-simple-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 95, 141, 0.1);
}

.about-simple-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.about-simple-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  line-height: 1.6;
}

.about-simple-item p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.8;
  text-align: left;
}

@media (max-width: 900px) {
  .about-simple-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .about-simple-grid { grid-template-columns: 1fr; }
}

/* ========================================
   ④ 教材タブ
======================================== */
.materials-tab-section { background: var(--bg-color); }

.tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 12px 24px;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  background: #fff;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active,
.tab-btn[aria-selected="true"] {
  background: var(--primary-color);
  color: #fff;
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.3s ease;
}

.tab-panel.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.materials-tab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.material-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.material-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.material-card-link:hover { opacity: 1; }

.material-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f8f8f8;
}

.material-card-body {
  padding: 16px;
  flex: 1;
}

.material-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.5;
}

.material-card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.7;
}

.material-card-prices {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.material-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.9rem;
  margin: 0;
}

.material-card-price .price-label {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1.6;
}

.material-card-price .price-value {
  font-weight: 700;
}

.material-card-price--regular .price-label {
  background: #f0f0f0;
  color: #666;
}

.material-card-price--regular .price-value {
  color: #666;
  font-weight: 400;
}

.material-card-price--member .price-label {
  background: #fff3e0;
  color: #e65c00;
}

.material-card-price--member .price-value {
  font-size: 1.1rem;
  color: var(--accent-color);
}

.material-card-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}

.btn-material-detail {
  display: block;
  text-align: center;
  padding: 9px 0;
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: opacity 0.25s;
}

.btn-material-detail:hover { opacity: 0.8; }

.tab-panel-footer { text-align: center; }

.btn-more-materials {
  display: inline-block;
  padding: 14px 44px;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(245, 158, 66, 0.4);
}

.btn-more-materials:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 66, 0.5);
}

@media (max-width: 900px) {
  .materials-tab-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-btn { padding: 10px 16px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .materials-tab-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ========================================
   ⑤⑥ カルーセル共通（体験談・書籍）
======================================== */
.testimonials-section { background: #e8f4f8; }
.books-section { background: var(--white); }

.testimonials-carousel-wrapper,
.books-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials-carousel-viewport,
.books-carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.testimonials-carousel-track,
.books-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  line-height: 1;
}

.carousel-arrow:hover { background: var(--secondary-color); transform: scale(1.05); }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; transform: none; }

/* 体験談カード */
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
}

.testimonial-body { flex: 1; }

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-color);
  margin-bottom: 18px;
  position: relative;
  padding-top: 20px;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -8px;
  left: -6px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: right;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

/* 書籍グリッド */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* 書籍カード */
.book-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.book-card-link { display: block; color: inherit; }
.book-card-link:hover { opacity: 1; }

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--primary-color), #1a3f6b);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.book-cover-placeholder span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.book-info { padding: 12px; }
.book-title { font-size: 0.85rem; font-weight: 700; color: var(--primary-color); margin-bottom: 6px; line-height: 1.5; }
.book-author { font-size: 0.78rem; color: var(--text-light); margin-bottom: 4px; }
.book-price { font-size: 0.9rem; font-weight: 700; color: var(--accent-color); }

/* もっと見るリンク */
.section-more-link { text-align: center; margin-top: 32px; }

.section-more-link a {
  display: inline-block;
  padding: 13px 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.section-more-link a:hover {
  opacity: 1;
  background: var(--primary-color);
  color: #fff;
}

@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 540px) {
  .testimonial-card { flex: 0 0 85vw; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
  /* 書籍: スマホも 2列グリッドを維持 */
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 書籍: 極小画面（≤360px）のみスワイプカルーセル */
@media (max-width: 360px) {
  .books-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .books-grid::-webkit-scrollbar { display: none; }
  .books-grid .book-card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
}

/* ========================================
   お知らせ調整
======================================== */
.news-link { text-align: center; margin-top: 20px; }

.news-link a {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  font-weight: 700;
  transition: all 0.3s;
}

.news-link a:hover {
  opacity: 1;
  background: var(--primary-color);
  color: #fff;
}

/* ========================================
   教材詳細ページ / カートページ共通
======================================== */

/* パンくず */
.material-breadcrumb {
  background: #f5f7fa;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 0.82rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  max-width: 1100px;
  margin-inline: auto;
}
.breadcrumb-list li + li::before {
  content: '›';
  color: var(--text-light);
  margin-right: 6px;
}
.breadcrumb-list a { color: var(--primary-color); }
.breadcrumb-list [aria-current] { color: var(--text-light); }

/* 年齢タグ */
.material-age-tag {
  display: inline-block;
  background: var(--mat-color);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.material-age-tag--sm { font-size: 0.72rem; padding: 3px 10px; }
.material-age-tag--hero { font-size: 0.85rem; padding: 5px 16px; }

/* ========================================
   教材詳細ページ（親投稿）
======================================== */

/* テーマカラ変数（--mat-color をインラインスタイルで上書き可能） */
.material-detail-page {
  --mat-color:        #7eb802;
  --mat-color-light:  color-mix(in srgb, var(--mat-color) 14%, white);
  --mat-color-light2: color-mix(in srgb, var(--mat-color) 22%, white);
  --mat-color-border: color-mix(in srgb, var(--mat-color) 45%, white);
  --mat-color-dark:   color-mix(in srgb, var(--mat-color) 68%, black);
}

/* ① ヒーロー */
.material-hero {
  position: relative;
  min-height: 480px;
  background: var(--primary-color) center / cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}
.material-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--mat-color) 70%, transparent) 0%,
    rgba(255,255,255,0.25) 100%
  );
}
.material-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px 0;
}
.material-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #111;
  text-shadow:
    -2px -2px 0 #fff,
     2px -2px 0 #fff,
    -2px  2px 0 #fff,
     2px  2px 0 #fff,
    -1px  0   0 #fff,
     1px  0   0 #fff,
     0   -1px 0 #fff,
     0    1px 0 #fff,
     3px  3px 0 rgba(255,255,255,0.5),
     4px  4px 6px rgba(0,0,0,0.18);
}
.material-hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 28px;
  opacity: 1;
  max-width: 620px;
  color: #111;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff,
     2px  2px 4px rgba(0,0,0,0.15);
}
.btn-hero-cta {
  display: inline-block;
  padding: 16px 52px;
  background: #fc6353;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(252,99,83,0.55);
  letter-spacing: 0.06em;
  animation: cta-pulse 2.4s ease-in-out infinite;
}
.btn-hero-cta:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(252,99,83,0.65);
  animation: none;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(252,99,83,0.55); }
  50%       { box-shadow: 0 4px 32px rgba(252,99,83,0.80); }
}

.material-nonsale-badge {
  display: inline-block;
  padding: 16px 52px;
  background: #fc6353;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(252,99,83,0.55);
  letter-spacing: 0.06em;
  cursor: default;
}

/* key-facts タグスタイル */
.material-key-facts {
  background: #f5f7fa;
  padding: 20px 0;
  border-bottom: 1px solid #e8edf2;
}
.material-key-facts-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.material-key-fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 2px solid var(--mat-color);
  border-radius: 50px;
  padding: 6px 18px;
}
.material-key-fact-label {
  font-size: 0.72rem;
  color: var(--mat-color);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.material-key-fact-label::after { content: ':'; margin-right: 2px; }
.material-key-fact-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: #333;
  white-space: nowrap;
}

/* ② 本文エリア（LP スタイル） */
.material-detail-content {
  padding: 56px 0;
}
.material-detail-content h2 {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: var(--mat-color);
  text-align: center;
  padding: 12px 24px;
  margin: 60px 0 28px;
  border-radius: 4px;
  line-height: 1.5;
}
.material-detail-content h2:first-child { margin-top: 0; }
.material-detail-content h3 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  margin: 28px 0 24px;
  line-height: 1.5;
  background: var(--mat-color);
  border-radius: 10px 10px 10px 4px;
  padding: 10px 18px;
  position: relative;
  display: block;
}
.material-detail-content h3::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 16px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 14px 0 0;
  border-color: var(--mat-color) transparent transparent transparent;
}
.material-detail-content p {
  line-height: 1.95;
  margin-bottom: 1.2em;
  color: #333;
}
.material-detail-content ul {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.material-detail-content li {
  line-height: 1.9;
  margin-bottom: 4px;
}
.material-detail-content strong { color: var(--mat-color-dark); }

/* 写真: 左配置・角丸・プレースホルダー背景 */
.material-detail-content img {
  border-radius: 12px;
  /* 画像読み込み中・エラー時のプレースホルダー */
  background: linear-gradient(135deg, var(--mat-color-light) 0%, var(--mat-color-border) 100%);
  display: block;
}
.material-detail-content h3 + img {
  float: left;
  margin: 4px 24px 20px 0;
  width: 42%;
  max-width: 42% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
/* 左floatに流れるテキストはoverflow:hiddenで回り込み */
.material-detail-content h3 + img + p,
.material-detail-content h3 + img + ul { overflow: hidden; }
/* h2前は必ずclear */
.material-detail-content h2 { clear: both; }
.material-detail-content p + h2,
.material-detail-content ul + h2,
.material-detail-content div + h2 { clear: both; }

/* プレースホルダー画像ボックス（.lp-img-placeholderで使用可能） */
.lp-img-placeholder {
  float: left;
  width: 42%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--mat-color-light) 0%, var(--mat-color-border) 100%);
  border-radius: 12px;
  margin: 4px 24px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--mat-color);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* ③ カートエリア（シリーズ） */
.material-series-section {
  background: var(--mat-color-light);
  padding: 72px 0;
}
.material-series-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: #fc6353;
  text-align: center;
  padding: 12px 24px;
  border-radius: 4px;
  margin-bottom: 40px;
  line-height: 1.5;
}
.material-series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.material-series-card {
  background: #fff;
  border: 1px solid var(--mat-color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 16px color-mix(in srgb, var(--mat-color) 22%, transparent);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.material-series-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--mat-color) 38%, transparent);
}
.material-series-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5f5f5;
  display: block;
  border-bottom: 1px solid var(--mat-color-border);
}
.material-series-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.material-series-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.5;
}
.material-series-card-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.series-price-regular {
  font-size: 0.85rem;
  color: var(--text-light);
}
.series-price-member {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #e8003d;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  margin-top: 2px;
}
.material-series-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-series-cart {
  width: 100%;
  padding: 12px 0;
  background: var(--secondary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.25s, transform 0.2s;
  letter-spacing: 0.03em;
}
.btn-series-cart:hover { opacity: 0.88; transform: translateY(-1px); }

/* カート下注記リンク */
.cart-sales-note {
  display: block;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  text-decoration: underline;
  margin-top: 4px;
}
.cart-sales-note:hover { color: var(--primary-color); }

.btn-series-detail {
  display: block;
  text-align: center;
  padding: 10px 0;
  border: 2px solid var(--mat-color);
  color: var(--mat-color);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s;
}
.btn-series-detail:hover {
  background: var(--mat-color);
  color: #fff;
}

/* ④ 仕様（詳細ページ） */
.material-specs-section { padding: 72px 0; background: #f9fbfd; }
.material-specs-heading {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: var(--mat-color);
  text-align: center;
  padding: 12px 24px;
  border-radius: 4px;
  margin-bottom: 32px;
  line-height: 1.5;
}
.material-specs-body {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-color);
  border: 2px solid var(--mat-color);
  border-radius: 6px;
  overflow: hidden;
}
.material-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.9;
}
.material-specs-table th,
.material-specs-table td {
  padding: 10px 16px;
  border-bottom: 1px dotted var(--mat-color-border);
  vertical-align: top;
  text-align: left;
}
.material-specs-table th {
  background: var(--mat-color-light);
  color: var(--mat-color-dark);
  font-weight: 700;
  white-space: nowrap;
  width: 28%;
}
.material-specs-table td { color: #444; }
.material-specs-table tr:nth-child(even) th { background: var(--mat-color-light2); }
.material-specs-table tr:nth-child(even) td { background: #fcfff9; }
.material-specs-table .specs-note {
  color: #777;
  font-size: 0.85rem;
  padding-left: 24px;
}
.specs-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mat-color-dark);
  background: var(--mat-color-light2);
  padding: 8px 16px;
  margin: 0;
  border-top: 2px solid var(--mat-color-border);
}
.specs-section-title:first-child { border-top: none; }

/* ========================================
   教材カートページ（子投稿）
======================================== */

/* ① ギャラリー */
.material-cart-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: start;
}
.material-gallery-stage {
  position: relative;
  background: #f5f7fa;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.material-gallery-slide {
  display: none;
  position: absolute;
  inset: 0;
}
.material-gallery-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.material-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.material-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.gallery-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  line-height: 1;
}
.gallery-btn:hover { background: var(--primary-color); color: #fff; }
.gallery-dots { display: flex; gap: 6px; }
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s;
}
.gallery-dot.active { background: var(--primary-color); }
.material-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #f5f7fa;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s;
}
.gallery-thumb.active { border-color: var(--primary-color); }

/* ② 商品情報 */
.material-product-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 20px;
}
.material-price-block { margin-bottom: 20px; }
.material-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f4f4f4;
  border-radius: 8px;
  margin-bottom: 4px;
}
.material-price-row--member { background: #fff8f0; }
.price-label { font-size: 0.82rem; color: var(--text-light); font-weight: 600; }
.material-price-row--member .price-label { color: var(--accent-color); }
.price-regular { font-size: 1.45rem; color: var(--text-light); }
.price-member  { font-size: 1.45rem; font-weight: 800; color: var(--accent-color); }
.material-price-value-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.material-price-discount-badge {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
/* 会員サポート期限 */
.material-support-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f0f7ff;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.support-period-label { color: var(--text-light); font-weight: 600; }
.support-period-value  { font-weight: 700; color: var(--primary-color); }
.material-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 16px;
}
.material-cart-form { width: 100%; }
.btn-cart-primary {
  width: 100%;
  padding: 16px 0;
  background: var(--secondary-color);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 14px rgba(245,158,66,0.35);
}
.btn-cart-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.material-product-excerpt {
  margin: 16px 0 0;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-color);
}
.btn-cart-secondary {
  display: block;
  text-align: center;
  padding: 14px 0;
  margin-top: 20px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.98rem;
  font-weight: 700;
  transition: all 0.25s;
}
.btn-cart-secondary:hover { background: var(--primary-color); color: #fff; }
.material-member-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ③ タブ（教材説明 / 仕様） */
.material-tabs-section {
  padding: 48px 0 64px;
  background: #f9fbfd;
}
.material-desc-body { line-height: 1.9; }
.material-desc-body p { margin-bottom: 1.2em; }
.material-desc-body h3 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  margin: 28px 0 24px;
  line-height: 1.5;
  background: var(--mat-color);
  border-radius: 10px 10px 10px 4px;
  padding: 10px 18px;
  position: relative;
  display: block;
}
.material-desc-body h3::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 16px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 14px 0 0;
  border-color: var(--mat-color) transparent transparent transparent;
}

/* ===================================================================
   LP 汎用コンポーネント（詳細ページ本文内で使用）
=================================================================== */

/* 写真左・テキスト右 2カラム（WordPress でも崩れない flex 版） */
.lp-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 1.5em 0 2em;
}
.lp-row-img {
  flex: 0 0 42%;
  width: 42%;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mat-color-light) 0%, var(--mat-color-border) 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
  display: block;
  height: auto;
}
.lp-row-body { flex: 1; min-width: 0; }
.lp-row-body h3 { margin-top: 0 !important; }
.lp-row-body p:last-child { margin-bottom: 0; }

/* 4カラムグリッド（かけ流し内容など） */
.lp-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 1.5em 0;
}
.lp-4col-item { text-align: center; }
.lp-4col-item img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.lp-4col-item h4 { color: var(--mat-color); font-size: 0.85rem; font-weight: bold; margin: 0 0 6px; }
.lp-4col-item p { font-size: 12px; text-align: left; margin: 0; color: #555; }

/* 体験談カード */
.lp-taikendan {
  margin-bottom: 20px;
  border: 1px solid var(--mat-color-border);
  border-radius: 8px;
  overflow: hidden;
}
.lp-taikendan-title {
  background: var(--mat-color-light);
  margin: 0;
  padding: 12px 16px;
  font-weight: bold;
  color: var(--mat-color);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--mat-color-border);
}
.lp-taikendan-collapse {
  position: relative;
  max-height: 240px;
  overflow: hidden;
  transition: max-height .5s ease;
}
.lp-taikendan-collapse.is-open { max-height: 3000px; overflow: visible; }
.lp-taikendan-inner {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 16px;
  align-items: flex-start;
}
.lp-taikendan-inner > img {
  flex: 0 0 40%;
  width: 40%;
  height: auto;
  border-radius: 8px;
}
.lp-taikendan-inner > div { flex: 1; min-width: 0; }
.lp-taikendan-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
  transition: opacity .3s;
}
.lp-taikendan-collapse.is-open .lp-taikendan-fade { opacity: 0; }
.lp-taikendan-toggle {
  display: block;
  width: 100%;
  background: var(--mat-color-light);
  border: none;
  border-top: 1px solid var(--mat-color-border);
  padding: 12px;
  color: var(--mat-color);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  box-sizing: border-box;
}
.lp-taikendan-toggle:hover { background: var(--mat-color-light2); }

/* ユーザーレビュー（pop & cute） */
.lp-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 2em 0;
}
.lp-review-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 20px;
  position: relative;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.lp-review-card::before {
  content: '\275D';
  font-family: Georgia, serif;
  font-size: 100px;
  position: absolute;
  top: -14px;
  right: 12px;
  opacity: 0.07;
  line-height: 1;
}
.lp-review-card--green {
  border: 2px solid #7eb802;
  background: linear-gradient(150deg, #f4ffe3 0%, #fff 55%);
}
.lp-review-card--green::before { color: #7eb802; }
.lp-review-card--pink {
  border: 2px solid #fc6353;
  background: linear-gradient(150deg, #fff2f0 0%, #fff 55%);
}
.lp-review-card--pink::before { color: #fc6353; }
.lp-review-stars {
  font-size: 22px;
  color: #ffc107;
  letter-spacing: 3px;
}
.lp-review-headline {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
  color: #222;
  margin: 0;
}
.lp-review-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 200px;
}
.lp-review-text {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #555;
  flex: 1;
}
.lp-review-text p { margin: 0; }
.lp-review-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-review-name {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: #7eb802;
  border-radius: 30px;
  padding: 5px 16px;
  align-self: flex-start;
}
.lp-review-card--pink .lp-review-name { background: #fc6353; }
.lp-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lp-review-tag {
  display: inline-block;
  background: #f0f4f8;
  color: #555;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.lp-review-link {
  display: inline-block;
  text-align: center;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #7eb802;
  color: #7eb802;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}
.lp-review-card--pink .lp-review-link { border-color: #fc6353; color: #fc6353; }
.lp-review-link:hover { background: #7eb802; color: #fff; }
.lp-review-card--pink .lp-review-link:hover { background: #fc6353; color: #fff; }

/* 体験談カルーセル（palkids_eiken_reports ショートコード） */
.lp-review-carousel { margin: 2em 0; }
.lp-review-carousel-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-review-carousel-viewport { flex: 1; min-width: 0; overflow: hidden; }
.lp-review-carousel-track {
  display: flex;
  transition: transform .4s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}
.lp-review-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 4px;
}
.lp-review-carousel-slide .lp-review-card { height: 100%; }
/* 常に横2列（スマホでも2列を維持） */
.lp-review-carousel-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2em;
}
@media (max-width: 480px) {
  .lp-review-carousel-pair { gap: .6em; }
  .lp-review-card { padding: 16px 12px 14px; }
  .lp-review-headline { font-size: .85rem; }
  .lp-review-photo { max-height: 110px; }
}
.lp-review-carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #7eb802;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.lp-review-carousel-arrow:hover { background: #5f8e00; transform: scale(1.05); }
.lp-review-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.lp-review-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
}
.lp-review-carousel-dot.active { background: #7eb802; }
/* スマホでは矢印をビューポート上に重ねて表示し、フリック可能なことを示唆する */
@media (max-width: 640px) {
  .lp-review-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    background: rgba(126, 184, 2, .85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    z-index: 2;
  }
  .lp-review-carousel-arrow:hover { transform: translateY(-50%); }
  .lp-review-carousel-prev { left: 2px; }
  .lp-review-carousel-next { right: 2px; }
}
.lp-review-collapse { max-height: 5.2em; overflow: hidden; transition: max-height .25s ease; }
.lp-review-toggle { font-size: .82em; display: block; margin-top: .4em; cursor: pointer; color: #7eb802; }
.lp-review-card--pink .lp-review-toggle { color: #fc6353; }

/* Q&A */
.lp-qa { margin: 1em 0; }
.lp-qa-item { border-bottom: 1px solid var(--mat-color-border); padding: 20px 0; }
.lp-qa-item:first-child { border-top: 1px solid var(--mat-color-border); }
.lp-qa-q {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  color: var(--mat-color-dark);
  line-height: 1.7;
}
.lp-qa-q::before { content: 'Q'; font-size: 1.3em; font-weight: 900; color: var(--mat-color); flex-shrink: 0; }
.lp-qa-a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
  color: #444;
  line-height: 1.9;
}
.lp-qa-a::before { content: 'A'; font-size: 1.3em; font-weight: 900; color: #fc6353; flex-shrink: 0; }

/* グラフ（比較バー） */
.lp-graph {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 1.5em 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid var(--mat-color-border);
}
.lp-graph-title { font-size: 12px; font-weight: 700; color: #888; margin-bottom: 14px; letter-spacing: .05em; }
.lp-graph-row { margin-bottom: 14px; }
.lp-graph-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #333;
  margin-bottom: 5px;
  flex-wrap: wrap;
  gap: 4px;
}
.lp-graph-bar { height: 12px; border-radius: 99px; overflow: hidden; }
.lp-graph-fill { height: 100%; border-radius: 99px; }

/* 汎用ボタン */
.btn-trial {
  display: inline-block;
  padding: 14px 36px;
  background: #fc6353;
  color: #fff !important;
  font-weight: 700;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(252,99,83,0.4);
  text-align: center;
}
.btn-trial:hover { opacity: 0.88; transform: translateY(-2px); color: #fff !important; }
.btn-report {
  display: inline-block;
  padding: 10px 24px;
  background: var(--mat-color);
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.btn-report:hover { opacity: 0.82; color: #fff !important; }

/* 教材ラインナップ フロー */
.lp-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 1.5em 0;
  flex-wrap: wrap;
}
.lp-flow-item {
  flex: 1;
  min-width: 120px;
  background: var(--mat-color-light);
  border: 2px solid var(--mat-color-border);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
}
.lp-flow-item.is-current {
  background: var(--mat-color);
  border-color: var(--mat-color);
}
.lp-flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--mat-color);
  font-size: 1.6rem;
  flex-shrink: 0;
}
.lp-flow-name { font-weight: 800; font-size: 0.9rem; color: var(--mat-color-dark); margin-bottom: 4px; }
.lp-flow-item.is-current .lp-flow-name { color: #fff; }
.lp-flow-age { font-size: 0.75rem; color: #666; }
.lp-flow-item.is-current .lp-flow-age { color: rgba(255,255,255,0.85); }
.lp-flow-desc { font-size: 0.75rem; color: #555; margin-top: 6px; line-height: 1.5; }
.lp-flow-item.is-current .lp-flow-desc { color: rgba(255,255,255,0.9); }

/* ページ内目次 */
.lp-toc {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.2em 1.4em 1.2em 1.4em;
  margin: 1.5em 0 2em;
}
.lp-toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
  text-transform: uppercase;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.lp-toc-title::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.lp-toc.is-open .lp-toc-title::after { transform: rotate(-135deg); }
.lp-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.lp-toc.is-open .lp-toc-list {
  max-height: 1000px;
  opacity: 1;
  margin-top: 0.75em;
}
.lp-toc-list li {
  border-bottom: 1px solid #e8e8e8;
}
.lp-toc-list li:last-child { border-bottom: none; }
.lp-toc-list a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.2em;
  font-size: 0.92rem;
  color: #444;
  text-decoration: none;
  transition: color 0.15s;
}
.lp-toc-list a:hover { color: var(--mat-color); }
.lp-toc-list a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--mat-color);
  border-bottom: 2px solid var(--mat-color);
  transform: rotate(-45deg);
  flex-shrink: 0;
  margin-top: -2px;
}

/* ハイライトボックス */
.lp-box {
  background: var(--mat-color-light);
  border: 2px solid var(--mat-color);
  border-radius: 8px;
  padding: 1.2em 1.4em;
  margin: 1.5em 0;
  font-size: 1.05em;
  line-height: 1.95;
}

/* COLUMNボックス */
.lp-column-box {
  background: #fffde7;
  border: 2px solid #f9a825;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.lp-column-label {
  font-size: 11px;
  font-weight: 700;
  color: #f9a825;
  letter-spacing: .15em;
  margin-bottom: 4px;
}
.lp-column-box h3 {
  color: #5d4037 !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
  font-size: 1em !important;
}
.lp-phoneme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
.lp-phoneme-item {
  background: #f1f8e9;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
}
.lp-phoneme-item span { color: #7eb802; font-weight: 700; }

/* 参考記事リスト */
.lp-ref-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.lp-ref-header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mat-color);
  background: var(--mat-color-light);
  border: 1px solid var(--mat-color-border);
  border-radius: 4px;
  padding: 2px 8px;
}
.lp-ref-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
  border-top: 2px solid var(--mat-color);
}
.lp-ref-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 5px 4px;
  border-bottom: 1px solid var(--mat-color-border);
}
.lp-ref-num {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mat-color);
  min-width: 1.8em;
  text-align: right;
  line-height: 1.6;
}
.lp-ref-body { flex: 1; min-width: 0; }
.lp-ref-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2a2a2a;
  text-decoration: none;
  line-height: 1.55;
  transition: color .2s;
}
.lp-ref-title:hover { color: var(--mat-color); text-decoration: underline; }
.lp-ref-source {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 1px;
}

/* レスポンシブ */
@media (max-width: 860px) {
  .material-cart-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .material-series-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 680px) {
  /* SP: 写真を上に、テキストを下に */
  .material-detail-content h3 + img,
  .lp-img-placeholder {
    float: none;
    width: 100%;
    max-width: 100% !important;
    margin: 0 0 16px 0;
    aspect-ratio: 16 / 9;
  }
  .material-detail-content h3 + img + p,
  .material-detail-content h3 + img + ul { overflow: visible; }
  /* lp-row SP */
  .lp-row { flex-direction: column; }
  .lp-row-img { width: 100%; flex: 0 0 auto; }
  /* 4カラム → 2カラム */
  .lp-4col { grid-template-columns: repeat(2, 1fr); }
  /* 体験談グリッド → 縦積み */
  .lp-taikendan-inner { flex-direction: column; }
  .lp-taikendan-inner > img { width: 100%; flex: 0 0 auto; }
  /* フロー → 縦積み */
  .lp-flow { flex-direction: column; }
  .lp-flow-arrow { transform: rotate(90deg); align-self: center; padding: 0; }
  /* key-facts タグを小さめに */
  .material-key-fact { padding: 5px 14px; }
  .material-key-fact-value { font-size: 0.82rem; }
}
@media (max-width: 540px) {
  .material-hero { min-height: 360px; }
  .material-series-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .material-cart-container { padding-top: 24px; }
}

/* ========================================
   single.php ホームに戻るボタン
======================================== */
.single-back-home {
  text-align: center;
  padding: 40px 0 20px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

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

.btn-back-home-icon {
  font-size: 1.1em;
  line-height: 1;
}

