/*
Theme Name: Yokohama Kids Club
Theme URI: 
Author: Antigravity
Author URI: 
Description: 横浜キッズくらぶ用オリジナルテーマ (くもん風デザイン)
Version: 1.0
*/

:root {
  --primary-color: #0071C5; /* くもんブルー */
  --secondary-color: #f0f8ff;
  --text-color: #333333;
  --bg-color: #f4f7f6;
  --box-bg: #ffffff;
  --border-radius: 16px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Revision */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
}

.site-title a {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 35px;
  align-items: center;
}

.main-navigation a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.main-navigation .nav-jp {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  transition: color 0.3s;
}

.main-navigation .nav-en {
  font-size: 10px;
  font-weight: 800;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
  transition: color 0.3s;
}

.main-navigation a:hover .nav-jp,
.main-navigation a:hover .nav-en {
  color: var(--primary-color);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Header CTA Button */
.nav-cta-item {
  margin-left: 10px;
}

.nav-cta-btn {
  background: var(--primary-color);
  padding: 10px 24px !important;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 113, 197, 0.3);
  transition: transform 0.3s, box-shadow 0.3s !important;
  justify-content: center;
}

.nav-cta-btn .nav-jp {
  color: #fff !important;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 113, 197, 0.4);
}

.nav-cta-btn::after {
  display: none !important;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Above mobile nav */
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Hero Section (Modern Floating Design) */
.hero-modern {
  background-color: var(--secondary-color); /* 薄い青/白系の清潔な背景色 */
  padding: 80px 0;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/52w1512020.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.28; /* 馬車道の街並みがしっかりと美しく判別できる濃さ（0.28）へ引き上げ */
  z-index: -1;
  pointer-events: none;
  filter: grayscale(10%) contrast(0.92) brightness(1.02); /* 街灯や洋館の輪郭がシャープかつ上品に際立つよう調整 */
}

.hero-modern-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-modern-text {
  text-align: left;
}

.hero-modern-sub {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-color);
  background-color: rgba(0, 113, 197, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-modern h2 {
  font-size: 40px;
  color: var(--text-color);
  font-weight: 800;
  line-height: 1.45;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-bracket {
  font-size: 24px;
  font-weight: 700;
  color: #666;
  vertical-align: middle;
}

.hero-modern-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 30px;
}

.hero-modern-btn {
  font-size: 16px;
  padding: 14px 36px;
}

/* Slider Frame (画像サイズを引き延ばさずに綺麗に見せる) */
.hero-modern-slider-wrap {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 113, 197, 0.12); /* 薄い青みを含んだプレミアムなシャドウ */
  border: 4px solid #ffffff; /* 額縁（フレーム）効果 */
  aspect-ratio: 4 / 3; /* 美しいアスペクト比で表示サイズを固定 */
  position: relative;
  background-color: #eee;
}

.hero-modern-swiper {
  width: 100%;
  height: 100%;
}

.hero-modern-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-modern-slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 6s ease-out;
}

/* スライドがアクティブになったときにゆっくりズーム（Ken Burns効果） */
.swiper-slide-active .hero-modern-slide-img {
  transform: scale(1.12);
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 113, 197, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-size: 16px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 197, 0.5);
  background-color: #005ea5;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Cards (Kumon Style) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--box-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  border-top: 5px solid var(--primary-color);
}

.card h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p {
  margin-bottom: 0;
}

.price-box {
  background: #fdfdfd;
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
}

.price-box h4 {
  font-size: 22px;
  margin-top: 0;
  color: var(--text-color);
}

.price-amount {
  font-size: 24px;
  font-weight: bold;
  color: #e60012; /* アクセントカラー */
  margin: 15px 0;
}

.price-desc {
  font-size: 14px;
  color: #666;
  text-align: left;
}

/* Info Box */
.info-box {
  background: var(--box-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

/* Slider Section */
.slider-section {
  padding: 40px 0;
  background-color: var(--bg-color);
}
.swiper-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}
.swiper-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}
.swiper-slide .slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  padding: 30px;
}
.swiper-slide .slide-content h3 {
  margin: 0 0 5px;
  font-size: 24px;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--primary-color) !important;
  background: rgba(255,255,255,0.8);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 18px !important;
}

/* Articles Section (medhia-w style) */
.article-section {
  padding: 60px 0;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.article-main {
  display: block;
  background: var(--box-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.article-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.article-main-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.article-main-content {
  padding: 25px;
}
.article-main-title {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--text-color);
  transition: color 0.3s;
}
.article-main:hover .article-main-title {
  color: var(--primary-color);
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-list-item {
  display: flex;
  background: var(--box-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.article-list-img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}
.article-list-content {
  padding: 15px 20px;
  flex: 1;
}
.article-list-title {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text-color);
  transition: color 0.3s;
}
.article-list-item:hover .article-list-title {
  color: var(--primary-color);
}
.block {
  display: block;
}

/* Achievements Info Box */
.achievements-info-box {
  background: var(--box-bg);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.achievements-sub-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 35px;
  position: relative;
  font-weight: 700;
}

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

.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
}

.achievement-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
  opacity: 0.85;
}

.achievement-val {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.achievement-unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  margin-left: 3px;
}

.achievement-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-color);
  background-color: var(--secondary-color);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.achievement-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* CSS Donut Chart (conic-gradient) */
.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.chart-donut {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* 文系 70% (#0071C5)、理系 30% (#ff8c00) */
  background: conic-gradient(var(--primary-color) 0% 70%, #ff8c00 70% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.chart-center {
  width: 70px;
  height: 70px;
  background-color: var(--box-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color);
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #555;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  display: inline-block;
}

.legend-color.bun {
  background-color: var(--primary-color);
}

.legend-color.ri {
  background-color: #ff8c00;
}

/* Responsive adjustment for Strengths */
@media (max-width: 992px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .achievement-item {
    border-bottom: 1px dashed #eee;
    padding-bottom: 25px;
  }
  .achievement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Price Section 2-Column Redesign */
.price-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--box-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border-top: 5px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.price-card-header {
  padding: 30px;
  text-align: center;
  background-color: rgba(0, 113, 197, 0.03);
  border-bottom: 1px solid #f0f0f0;
}

.price-card-header h4 {
  font-size: 22px;
  color: var(--primary-color);
  margin: 0 0 10px;
  font-weight: 800;
}

.price-card-target {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
}

.price-card-body {
  padding: 30px;
}

.price-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
}

.price-card-body .price-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 5px;
}

.price-card-body .price-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  margin-left: 4px;
}

.price-note {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
}

.price-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #f5f5f5;
  padding-top: 25px;
}

.price-features-list li {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-features-list i {
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================
   Sub Pages (下層ページ共通スタイル)
========================================== */
.sub-page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #005ea5 100%);
  color: #ffffff;
  padding: 80px 0 60px;
  text-align: center;
}

.sub-page-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 4px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
}

.sub-page-header h1 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 15px;
  letter-spacing: -0.5px;
}

.sub-page-header p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================
   Features Detail (学習環境特長詳細)
========================================== */
.features-detail-list {
  display: flex;
  flex-direction: column;
  gap: 70px;
  max-width: 900px;
  margin: 0 auto;
}

.features-detail-item {
  background-color: var(--box-bg);
  border-radius: var(--border-radius);
  padding: 45px 40px;
  box-shadow: var(--box-shadow);
  display: flex;
  gap: 50px;
  align-items: center;
}

.features-detail-item.reverse {
  flex-direction: row-reverse;
}

.features-detail-text {
  flex: 1.3;
  text-align: left;
}

.feature-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  opacity: 0.3;
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.features-detail-text h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 800;
}

.feature-lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.5;
}

.features-detail-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.features-detail-text p:last-child {
  margin-bottom: 0;
}

.features-detail-media {
  flex: 0.7;
  display: flex;
  justify-content: center;
}

.feature-icon-big {
  width: 140px;
  height: 140px;
  border-radius: var(--border-radius);
  background-color: rgba(0, 113, 197, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

/* ==========================================
   Price & Course Detail (コース・料金詳細)
========================================== */
.price-detail-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.price-detail-card {
  background-color: var(--box-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border-top: 5px solid var(--primary-color);
}

.price-detail-header {
  padding: 30px 40px;
  background-color: rgba(0, 113, 197, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.price-detail-header h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin: 0;
  font-weight: 800;
}

.price-tag-badge {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
}

.price-detail-body {
  padding: 40px;
}

.price-detail-intro {
  text-align: left;
  margin-bottom: 35px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 30px;
}

.price-detail-intro h3 {
  font-size: 20px;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 800;
}

.price-detail-intro p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.price-detail-intro p:last-child {
  margin-bottom: 0;
}

.price-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.price-detail-box {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.price-detail-box h4 {
  font-size: 18px;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 800;
}

.price-detail-box .amount-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.price-detail-box .amount-tax {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin-left: 4px;
}

.box-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box-feature-list li {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.box-feature-list i {
  color: var(--primary-color);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================
   Common Contact Section & Form (共通お問い合わせ)
========================================== */
.contact-section-common {
  padding: 80px 0;
}

.contact-section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.contact-grid-common {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: left;
  border-top: 5px solid var(--primary-color);
  display: flex;
  flex-direction: column;
}

.contact-info-card h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-tel-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.contact-hours {
  font-size: 13px;
  color: #555;
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 700;
}

.contact-info-note {
  background-color: var(--box-bg);
  border-radius: 8px;
  padding: 20px;
  border-left: 3px solid var(--primary-color);
  margin-top: auto;
}

.contact-info-note p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.contact-form-card {
  background-color: var(--box-bg);
  border-radius: var(--border-radius);
  padding: 45px 50px;
  box-shadow: var(--box-shadow);
  border: 1px solid #eee;
  text-align: left;
  grid-column: 1 / -1;
}

.contact-form-card h3 {
  font-size: 18px;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.common-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-common {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-common label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-color);
}

.form-required {
  background-color: #e60012;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
}

.form-row-common {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.common-contact-form input,
.common-contact-form select,
.common-contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text-color);
  padding: 14px 18px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.common-contact-form input:focus,
.common-contact-form select:focus,
.common-contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 113, 197, 0.1);
}

.form-submit-btn {
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 17px;
  padding: 18px;
  margin-top: 15px;
}

/* ==========================================
   Responsive for Sub Pages
========================================== */
@media (max-width: 992px) {
  .features-detail-item {
    flex-direction: column !important;
    gap: 30px;
    padding: 35px 30px;
  }
  .features-detail-text {
    text-align: center;
  }
  .features-detail-text p {
    text-align: left;
  }
  .features-detail-media {
    width: 100%;
  }
  .price-detail-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 25px 30px;
  }
  .price-detail-body {
    padding: 30px;
  }
  .price-detail-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .contact-grid-common {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-info-card {
    text-align: center;
    align-items: center;
  }
  .contact-info-note {
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
  }
  .form-row-common {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .sub-page-header {
    padding: 60px 0 40px;
  }
  .sub-page-header h1 {
    font-size: 28px;
  }
  .sub-page-header p {
    font-size: 14px;
  }
  .contact-form-card {
    padding: 25px 20px;
  }
}

/* Responsive adjust for Price Grid */
@media (max-width: 992px) {
  .price-card-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 10px;
  }
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 0 20px;
  text-align: center;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}
.footer-info {
  margin-bottom: 20px;
}

/* ふわっとアニメーション (Fade-up) */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Expandable Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 60px;
  height: 60px;
}
.fab-main {
  list-style: none;
  cursor: pointer;
  background: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
}
.fab-main::-webkit-details-marker {
  display: none;
}
.fab[open] .fab-main {
  transform: rotate(45deg);
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.fab-item {
  background: #fff;
  color: #333;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: absolute;
  top: 6px; /* (60 - 48)/2 */
  left: 6px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.fab-item:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 113, 197, 0.4);
}
.fab-item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-weight: bold;
}
.fab-item:hover::before {
  opacity: 1;
}

/* 開いた際の円形展開 (半径110px) */
.fab[open] .fab-item {
  --angle: calc((var(--i) - 1) * -22.5deg);
  animation: fab-item-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: calc(0.04s * var(--i));
  pointer-events: auto;
}
@keyframes fab-item-appear {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: rotate(var(--angle)) translateY(-110px) rotate(calc(var(--angle) * -1)) scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }
  
  .main-navigation.is-active {
    right: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    text-align: center;
  }
  
  .main-navigation .nav-jp {
    font-size: 18px;
  }
  
  .main-navigation .nav-en {
    font-size: 12px;
  }

  .nav-cta-item {
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .hero-modern {
    padding: 50px 0;
  }
  .hero-modern-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .hero-modern-text {
    text-align: center;
  }
  .hero-modern-sub {
    font-size: 12px;
    padding: 4px 12px;
  }
  .hero-modern h2 {
    font-size: 26px;
    line-height: 1.35;
  }
  .hero-bracket {
    font-size: 18px;
  }
  .hero-modern-desc {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .hero-modern-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  .hero-modern-slider-wrap {
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
  }
  .fab {
    bottom: 20px;
    right: 20px;
  }
  .fab-main {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .fab-item {
    width: 40px;
    height: 40px;
    font-size: 16px;
    top: 5px;
    left: 5px;
  }
  .fab-item::before {
    display: none; /* スマホではツールチップ非表示 */
  }
  @keyframes fab-item-appear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: rotate(var(--angle)) translateY(-90px) rotate(calc(var(--angle) * -1)) scale(1); opacity: 1; }
  }
}

/* ==========================================
   Ajax Contact Form & Spam Protection
   ========================================== */

/* ハニーポット隠しフィールド */
.c-hp-wrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* 送信完了サンクスカード */
.contact-thanks-card {
  animation: fadeInThanks 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

.thanks-icon i {
  animation: scaleCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
  transform: scale(0);
  display: inline-block;
}

@keyframes scaleCheck {
  to {
    transform: scale(1);
  }
}

/* 送信中ローディングのスタイル */
.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loader i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-submit-btn:disabled {
  background-color: #a0c4df !important;
  cursor: not-allowed;
  opacity: 0.8;
}

/* ==========================================
   Footer Navigation (フッターナビゲーション)
========================================== */
.footer-nav {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #2ecc71, #ff8c00, var(--primary-color));
  background-size: 200% 100%;
  animation: footerGradient 4s ease infinite;
}

@keyframes footerGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footer-nav-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.footer-nav-subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 35px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.footer-nav-item:hover::before {
  opacity: 1;
}

.footer-nav-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.footer-nav-item:hover .footer-nav-icon {
  transform: scale(1.1);
}

.footer-nav-icon.icon-terms {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.footer-nav-icon.icon-privacy {
  background: linear-gradient(135deg, #00b894, #55efc4);
}

.footer-nav-icon.icon-contact {
  background: linear-gradient(135deg, #e17055, #fab1a0);
}

.footer-nav-icon.icon-home {
  background: linear-gradient(135deg, var(--primary-color), #74b9ff);
}

.footer-nav-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-nav-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin: 0;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.footer-nav-bottom {
  text-align: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav-bottom-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* Responsive: Footer Nav */
@media (max-width: 768px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer-nav {
    padding: 40px 0 30px;
  }
  .footer-nav-item {
    padding: 22px 14px;
  }
}

@media (max-width: 480px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-nav-item {
    flex-direction: row;
    padding: 16px 20px;
    gap: 15px;
  }
  .footer-nav-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .footer-nav-label {
    text-align: left;
  }
  .footer-nav-desc {
    text-align: left;
  }
}

/* ==========================================
   Access & Location (教室案内・アクセス)
 ========================================== */
.access-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--box-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  align-items: stretch;
  margin-top: 30px;
}

.access-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.access-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.access-info p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.access-info p i {
  color: var(--primary-color);
  margin-top: 4px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.access-stations {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-stations li {
  font-size: 14px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 113, 197, 0.03);
  padding: 8px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.access-stations li i {
  color: var(--primary-color);
}

.access-note {
  font-size: 12px !important;
  color: #777 !important;
  margin-bottom: 0 !important;
}

.access-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  min-height: 380px;
  position: relative;
}

.access-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive: Access */
@media (max-width: 900px) {
  .access-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }
  
  .access-map {
    min-height: 300px;
  }
}

/* ==========================================
   Single Post Detail (個別投稿ページ・メディアサイトレイアウト)
 ========================================== */

.media-single-page {
  background-color: #f7f9fb;
  padding-bottom: 80px;
}

.single-post-article {
  margin-bottom: 0;
}

/* Article Header Area */
.post-header-wrap {
  background: linear-gradient(135deg, #ffffff 0%, #f0f6fa 100%);
  padding: 70px 0 55px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 113, 197, 0.06);
  margin-bottom: 0;
}

.post-meta-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.post-cat-badge {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.post-date-publish {
  font-size: 13px;
  color: #888;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-single-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 900px;
  letter-spacing: -0.5px;
}

/* Media Layout Structure (2 Column) */
.media-layout-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 45px;
  margin-top: 50px;
  align-items: start;
}

/* Main Content Area */
.media-main-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  padding: 45px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Featured Image */
.post-thumbnail-wrap {
  margin: 0 0 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.post-single-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

/* Social Share Buttons */
.media-share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.media-share-buttons .share-label {
  font-size: 11px;
  font-weight: 800;
  color: #aaa;
  letter-spacing: 1.5px;
  margin-right: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
}

.share-btn.twitter { background-color: #111; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.line { background-color: #06c755; }

.media-share-buttons.bottom {
  margin-top: 50px;
  margin-bottom: 0;
  padding-top: 35px;
  padding-bottom: 0;
  border-bottom: none;
  border-top: 1px solid #f0f0f0;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.media-share-buttons.bottom .share-label {
  font-size: 14px;
  color: var(--text-color);
  font-weight: 800;
}

.share-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

/* Post Content Styling (Rich Typography) */
.post-content-entry {
  font-size: 17px;
  line-height: 1.95;
  color: #333;
  letter-spacing: 0.3px;
}

.post-content-entry p {
  margin: 0 0 28px;
}

/* Heading styles in content */
.post-content-entry h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-color);
  border-left: 6px solid var(--primary-color);
  background: linear-gradient(to right, rgba(0, 113, 197, 0.05) 0%, transparent 100%);
  padding: 15px 24px;
  margin: 55px 0 25px;
  border-radius: 0 12px 12px 0;
  line-height: 1.4;
}

.post-content-entry h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-color);
  border-bottom: 2px dashed rgba(0, 113, 197, 0.18);
  padding-bottom: 10px;
  margin: 45px 0 22px;
  line-height: 1.4;
  position: relative;
}

.post-content-entry h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

.post-content-entry h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color);
  border-left: 4px solid #ff8c00;
  padding-left: 14px;
  margin: 35px 0 18px;
  line-height: 1.4;
}

.post-content-entry strong {
  font-weight: 700;
  color: #000;
  background: linear-gradient(transparent 60%, rgba(255, 140, 0, 0.18) 60%);
}

.post-content-entry a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 700;
}

.post-content-entry a:hover {
  color: #ff8c00;
}

/* Lists */
.post-content-entry ul,
.post-content-entry ol {
  margin: 0 0 30px;
  padding-left: 20px;
}

.post-content-entry li {
  margin-bottom: 10px;
}

.post-content-entry ul li {
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.post-content-entry ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Blockquotes */
.post-content-entry blockquote {
  background-color: rgba(0, 113, 197, 0.02);
  border-left: 4px solid var(--primary-color);
  margin: 35px 0;
  padding: 24px 30px;
  border-radius: 0 16px 16px 0;
  color: #4f5b66;
  font-style: italic;
}

.post-content-entry blockquote p {
  margin-bottom: 0;
}

/* Tables */
.post-content-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.post-content-entry th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
}

.post-content-entry td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-color);
}

.post-content-entry tr:last-child td {
  border-bottom: none;
}

.post-content-entry tr:nth-child(even) td {
  background-color: rgba(0, 113, 197, 0.02);
}

/* ==========================================
   Rich Content Decoration (AI/Media Boxes)
 ========================================== */

/* Drop Cap (リード文用など、最初の1文字を大きく) */
.lead-text::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 1;
  padding-right: 12px;
  font-weight: 800;
  color: var(--primary-color);
}

/* 重要ポイント枠 */
.media-box-point {
  background-color: rgba(0, 113, 197, 0.02);
  border: 2px solid rgba(0, 113, 197, 0.15);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 35px 0;
  position: relative;
}

.media-box-point::before {
  content: 'POINT';
  position: absolute;
  top: -12px;
  left: 24px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* 注意・警告枠 */
.media-box-warn {
  background-color: rgba(255, 140, 0, 0.02);
  border: 2px solid rgba(255, 140, 0, 0.15);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 35px 0;
  position: relative;
}

.media-box-warn::before {
  content: '⚠️ WARNING';
  position: absolute;
  top: -12px;
  left: 24px;
  background-color: #ff8c00;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* 会話風（吹き出し）ブロック */
.chat-bubble-wrap {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  align-items: flex-start;
}

.chat-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex-shrink: 0;
  border: 2px solid #fff;
}

.chat-bubble-wrap.student .chat-avatar {
  background-color: rgba(255, 140, 0, 0.08);
  color: #ff8c00;
}

.chat-text {
  background-color: #fff;
  border: 1.5px solid #eee;
  border-radius: 14px;
  padding: 16px 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  max-width: 80%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.chat-text::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 22px;
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-left: 1.5px solid #eee;
  border-bottom: 1.5px solid #eee;
  transform: rotate(45deg);
}

/* 番号付きステップリスト */
.step-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 35px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 18px;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  padding: 20px;
  border-radius: 12px;
  align-items: flex-start;
}

.step-number {
  background-color: var(--primary-color);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content {
  font-size: 15px;
  line-height: 1.7;
}

.step-content p {
  margin: 0 !important;
}

/* ==========================================
   Author Profile Card (ライター情報)
 ========================================== */
.author-profile-card {
  display: flex;
  gap: 24px;
  background-color: #f7fafd;
  border: 1px solid rgba(0, 113, 197, 0.08);
  padding: 30px;
  border-radius: 16px;
  margin-top: 60px;
  align-items: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid rgba(0, 113, 197, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-color);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.author-info {
  flex-grow: 1;
}

.author-label {
  font-size: 9px;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  background-color: rgba(0, 113, 197, 0.08);
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
}

.author-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 10px;
}

.author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 !important;
}

/* ==========================================
   Post Navigation Links
 ========================================== */
.post-navigation-wrap {
  margin: 50px 0 20px;
  padding-top: 35px;
  border-top: 1px solid #f0f0f0;
}

.post-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  height: 100%;
  box-sizing: border-box;
}

.post-nav-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 197, 0.15);
  box-shadow: 0 8px 24px rgba(0, 113, 197, 0.05);
}

.post-nav-card .nav-label {
  font-size: 11px;
  font-weight: 800;
  color: #b0b0b0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.post-nav-card:hover .nav-label {
  color: var(--primary-color);
}

.post-nav-card .nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.5;
}

/* ==========================================
   Media Sidebar Area (サイドバー＆ウィジェット)
 ========================================== */
.media-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 120px; /* ヘッダーの高さ追従 */
}

.sidebar-widget {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 113, 197, 0.1);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 45px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Widget: About */
.widget-about-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin-top: 0;
  margin-bottom: 20px;
}

.widget-btn {
  display: block;
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--primary-color) !important;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.widget-btn:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

/* Widget: LINE */
.widget-line-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin-top: 0;
  margin-bottom: 15px;
}

.widget-line-qr {
  max-width: 140px;
  margin: 0 auto 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.widget-line-qr img {
  width: 100%;
  height: auto;
  display: block;
}

.widget-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #06c755;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.widget-line-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

/* Widget: Exam Links */
.widget-juken-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-juken-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-radius: 10px;
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.widget-juken-card.junior {
  background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
}

.widget-juken-card.high {
  background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
}

.widget-juken-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  opacity: 0.95;
}

/* Widget: Recent Posts list */
.widget-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.widget-post-item {
  display: flex;
  gap: 12px;
  text-decoration: none !important;
  align-items: center;
}

.widget-post-thumb {
  width: 65px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f0f0f0;
}

.widget-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.widget-post-thumb.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 16px;
}

.widget-post-info {
  flex-grow: 1;
}

.widget-post-date {
  display: block;
  font-size: 11px;
  color: #aaa;
  font-weight: 700;
  margin-bottom: 3px;
}

.widget-post-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.4;
  transition: color 0.3s;
}

.widget-post-item:hover .widget-post-title {
  color: var(--primary-color);
}

/* ==========================================
   Responsive: Media Layout
 ========================================== */
@media (max-width: 991px) {
  .media-layout-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .media-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .post-header-wrap {
    padding: 50px 0 40px;
  }
  
  .post-single-title {
    font-size: 28px;
  }
  
  .media-main-content {
    padding: 25px 20px;
  }
  
  .post-content-entry {
    font-size: 16px;
    line-height: 1.85;
  }
  
  .post-content-entry h2 {
    font-size: 22px;
    padding: 12px 18px;
    margin: 40px 0 20px;
  }
  
  .post-content-entry h3 {
    font-size: 18px;
    margin: 35px 0 18px;
  }
  
  .author-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  
  .post-nav-links {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}



