/*
Theme Name: Palkids
Theme URI: https://www.palkids.co.jp
Author: Institute Of Child English Education
Author URI: https://www.palkids.co.jp
Description: パルキッズ公式Webサイトのカスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
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: 500;
  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);
}

.site-logo img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.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-cart:hover,
.nav-menu .btn-points:hover {
  opacity: 0.85;
}

/* ハンバーガーメニュー */
.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;
}

/* ========================================
   パンくずリスト
======================================== */
.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: 500;
  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;
}

.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: #e74c3c;
  color: var(--white);
}

.btn-cart:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.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;
}

/* ========================================
   お知らせ
======================================== */
.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-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;
  align-self: flex-start;
}

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

/* ========================================
   コンテンツボタン
======================================== */
.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);
}

.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;
}

.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-sub {
  font-size: 0.7rem;
  font-weight: 500;
  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-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: 30px;
  }

  .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;
  }
  
  .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-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;
  }
}
