/* --- 基本スタイル & 変数定義 --- */
:root {
    --primary-color: #4CAF50;
    /* 道徳科のイメージカラー（緑系） */
    --secondary-color: #FFC107;
    /* アクセントカラー（黄色系） */
    --accent-color: #8BC34A;
    /* 明るい緑 */
    --text-color: #555;
    --heading-color: #333;
    --light-bg: #f7fff7;
    /* ごく薄い緑背景 */
    --white: #ffffff;
    --success-color: #4CAF50;
    /* 緑系 */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius-medium: 8px;
    --border-radius-large: 12px;
    --transition-smooth: all 0.3s ease-in-out;
    --font-family-sans: 'Noto Sans JP', sans-serif;
    --font-family-rounded: 'M PLUS Rounded 1c', sans-serif;
}

/* --- グローバルスタイル --- */
body {
    font-family: var(--font-family-sans);
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 16px;
}

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

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

.container-narrow {
    max-width: 860px;
    /* LPコンテンツ幅 */
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-family-rounded);
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.4;
}

h1 {
    font-size: 2.4em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

h4 {
    font-size: 1.3em;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 700;
}

section {
    padding: 60px 0;
}

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

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

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

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

ul,
ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

li {
    margin-bottom: 0.8em;
}

strong {
    font-weight: 700;
    color: var(--primary-color);
    /* 強調色 */
}

/* --- サイト共通ヘッダー・フッター (既存スタイルを流用) --- */
.site-header {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

#headernav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

#headernav nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

#headernav nav li {
    margin-left: 25px;
}

#headernav nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

#headernav nav a:hover::after,
#headernav nav a.active::after {
    width: 100%;
}

#menu-icon {
    /* ハンバーガーメニュー */
    display: none;
    cursor: pointer;
}

#menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- ページヘッダー --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .icon-blue {
    /* アイコンの色調整 */
    color: var(--white);
    margin-right: 15px;
    font-size: 1em;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

/* --- LP本文スタイル --- */
.lp-catchphrase {
    text-align: center;
    padding: 40px 0 20px;
    /* 上下のパディング調整 */
    background-color: var(--white);
    /* 背景色を白に */
}

.lp-catchphrase h1 {
    font-size: 2.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.lp-catchphrase h3 {
    font-size: 1.4em;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0;
}

.problem-section ul {
    list-style: none;
    padding-left: 0;
}

.problem-section li {
    background-color: #fff3f3;
    /* 薄い赤系背景 */
    border-left: 5px solid #f44336;
    /* 赤系ボーダー */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-medium);
    font-weight: 500;
}

.solution-section .book-cover {
    max-width: 300px;
    /* 表紙サイズ調整 */
    margin: 30px auto;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}

.solution-section .book-title {
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    color: var(--heading-color);
}

.features-section ol {
    list-style: none;
    padding-left: 0;
    counter-reset: feature-counter;
}

.features-section ol li {
    counter-increment: feature-counter;
    margin-bottom: 25px;
    padding-left: 40px;
    position: relative;
}

.features-section ol li::before {
    content: counter(feature-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.features-section h4 {
    margin-bottom: 8px;
    font-size: 1.2em;
}

.merit-group {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-large);
    margin-bottom: 25px;
    box-shadow: var(--shadow-light);
}

.merit-group h4 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.25em;
}

.merit-group h4 i {
    margin-right: 10px;
    font-size: 1.3em;
}

.icon-pink {
    color: #E91E63;
}

.icon-blue {
    color: #2196F3;
}

.icon-green {
    color: var(--primary-color);
}

.merit-group ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 0;
}

/* アプリリンク強調表示 (既存スタイル流用) */
.app-link-highlight {
    background-color: #e9f5ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 1.5em;
    font-size: 0.95em;
    line-height: 1.6;
}

.app-link-highlight i {
    color: #007bff;
    margin-right: 8px;
}

.app-link-highlight a {
    font-weight: 500;
    word-break: break-all;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.benefits-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
    /* 黄色系アイコン */
    font-size: 1.3em;
}

.toc-section .toc-details {
    background-color: var(--white);
    padding: 25px 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--accent-color);
}

.toc-section .toc-details h4 {
    font-size: 1.15em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.toc-section .toc-details h4:first-child {
    margin-top: 0;
}

.toc-section .toc-details ul {
    list-style: none;
    padding-left: 1em;
    margin-bottom: 1em;
}

.toc-section .toc-details li {
    font-size: 0.95em;
    margin-bottom: 0.4em;
    position: relative;
    padding-left: 15px;
}

.toc-section .toc-details li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}


.target-list {
    list-style: none;
    padding-left: 0;
}

.target-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 18px;
    font-size: 1em;
}

.target-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
    font-size: 1.3em;
}

.author-section p {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}

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

.cta-button-wrapper {
    margin: 30px 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    /* 黄色系グラデ */
    color: var(--heading-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15em;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.5);
    text-decoration: none;
    color: var(--heading-color);
}

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

.book-info-footer {
    margin-top: 30px;
    font-size: 0.9em;
    color: var(--text-color);
}

.book-info-footer p {
    margin-bottom: 5px;
}

.book-info-footer a {
    word-break: break-all;
}

/* --- AdSense --- */
.adsense-section {
    padding: 30px 0;
    background-color: var(--white);
    /* 広告エリアの背景を白に */
}

/* --- フッターナビ & フッター (既存スタイル流用) --- */
#footer_navi {
    background-color: #f8f8f8;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.daisosha_service h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
    color: var(--heading-color);
}

.service-button-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-button-list li {
    margin: 0;
}

.cta-button-service {
    display: block;
    padding: 15px 20px;
    border-radius: var(--border-radius-medium);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid #eee;
    text-align: center;
}

.cta-button-service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    border-color: var(--primary-color);
}

.cta-button-service .button-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.cta-button-service .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button-service:hover .arrow {
    transform: translateX(4px);
}

/* 個別ボタン色 (例) */
.cta-button-service.yamamoto {
    border-left: 5px solid #64b5f6;
}

.cta-button-service.gakushu {
    border-left: 5px solid #81c784;
}

.cta-button-service.takugaku {
    border-left: 5px solid #ffb74d;
}

.cta-button-service.fortunetelling {
    border-left: 5px solid #f06292;
}

.cta-button-service.ai-consulting {
    border-left: 5px solid #9575cd;
}

.cta-button-service.media {
    border-left: 5px solid #78909c;
}


#footer_wrapper {
    background-color: #333;
    color: #ccc;
    padding: 30px 0;
    font-size: 0.9em;
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

#footer li {
    display: inline-block;
    margin: 0 10px;
}

#footer a {
    color: #eee;
}

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

#footer .copyright {
    display: block;
    margin-top: 15px;
    font-size: 0.85em;
}

/* --- ページトップボタン (既存スタイル流用) --- */
.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    z-index: 99;
}

.page-top:hover {
    background-color: var(--accent-color);
    color: var(--heading-color);
    transform: scale(1.1);
}

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

    h2 {
        font-size: 1.7em;
    }

    h3 {
        font-size: 1.4em;
    }

    h4 {
        font-size: 1.15em;
    }

    section {
        padding: 40px 0;
    }

    .container-narrow {
        padding: 0 15px;
    }

    #headernav nav {
        display: none;
        /* 初期状態は非表示 */
        position: absolute;
        top: 60px;
        /* ヘッダーの高さに合わせる */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    #headernav nav ul {
        flex-direction: column;
        align-items: center;
    }

    #headernav nav li {
        margin: 10px 0;
    }

    #menu-icon {
        display: block;
        /* スマホで表示 */
    }

    /* ハンバーガーメニューアクティブ時 (JSで制御) */
    #menu-icon.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    #menu-icon.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .page-header h1 {
        font-size: 2em;
    }

    .page-header p {
        font-size: 1em;
    }

    .lp-catchphrase h1 {
        font-size: 2.2em;
    }

    .lp-catchphrase h3 {
        font-size: 1.2em;
    }

    .solution-section .book-cover {
        max-width: 250px;
    }

    .service-button-list {
        grid-template-columns: 1fr;
    }

}

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

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    h4 {
        font-size: 1.1em;
    }

    .container,
    .container-narrow {
        padding: 0 10px;
    }

    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 1.8em;
    }

    .lp-catchphrase h1 {
        font-size: 1.9em;
    }

    .lp-catchphrase h3 {
        font-size: 1.1em;
    }

    .problem-section li {
        padding: 12px 15px;
    }

    .solution-section .book-cover {
        max-width: 200px;
    }

    .benefits-list li {
        font-size: 1em;
        padding-left: 30px;
    }

    .benefits-list li i {
        top: 4px;
        font-size: 1.2em;
    }

    .target-list li {
        font-size: 0.95em;
        padding-left: 30px;
    }

    .target-list li i {
        top: 4px;
        font-size: 1.2em;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1.05em;
    }

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