﻿/* メインメニューのアンカーリンク */
#about {
    margin-top: -100px;
    padding-top: 100px;
}

#services {
    margin-top: -100px;
    padding-top: 100px;
}

#process {
    margin-top: -100px;
    padding-top: 100px;
}

#faq {
    margin-top: -100px;
    padding-top: 100px;
}

#contact {
    margin-top: -100px;
    padding-top: 100px;
}

#access {
    margin-top: -100px;
    padding-top: 100px;
}

















/* ========================================
   ロゴスタイル CSS
   ======================================== */

/* ヘッダーロゴスタイル */
.logo {
    display: flex;
    align-items: center;
    height: 65px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 380px;
    object-fit: contain;
}

/* ヘッダーの調整 */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* フッターロゴの調整 */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

/* ロゴの読み込みエラー時のフォールバック */
.logo-text-fallback {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c7a2c;
    display: none;
}

.footer-logo-text-fallback {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c7a2c;
    display: none;
    text-align: center;
}

/* 画像が読み込めない場合のフォールバック表示 */
.logo img:not([src]), 
.logo img[src=""] {
    display: none;
}

.logo img:not([src]) + .logo-text-fallback,
.logo img[src=""] + .logo-text-fallback {
    display: block;
}

.footer-logo img:not([src]) + .footer-logo-text-fallback,
.footer-logo img[src=""] + .footer-logo-text-fallback {
    display: block;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* タブレット表示 (768px以下) */
@media (max-width: 768px) {
    .logo {
        height: 55px;
    }
    
    .logo img {
        height: 100%;
        max-width: 320px;
    }
    
    .footer-logo img {
        height: 38px;
        max-width: 260px;
    }
    
    .header-inner {
        padding: 14px 0;
    }
    
    .logo-text-fallback {
        font-size: 1.4rem;
    }
    
    .footer-logo-text-fallback {
        font-size: 1.2rem;
    }
    
    /* ナビゲーションとロゴのバランス調整 */
    .nav-menu {
        font-size: 14px;
    }
}

/* スマホ表示 (480px以下) */
@media (max-width: 480px) {
    .logo {
        height: 48px;
    }
    
    .logo img {
        max-width: 280px;
    }
    
    /* フッターロゴをスマホで1.6倍＆センタリング */
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo img {
        height: 51px; /* 32px × 1.6 = 51.2px */
        max-width: 350px; /* 220px × 1.6 = 352px */
    }
    
    .logo-text-fallback {
        font-size: 1.25rem;
    }
    
    .footer-logo-text-fallback {
        font-size: 1.68rem; /* 1.05rem × 1.6 = 1.68rem */
        text-align: center;
    }
    
    .header-inner {
        padding: 12px 0;
    }
    
    /* スマホでのハンバーガーメニュー表示時の調整 */
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
}

/* 極小画面 (320px以下) */
@media (max-width: 320px) {
    .logo {
        height: 42px;
    }
    
    .logo img {
        max-width: 240px;
    }
    
    /* フッターロゴをさらに大きく＆センタリング */
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo img {
        height: 45px; /* 28px × 1.6 = 44.8px */
        max-width: 290px; /* 180px × 1.6 = 288px */
    }
    
    .logo-text-fallback {
        font-size: 1.1rem;
    }
    
    .footer-logo-text-fallback {
        font-size: 1.52rem; /* 0.95rem × 1.6 = 1.52rem */
        text-align: center;
    }
}

/* ========================================
   高解像度ディスプレイ対応
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   ダークモード対応（将来的な拡張用）
   ======================================== */
@media (prefers-color-scheme: dark) {
    .logo-text-fallback,
    .footer-logo-text-fallback {
        color: #4a9a4a;
    }
}

/* ========================================
   アクセシビリティ対応
   ======================================== */

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .logo-text-fallback,
    .footer-logo-text-fallback {
        color: #000;
        font-weight: 800;
    }
}

/* モーション軽減設定対応 */
@media (prefers-reduced-motion: reduce) {
    .logo img,
    .footer-logo img {
        transition: none;
    }
}

/* ========================================
   印刷時の調整
   ======================================== */
@media print {
    .logo,
    .footer-logo {
        height: auto;
    }
    
    .logo img,
    .footer-logo img {
        max-height: 40px;
        height: auto;
    }
    
    .logo-text-fallback,
    .footer-logo-text-fallback {
        color: #000;
    }
}

.about-content-strong{
margin:10px 0;
font-weight:bold;
font-size:18px;
}

.programs-caption{
    text-align:center;
    margin: 10px 0 40px 0;
    font-size:26px;
}

/* Base Styles */
:root {
    --primary: #4CAF50;
    --primary-light: #7CC67F;
    --primary-dark: #3A8C3D;
    --secondary: #FFA000;
    --secondary-light: #FFB74D;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --max-width: 1200px;
    --report-blue: #6B93C0;
    --report-blue-dark: #5A7FA9;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    position: relative;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    position: relative;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

h2.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 就職決定報告ボタンのスタイル */
.btn-report {
    background-color: var(--report-blue);
}

.btn-report:hover {
    background-color: var(--report-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(107, 147, 192, 0.3);
}

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

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.icon {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    z-index: 1001;
}

/* Floating Menu */
.floating-menu {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
}

.floating-menu ul {
    list-style: none;
}

.floating-menu li {
    margin-bottom: 15px;
}

.floating-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-menu a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.floating-menu i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.floating-menu span {
    font-size: 0.8rem;
    font-weight: bold;
}

/* Mobile Footer Menu */
.mobile-footer-menu {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    transition: bottom 0.3s ease;
    display: none;
}

.mobile-footer-menu.visible {
    bottom: 0;
}

.mobile-footer-menu ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    padding: 15px 0;
}

.mobile-footer-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.mobile-footer-menu i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.mobile-footer-menu span {
    font-size: 0.8rem;
}

/* Global Navigation */
.global-nav {
    display: flex;
    align-items: center;
}

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

.nav-menu li {
    margin-left: 25px;
}

.nav-menu li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a:hover {
    color: var(--primary);
}

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

.nav-menu li a:hover:after {
    width: 100%;
}

.nav-menu li a.active {
    color: var(--primary);
}

.nav-menu li a.active:after {
    width: 100%;
}

.nav-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.nav-btn:after {
    display: none;
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Hero Section - 改良版 */
#hero {
    background: linear-gradient(135deg, #e0f2e0 0%, #c8e6c9 100%);
    padding-top: 130px;
    padding-bottom: 90px;
    overflow: hidden;
    position: relative;
}

#hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%234CAF50" opacity="0.2"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: 30px;
    color: var(--text);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 改良されたキャラクター部分 */
.characters {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 60px 0 40px;
    position: relative;
    width: 100%;
    max-width: 900px;
}

.character {
    position: relative;
    z-index: 5;
    transition: all 0.5s ease;
}

.character-left {
    margin-right: 20px;
    animation: floatLeft 5s ease-in-out infinite;
    transform-origin: bottom center;
}

.character-right {
    margin-left: 20px;
    animation: floatRight 5s ease-in-out 2.5s infinite;
    transform-origin: bottom center;
}

.character:hover {
    transform: translateY(-10px) scale(1.05);
}

.character-img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

@keyframes floatLeft {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-2deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes floatRight {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* 改良された吹き出し */
.speech-bubble {
    position: absolute;
    background: var(--white);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 6;
    animation: bobble 4s ease-in-out infinite;
    border: 2px solid var(--primary-light);
    font-weight: 500;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    border: 15px solid transparent;
}

.speech-bubble-1 {
    top: -80px;
    left: -20px;
    animation-delay: 0.5s;
}

.speech-bubble-1:after {
    border-top-color: var(--white);
    border-right-color: var(--white);
    bottom: -30px;
    left: 40px;
    transform: rotate(135deg);
    border-left: 2px solid var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
}

.speech-bubble-2 {
    top: -70px;
    right: -20px;
    animation-delay: 2s;
}

.speech-bubble-2:after {
    border-top-color: var(--white);
    border-left-color: var(--white);
    bottom: -30px;
    right: 40px;
    transform: rotate(-135deg);
    border-right: 2px solid var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
}

@keyframes bobble {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

/* 情報カードの改良 */
.info-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    border-top: 5px solid var(--primary);
    z-index: 10;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

.info-item {
    margin: 12px 0;
    display: flex;
}

.info-item i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    margin-top:3px;
}

/* ボタンのパルスアニメーション */
.btn-pulse {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Image Styles - 実際の画像用 */
.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.character-img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

/* 旧Image Placeholders（削除予定） */
.image-placeholder {
    background-color: #e0e0e0;
    border: 2px dashed #aaa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #666;
    border-radius: 10px;
    position: relative;
    height: 100%;
    width: 100%;
}

.image-placeholder p {
    font-weight: bold;
    margin-bottom: 10px;
}

.image-placeholder .dimensions {
    font-size: 0.8rem;
    opacity: 0.8;
}

.image-placeholder.rectangular {
    min-height: 250px;
}

.program-image .image-placeholder {
    height: 200px;
    border-radius: 10px 10px 0 0;
}

.about-image .image-placeholder {
    height: 300px;
}

/* カルーセルのスタイル - 修正版（上部見切れを防ぐ） */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px; /* 上部に余白を追加 */
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.programs-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.program-card {
    flex: 0 0 auto;
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0 10px;
    width: calc((100% - 60px) / 3); /* デスクトップ：3つ表示時の幅 */
    display: flex;
    flex-direction: column;
}

/* デスクトップ用のホバーエフェクト（タッチデバイス以外） */
@media (hover: hover) and (pointer: fine) {
    .program-card:hover {
        transform: translateY(-10px);
        z-index: 10; /* ホバー時に前面に表示 */
        position: relative; /* z-indexを有効にする */
    }
    
    .program-card:hover .program-image img {
        transform: scale(1.1);
    }
}

.program-image {
    height: 200px;
    overflow: hidden;
}

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

.program-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.program-content p {
    flex: 1;
    margin-bottom: 0;
}

/* プログラムボタンのスタイル - モバイル対応版 */
.program-btn-container {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.program-btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 12px 24px; /* パディングを大きくしてタッチしやすく */
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem; /* フォントサイズを少し大きく */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* iOS推奨のタッチターゲットサイズ */
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent; /* iOS用のタップハイライト除去 */
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

/* デスクトップ用のホバーエフェクト（タッチデバイス以外） */
@media (hover: hover) and (pointer: fine) {
    .program-btn:hover {
        background-color: var(--primary);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    }
}

/* モバイル用のアクティブ状態 */
.program-btn:active {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

/* カルーセルボタン */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

/* デスクトップ用のホバーエフェクト */
@media (hover: hover) and (pointer: fine) {
    .carousel-btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-50%) scale(1.1);
    }
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

/* インジケーター */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* iOS推奨のタッチターゲットサイズ */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.carousel-indicator:before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    transition: all 0.3s ease;
}

.carousel-indicator.active:before {
    background-color: var(--primary);
    transform: scale(1.3);
}

/* Concerns Section - アイコン修正版 */
#concerns {
    background-color: var(--bg-light);
}

.concerns-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.concern-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

/* デスクトップ用のホバーエフェクト */
@media (hover: hover) and (pointer: fine) {
    .concern-item:hover {
        transform: translateY(-5px);
    }
}

.concern-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--primary);
    z-index: -1;
}

.concern-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.concern-icon i {
    font-size: 4rem;
    color: var(--primary);
}

/* About Section */
#about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
line-height:2.5em;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
#services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* デスクトップ用のホバーエフェクト */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
}

/* Process Section - アイコン付きタイトル対応版 */
#process {
    background-color: var(--white);
}

/* メニュー一覧のテキストスタイル修正 */
.process-menu-text {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    z-index: 2;
}

.step-content {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.step-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.step-title i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.4rem;
}

/* お問い合わせバナーのスタイル - 修正版 */
.contact-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.contact-banner-title {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-banner-title i {
    margin-right: 10px;
    font-size: 1.6rem;
}

.contact-banner-phone {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 8px 0;
}

.contact-banner-time {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    margin: 8px 0 0 0;
    opacity: 0.9;
}

.contact-banner-address {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    margin: 8px 0 0 0;
    opacity: 0.9;
}

.contact-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Testimonials Section */
#testimonials {
    background-color: var(--bg-light);
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    padding-left: 20px;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
    color: var(--primary-dark);
}

/* FAQ Section - 設問テキスト左寄せ専用クラス対応版 */
#faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Accordion Styles - 影を濃くした版 */
.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* 影を濃くしました */
}

.faq-question {
    background-color: var(--white);
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: var(--primary-dark);
    transition: background-color 0.3s ease;
    min-height: 44px; /* iOS推奨のタッチターゲットサイズ */
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    text-align: center; /* デフォルトはセンター */
}

/* FAQの設問テキストを左寄せにする専用クラス */
.faq-question-left {
    text-align: left;
}

/* デスクトップ用のホバーエフェクト */
@media (hover: hover) and (pointer: fine) {
    .faq-question:hover {
        background-color: #f9f9f9;
    }
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-answer {
    background-color: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
    opacity: 1;
}

/* Contact Section - 午前中の版と同じレイアウト */
#contact {
    background-color: var(--bg-light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch; /* 高さを揃える */
}

.contact-info {
    flex: 0 1 350px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none; /* 背景をリセット */
    border: none; /* ボーダーをリセット */
    border-left: none; /* 明示的にborder-leftを削除 */
    padding: 0; /* パディングをリセット */
    box-shadow: none; /* シャドウをリセット */
}

.contact-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex: 1; /* カードが均等に高さを分ける */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card + .contact-card {
    margin-top: 15px; /* カード間のマージン */
}

.contact-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-right: 15px;
}

.map {
    flex: 1;
    min-width: 400px;
    height: 450px; /* 左側のカード2つ分の高さに合わせる */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer - 改良されたレイアウト（バランス調整版） */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

/* ロゴセクション（センタリング） */
.footer-logo-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

/* メインフッターコンテンツ（4カラムレイアウト改良版） */
.footer-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* バランスを調整 */
    gap: 50px; /* 間隔を広げる */
    margin-bottom: 30px;
    align-items: start; /* 上揃え */
    max-width: 1200px; /* 最大幅を設定 */
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    min-width: 180px; /* 最小幅を調整 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 左揃え */
}

.footer-section h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left; /* 左揃えに統一 */
    width: 100%;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

/* お問い合わせセクション（広い幅を活用） */
.footer-contact {
    grid-column: 1; /* 第1カラム */
}

.footer-contact .footer-contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start; /* 上揃え */
    line-height: 1.5;
}

.footer-contact .footer-contact-item i {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    color: var(--secondary-light);
    margin-top: 2px; /* アイコンを少し上に調整 */
    flex-shrink: 0; /* アイコンのサイズを固定 */
}

/* フォームセクション */
.footer-forms {
    grid-column: 2; /* 第2カラム */
}

.footer-forms .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ガイドラインセクション */
.footer-guidelines {
    grid-column: 3; /* 第3カラム */
}

.footer-guidelines .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* リンクセクション */
.footer-links-area {
    grid-column: 4; /* 第4カラム */
}

.footer-links-area .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 共通のリンクスタイル */
.footer-forms .footer-links a,
.footer-guidelines .footer-links a,
.footer-links-area .footer-links a {
    display: block;
    color: var(--white);
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    padding: 5px 0;
    text-align: left; /* 左揃えに統一 */
    font-size: 0.95rem;
    line-height: 1.4;
}

/* デスクトップ用のホバーエフェクト */
@media (hover: hover) and (pointer: fine) {
    .footer-forms .footer-links a:hover,
    .footer-guidelines .footer-links a:hover,
    .footer-links-area .footer-links a:hover {
        color: var(--secondary-light);
        padding-left: 8px; /* ホバー時に少し右に移動 */
    }
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブスタイル - スマホでのボタンテキスト中央寄せ専用クラス追加 */
.mobile-btn-center {
    text-align: center;
    justify-content: center;
}

.mobile-faq-left {
    text-align: left;
}

.mobile-footer-center {
    text-align: center;
    justify-content: center;
}

.mobile-footer-left {
    text-align: left;
    justify-content: flex-start;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: all 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .floating-menu {
        display: none;
    }
    
    .mobile-footer-menu {
        display: block;
    }

    .carousel-btn {
        display: none;
    }
    
    /* フッターをタブレットサイズで2×2レイアウトに調整 */
    .footer-main-content {
        grid-template-columns: 1fr 1fr; /* 2カラムレイアウト */
        gap: 30px;
        max-width: 100%;
    }
    
    .footer-contact {
        grid-column: 1 / -1; /* お問い合わせは全幅 */
    }
    
    .footer-forms {
        grid-column: 1;
    }
    
    .footer-guidelines {
        grid-column: 2;
    }
    
    .footer-links-area {
        grid-column: 1 / -1; /* リンクは全幅 */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    h2.section-title {
        font-size: 2rem;
        width: 100%;
        text-align: center;
    }
    
    .process-steps:before {
        left: 29px;
    }
    
    .concern-icon i {
        font-size: 3.5rem;
    }

    /* スマホ用カルーセル */
    .program-card {
        width: calc(100% - 20px); /* スマホ：1つ表示時の幅 */
    }

    /* スマホでのコンタクトセクション調整 */
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info {
        flex: none;
        min-width: 100%;
        height: auto; /* スマホでは高さ自動調整 */
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
    
    .map {
        flex: none;
        min-width: 100%;
        height: 300px;
    }
    
    /* ボタンのスマホ表示改善 */
    .btn,
    .btn-large,
    .program-btn {
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    /* FAQ質問のスマホ専用左寄せ */
    .faq-question {
        text-align: left;
    }
    
    /* フッターをスマホサイズで縦1カラムにする */
    .footer-main-content {
        grid-template-columns: 1fr; /* 1カラムレイアウトに変更 */
        gap: 30px;
        text-align: left; /* 左揃えに統一 */
    }
    
    .footer-section {
        margin-bottom: 30px;
        align-items: flex-start; /* 左揃えを維持 */
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        text-align: left; /* 左揃えを維持 */
    }
    
    .footer-section h3:after {
        left: 0; /* 下線を左に配置 */
        transform: none;
    }
    
    /* すべてのセクションを1カラムに */
    .footer-contact,
    .footer-forms,
    .footer-guidelines,
    .footer-links-area {
        grid-column: 1;
    }
    
    /* お問い合わせセクションのアイコンを左側に配置 */
    .footer-contact .footer-contact-item {
        justify-content: flex-start; /* 左寄せ */
        text-align: left;
        margin-bottom: 12px;
    }
    
    .footer-contact .footer-contact-item i {
        margin-right: 12px;
        width: 24px;
        font-size: 1.1rem;
    }
    
    .footer-forms .footer-links a,
    .footer-guidelines .footer-links a,
    .footer-links-area .footer-links a {
        justify-content: flex-start; /* 左寄せ */
        margin-bottom: 12px;
        min-height: 44px;
        text-align: left;
        padding-left: 0; /* パディングをリセット */
    }

    /* スマホでのキャラクターとフキダシの調整 */
    #hero {
        padding-bottom: 60px; /* 下部の余白を減らす */
    }
    
    .characters {
        margin: 40px 0 30px;
        max-width: 100%;
        padding: 0 10px;
        gap: 20px; /* キャラクター間の間隔を追加 */
    }
    
    .character {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .character-left {
        margin-right: 10px;
    }
    
    .character-right {
        margin-left: 10px;
    }
    
    .character-img {
        max-width: 180px; /* キャラクターサイズを少し縮小 */
    }
    
    /* スマホ用フキダシの配置調整 - キャラクターの上に配置 */
    .speech-bubble {
        position: relative; /* absoluteからrelativeに変更 */
        top: auto;
        left: auto;
        right: auto;
        margin-bottom: 15px; /* キャラクターとの間隔 */
        max-width: 140px; /* キャラクターと同じ幅に */
        min-width: auto;
        padding: 10px 12px;
        font-size: 0.85rem;
        line-height: 1.4;
        order: -1; /* フレックスボックスで上に配置 */
    }
    
    .speech-bubble-1,
    .speech-bubble-2 {
        animation: none; /* モバイルではアニメーションを無効化 */
    }
    
    /* フキダシの矢印を下向きに変更 */
    .speech-bubble-1:after,
    .speech-bubble-2:after {
        border: 10px solid transparent;
        border-top-color: var(--white);
        bottom: -20px;
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-bottom: none;
        border-left: none;
        border-right: none;
    }
    
    /* 情報カードの調整 */
    .info-card {
        margin-top: 15px; /* 上部の余白を減らす */
    }
}

@media (max-width: 576px) {
    .header-inner {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: flex-start;
    }
    
    .process-steps:before {
        display: none;
    }
    
    /* スマホでのボタン表示改善 - 横並びを縦並びに */
    .btn-large {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        min-height: 48px; /* iOS推奨サイズ */
        -webkit-tap-highlight-color: transparent;
        text-align: center;
        justify-content: center;
    }
    
    /* Make sure both buttons in contact are full width on mobile */
    #contact .text-center {
        display: flex;
        flex-direction: column;
    }
    
    #contact .btn-large + .btn-large {
        margin-left: 0 !important;
    }
    
    .concern-icon i {
        font-size: 3rem;
    }
    
    /* プログラムボタンの表示改善 */
    .program-btn {
        padding: 16px 32px;
        font-size: 1.1rem;
        min-height: 52px;
        width: auto;
        max-width: 200px;
        margin: 0 auto;
        text-align: center;
        justify-content: center;
    }
    
    .program-btn-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    /* フッターロゴのサイズ調整（スマホ） */
    .footer-logo img {
        height: 51px; /* 32px × 1.6 = 51.2px */
        max-width: 350px; /* 220px × 1.6 = 352px */
    }
    
    .footer-logo-text-fallback {
        font-size: 1.68rem; /* 1.05rem × 1.6 = 1.68rem */
    }
    
    /* 極小画面でもフッターを縦1カラムレイアウトを維持 */
    .footer-main-content {
        grid-template-columns: 1fr; /* 1カラムレイアウト */
        gap: 25px;
        text-align: left; /* 左揃えを維持 */
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: left; /* 左揃えを維持 */
    }
    
    /* お問い合わせセクションのアイコンを左側に配置（極小画面） */
    .footer-contact .footer-contact-item {
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    .footer-contact .footer-contact-item i {
        margin-right: 10px;
        width: 20px;
        font-size: 1rem;
    }
    
    .footer-forms .footer-links a,
    .footer-guidelines .footer-links a,
    .footer-links-area .footer-links a {
        justify-content: flex-start; /* 左寄せを維持 */
        margin-bottom: 10px;
        font-size: 0.9rem;
        min-height: 40px;
        text-align: left;
        padding-left: 0; /* パディングをリセット */
    }

    /* 576px以下でのキャラクターとフキダシのさらなる調整 */
    .hero-container {
        padding: 0 10px;
    }
    
    .characters {
        margin: 30px 0 20px;
        padding: 0 5px;
        gap: 15px;
    }
    
    .character-img {
        max-width: 180px; /* さらに縮小 */
    }
    
    .character-left {
        margin-right: 5px;
    }
    
    .character-right {
        margin-left: 5px;
    }
    
    /* 極小画面用フキダシ調整 */
    .speech-bubble {
        max-width: 180px;
        padding: 8px 10px;
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    /* フキダシの矢印を小さく */
    .speech-bubble-1:after,
    .speech-bubble-2:after {
        border-width: 8px;
        bottom: -16px;
    }
}

/* 特にiPhone SE (375px) 以下の対応 */
@media (max-width: 375px) {
    /* ヒーロータイトルのサイズ調整 */
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* キャラクターとフキダシの最適化 */
    .characters {
        margin: 25px 0 20px;
        width: 100%;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    
    .character {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .character-img {
        max-width: 180px;
    }
    
    .character-left {
        margin-right: 5px;
    }
    
    .character-right {
        margin-left: 5px;
    }
    
    /* iPhone SE用フキダシの最適化 */
    .speech-bubble {
        max-width: 160px;
        padding: 6px 8px;
        font-size: 16px;
        line-height: 1.3;
        font-weight: normal;
        margin-bottom: 10px;
    }
    
    /* フキダシの矢印をさらに小さく */
    .speech-bubble-1:after,
    .speech-bubble-2:after {
        border-width: 6px;
        bottom: -12px;
    }
    
    /* 情報カードのパディング調整 */
    .info-card {
        padding: 20px 15px;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .info-item i {
        font-size: 1.2rem;
        width: 25px;
    }
}

/* Animation Classes */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* バウンスとエンファサイズのアニメーション */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.btn-pulse.highlight {
    animation: highlight 1s infinite alternate;
}

@keyframes highlight {
    from { box-shadow: 0 0 10px rgba(76, 175, 80, 0.7); }
    to { box-shadow: 0 0 20px rgba(76, 175, 80, 0.9); }
}

/* モバイル用のタッチ改善 */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* タッチターゲットのサイズを確保 */
    .nav-menu a,
    .btn,
    .carousel-indicator,
    .faq-question,
    .program-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    /* FAQ質問はテキスト左寄せを維持 */
    .faq-question {
        text-align: left;
        justify-content: flex-start;
    }
    
    /* iOS用のスクロール改善 */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* カルーセル用のタッチ操作改善 */
    .carousel-wrapper {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y; /* 縦横両方のスクロールを許可 */
    }
    
    .programs-carousel {
        touch-action: pan-x pan-y; /* 縦横両方のスクロールを許可 */
    }
}

/* ========================================
   Guide.html 専用スタイル（privacy-policy.htmlデザイン踏襲）
   ======================================== */

/* ガイドページのコンテナ */
.guide-container {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 900px;
    line-height: 1.8;
}

.guide-section {
    margin-bottom: 40px;
}

.guide-section h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.guide-section h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 25px 0 15px 0;
}

.guide-section p {
    margin-bottom: 15px;
}

.guide-section ul,
.guide-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.guide-section li {
    margin-bottom: 8px;
}

/* サポート内容のグリッド */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.support-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.support-item h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 無料表示ボックス */
.price-free {
    background-color: #e8f5e8;
    border: 2px solid var(--primary-light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.price-free i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.4rem;
}

/* 警告リスト */
.warning-list {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px 0 15px 25px;
    margin: 15px 0;
    border-radius: 5px;
}

.warning-list li {
    margin-bottom: 8px;
    color: #e65100;
    font-weight: 500;
}

/* 報告方法 */
.report-methods {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.report-methods p {
    margin-top: 15px;
    font-size: 1.1rem;
}

/* 利用規約セクション */
.terms-section {
    margin-top: 60px;
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.terms-content {
    margin-top: 30px;
}

.terms-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.terms-item h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-item p {
    margin-bottom: 15px;
}

.terms-item ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-item li {
    margin-bottom: 8px;
}

.warning-note {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
    color: #e65100;
    font-weight: 500;
}

/* プライバシーポリシースタイルと共通のお問い合わせ情報 */
.guide-container .contact-info,
.terms-section .contact-info {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary);
    margin-right: 8px;
    width: 20px;
}

/* バックリンク */
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.back-link i {
    margin-right: 8px;
}

/* ========================================
   Guide.html レスポンシブ対応
   ======================================== */

/* タブレット・スマホ対応 */
@media (max-width: 768px) {
    /* ガイドページのレスポンシブ対応 */
    .guide-container,
    .terms-section {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* 極小画面対応 */
@media (max-width: 576px) {
    /* ガイドページの極小画面対応 */
    .guide-section h2 {
        font-size: 1.3rem;
    }
    
    .guide-section h3 {
        font-size: 1.1rem;
    }
    
    .terms-item h2 {
        font-size: 1.1rem;
    }
}

/* 通常（PCなど）では非表示 */
.sp-br {
  display: none;
}

/* スマホ（769px以下）の時だけ表示 */
@media screen and (max-width: 769px) {
  .sp-br {
    display: inline;
  }
}
