/* --- 基本設定 --- */
:root {
    --base-color: #FFFFFF;
    --primary-pink: #E6006B;
    --light-pink: #FFF5F7;
    --accent-yellow: #F5A623;
    --text-color: #333333;
    --heading-color: #111111;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Zen Kaku Gothic New', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: #fdfdfd;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px), linear-gradient(to bottom, #ffffff 80%, #fff0f5 100%);
    background-size: 20px 20px, 100% auto;
    background-repeat: repeat, no-repeat;
    background-attachment: scroll, fixed;
    /* PC表示時の背景色: 明るいドット柄 + ピンクグラデーション(下部のみ) */
}

body {
    font-family: var(--font-main);
    margin: 0 auto;
    /* 中央寄せ */
    background-color: var(--base-color);
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.05em;
    max-width: 480px;
    /* モバイルビュー固定幅 */
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.container {
    padding: 40px 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
}

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

a {
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* --- アニメーション --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- ヒーローセクション (MV) --- */
.hero {
    position: relative;
    width: 100%;
    /* overflow: hidden;  Protruding element needs to be visible */
    z-index: 20;
    /* 理念セクションより上に */
}

.hero-image-container {
    position: relative;
}

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

.hero-overlay-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30%;
    /* ほんの少し大きく (25% -> 30%) */
    z-index: 2;
}

.hero-bottom-overlay-container {
    position: absolute;
    bottom: -65px;
    /* はみ出しを調整 (-80px -> -65px) */
    left: 0;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
}

.hero-overlay-bottom {
    width: 90%;
}

/* --- 理念セクション --- */
.philosophy {
    position: relative;
    margin-top: -70px;
    /* MVの下にさらに潜り込ませる (-40px -> -70px) */
    z-index: 1;
    background-color: transparent;
    /* 背景色を透明にして親のグラデーションを見せるか、画像があるのでそのままか。画像が透過なら透明が良いが、アセット23は背景画像。 */
    /* アセット23があるのでbackground-colorは影響しないかもしれないが、念のため */
}

.philosophy-container {
    position: relative;
    width: 100%;
}

.philosophy-bg {
    width: 100%;
    display: block;
}

.philosophy-content {
    position: absolute;
    top: 55%;
    /* 少し下にずらす (50% -> 55%) */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    text-align: center;
}

.philosophy-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.philo-bold {
    font-weight: 700;
}

.philo-large {
    font-size: 1.4rem;
    font-weight: 700;
}

.philo-brand {
    font-size: 2.0rem;
    font-weight: 900;
    font-style: italic;
    margin: 0 5px;
    color: var(--primary-pink);
}

/* --- コース選択セクション --- */
.course-select {
    text-align: center;
    background-color: #fff;
    padding: 40px 0;
}

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

.badge {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.course-select h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 0;
}

.course-buttons-horizontal {
    display: flex;
    flex-direction: row;
    /* 横並び */
    gap: 10px;
    /* 間隔 */
    justify-content: center;
    align-items: center;
}

.course-btn-img-link {
    display: block;
    width: 45%;
    /* 小さくして横並びに収める */
}

.course-select-img {
    width: 100%;
    transition: transform 0.2s;
}

.course-select-img:hover {
    transform: scale(1.02);
}


/* --- コース詳細共通 --- */
.course-detail {
    padding-bottom: 40px;
}

.culture-detail {
    background-color: #FEF9E8;
}

.business-detail {
    background-color: #FFF5F7;
}

.course-header-img img {
    width: 100%;
    height: auto;
}

.course-title {
    font-size: 1.5rem;
    text-align: center;
    margin: 20px 0;
    position: relative;
    display: inline-block;
    width: 100%;
}

.color-culture {
    color: #D48806;
}

.color-business {
    color: var(--primary-pink);
}

.course-desc {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 20px;
    text-align: center;
}

.course-content-box {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 20px;
    margin: 0 10px;
}

.content-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    color: inherit;
}

.content-subtitle {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.culture-detail .content-subtitle {
    color: #D48806;
}

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

.content-list li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
    text-align: left;
}

.content-list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* --- CTAセクション --- */
.cta-section {
    background-color: var(--primary-pink);
    text-align: center;
    padding: 30px 20px;
    /* 余白を縮める */
}

.cta-img-text {
    width: 90%;
    margin: 0 auto 20px;
}

.cta-img-sub {
    width: 80%;
    margin: 0 auto;
}

/* --- ステップセクション --- */
.steps {
    background-color: #fff;
    text-align: center;
    padding: 40px 0;
}

.steps h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #000;
}

.step-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.step-img-stack {
    width: 90%;
    display: block;
}

.step-title-img {
    width: 70%;
    /* Asset 15をさらに小さく */
}

/* --- フッター (New) --- */
.footer-new {
    width: 100%;
}

.footer-top {
    position: relative;
    width: 100%;
}

.footer-top-bg {
    width: 100%;
    display: block;
}

.footer-top-overlay-link {
    position: absolute;
    bottom: 20px;
    right: 50px;
    /* ほんの少し左に (40px -> 50px) */
    width: 40%;
    /* 少し大きく */
    display: block;
    transition: transform 0.2s;
}

.footer-top-overlay-link:hover {
    transform: scale(1.05);
}

.footer-top-overlay {
    width: 100%;
    display: block;
}

.footer-bottom {
    position: relative;
    width: 100%;
    background-color: transparent;
    /* 黒い背景を削除 */
}

.footer-bottom-bg {
    width: 100%;
    display: block;
    border: none;
    /* 枠線なし */
    height: auto;
    /* 高さを自動に */
    min-height: 200px;
    /* 最低限の高さを確保 */
    object-fit: cover;
    /* padding-bottom: 60px;  Removed to eliminate whitespace */
}

.footer-bottom-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* 下部余白を削除 (100px -> 0) */
}

.footer-center-logo-link {
    display: block;
    width: 60%;
    margin-bottom: 15px;
    /* マージン少し縮小 */
}

.footer-center-logo {
    width: 100%;
}

.footer-links-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    /* マージン少し縮小 */
    margin-top: 0;
}

.footer-links-row img {
    height: 30px;
    width: auto;
}

.footer-copyright-img {
    width: 30%;
    /* もっと小さく (40% -> 30%) */
    margin-top: 5px;
}

/* --- Footer Legal Links --- */
.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-legal-links a {
    color: var(--text-color);
    font-size: 0.75rem;
    text-decoration: none;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

/* --- 固定LINEボタン --- */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* 中央寄せの基準 */
    transform: translateX(-50%);
    /* 中央に配置 */
    width: 100%;
    max-width: 480px;
    /* コンテンツ幅に合わせる */
    background-color: transparent;
    /* 背景なし */
    padding: 0;
    /* パディングなし */
    z-index: 1000;
    box-sizing: border-box;
    text-align: center;
    pointer-events: none;
    /* コンテナはクリック透過 */
}

.fixed-line-btn {
    pointer-events: auto;
    /* ボタンはクリック可能 */
    display: block;
    width: 100%;
}

.fixed-btn-img {
    width: 100%;
    max-width: 100%;
    /* 幅いっぱい */
    filter: drop-shadow(0 -2px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s;
}

.fixed-btn-img:hover {
    transform: scale(1.02);
}

/* --- 固定ボタン用スペーサー --- */
.fixed-btn-spacer {
    height: 80px;
    background-color: #fdf7ec;
}

/* --- 小さい端末用の調整 (iPhone SE等) --- */
@media (max-width: 375px) {
    .philosophy-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .philo-bold {
        font-weight: 600;
    }

    .philo-large {
        font-size: 1.2rem;
    }

    .philo-brand {
        font-size: 1.6rem;
    }

    .philosophy-content {
        top: 58%;
        width: 90%;
    }
}