/* --- 基本スタイル & 変数定義 --- */
:root {
    --primary-color: #77A6F7;
    /* ソフトブルー */
    --secondary-color: #F7C5CC;
    /* ソフトピンク */
    --accent-color: #F5D98E;
    /* 明るいイエロー */
    --text-color: #555;
    /* 少し柔らかいテキスト色 */
    --heading-color: #4a4a4a;
    /* 見出しの色 */
    --light-bg: #fdfafd;
    /* ほんのりピンクがかった背景 */
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    /* 薄いグレー背景 */
    --border-color: #e9ecef;
    /* 境界線 */
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.07);
    /* 少し柔らかい影 */
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius-medium: 12px;
    --border-radius-large: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* 滑らかなトランジション */
    --font-family-base: 'Noto Sans JP', sans-serif;
    --font-family-heading: 'M PLUS Rounded 1c', sans-serif;
}

/* --- グローバルスタイル --- */
body {
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--white);
    /* 基本は白背景 */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 16px;
}

#lp-container {
    max-width: 100%;
    overflow-x: hidden;
    /* 横スクロール防止 */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    font-size: 2.8em;
    font-weight: 800;
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
}

h3 {
    font-size: 1.6em;
    font-weight: 700;
}

h4 {
    font-size: 1.3em;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    /* ピンク */
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- ヘッダー --- */
.lp-header {
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    padding: 10px 0;
    position: sticky;
    /* スクロール追従 */
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.lp-header .logo {
    display: flex;
    align-items: center;
}

.lp-header .logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.lp-header .service-name {
    font-family: var(--font-family-heading);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
}

.lp-nav ul {
    display: flex;
    gap: 25px;
}

.lp-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-medium);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lp-nav a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    display: none;
    /* デフォルト非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* --- ヒーローセクション --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    /* 背景装飾 */
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
}

.hero-section::after {
    /* 背景装飾 */
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 45%;
    transform: rotate(30deg);
    opacity: 0.5;
}


.hero-section h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-section h1 .highlight {
    color: var(--accent-color);
    /* 強調色 */
}

.hero-section .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.required-items {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    display: inline-block;
    margin-bottom: 30px;
}

.required-items strong {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.items-flex {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.items-flex i {
    margin-right: 5px;
    color: var(--accent-color);
}

.small-text {
    font-size: 0.9em;
    font-weight: 700;
    margin: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    /* ボタン折り返し */
}

/* --- CTAボタン --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    /* 丸みのあるボタン */
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1.05em;
    text-align: center;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button i {
    margin-left: 8px;
}

.cta-button.primary {
    background-color: var(--accent-color);
    /* イエロー */
    color: var(--heading-color);
}

.cta-button.primary:hover {
    background-color: #f2cf71;
    /* 少し濃いイエロー */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.cta-button.secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.cta-button-form {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-medium);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button-form:hover {
    background-color: #5a8ee6;
    /* 少し濃いブルー */
    text-decoration: none;
}

/* --- 各セクション共通 --- */
.main-content section {
    padding: 60px 0;
}

.main-content section:nth-child(odd) {
    /* セクションごとに背景色を変える */
    background-color: var(--gray-bg);
}

/* --- サービス概要 --- */
.service-pillars {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.pillar-item {
    flex: 1;
    text-align: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pillar-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pillar-item h3 {
    margin-bottom: 10px;
}

/* --- 家庭学習 & カウンセリング --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* レスポンシブなグリッド */
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    /* 内容を縦に積む */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.service-card h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card h5 {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--heading-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 8px;
}

.recommend-list li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.recommend-list i {
    color: var(--secondary-color);
    /* ピンク */
    margin-right: 8px;
    font-size: 0.9em;
}

.counseling-note {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95em;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius-medium);
    border: 1px dashed var(--secondary-color);
}

.counseling-note a {
    font-weight: 500;
}

/* --- 必要なもの --- */
.requirements-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.requirements-section .section-title {
    color: var(--white);
}

.requirements-section .section-title::after {
    background-color: var(--accent-color);
}

.requirements-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    /* 折り返し */
    margin-bottom: 20px;
}

.requirements-content .item {
    text-align: center;
}

.requirements-content .item i {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.requirements-content .or,
.requirements-content .plus {
    font-size: 1.5em;
    font-weight: 700;
}

.requirements-note {
    text-align: center;
    font-size: 1.1em;
    margin-top: 20px;
}

/* --- ご利用の流れ --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    counter-reset: step-counter;
    /* ステップ番号用 */
}

.process-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 20px;
}

.process-steps li:not(:last-child)::after {
    /* ステップ間の矢印 */
    content: '\f061';
    /* Font Awesome Right Arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 40%;
    right: -25px;
    /* 位置調整 */
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--secondary-color);
    opacity: 0.7;
}

.step-number {
    /* CSSで番号を振る場合 */
    /*
    counter-increment: step-counter;
    content: counter(step-counter);
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.2em;
    margin: 0 auto 15px auto;
    */
    /* HTMLに番号があるので上記は不要 */
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.2em;
    margin: 0 auto 15px auto;
}


.step-icon i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.process-steps h4 {
    margin-bottom: 10px;
}

/* --- 料金セクション --- */
.pricing-section {
    background-color: var(--light-bg);
    /* 背景色 */
}

.price-examples {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.price-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    text-align: center;
    min-width: 250px;
}

.pricing-contact {
    text-align: center;
    margin-top: 30px;
}

/* --- お問い合わせセクション --- */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    /* 折り返し */
}

.method-item {
    text-align: center;
    flex-basis: 300px;
    /* 幅の基準 */
}

.method-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.method-item h4 {
    margin-bottom: 10px;
}

.method-item a {
    word-break: break-all;
    /* メールアドレスが長い場合に改行 */
}

.form-note {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

/* --- フッター --- */
.lp-footer {
    background-color: var(--heading-color);
    /* 濃いグレー */
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.lp-footer a {
    color: var(--accent-color);
    /* イエロー */
    font-weight: 500;
}

.lp-footer a:hover {
    color: var(--white);
}

/* --- ページトップへ戻るボタン --- */
.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    /* ピンク */
    color: var(--white);
    width: 45px;
    /* 正方形に近く */
    height: 45px;
    line-height: 45px;
    /* アイコン中央寄せ */
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2em;
    /* アイコンサイズ */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 100;
    display: none;
    /* 初期非表示 (JSで制御) */
}

.page-top:hover {
    background-color: var(--primary-color);
    /* ブルー */
    transform: scale(1.1);
    text-decoration: none;
    color: var(--white);
}


/* --- レスポンシブ --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.5em;
    }

    .lp-nav {
        display: none;
        /* 通常時は非表示 */
        position: absolute;
        top: 100%;
        /* ヘッダーの下に表示 */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .lp-nav.active {
        display: block;
        /* activeクラスで表示 */
    }

    .lp-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .lp-nav li {
        width: 100%;
        text-align: center;
    }

    .lp-nav a {
        display: block;
        padding: 12px;
    }

    .menu-toggle {
        display: block;
        /* ハンバーガー表示 */
    }

    .service-pillars {
        flex-direction: column;
        /* 縦積み */
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps li:not(:last-child)::after {
        content: '\f063';
        /* Down Arrow */
        top: auto;
        bottom: -25px;
        /* 下に配置 */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    .hero-section {
        padding: 60px 0;
    }

    .main-content section {
        padding: 50px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        /* 1カラム */
    }

    .requirements-content {
        gap: 15px;
    }

    .requirements-content .item i {
        font-size: 2.5em;
    }

    .process-steps li {
        padding: 15px 0;
    }

    /* 縦の余白調整 */
    .process-steps li:not(:last-child)::after {
        bottom: -20px;
    }

    .contact-methods {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }

    .container {
        padding: 0 15px;
    }

    .lp-header .logo img {
        height: 35px;
    }

    .lp-header .service-name {
        font-size: 1.1em;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-section .subtitle {
        font-size: 1.1em;
    }

    .items-flex {
        gap: 15px;
        font-size: 1em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .main-content section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .service-card {
        padding: 25px;
    }

    .recommend-list li {
        font-size: 0.95em;
    }

    .requirements-content .item i {
        font-size: 2em;
    }

    .requirements-note {
        font-size: 1em;
    }

    .process-steps li:not(:last-child)::after {
        font-size: 1.2em;
    }

    .page-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1em;
        bottom: 15px;
        right: 15px;
    }
}