/*
Theme Name: Manaviba
Theme URI: https://manaviba.com/
Author: 個別指導まなびば
Author URI: https://manaviba.com/
Description: 個別指導まなびば（大阪市中央区・谷町六丁目）公式サイト用オリジナルテーマ。1対2の密着個別指導、PC自立学習、自習室完備の塾のホームページ。お知らせ（投稿タイプ news）のトップページ表示・一覧・詳細に対応。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manaviba
*/

/* ==========================================================================
   個別指導まなびば - Premium Responsive Stylesheet
   ========================================================================== */

:root {
  /* Color Tokens */
  --color-primary: #0f2b5c;         /* Deep Trust Navy */
  --color-primary-light: #1e40af;   /* Royal Blue */
  --color-primary-dark: #0a1931;    /* Midnight Navy */
  
  --color-accent: #f97316;          /* Energy Orange */
  --color-accent-hover: #ea580c;    /* Deep Orange */
  --color-accent-light: #fff7ed;    /* Soft Orange Tint */
  
  --color-line: #06c755;            /* Official LINE Green */
  --color-line-hover: #05b04b;
  
  --color-gold: #f59e0b;            /* Star Gold */
  
  --color-bg: #f8fafc;              /* Clean Slate Tint */
  --color-surface: #ffffff;         /* Pure White */
  --color-surface-subtle: #f1f5f9;  /* Soft Gray Surface */
  
  --color-text-main: #1e293b;       /* Dark Slate Text */
  --color-text-muted: #64748b;      /* Muted Text */
  --color-text-light: #94a3b8;      /* Light Gray Text */
  
  --color-border: #e2e8f0;          /* Subtle Border */
  --color-border-focus: #3b82f6;
  
  /* Typography */
  --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Plus Jakarta Sans', var(--font-base);
  
  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 43, 92, 0.08), 0 4px 6px -4px rgba(15, 43, 92, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 43, 92, 0.12), 0 8px 10px -6px rgba(15, 43, 92, 0.06);
  --shadow-accent: 0 8px 20px -2px rgba(249, 115, 22, 0.35);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 70px; /* Space for mobile sticky footer */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast), opacity var(--trans-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); font-weight: 700; }
.text-white { color: #ffffff !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.85) !important; }
.text-muted { color: var(--color-text-muted); font-size: 0.85em; }

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-primary-light);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-tag-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.35;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.3rem;
  }
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--trans-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -2px rgba(249, 115, 22, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-subtle);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary-light);
  border: 1.5px solid var(--color-primary-light);
}

.btn-outline-primary:hover {
  background: var(--color-primary-light);
  color: #ffffff;
}

.btn-insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
}

.btn-insta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(220, 39, 67, 0.45);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
  padding: 14px;
}

.btn-hero {
  flex-direction: column;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  flex: 1;
}

.btn-hero .btn-main-text {
  font-size: 1.15rem;
  font-weight: 800;
}

.btn-hero .btn-sub-text {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background: var(--color-primary-dark);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.top-bar-badge {
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.top-bar-link {
  color: #fed7aa;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 78px;
    gap: 20px;
  }
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.logo-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

@media (min-width: 480px) {
  .logo-subtitle {
    font-size: 0.7rem;
  }
  .logo-title {
    font-size: 1.35rem;
  }
}

@media (min-width: 1200px) {
  .logo-subtitle {
    font-size: 0.72rem;
  }
  .logo-title {
    font-size: 1.45rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .nav-desktop {
    gap: 18px;
  }
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .nav-link {
    font-size: 0.92rem;
    padding: 6px 4px;
  }
}

.nav-link:hover {
  color: var(--color-primary-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--trans-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .header-actions {
    gap: 12px;
  }
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary-dark);
}

.tel-icon {
  font-size: 1.25rem;
}

.tel-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.tel-num {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
}

@media (min-width: 1200px) {
  .tel-num {
    font-size: 1.22rem;
  }
}

.tel-time {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

/* On medium desktop screens (1024px-1160px), optimize header action items */
@media (min-width: 1024px) and (max-width: 1160px) {
  .header-tel .tel-time {
    display: none;
  }
  .btn-insta.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .btn-primary.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}

/* Hamburger for Mobile */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-btn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all var(--trans-normal);
}

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

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  background: #ffffff;
  transform: translateX(100%);
  transition: transform var(--trans-normal);
  overflow-y: auto;
  z-index: 99;
  padding: 24px 20px 80px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding: 8px 0;
}

.drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-tel-full {
  background: var(--color-surface-subtle);
  color: var(--color-primary-dark);
  padding: 14px;
  font-weight: 800;
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  padding: 40px 0 60px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 20px 0 40px;
  }
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.badge-accent {
  background: var(--color-accent);
  color: #ffffff;
}

.badge-sub {
  background: rgba(15, 43, 92, 0.08);
  color: var(--color-primary);
}

.hero-main-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-main-title {
    font-size: 2.8rem;
  }
}

.highlight-text {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(249, 115, 22, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero-sub-title {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

@media (min-width: 768px) {
  .trust-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
  }
}

@media (min-width: 1200px) {
  .trust-points {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 10px;
  }
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

@media (min-width: 480px) {
  .trust-label {
    font-size: 0.84rem;
  }
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-point {
  bottom: 20px;
  left: 20px;
}

.card-icon {
  font-size: 1.8rem;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-strong {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-accent);
}

.card-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.card-station {
  top: 20px;
  right: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--color-primary-dark);
  color: #ffffff;
}

.card-station .card-badge {
  font-size: 0.7rem;
  color: #fed7aa;
  font-weight: 700;
}

.card-station .card-title {
  font-size: 1.1rem;
  font-weight: 800;
}

/* ==========================================================================
   Problems / Empathy Section
   ========================================================================== */
.section-problems {
  padding: 70px 0;
  background: var(--color-surface);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.problem-card {
  background: #fff8f8;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  transition: transform var(--trans-normal);
}

.problem-card:hover {
  transform: translateY(-4px);
}

.problem-check {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.problem-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 10px;
  line-height: 1.4;
}

.problem-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.solution-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .solution-banner {
    flex-direction: row;
    text-align: left;
    padding: 40px 48px;
  }
}

.solution-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.solution-title strong {
  color: #fed7aa;
}

.solution-desc {
  font-size: 1rem;
  opacity: 0.9;
}

/* ==========================================================================
   Features (4 Reasons) Section
   ========================================================================== */
.section-features {
  padding: 80px 0;
  background: var(--color-bg);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1.1fr;
    padding: 40px;
    gap: 48px;
  }
  
  .feature-row.reverse {
    grid-template-columns: 1.1fr 1fr;
  }
  
  .feature-row.reverse .feature-image-col {
    order: 2;
  }
  
  .feature-row.reverse .feature-text-col {
    order: 1;
  }
}

.feature-image-col {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
  .feature-img {
    height: 320px;
  }
}

/* 地図画像（POINT 03）：全体表示用 */
.feature-img.map-img {
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f0ece5;
}

@media (min-width: 900px) {
  .feature-img.map-img {
    object-fit: contain;
  }
}

.feature-num-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}

.station-visual-box {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.station-badge-large {
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.station-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.station-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.station-sub {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.station-routes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.feature-badge-mini {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.feature-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .feature-heading {
    font-size: 1.7rem;
  }
}

.feature-detail {
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-bullet-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.feature-bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 900;
}

/* ==========================================================================
   Results & Proof Section
   ========================================================================== */
.section-results {
  padding: 80px 0;
  background: var(--color-surface);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
}

.result-card.highlight-card {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  background: #fffcf8;
}

.result-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-light);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.result-student {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.result-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.score-before {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.score-arrow {
  color: var(--color-accent);
  font-weight: 900;
}

.score-after {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.result-diff {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.result-comment {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: left;
  background: var(--color-surface-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

/* Voice Box */
.voice-container {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
}

.voice-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 24px;
}

.voice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .voice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.voice-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.voice-user {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.voice-stars {
  color: var(--color-gold);
  letter-spacing: 2px;
}

.voice-text {
  font-size: 0.92rem;
  color: var(--color-text-main);
  line-height: 1.7;
}

/* ==========================================================================
   高得点チラシより：生徒たちの実績ご紹介（追加）
   ========================================================================== */
.achievements-header {
  margin: 56px 0 28px;
}

.achievements-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .achievements-title {
    font-size: 1.9rem;
  }
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.achievement-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
  display: flex;
  flex-direction: column;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.achievement-card .result-comment {
  margin-top: auto;
}

.achievement-school {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.achievement-test {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.achievement-subject {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 10px;
}

.score-up {
  color: var(--color-accent) !important;
}

/* Next Star CTA */
.next-star-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}

.next-star-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.next-star-sub {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 22px;
}

/* 保護者の方から頂いたお声紹介（画像） */
.voice-sub-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-align: center;
  margin: 36px 0 20px;
}

.voice-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.voice-card-image {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.voice-card-image .voice-header {
  margin-bottom: 12px;
}

.voice-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.voice-image.rotated-180 {
  transform: rotate(180deg);
}

/* 教室長メッセージ */
.voice-note {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.voice-note p {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.9;
  margin-bottom: 12px;
}

.voice-note p:last-of-type {
  margin-bottom: 0;
}

.voice-note-sign {
  text-align: right;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-top: 18px !important;
}

/* ==========================================================================
   Courses & Pricing Section
   ========================================================================== */
.section-courses {
  padding: 80px 0;
  background: var(--color-bg);
}

.course-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--color-border);
}

.tab-btn {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 12px 20px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-fast);
  position: relative;
}

.tab-btn:hover {
  color: var(--color-primary-light);
}

.tab-btn.active {
  color: var(--color-primary-dark);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.course-detail-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .course-detail-card {
    padding: 40px;
  }
}

.course-header-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  .course-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.course-popular-tag {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.course-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.course-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.course-feature-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.course-feature-points span {
  background: rgba(15, 43, 92, 0.06);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.course-desc-body {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Price Table */
.price-table-wrapper {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.price-table th, .price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.price-table th {
  background: var(--color-surface-subtle);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.price-amount {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.price-amount.highlight-price {
  color: var(--color-accent);
}

.price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  line-height: 1.7;
}

.course-plan-subtitle {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
}

.course-plan-subtitle:first-of-type {
  margin-top: 8px;
}

/* Pricing Notes */
.pricing-notes-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
}

.notes-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  text-align: center;
}

.notes-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .notes-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.note-item {
  background: var(--color-surface-subtle);
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.note-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.note-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.note-sub-highlight {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
}

.note-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: normal;
}

.notes-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Study Room & Environment Section
   ========================================================================== */
.section-study-room {
  padding: 80px 0;
  background: var(--color-surface);
}

.study-room-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .study-room-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.study-room-img-col {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.study-room-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.study-badge-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 43, 92, 0.9);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.study-badge-overlay span {
  color: #fed7aa;
}

.study-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.env-points-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.env-point-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.env-icon {
  font-size: 2rem;
  line-height: 1;
}

.env-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.env-info p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Greeting / Director Section
   ========================================================================== */
.section-greeting {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
}

.greeting-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .greeting-card {
    grid-template-columns: 320px 1fr;
    padding: 48px;
    gap: 48px;
  }
}

.greeting-image-col {
  text-align: center;
}

.director-img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.director-role {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 700;
}

.director-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.greeting-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.4;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .greeting-title {
    font-size: 1.85rem;
  }
}

.greeting-body p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

/* ==========================================================================
   Flow Section
   ========================================================================== */
.section-flow {
  padding: 80px 0;
  background: var(--color-surface-subtle);
}

.flow-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .flow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .flow-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  text-align: center;
}

.flow-step-card.highlight-step {
  border: 2px solid var(--color-accent);
  background: #fffcf7;
}

.step-num {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 12px;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.flow-cta-banner {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.cta-banner-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.section-faq {
  padding: 80px 0;
  background: var(--color-surface);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans-fast);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary-light);
  color: #ffffff;
  font-family: var(--font-en);
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-q-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  flex: 1;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform var(--trans-normal);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px 66px;
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.8;
  border-top: 1px dashed var(--color-border);
  padding-top: 16px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.section-access {
  padding: 80px 0;
  background: var(--color-bg);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .access-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }
}

.access-info-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.access-school-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 12px;
}

.access-dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px 12px;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.access-dl dt {
  font-weight: 700;
  color: var(--color-primary-light);
}

.access-dl dd {
  color: var(--color-text-main);
  line-height: 1.6;
}

.tel-link {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-accent);
}

.tel-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.access-map-wrapper {
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 380px;
}

/* ==========================================================================
   Contact & Booking Form Section
   ========================================================================== */
.section-contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  position: relative;
}

.contact-box {
  max-width: 900px;
  margin: 0 auto;
}

.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .contact-channels {
    grid-template-columns: repeat(2, 1fr);
  }
}

.channel-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.channel-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.channel-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.channel-insta .channel-tag {
  background: rgba(220, 39, 67, 0.12);
  color: #dc2743;
}

.channel-tel .channel-tag {
  background: rgba(15, 43, 92, 0.1);
  color: var(--color-primary);
}

.channel-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.channel-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.btn-channel {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
}

.form-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .form-wrapper {
    padding: 48px 40px;
  }
}

.form-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.badge-req {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text-main);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form-submit-wrapper {
  text-align: center;
}

.btn-submit {
  width: 100%;
  max-width: 440px;
  padding: 18px 24px;
  font-size: 1.2rem;
  font-weight: 800;
}

.privacy-notice {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.form-success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success-message.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.form-success-message h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.form-success-message p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr;
  }
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.footer-lead {
  color: #fed7aa;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-address {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Mobile Sticky Bottom CTA Bar
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: flex;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 95;
  padding: 6px 8px;
  gap: 6px;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.sticky-icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.sticky-tel {
  background: var(--color-primary);
}

.sticky-insta {
  background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
}

.sticky-trial {
  background: var(--color-accent);
  flex: 1.2;
}

/* ==========================================================================
   お知らせ（WordPress news投稿タイプ）スタイル
   ========================================================================== */

/* トップページ お知らせセクション */
.section-news {
  padding: 72px 0;
  background: var(--color-surface-subtle);
}

.news-list {
  max-width: 860px;
  margin: 36px auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--trans-fast);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--color-accent-light);
}

.news-date {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.news-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-arrow {
  flex-shrink: 0;
  color: var(--color-primary-light);
  font-weight: 800;
}

.news-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 32px 0;
}

.news-more {
  margin-top: 28px;
}

/* 一覧ページ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero-title {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.page-hero-desc {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.page-content {
  padding: 64px 0 80px;
}

.news-archive-list {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.news-archive-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--trans-fast);
}

.news-archive-item:last-child {
  border-bottom: none;
}

.news-archive-item:hover {
  background: var(--color-accent-light);
}

.news-archive-item .news-date {
  margin-top: 3px;
}

.news-archive-body {
  flex: 1;
}

.news-archive-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.news-archive-item:hover .news-archive-title {
  color: var(--color-accent);
}

.news-archive-excerpt {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-pagination {
  max-width: 860px;
  margin: 36px auto 0;
  text-align: center;
}

.news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-main);
  font-weight: 700;
  transition: all var(--trans-fast);
}

.news-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.news-pagination a.page-numbers:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 詳細ページ */
.news-single {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 44px;
}

.news-single-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.news-single-meta {
  margin-bottom: 10px;
}

.news-single-title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.5;
}

.news-single-body {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--color-text-main);
}

.news-single-body h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
}

.news-single-body h3 {
  font-size: 1.1rem;
  margin: 22px 0 10px;
}

.news-single-body p {
  margin-bottom: 16px;
}

.news-single-body ul,
.news-single-body ol {
  list-style: disc;
  margin: 0 0 16px 1.4em;
}

.news-single-body ol {
  list-style: decimal;
}

.news-single-body img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.news-single-body a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.news-single-body blockquote {
  border-left: 4px solid var(--color-border);
  padding-left: 16px;
  color: var(--color-text-muted);
  margin: 16px 0;
}

.news-single-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .section-news {
    padding: 52px 0;
  }

  .news-item,
  .news-archive-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .news-title {
    white-space: normal;
    font-size: 0.9rem;
  }

  .news-archive-excerpt {
    white-space: normal;
  }

  .news-single {
    padding: 24px 20px;
  }

  .news-single-title {
    font-size: 1.25rem;
  }

  .page-hero {
    padding: 56px 0 44px;
  }

  .page-hero-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Contact Form 7（お問い合わせフォーム）スタイル
   ========================================================================== */

/* 送信ボタン（CF7標準出力時のフォールバック） */
.wpcf7-form .wpcf7-submit {
  width: 100%;
  max-width: 440px;
  padding: 18px 24px;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: background-color var(--trans-fast), transform var(--trans-fast);
}

.wpcf7-form .wpcf7-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 入力欄のフォールバック（class指定がない場合） */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text-main);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ラベル */
.wpcf7-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.wpcf7-form label span {
  font-weight: 400;
}

/* エラー時の入力枠 */
.wpcf7-form .wpcf7-not-valid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* エラーメッセージ */
.wpcf7-form .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

/* 送信結果メッセージ */
.wpcf7-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border-width: 2px;
}

.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-response-output.wpcf7-spam-blocked {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

/* チェックボックス（CF7のcheckboxタグ用） */
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wpcf7-form .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

/* スピナー（送信中表示） */
.wpcf7-form .wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

/* 送信ボタンのラッパーを中央寄せ */
.wpcf7-form p:has(.wpcf7-submit),
.wpcf7-form p:last-of-type {
  text-align: center;
  margin-bottom: 0;
}

/* フォーム上部のヘルプテキスト（CF7自動出力の非表示用） */
.wpcf7-form .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

@media (max-width: 640px) {
  .wpcf7-form .wpcf7-checkbox {
    gap: 10px;
  }
}
