/* ==========================================================================
   Base & Typography
   ========================================================================== */
html, body {
    overflow-x: hidden;
}

/* ▼▼▼ 修正: bodyに固定のグラデーション背景を設定 ▼▼▼ */
body {
   font-family: 'Noto Sans JP', sans-serif;
    /* background-color: #FDFDFB; ← 削除 */
    background-image: linear-gradient(to bottom right, #E0EACE, #F3F0D1); /* グラデーションを指定 */
    background-attachment: fixed; /* 背景をビューポートに固定 */
    background-size: cover; /* 画面全体をカバー */
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    word-break: normal;
    overflow-wrap: break-word;
}
/* ▲▲▲ 修正 ▲▲▲ */




h1, h2, h3, h4, h5, h6, .logo-font {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

p, li, .prose-like {
    line-height: 1.8;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.active-nav {
    color: #F2A860; /* sai-accent-2 (薄橙) */
    font-weight: 700;
}

:target {
    scroll-margin-top: 96px; 
}

/* ==========================================================================
   Animations
   ========================================================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible,
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .fade-in-up {
        transition: none;
    }
}

/* ==========================================================================
   Components
   ========================================================================== */
/* --- FAQ Accordion --- */
.faq-question::after {
    content: '+';
    font-size: 1.2em;
    font-weight: bold;
    color: #3A8C82; /* sai-main */
    transition: transform 0.3s ease-in-out;
    float: right;
    margin-left: 1rem;
    line-height: 1;
}

.faq-question.is-open::after {
    content: '−'; 
    transform: rotate(0deg);
}

/* ▼▼▼ 修正: FAQ回答欄の背景色をカードの白と統一 ▼▼▼ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: #FFFFFF; /* カードの白と合わせる */
}
/* ▲▲▲ 修正 ▲▲▲ */


/* --- Instructor Profile --- */
.profile-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #3A8C8230; 
}

.profile-section h4 {
    font-family: 'Zen Kaku Gothic New', sans-serif; 
    font-weight: bold;
    color: #3A8C82; 
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

/* --- Floating Character Image --- */
.image-character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: auto;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.image-character:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-character {
        width: 100px;
        bottom: 15px;
        right: 15px;
    }
}

/* === モバイルの見切れ対策 === */
html, body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fade-in-up, .scroll-animate {
  display: block;
  min-height: 1px;
}

section {
  min-height: auto;
}