/* グローバルスタイル - より自然で洗練されたデザイン */
:root {
    --primary-color: #2D6A4F;
    --primary-dark: #1B4332;
    --primary-light: #52B788;
    --secondary-color: #0077B6;
    --accent-color: #E63946;
    --text-dark: #212529;
    --text-medium: #495057;
    --text-light: #6C757D;
    --border-color: #DEE2E6;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --success-color: #2D6A4F;
    --warning-color: #F77F00;
    --error-color: #D62828;
    --bronze: #A0724C;
    --silver: #9CA3AF;
    --gold: #D4AF37;
    --platinum: #B4B8BC;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--background-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヘッダー・ナビゲーション - より洗練されたデザイン */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1.2rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem; /* header文字を少し小さく */
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap; /* どのデバイスでも1行を優先 */
}

/* MEDIAボタンも同様に1行維持 */
.nav-menu .nav-media-btn {
    white-space: nowrap;
    font-size: 0.9rem;
}

/* 画面が狭い時はgapを詰めて1行維持（PC幅での折り返し防止） */
@media (max-width: 1100px) {
  .nav-menu { gap: 1.6rem; }
}
@media (max-width: 980px) {
  .nav-menu { gap: 1.1rem; }
  .nav-menu a, .nav-menu .nav-media-btn { font-size: 0.88rem; }
}
@media (max-width: 900px) {
  .nav-menu { gap: 0.9rem; }
  .nav-menu a, .nav-menu .nav-media-btn { font-size: 0.86rem; }
}
@media (max-width: 860px) {
  /* ここから先はモバイルメニュー（縦並び）なのでnowrap解除 */
  .nav-menu a, .nav-menu .nav-media-btn { white-space: normal; }
}

.nav-menu a::after,
.nav-menu .nav-media-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .nav-media-btn:hover::after,
.nav-menu .nav-media-btn.active::after,
.nav-menu .nav-media-btn[aria-expanded="true"]::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu .nav-media-btn:hover,
.nav-menu .nav-media-btn:focus-visible,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu .teacher-link {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* ボタンスタイル - より自然な見た目 */
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* v3.1.2 index hotfix: hero buttons contrast */
.hero-buttons .btn.btn-primary:hover,
.hero-buttons .btn.btn-primary:focus-visible,
.cta-buttons .btn.btn-white:hover,
.cta-buttons .btn.btn-white:focus-visible {
  color: #fff;
}

/* v3.1.3: CTA 色をGrow Seed基調へ */
.cta{
  background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 55%, #0077B6 100%);
  color: #fff;
}
.cta p{ color: rgba(255,255,255,0.90); }
.cta .cta-buttons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.hero-buttons .btn.btn-outline,
.hero-buttons .btn.btn-outline:visited {
  color: #fff;
  border-color: rgba(255,255,255,0.9);
}
.hero-buttons .btn.btn-outline:hover,
.hero-buttons .btn.btn-outline:focus-visible {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: #fff;
}

/* v3.1.2: hero media area (image placeholder + softened stats) */
.hero-media{
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

/* v3.1.5: ヒーロー差し込み画像を“背景”として敷く */
.hero{
  position: relative;
}
.hero .hero-media__image{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 360px;
  z-index: 0;
  overflow: hidden;
}
.hero .hero-media__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(1.05) contrast(1.05) blur(0px);
}
.hero .hero-media__image::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,0.75) 0%, rgba(0,119,182,0.55) 100%);
}

.hero-content{ position: relative; z-index: 1; }
.hero-stats--soft{ position: relative; z-index: 1; }

@media (max-width: 860px){
  .hero .hero-media__image{ height: 260px; }
}

@media (max-width: 860px){
  .hero-media{ grid-template-columns: 1fr; }
}
.hero-media__image{
  position: relative;
  border-radius: 0; /* カード感を消す */
  overflow: hidden;
  background: transparent;
  border: none;
  min-height: 240px;
}
.hero-media__image img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  opacity: .92;
  filter: saturate(1.06) contrast(1.06);
}
/* hero画像を“枠の中の画像”ではなく、背景として馴染ませる */
.hero-media__image::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(45,106,79,0.22) 0%, rgba(0,119,182,0.18) 100%);
  pointer-events:none;
}
.hero-media__image.is-placeholder .hero-media__placeholder{ display:none; }
.hero-media__placeholder{

  display:none;
  flex-direction: column;
  justify-content:center;
  align-items:flex-start;
  padding: 1.2rem 1.2rem;
  gap: .35rem;
  color: rgba(255,255,255,0.92);
}
.hero-media__placeholder-title{ font-weight: 700; }
.hero-media__placeholder-sub{ font-size: .92rem; opacity: .9; }

.hero-stats--soft .stat-item{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.hero-stats--soft .stat-number{ opacity: .55; }

/* v3.1.2: feature titles center alignment */
.feature-card .feature-title{ text-align:center; }

/* v3.1.2: '人気No.1' badge centering */
.plan-card{ position: relative; }
.plan-badge{
  position:absolute;
  top: 14px;
  right: 14px;
  left: auto;
  transform:none;
  z-index: 2;
}
@media (max-width: 860px){
  .plan-badge{ top: 10px; right: 10px; }
}

/* v3.1.2: 'リリース予定' 表示 */
.plan-features .feature-soon{
  color: var(--text-medium);
  opacity: .9;
}
.plan-features .feature-soon::marker{ color: transparent; }

/* v3.1.2: steps spacing tighten */
.steps{ gap: 14px; }
.step{ padding: 18px 18px; }
.step-content p{ margin-top: .35rem; }
.step-time{ margin-top: .45rem; }

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
}

/* ヒーローセクション - より落ち着いたグラデーション */
.hero {
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 50%, #0077B6 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.92;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

/* 教師向けヒーロー */
/* v3.1.4: teacher-hero も赤→緑基調へ（ページで使っている場合の統一） */
.teacher-hero {
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 55%, #0077B6 100%);
}

.teacher-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

/* セクション共通 */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    line-height: 1.6;
    font-weight: 400;
}

/* 特徴セクション */
.features {
    background: var(--background-light);
    position: relative;
}

.features-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url('images/pattern-bg.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.feature-icon-fallback {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin: 1.5rem 2rem 1rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-medium);
    margin: 0 2rem 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    margin: 0 2rem 2rem;
}

.feature-list li {
    padding: 0.6rem 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* 料金プランセクション */
.plans {
    background: var(--background-white);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.plan-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.plan-popular {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: var(--shadow-md);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.plan-description {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-price {
    text-align: center;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

.price-per-lesson {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--background-light);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.feature-disabled {
    color: var(--text-light);
    opacity: 0.5;
}

/* 追加オプション */
.plan-options {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--background-light);
    border-radius: 16px;
}

.plan-options h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.option-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.option-card.highlight {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
}

.option-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.option-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.option-price span {
    font-size: 1rem;
    font-weight: 600;
}

.option-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

.plan-notes {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.plan-notes p {
    margin: 0.5rem 0;
}

/* 成功事例セクション */
.cases {
    background: var(--background-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* v3.1.4: 成功事例テキスト中央揃え + 下部実績非表示 */
.case-card h3,
.case-card .case-description{ text-align:center; }
.case-result{ justify-content:center; }
.stats-highlight{ display:none !important; }

.case-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.case-student-photo {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
}

.case-student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-result {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    color: white;
}

.result-before {
    font-size: 1.05rem;
    font-weight: 600;
}

.result-arrow {
    font-size: 1.5rem;
}

.result-after {
    font-size: 1.2rem;
    font-weight: 800;
}

/* v3.1.4: 成功事例の見出し/本文を中央寄せ */
.case-card h3 { text-align: center; }
.case-card .case-description { text-align: center; }
.case-card .case-result { justify-content: center; }

    font-size: 1.15rem;
    margin: 0 1.5rem 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.case-description {
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
}

.case-teacher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 1.5rem 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.teacher-badge {
    color: var(--warning-color);
}

.case-parent {
    text-align: right;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 1.5rem 1.5rem;
}

.stats-highlight {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    color: white;
}

.stat-box {
    text-align: center;
}

.stat-number-large {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

/* 利用の流れセクション */
.how-it-works {
    background: var(--background-white);
}

.steps {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-number {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.step-content p {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.step-time {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--background-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 600;
}

.step-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.trial-offer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 60%, #0B4F6C 100%);
    color: white;
    padding: 4rem;
    border-radius: 16px;
    text-align: center;
}

.trial-offer h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.trial-offer p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.92;
    line-height: 1.6;
}

/* FAQセクション */
.faq {
    background: var(--background-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    flex: 1;
    font-weight: 600;
    line-height: 1.5;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    padding: 0 2rem 2rem;
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* CTAセクション */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.92;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* 教師募集ページ専用スタイル */
.teacher-benefits {
    background: var(--background-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 報酬体系 */
.rewards {
    background: var(--background-light);
}

.rewards-table-wrapper {
    overflow-x: auto;
    margin-bottom: 3rem;
}

.rewards-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.rewards-table th,
.rewards-table td {
    padding: 1.5rem;
    text-align: center;
}

.rewards-table thead {
    background: var(--primary-color);
    color: white;
}

.rewards-table thead th {
    font-weight: 700;
    font-size: 1rem;
}

.rewards-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.rewards-table tbody tr:last-child {
    border-bottom: none;
}

.rewards-table tbody tr:hover {
    background: var(--background-light);
}

.stars {
    color: var(--warning-color);
    font-size: 1.1rem;
}

.highlight-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.monthly-income {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* シミュレーター */
.simulator {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.simulator h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.simulator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.simulator-result {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    color: white;
}

.result-label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.result-amount {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* 報酬注釈 */
.rewards-notes {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.rewards-notes h4 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.rewards-notes ul {
    list-style: none;
    margin: 1rem 0;
}

.rewards-notes li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.note-highlight {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--background-light);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ランク制度 */
.rank-system {
    background: var(--background-white);
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.rank-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 3px solid;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.rank-bronze {
    border-color: var(--bronze);
}

.rank-silver {
    border-color: var(--silver);
}

.rank-gold {
    border-color: var(--gold);
}

.rank-platinum {
    border-color: var(--platinum);
    background: linear-gradient(135deg, #FDFBFB 0%, #F5F5F5 100%);
}

.rank-badge {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.rank-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--error-color);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.rank-requirement {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid var(--border-color);
}

.rank-requirement h4 {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.rank-requirement p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.5;
}

.rank-benefits h4 {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.rank-benefits ul {
    list-style: none;
}

.rank-benefits li {
    padding: 0.7rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ランクアップの道のり */
.rank-path {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--background-light);
    border-radius: 12px;
}

.rank-path h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.path-visualization {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.path-step {
    text-align: center;
    flex: 1;
}

.path-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.path-step p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.path-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

/* 紹介制度 */
.referral {
    background: var(--background-light);
}

.referral-content {
    max-width: 1000px;
    margin: 0 auto;
}

.referral-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.flow-step {
    text-align: center;
    flex: 1;
}

.flow-number {
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.flow-step p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

.referral-benefits {
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.referral-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.referral-benefits ul {
    list-style: none;
}

.referral-benefits li {
    padding: 0.85rem 0;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* 求める教師像 */
.teacher-requirements {
    background: var(--background-white);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.requirement-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.requirement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 0.85rem 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--background-light);
    font-size: 0.95rem;
}

.requirement-card li:last-child {
    border-bottom: none;
}

/* 教師の流れ */
.teacher-flow {
    background: var(--background-light);
}

/* 教師の声 */
.teacher-voices {
    background: var(--background-white);
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.voice-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.voice-avatar {
    font-size: 3.5rem;
}

.voice-info h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.voice-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.voice-comment {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.voice-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* 教師CTA */
.teacher-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #A4133C 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.teacher-cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.teacher-cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    opacity: 0.88;
}

/* フッター */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats,
    .teacher-hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .plans-grid,
    .features-grid,
    .cases-grid,
    .benefits-grid,
    .ranks-grid,
    .requirements-grid,
    .voices-grid {
        grid-template-columns: 1fr;
    }

    .plan-popular {
        transform: scale(1);
    }

    .simulator-inputs {
        grid-template-columns: 1fr;
    }

    .path-visualization,
    .referral-flow {
        flex-direction: column;
    }

    .path-arrow,
    .flow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .stats-highlight {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .result-amount {
        font-size: 2.5rem;
    }
    
    .price-amount {
        font-size: 2.75rem;
    }
}

/* お問い合わせページ専用スタイル */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    min-height: calc(100vh - 200px);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* フォームスタイル */
.contact-form-wrapper {
    background: var(--background-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: var(--error-color);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--background-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.conditional-fields {
    display: none;
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-actions {
    margin-top: 1rem;
}

.form-actions button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 送信完了メッセージ */
.success-message {
    text-align: center;
    padding: 3rem;
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-message h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* お問い合わせ情報カード */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

.info-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.info-links {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.info-links li {
    margin-bottom: 0.5rem;
}

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

.info-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* レスポンシブデザイン - お問い合わせページ */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-info {
        margin-top: 2rem;
    }
}

/* アプリで学習ページ専用スタイル */
.app-hero {
    background: linear-gradient(135deg, #2D6A4F 0%, #0077B6 100%);
}

.app-features {
    padding: 5rem 0;
    background: var(--background-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.app-content {
    padding: 5rem 0;
    background: var(--background-white);
}

.content-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.content-category {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.content-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content-category ul {
    list-style: none;
    padding: 0;
}

.content-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.content-category li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.content-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    border-radius: 8px;
}

.content-note a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.app-usage {
    padding: 5rem 0;
    background: var(--background-light);
}

.usage-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.usage-step {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.usage-step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.usage-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.app-plans {
    padding: 5rem 0;
    background: var(--background-white);
}

.plans-info {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.plans-info > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.plan-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.plan-item {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--background-light);
}

.plan-item.highlight {
    border-color: var(--primary-color);
    background: var(--background-white);
    box-shadow: var(--shadow-md);
}

.plan-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.plan-item p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.plan-item ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.plan-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.plan-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* レスポンシブ対応 - アプリページ */
@media (max-width: 768px) {
    .usage-steps {
        flex-direction: column;
    }

    .usage-arrow {
        transform: rotate(90deg);
    }

    .content-categories {
        grid-template-columns: 1fr;
    }

    .plan-comparison {
        grid-template-columns: 1fr;
    }
}

/* FAQ カテゴリフィルター */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.faq-category-filter {
    padding: 0.8rem 1.5rem;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-medium);
}

.faq-category-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-category-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.faq-item[data-category] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

/* アプリで学習ページ - 追加スタイル */
.section-description {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.content-category.main-subjects {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-left: 4px solid var(--secondary-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-description {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-category ul li strong {
    color: var(--primary-color);
    font-weight: 700;
}

.content-highlight {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    border-left: 4px solid #FFC107;
}

.highlight-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.highlight-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.highlight-text p {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

.feature-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    border-radius: 8px;
    text-align: center;
}

.feature-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
}

/* 進捗管理システムセクション */
.progress-system {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.progress-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.progress-feature {
    background: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.progress-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.progress-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.progress-feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.progress-feature p {
    color: var(--text-medium);
    line-height: 1.7;
}

.usage-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    text-align: center;
}

.usage-note p {
    margin: 0;
    color: var(--text-dark);
}

/* プラン比較の強化 */
.plan-item.premium {
    position: relative;
    transform: scale(1.05);
    border-width: 3px;
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.plan-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .content-highlight {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .highlight-icon {
        font-size: 2.5rem;
    }

    .progress-features {
        grid-template-columns: 1fr;
    }

    .plan-item.premium {
        transform: scale(1);
    }

    .recommended-badge {
        top: -10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* ==============================================
   Legal Pages Styles (Privacy, Terms, Tokutei)
   ============================================== */

.legal-page {
    padding-top: 100px;
    padding-bottom: 5rem;
    background: var(--background-white);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-updated {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-section ol,
.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.legal-section ul ul,
.legal-section ol ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.contact-info {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Tokutei Table */
.tokutei-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

.tokutei-table th,
.tokutei-table td {
    padding: 1.25rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.tokutei-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-dark);
    width: 30%;
    vertical-align: top;
}

.tokutei-table td {
    color: var(--text-dark);
    line-height: 1.7;
}

.tokutei-table ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.tokutei-table li {
    margin-bottom: 0.25rem;
}

.tokutei-table a {
    color: var(--primary-color);
    text-decoration: none;
}

.tokutei-table a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 80px;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .tokutei-table {
        font-size: 0.9rem;
    }

    .tokutei-table th,
    .tokutei-table td {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .tokutei-table th {
        background: var(--primary-color);
        color: white;
        font-weight: 700;
        border-bottom: none;
    }

    .tokutei-table td {
        border-top: none;
        margin-bottom: 1.5rem;
    }
}


/* ==============================================
   Teacher Hero Section - Unified Green Theme
   ============================================== */

.teacher-hero {
    background: linear-gradient(135deg, #52B788 0%, #2D6A4F 100%) !important;
    /* Changed from red to green gradient for brand consistency */
}

.teacher-hero .hero-title {
    color: white;
}

.teacher-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
}

.teacher-hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.teacher-hero-stats .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    flex: 1;
    min-width: 150px;
}

.teacher-hero-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.teacher-hero-stats .stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .teacher-hero-stats {
        gap: 1rem;
    }
    
    .teacher-hero-stats .stat-item {
        min-width: 100%;
    }
}


/* ==============================================
   MOBILE OPTIMIZATION & UX ENHANCEMENTS
   ============================================== */

/* ========== Loading Animation ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Hamburger Menu ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Mobile Navigation ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.3s ease;
        font-size: 1rem;
        color: var(--text-dark);
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: var(--background-light);
        color: var(--primary-color);
        padding-left: 2.5rem;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* ========== Enhanced Header ========== */
.header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========== Smooth Scroll ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Fade In Animation ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Touch Device Optimizations ========== */
.touch-device button,
.touch-device .btn,
.touch-device a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.touch-device .btn-primary,
.touch-device .btn-secondary {
    padding: 0.875rem 2rem;
}

/* ========== Ripple Effect ========== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== Scroll to Top Button ========== */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 15px;
        right: 15px;
    }
}

/* ==============================================
   DESIGN REFINEMENT
   ============================================== */

/* ========== Unified Card Design ========== */
.card,
.feature-card,
.benefit-card,
.plan-card,
.success-story,
.content-category {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover,
.feature-card:hover,
.benefit-card:hover,
.plan-card:hover,
.success-story:hover,
.content-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* ========== Icon Unification ========== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.feature-icon,
.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* ========== Visual Hierarchy ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Image Optimization ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.img-container img {
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Logo Optimization */
.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* ========== Enhanced Buttons ========== */
.btn,
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

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

/* ========== Form Enhancements ========== */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group.focused label {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* ========== Badge Design ========== */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

/* ========== Spacing & Layout Improvements ========== */
.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

/* ========== Grid Improvements ========== */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}

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

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

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========== Contrast Improvements ========== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ========== Accessibility Improvements ========== */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========== Print Styles ========== */
@media print {
    .header,
    .footer,
    .hamburger,
    .scroll-to-top,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}


/* ==============================================
   Logo Optimization
   ============================================== */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Mobile Logo Adjustment */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
}

/* Logo in Header */
.header .logo {
    position: relative;
    z-index: 1002;
}

/* Logo Text Color Variations */
.header .logo h1 {
    color: var(--text-dark);
}

.footer .logo h1 {
    color: white;
}


/* ========================================
   Legal Pages Styles (Privacy, Terms, Tokutei)
   ======================================== */

.legal-page {
    padding-top: 100px;
    padding-bottom: 4rem;
    background: #FAFBFC;
}

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

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.last-updated {
    color: #6B7280;
    font-size: 0.9375rem;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.legal-content .section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #374151;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    line-height: 1.8;
    margin-bottom: 0.75rem;
    color: #374151;
}

.contact-info {
    background: #F3F4F6;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tokutei Table Styles */
.tokutei-table {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.tokutei-row {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
}

.tokutei-row:last-child {
    border-bottom: none;
}

.tokutei-label {
    flex: 0 0 200px;
    padding: 1.5rem;
    background: #F9FAFB;
    font-weight: 600;
    color: var(--primary-color);
    border-right: 1px solid #E5E7EB;
}

.tokutei-value {
    flex: 1;
    padding: 1.5rem;
    background: white;
}

.tokutei-value ul {
    margin-top: 0.75rem;
    margin-left: 1.5rem;
}

.tokutei-value li {
    margin-bottom: 0.5rem;
}

.tokutei-value .note {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 80px;
    }

    .legal-header h1 {
        font-size: 1.875rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.125rem;
    }

    .tokutei-row {
        flex-direction: column;
    }

    .tokutei-label {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }
}

/* =========================
   Unified Section Heading / Cards / Spacing / Mobile Nav
   ========================= */

.section,
.features,
.plans,
.cases,
.faq,
.about,
.contact-page,
.legal-page {
    padding: 5rem 0;
}

.section-alt {
    background: var(--background-light);
}

.section-heading {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.95;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* Headings inside sections */
.features h3,
.plans h3,
.cases h3,
.faq h3,
.section h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0.2rem 0 0.75rem;
}

/* Unified card component (re-usable) */
.ui-cards {
    display: grid;
    gap: 1.25rem;
}

.ui-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ui-card {
    background: var(--background-white);
    border: 1px solid rgba(222, 226, 230, 0.9);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ui-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 106, 79, 0.25);
}

.ui-card-title {
    font-weight: 700;
    color: var(--text-dark);
}

.ui-card-text {
    color: var(--text-medium);
}

/* Bring existing cards closer to unified look */
.feature-card,
.plan-card,
.case-card,
.faq-item,
.contact-card {
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover,
.plan-card:hover,
.case-card:hover {
    box-shadow: var(--shadow-md);
}

/* Page hero for About */
.page-hero {
    padding: 6.5rem 0 3.5rem;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.12) 0%, rgba(0, 119, 182, 0.10) 100%);
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-lead {
    max-width: 860px;
    color: var(--text-medium);
}

/* Steps */
.steps { max-width: 900px; margin: 0 auto; display: grid; gap: 1rem; }
.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(222, 226, 230, 0.9);
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
}
.step-num {
    width: 44px; height: 44px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
}
.step-title { font-size: 1.15rem; margin-bottom: 0.25rem; }
.step-text { color: var(--text-medium); }

/* CTA box */
.cta-box {
    margin: 2.5rem auto 0;
    max-width: 900px;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.10) 0%, rgba(0, 119, 182, 0.08) 100%);
    border: 1px solid rgba(45, 106, 79, 0.14);
    text-align: center;
}
.cta-title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.cta-text { color: var(--text-medium); margin-bottom: 1.25rem; }

/* Mobile nav */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(222, 226, 230, 0.9);
    background: #fff;
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-medium);
    border-radius: 99px;
}

@media (max-width: 980px) {
    .nav-menu { gap: 1.4rem; }
}

@media (max-width: 860px) {
    .navbar { padding: 0.9rem 0; }
    .nav-buttons { display: none; }
    .nav-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(222, 226, 230, 0.9);
        padding: 1rem 1.25rem;
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.is-open { display: flex; }

    .nav-menu a { font-size: 1rem; padding: 0.4rem 0; }

    .ui-cards-3 { grid-template-columns: 1fr; }
    .ui-cards-2 { grid-template-columns: 1fr; }

    .hero { padding: 6rem 0 4.5rem; }
    .hero-title { font-size: 2.4rem; }
    .container { padding: 0 18px; }
    .section-title { font-size: 1.7rem; }
}

@media (max-width: 520px) {
    .section, .features, .plans, .cases, .faq { padding: 4.25rem 0; }
    .section-heading { margin-bottom: 2rem; }
}

/* =========================
   MEDIA Overlay (Grow Seed style)
   - Inspired by spiqa's structure, but keeps Grow Seed design language
   ========================= */

.no-scroll { overflow: hidden; }

.nav-menu .nav-media-btn {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-medium);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-menu .nav-media-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu .nav-media-btn:hover::after {
  width: 100%;
}

.nav-menu .nav-media-btn:hover {
  color: var(--primary-color);
}

.media-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.media-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.media-overlay__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 24px;
  height: 100%;
  overflow: auto;
}

.media-overlay__close {
  position: sticky;
  top: 10px;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(222,226,230,0.9);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--text-medium);
}

.media-overlay__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  padding-top: 1.5rem;
}

.media-overlay__label {
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.media-overlay__title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.media-overlay__lead {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.media-link {
  display: block;
  padding: 1.25rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(222,226,230,0.9);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.media-link::before {
  content: '›';
  position: absolute;
  left: -14px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(45,106,79,0.10);
  color: var(--primary-color);
  font-size: 18px;
}

.media-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45,106,79,0.25);
}

.media-link__kicker {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.media-link__title {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.media-link__desc {
  display: block;
  color: var(--text-medium);
  line-height: 1.8;
}

@media (max-width: 860px) {
  .media-overlay__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .media-overlay__title { font-size: 2rem; }
  .media-link::before { left: 10px; top: 16px; }
  .media-link { padding-left: 3.1rem; }
}

/* Page loader visibility */
.page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 3000;
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }


/* ============ v3.1 HOTFIX: MEDIA button + overlay + mobile menu ============ */
.nav-menu .nav-media-btn{background:transparent;border:0;padding:0;margin:0;font:inherit;cursor:pointer;color:var(--text-medium);font-weight:500;font-size:0.95rem;position:relative}
.nav-menu .nav-media-btn:hover,.nav-menu .nav-media-btn:focus-visible{color:var(--primary-color);outline:none}
.nav-menu .nav-media-btn::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--primary-color);transition:width .3s ease}
.nav-menu .nav-media-btn:hover::after{width:100%}

body.media-open{overflow:hidden}
.media-overlay{position:fixed;inset:0;z-index:2000;opacity:0;visibility:hidden;pointer-events:none}
.media-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto}
.media-overlay__backdrop{position:absolute;inset:0;background:rgba(17,24,39,.55)}
.media-overlay__panel{position:relative;max-width:980px;width:calc(100% - 40px);margin:80px auto 40px;background:rgba(255,255,255,.98);backdrop-filter:blur(10px);border-radius:16px;box-shadow:var(--shadow-lg);padding:28px}
.media-overlay__close{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:10px;border:1px solid rgba(0,0,0,.08);background:#fff;color:var(--text-dark);cursor:pointer}
.media-overlay__grid{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}
.media-overlay__label{font-weight:700;color:var(--primary-color);letter-spacing:.04em}
.media-overlay__title{margin-top:8px;font-size:2rem;line-height:1.25}
.media-overlay__lead{margin-top:10px;color:var(--text-medium)}
.media-overlay__intro p{margin:0 0 14px;color:var(--text-medium)}
.media-item{display:flex;gap:14px;align-items:flex-start;text-decoration:none;padding:14px 14px;border-radius:14px;border:1px solid rgba(0,0,0,.06);background:#fff;box-shadow:var(--shadow-sm);transition:transform .2s ease, box-shadow .2s ease}
.media-item:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}
.media-item__icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(45,106,79,.10)}
.media-item__kicker{font-size:.82rem;color:var(--text-light)}
.media-item__title{margin-top:2px;font-weight:700;color:var(--text-dark)}
.media-item__desc{margin-top:4px;color:var(--text-medium);font-size:.95rem}
@media (max-width:860px){.media-overlay__panel{margin:70px auto 24px;padding:20px}.media-overlay__grid{grid-template-columns:1fr}.media-overlay__title{font-size:1.6rem}}

/* v3.1.5: ヒーロー実績ラベルの文字化け/縦書き防止 */
.hero-stats--soft .stat-label{
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
}


/* === v3.1.6 index hero background (bg image #2) === */
.hero.hero--bg2{
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(9, 43, 33, 0.78) 0%, rgba(9, 43, 33, 0.55) 45%, rgba(0, 52, 86, 0.55) 100%),
    url('images/hero-bg-2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* keep the subtle pattern layer off for this hero (avoid double textures) */
.hero.hero--bg2::before{ display:none; }

/* strengthen text readability on both PC/mobile */
.hero.hero--bg2 .hero-content{
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero.hero--bg2 .hero-title,
.hero.hero--bg2 .hero-subtitle{
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* if any hero-media remnants exist, ensure they don't affect layout */
.hero.hero--bg2 .hero-media{ display:none !important; }

@media (max-width: 860px){
  .hero.hero--bg2{
    background-position: 60% center;
  }
  .hero.hero--bg2 .hero-content{ max-width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  .hero.hero--bg2{ background-attachment: initial; }
}


/* === v3.1.7 hotfix: plan badge center + how-it-works spacing === */
.plan-badge{
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  text-align: center;
  white-space: nowrap;
}

.how-it-works .steps{ gap: 10px; }
.how-it-works .step{ gap: 1.25rem; margin-bottom: 1.6rem; padding: 1.2rem 1.6rem; }
.how-it-works .step-content p{ margin-bottom: .45rem; line-height: 1.55; }
.how-it-works .step-time{ margin-top: .2rem; }
.how-it-works .step-arrow{ margin: .15rem 0 .8rem; }
@media (max-width: 860px){
  .how-it-works .step{ gap: 1rem; padding: 1.05rem 1.2rem; }
  .how-it-works .step-number{ width: 56px; height: 56px; font-size: 1.5rem; }
}


/* === v3.1.8 hotfix: FAQ visibility + footer logo === */
.faq-answer{ display:none; }
.faq-item.active .faq-answer,
.faq-item.is-open .faq-answer{ display:block; }
.faq-item.active .faq-toggle,
.faq-item.is-open .faq-toggle{ transform: rotate(0deg); }


.footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.footer-logo{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 8px rgba(0,0,0,.15))}
.footer-brand h3{margin:0}


/* === v3.2.0 copy tweak: benefit-first hero headline + small mission line === */
.hero-mission{
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  max-width: 58ch;
  text-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
@media (max-width: 860px){
  .hero-mission{ font-size: 0.95rem; }
}


/* === v3.2.1 QA: hero headline wrapping + button layout === */
.hero-title{ text-wrap: balance; }
.hero-title br{ display:inline; }
@media (max-width: 420px){
  .hero-title br{ display:none; }
}

.hero-buttons{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-buttons .btn{ white-space:nowrap; }
@media (max-width: 520px){
  .hero-buttons{ flex-direction:column; align-items:stretch; }
  .hero-buttons .btn{ width:100%; }
}


/* === v3.2.1 FAQ slide (確実に下へスライド展開) === */
.faq-answer{
  display:block;              /* display:none だと計測できないため block固定 */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, opacity 180ms ease;
}
.faq-item.is-open .faq-answer,
.faq-item.active .faq-answer{
  opacity: 1;
  max-height: 520px;          /* answerが増えても破綻しにくい上限 */
}
.faq-toggle{
  transition: transform 160ms ease;
}
.faq-item.is-open .faq-toggle,
.faq-item.active .faq-toggle{
  transform: rotate(45deg);   /* + を × に見せる */
}
@media (max-width: 860px){
  .faq-item.is-open .faq-answer,
  .faq-item.active .faq-answer{ max-height: 760px; }
}


/* FAQ UI ENHANCEMENT v3.2.2 */
.faq-list{display:flex;flex-direction:column;gap:12px;}
.faq-item{border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;overflow:hidden;transition:background .25s ease,border-color .25s ease,box-shadow .25s ease,transform .25s ease;}
.faq-question{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 18px;background:transparent;border:0;text-align:left;cursor:pointer;}
.faq-question h3{margin:0;font-size:1.05rem;line-height:1.35;}
.faq-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border-radius:999px;background:rgba(35,165,84,.10);color:#1d7a43;font-weight:700;transition:transform .25s ease,background .25s ease,color .25s ease;}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease;will-change:max-height;}
.faq-answer p{margin:0;padding:0 18px 18px;line-height:1.75;color:rgba(0,0,0,.78);}

.faq-item.is-open,.faq-item.active{background:rgba(35,165,84,.06);border-color:rgba(35,165,84,.25);box-shadow:0 10px 26px rgba(0,0,0,.08);transform:translateY(-1px);}
.faq-item.is-open .faq-question,.faq-item.active .faq-question{padding-bottom:10px;}
.faq-item.is-open .faq-toggle,.faq-item.active .faq-toggle{background:#1d7a43;color:#fff;transform:rotate(180deg);}

@media (max-width: 860px){
  .faq-question{padding:16px 14px;}
  .faq-question h3{font-size:1.0rem;}
  .faq-toggle{min-width:34px;height:34px;}
  .faq-answer p{padding:0 14px 16px;}
}


/* v3.2.2 FAQ accordion UI (single-open + improved visuals) */
.faq-item{border:1px solid rgba(0,0,0,.08); border-radius:14px; background:#fff; transition:background .25s ease, box-shadow .25s ease, border-color .25s ease; overflow:hidden;}
.faq-list{display:grid; gap:12px;}
.faq-question{width:100%; display:flex; align-items:center; justify-content:space-between; gap:14px; text-align:left; padding:16px 18px; background:transparent; border:0; cursor:pointer;}
.faq-question h3{margin:0; font-size:1.02rem; line-height:1.35;}
.faq-toggle{display:inline-grid; place-items:center; width:32px; height:32px; border-radius:999px; background:rgba(16,185,129,.10); color:#0f766e; font-weight:700; transition:transform .25s ease, background .25s ease, color .25s ease;}
.faq-answer{max-height:0; overflow:hidden; transition:max-height .35s ease; will-change:max-height;}
.faq-answer > *{padding:0 18px 16px;}
.faq-answer p{margin:0; color:rgba(15,23,42,.88); line-height:1.75;}
.faq-item.is-open{background:rgba(16,185,129,.06); border-color:rgba(16,185,129,.35); box-shadow:0 12px 30px rgba(2,6,23,.08);}
.faq-item.is-open .faq-question{padding-bottom:12px;}
.faq-item.is-open .faq-toggle{background:#0f766e; color:#fff; transform:rotate(180deg);}
.faq-item.is-open .faq-toggle::after{content:"−";}
.faq-toggle::after{content:"＋";}
@media (max-width:860px){
  .faq-question{padding:14px 14px;}
  .faq-question h3{font-size:1.0rem;}
  .faq-answer > *{padding:0 14px 14px;}
}

/* FAQ display override (hotfix) */
.faq-answer{ display:block !important; }


/* =======================================
   Hero Typography Tuning (LP strong v7.1)
   ======================================= */
.hero.hero--bg2 .hero-content{ max-width: 860px; }

.hero.hero--bg2 .hero-title{
  font-size: clamp(2.6rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}
.hero.hero--bg2 .hero-mission{
  font-size: 1.04rem;
  line-height: 1.6;
  margin-top: 0.55rem;
  margin-bottom: 0.75rem;
  opacity: 0.92;
}
.hero.hero--bg2 .hero-subtitle{
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.45rem;
  opacity: 0.92;
}

/* PC: 2行を維持（BRは表示） */
.hero.hero--bg2 .hero-title br{ display:inline; }

/* Mobile: 3行にする（BRに加えて “だから” の直前で改行） */
@media (max-width: 600px){
  .hero.hero--bg2 .hero-title{
    font-size: clamp(1.95rem, 7.0vw, 2.55rem);
    line-height: 1.12;
  }
  .hero.hero--bg2 .hero-title br{ display:none; }
}

@media (max-width: 420px){
  .hero.hero--bg2 .hero-mission,
  .hero.hero--bg2 .hero-subtitle{ font-size: 0.98rem; }
}


/* =======================================
   Plan Compare Cards (no horizontal scroll)
   ======================================= */
.plan-compare-cards{ margin-top: 26px; }
.plan-compare-cards__title{ margin: 0 0 8px; font-size: 1.28rem; }
.plan-compare-cards__note{ margin: 0 0 14px; color: rgba(0,0,0,0.65); font-size: 0.92rem; }

.plan-compare-cards__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-compare-card{
  position: relative;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  padding: 16px 16px 14px;
}

.plan-compare-card__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}
.plan-compare-card__name{
  font-weight: 800;
  font-size: 1.1rem;
}
.plan-compare-card__price .yen{ font-weight: 800; font-size: 1.15rem; }
.plan-compare-card__price .per{ margin-left: 6px; color: rgba(0,0,0,0.6); font-size: .9rem; }

.plan-compare-card__meta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45,106,79,0.10);
  color: #1B4332;
  font-weight: 700;
  font-size: 0.86rem;
}
.chip--muted{ background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.75); font-weight: 700; }

.plan-compare-card__list{ margin: 12px 0 0; padding-left: 18px; color: rgba(0,0,0,0.82); }
.plan-compare-card__list li{ margin: 6px 0; line-height: 1.55; }

.plan-compare-card--popular{
  border-color: rgba(35,165,84,.35);
  background: rgba(35,165,84,.06);
  box-shadow: 0 16px 36px rgba(2,6,23,.10);
}
.plan-compare-card__badge{
  position:absolute;
  top: 10px;
  right: 10px;
  background: #1d7a43;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Tablet: 2 columns */
@media (max-width: 980px){
  .plan-compare-cards__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: 1 column */
@media (max-width: 600px){
  .plan-compare-cards__grid{ grid-template-columns: 1fr; }
  .plan-compare-card{ padding: 14px 14px 12px; }
  .plan-compare-cards__title{ font-size: 1.15rem; }
}


/* Hero line blocks for controlled breaks */
.hero-title .hero-line{ display:inline; }
.hero-title .hero-line--mobile{ display:none; }
@media (max-width: 600px){
  .hero-title .hero-line{ display:block; }
  .hero-title .hero-line--mobile{ display:block; }
}


/* =======================================
   Plan Compare Cards CTA
   ======================================= */
.plan-compare-cards__cta{ display:grid; gap:10px; margin-top: 12px; }
.plan-compare-card__lead{ margin: 10px 0 0; color: rgba(0,0,0,0.78); font-weight: 600; line-height: 1.55; }

/* Non-recommended cards: second CTA is quieter */
.btn-ghost{ background: rgba(45,106,79,0.10) !important; color: var(--primary-dark) !important; border-color: transparent !important; }
.btn-ghost:hover{ background: rgba(45,106,79,0.18) !important; transform: translateY(-1px); }

@media (max-width: 600px){
  .plan-compare-cards__cta{ grid-template-columns: 1fr; }
}

/* =======================================
   LP Typography System (mobile-first)
   - 少し太め/読みやすく
   ======================================= */
:root{
  --lp-text: #1f2937;
  --lp-title: #0f172a;
}

body{
  color: var(--lp-text);
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1,h2,h3{ color: var(--lp-title); }

.section-title{ font-weight: 800; letter-spacing: -0.02em; }
.section-subtitle{ font-weight: 500; }

p{ line-height: 1.75; }

.btn{
  font-weight: 700;
  border-radius: 10px;
}
.btn-large{ font-weight: 800; }

@media (max-width: 600px){
  .btn{ padding: 0.8rem 1.25rem; }
  .btn-large{ padding: 0.95rem 1.25rem; }
}


/* ===== Hero + Plans Readability Tweaks (v7.2.1) ===== */
.hero.hero--bg2 .hero-title{
  color: rgba(255,255,255,0.98);
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero.hero--bg2 .hero-mission,
.hero.hero--bg2 .hero-subtitle{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 14px rgba(0,0,0,0.28);
}
/* plans heading readability */
.section-title--plans{
  color: var(--text-dark);
}
.section-title--plans{
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* Centered recommendation under compare title */
.plan-compare-cards__title-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
}
.plan-compare-cards__recommend{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  background: rgba(45,106,79,0.10);
  color: var(--primary-dark);
  border: 1px solid rgba(45,106,79,0.20);
}

/* Hero line-break control: PC=2 lines, Mobile=3 lines */
.hero-title .hero-line{ display:inline; }
.hero-title .hero-line--mobile{ display:none; }
@media (max-width: 600px){
  .hero-title .hero-line{ display:block; }
  .hero-title .hero-line--mobile{ display:block; }
}


/* APP-LEARNING LP (v1) */
.app-lp-hero{
  padding: 5.5rem 0 3.5rem;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(82,183,136,.20), transparent 60%),
              radial-gradient(900px 520px at 90% 30%, rgba(0,119,182,.14), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}
.app-lp-hero__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}
.app-lp-hero__kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color: var(--primary-dark);
  background: rgba(45,106,79,.10);
  border: 1px solid rgba(45,106,79,.18);
  padding: 8px 12px;
  border-radius: 999px;
}
.app-lp-hero__title{
  margin-top: 14px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.app-lp-hero__lead{
  margin-top: 14px;
  color: var(--text-medium);
  font-size: 1.05rem;
}
.app-lp-hero__actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app-lp-hero__chips{
  margin-top: 16px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-lp-mini{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-lp-mini:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.app-lp-mini__icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(82,183,136,.18);
}
.app-lp-mini__title{ font-weight: 800; color: var(--text-dark); }
.app-lp-mini__desc{ color: var(--text-light); font-size: .92rem; margin-top: 2px; }

.app-lp-hero__note{
  margin-top: 18px;
  color: var(--text-light);
  font-size: .92rem;
}

.app-lp-why{
  padding: 2.5rem 0;
  background: var(--background-white);
}
.app-lp-why__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.app-lp-why__item{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
}
.app-lp-why__icon{ font-size: 1.35rem; }
.app-lp-why__title{ margin-top: 10px; font-size: 1.05rem; }
.app-lp-why__text{ margin-top: 8px; color: var(--text-medium); }

.app-lp{
  padding: 3.5rem 0 4.5rem;
  background: var(--background-light);
}
.app-lp__header{ margin-bottom: 18px; }

.app-lp-block{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
}
.app-lp-block__head{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}
.app-lp-block__icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(0,119,182,.12);
}
.app-lp-block__title{
  font-size: 1.18rem;
  line-height: 1.35;
}
.app-lp-block__lead{
  margin-top: 8px;
  color: var(--text-medium);
}

.app-lp-list{
  margin-top: 14px;
  padding-left: 18px;
  color: var(--text-medium);
}
.app-lp-list li{ margin: 8px 0; }

.app-lp-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.app-lp-tags .tag{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(45,106,79,.08);
  border: 1px solid rgba(45,106,79,.14);
  color: var(--primary-dark);
  font-weight: 650;
  font-size: .9rem;
}

.app-lp-cta{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-lp-bottom{
  margin-top: 20px;
}
.app-lp-bottom__inner{
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(45,106,79,.12), rgba(0,119,182,.10));
  border: 1px solid rgba(0,0,0,.06);
}
.app-lp-bottom__title{
  font-size: 1.35rem;
  line-height: 1.3;
}
.app-lp-bottom__text{
  margin-top: 10px;
  color: var(--text-medium);
}
.app-lp-bottom__actions{
  margin-top: 14px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px){
  .app-lp-hero__inner{ grid-template-columns: 1fr; }
  .app-lp-why__grid{ grid-template-columns: 1fr; }
}


/* APP-LEARNING LP v2 (2026-01-26) */

.app-lp-intent{padding:48px 0;background:linear-gradient(180deg, rgba(45,106,79,0.06), rgba(255,255,255,0));}
.app-lp-intent__grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.app-lp-intent__card{background:#fff;border:1px solid rgba(0,0,0,0.06);border-radius:16px;padding:18px 18px;box-shadow:0 10px 30px rgba(0,0,0,0.06);}
.app-lp-intent__card h2{font-size:20px;line-height:1.35;margin:0 0 8px;}
.app-lp-intent__card p{margin:0;color:var(--text-light);}
.app-lp-intent__card--accent{background:linear-gradient(135deg, rgba(45,106,79,0.10), rgba(82,183,136,0.10));border-color:rgba(45,106,79,0.25);}

/* footer contrast fixes (app-learning) */
.footer a, footer a{color:rgba(255,255,255,0.88) !important;}
.footer a:hover, footer a:hover{color:#ffffff !important;}
.footer .text-primary, footer .text-primary{color:rgba(255,255,255,0.92) !important;}

@media (max-width: 860px){
  .app-lp-intent__grid{grid-template-columns:1fr;}
}

/* PRICING V4 (match screenshot) */

.pricing{padding:56px 0;}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch;margin-top:18px;}
.pricing-card{position:relative;background:#fff;border:2px solid rgba(0,0,0,0.08);border-radius:18px;padding:22px 22px;box-shadow:0 14px 34px rgba(0,0,0,0.06);}
.pricing-title{text-align:center;margin:4px 0 6px;font-size:18px;}
.pricing-sub{text-align:center;margin:0 0 14px;color:var(--text-muted);font-size:13px;}
.pricing-price{text-align:center;margin:0 0 6px;color:var(--primary-dark);} 
.pricing-price .yen{font-size:44px;font-weight:900;letter-spacing:0.5px;}
.pricing-price .per{font-size:14px;font-weight:800;color:var(--text-muted);margin-left:6px;}
.pricing-unit{text-align:center;margin:0 0 16px;color:var(--text-light);font-weight:700;font-size:13px;}
.pricing-divider{height:1px;background:rgba(0,0,0,0.06);margin:16px 0;}
.pricing-times{text-align:left;margin:0 0 12px;font-weight:800;color:var(--text-dark);}
.pricing-features{margin:0;padding-left:0;list-style:none;}
.pricing-features li{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid rgba(0,0,0,0.05);color:var(--text-light);font-weight:600;font-size:13px;}
.pricing-features li::before{content:"✓";color:var(--primary-color);font-weight:900;}
.pricing-features li.coming{opacity:0.55;}
.pricing-features li.coming::before{content:"⏳";}
.pricing-cta{display:flex;gap:10px;margin-top:16px;}
.pricing-cta .btn{flex:1;justify-content:center;}

.pricing-card--featured{border-color:var(--primary-color);box-shadow:0 18px 44px rgba(45,106,79,0.18);}
.pricing-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--primary-color);color:#fff;font-weight:900;font-size:12px;padding:6px 14px;border-radius:999px;}

.pricing-note{text-align:center;margin:16px 0 0;color:var(--text-muted);font-size:0.95rem;}

@media (max-width: 980px){
  .pricing-grid{grid-template-columns:1fr;}
  


/* ===== v4.5 patch: Footer (logo + color) & Pricing CTA emphasis ===== */

/* Footer: unify text/link to white-ish for dark backgrounds */
.site-footer,
.site-footer * {
  color: rgba(255,255,255,.86) !important;
}
.site-footer a {
  color: rgba(255,255,255,.86) !important;
  text-decoration: none;
}
.site-footer a:hover {
  color: #BFE8D0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer logo sizing (smaller) */
.site-footer .footer-brand img,
.site-footer .footer-logo img {
  height: 18px;
  width: auto;
  display: block;
}
.site-footer .footer-brand {
  margin: 0 0 12px;
}

/* Pricing CTA: primary vs outline */
.btn-primary {
  background: var(--primary-color);
  color: #fff !important;
  border: 1px solid var(--primary-color);
}
.btn-outline {
  background: transparent;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color);
}

/* Ensure CTAs stack consistently */
.pricing-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-ctas .btn {
  width: 100%;
}

/* ===== end v4.5 patch ===== */


/* ===== v4.6 patch (force): Footer + Pricing CTA visuals ===== */

/* Footer: force dark footer contrast + white link colors */
.site-footer {
  background: #0b0f14;
}
.site-footer,
.site-footer * {
  color: rgba(255,255,255,.88) !important;
}
.site-footer a {
  color: rgba(255,255,255,.88) !important;
  text-decoration: none !important;
}
.site-footer a:visited {
  color: rgba(255,255,255,.88) !important;
}
.site-footer a:hover {
  color: #BFE8D0 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Footer logo: smaller + consistent */
.site-footer .footer-brand img,
.site-footer .footer-logo img {
  height: 18px !important;
  width: auto !important;
  display: block;
}
.site-footer .footer-brand,
.site-footer .footer-logo {
  margin: 0 0 12px !important;
}

/* Pricing CTAs: scope to plans to prevent global button styles overriding */
#plans .pricing-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#plans .pricing-ctas .btn {
  width: 100%;
  text-align: center;
}

#plans a.btn.btn-primary {
  background: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  color: #fff !important;
}
#plans a.btn.btn-outline {
  background: transparent !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* ===== end v4.6 patch ===== */

/* ===== tokutei.htm (特商法) ===== */
.tokusho-page { max-width: 980px; }
.tokusho-page h1 { font-size: 28px; margin: 40px 0 10px; }
.tokusho-lead { color: #4b5563; margin: 0 0 24px; line-height: 1.8; }
.tokusho-dl {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 22px;
}
.tokusho-dl dt {
  font-weight: 800;
  margin-top: 16px;
}
.tokusho-dl dt:first-child { margin-top: 0; }
.tokusho-dl dd {
  margin: 6px 0 0;
  line-height: 1.9;
  color: #111827;
}
@media (max-width: 767px) {
  .tokusho-page h1 { font-size: 22px; margin-top: 28px; }
  .tokusho-dl { padding: 16px; }
}
