/* --- 基本スタイル & 変数定義 --- */
:root {
    /* LPのカラースキームを基本とする */
    --primary-color: #3A7CA5;
    /* 知的で落ち着いた青 (LPのaccent-colorをprimaryに) */
    --secondary-color: #F7C5CC;
    /* ソフトピンク (共通フッターなどで使用) */
    --accent-color: #8A7E9A;
    /* アクセントカラー (共通フッターなどで使用) */
    --cta-color: #3A7CA5;
    /* CTAボタン用カラー (LPのprimaryに合わせる) */
    --cta-hover-color: #2c5d8a;
    /* CTAボタンホバー */
    --text-color: #333333;
    /* LPのテキスト色 */
    --heading-color: #222222;
    /* LPの見出し色 */
    --light-bg: #F5F5F5;
    /* LPのsub-bg-color */
    --white: #ffffff;
    --border-color: #eee;
    /* 境界線 */

    /* 共通スタイルから流用 */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
    --border-radius-small: 5px;
    /* LPのborder-radius-base */
    --border-radius-medium: 12px;
    --border-radius-large: 20px;
    --transition-smooth: all 0.3s ease;

    --font-family-sans: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    /* LPのfont-family-base */
    --font-family-rounded: 'M PLUS Rounded 1c', sans-serif;
    /* 見出し用に共通から流用 */

    --font-size-base: 16px;
    --line-height-base: 1.8;
    --content-max-width: 800px;
    /* LPのコンテンツ幅 */
    --container-max-width: 1100px;
    /* 共通コンテナ幅 */
    --container-narrow-max-width: 960px;
    /* 共通狭いコンテナ幅 */
}

/* --- グローバルスタイル --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--white);
    /* ボディ背景は白 */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* 横スクロール防止 */
}

#container {
    /* サイト全体のラッパー */
    max-width: 100%;
}

.container {
    /* 共通: 幅広コンテナ */
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    /* 共通: 少し狭いコンテナ */
    max-width: var(--container-narrow-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* LP用コンテンツコンテナ (必要に応じて使い分ける) */
.section-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-rounded);
    /* 見出しはRoundedフォント */
    color: var(--heading-color);
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.8em;
    font-weight: 700;
}

/* LP固有の見出しサイズ調整 */
h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    /* LPのaccent-colorを適用 */
}

h4 {
    font-size: 1.2em;
}

p {
    margin-bottom: 1.5em;
}

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

li {
    margin-bottom: 0.8em;
}

ul li::marker {
    color: var(--primary-color);
}

strong {
    font-weight: 700;
    color: var(--heading-color);
}

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

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

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

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

section {
    padding: 60px 0;
    /* 共通セクションパディング */
    background-color: var(--white);
    /* デフォルト背景 */
    margin-bottom: 1px;
    /* セクション間に細い線 */
}

section:nth-child(odd) {
    /* 奇数番目をライトグレーに (共通スタイル) */
    /* LPでは交互背景を無効化する場合はコメントアウト */
    /* background-color: var(--light-bg); */
}

/* LP用に交互背景を適用する場合 */
section.lp-section:nth-child(even) {
    background-color: var(--light-bg);
}


/* --- 共通ヘッダー --- */
.site-header {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

#headernav {
    /* .container を適用 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#headernav .logo img {
    height: 45px;
    width: auto;
}

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

#headernav nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--border-radius-medium);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95em;
    text-decoration: none;
}

#headernav nav a:hover,
#headernav nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* ハンバーガーメニューアイコン */
#menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
}

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

#menu-icon.active span.first {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#menu-icon.active span.second {
    opacity: 0;
}

#menu-icon.active span.third {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- ページヘッダー (LP用) --- */
.page-header {
    background-color: var(--primary-color);
    /* LPのアクセントカラー */
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 0;
    /* 下のセクションとの間隔はsectionのpaddingで調整 */
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.page-header h1 i {
    color: var(--white);
    /* アイコン色も白に */
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
    /* テキスト色も白に */
}

/* --- メインコンテンツエリア --- */
.main-content {
    /* 必要に応じてパディングなど設定 */
}

/* --- LP固有セクション --- */

/* キャッチコピー */
.lp-catchphrase {
    background-color: var(--light-bg);
    /* 背景色 */
    padding: 50px 0;
    text-align: center;
}

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

.lp-catchphrase h3 {
    font-size: 1.3em;
    color: var(--text-color);
    /* サブキャッチの色調整 */
    font-weight: 500;
    margin-bottom: 1.5em;
}

.lp-catchphrase .book-title {
    font-size: 1.5em;
    margin-top: 1em;
    font-weight: 700;
    color: var(--primary-color);
}

/* 問題提起 */
.problem {
    /* 必要に応じて背景色など設定 */
}

.problem ul {
    list-style: none;
    padding-left: 0;
    max-width: 650px;
    /* 幅を少し制限 */
    margin: 20px auto 0;
}

.problem li {
    padding-left: 2.5em;
    /* アイコンスペース確保 */
    position: relative;
    margin-bottom: 1.2em;
    font-size: 1.05em;
    /* 少し大きく */
}

.problem li::before {
    content: "❓";
    /* 絵文字 */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.5em;
    /* 絵文字サイズ */
}

/* 解決策・書籍紹介 */
.solution {
    text-align: center;
}

.book-cover {
    max-width: 250px;
    /* 表紙画像の最大幅 */
    height: auto;
    display: block;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-small);
}

/* 特徴 */
.features ol {
    list-style: none;
    padding-left: 0;
    counter-reset: features-counter;
    /* 番号付け用 */
}

.features li {
    counter-increment: features-counter;
    margin-bottom: 1.5em;
    padding-left: 2.5em;
    position: relative;
}

.features li::before {
    content: counter(features-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8em;
    height: 1.8em;
    line-height: 1.8em;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9em;
}

.features li strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 0.3em;
}

/* ベネフィット */
.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    margin-bottom: 1.2em;
    padding-left: 2.5em;
    /* アイコンスペース */
    position: relative;
    font-size: 1.05em;
}

.benefits-list li i.fas {
    position: absolute;
    left: 0;
    top: 0.2em;
    font-size: 1.4em;
    color: var(--primary-color);
    margin-right: 0;
    /* 右マージン削除 */
    margin-left: 0;
    /* 左マージン削除 */
}

/* 目次 */
.toc ul {
    list-style: none;
    padding-left: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 20px;
    background-color: var(--white);
}

.toc li {
    margin-bottom: 0.8em;
    padding-left: 1em;
    position: relative;
}

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

.toc strong {
    /* 章番号など */
    color: var(--primary-color);
    margin-right: 0.5em;
    font-weight: 700;
}

/* ターゲット読者 */
.target-list {
    list-style: none;
    padding-left: 0;
}

.target-list li {
    margin-bottom: 1.2em;
    padding-left: 2.5em;
    position: relative;
    font-size: 1.05em;
}

.target-list li i.fas {
    position: absolute;
    left: 0;
    top: 0.2em;
    font-size: 1.4em;
    color: var(--primary-color);
    margin-right: 0;
    margin-left: 0;
}

/* 著者紹介 */
.author {
    /* 必要に応じてスタイル追加 */
}

/* CTA (Call to Action) */
.cta {
    background-color: var(--light-bg);
    text-align: center;
}

.cta h2 {
    color: var(--primary-color);
}

.cta-button-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    /* スマホで縦並び */
    align-items: center;
    gap: 15px;
}

.cta-button {
    display: inline-flex;
    /* アイコンとテキストを中央揃え */
    align-items: center;
    justify-content: center;
    background-color: var(--cta-color);
    color: #FFFFFF;
    padding: 18px 40px;
    border-radius: var(--border-radius-large);
    /* 少し丸みを強く */
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(58, 124, 165, 0.3);
    width: auto;
    /* 幅自動 */
    max-width: 350px;
    /* 最大幅設定 */
}

.cta-button:hover {
    background-color: var(--cta-hover-color);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(58, 124, 165, 0.4);
}

.cta-button i {
    margin-right: 10px;
    color: #FFFFFF;
    font-size: 1.1em;
}

/* 他の販売サイト用ボタン (例: 楽天) */
.cta-button.rakuten {
    background-color: #bf0000;
    /* 楽天レッド */
    box-shadow: 0 4px 10px rgba(191, 0, 0, 0.3);
}

.cta-button.rakuten:hover {
    background-color: #a60000;
    box-shadow: 0 6px 15px rgba(191, 0, 0, 0.4);
}

/* --- AdSense広告セクション --- */
.adsense-section {
    padding: 30px 0;
    /* 広告エリアの上下余白 */
    background-color: var(--white);
    /* 背景を白に */
    text-align: center;
}

.adsense-section .container-narrow {
    /* 必要に応じて幅調整 */
}

/* --- 共通フッターナビゲーション --- */
#footer_navi {
    background-color: var(--light-bg);
    padding: 50px 0;
}

#footer_navi .container {
    /* .container を適用 */
}

.daisosha_service {
    max-width: var(--container-narrow-max-width);
    /* .container-narrow を適用 */
    margin: 0 auto;
}

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

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

.cta-button-service {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: var(--border-radius-medium);
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    color: var(--heading-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    text-align: center;
}

.cta-button-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    background-color: #f8f8f8;
}

.cta-button-service .button-icon {
    margin-right: 8px;
    font-size: 1.1em;
    line-height: 1;
}

.cta-button-service .arrow {
    margin-left: auto;
    opacity: 0.6;
    font-size: 0.9em;
}

/* 各ボタンの左線色 */
.cta-button-service.yamamoto {
    border-left: 4px solid var(--secondary-color);
}

.cta-button-service.gakushu {
    border-left: 4px solid var(--primary-color);
}

.cta-button-service.takugaku {
    border-left: 4px solid #c0c0c0;
}

.cta-button-service.fortunetelling {
    border-left: 4px solid var(--accent-color);
}

.cta-button-service.ai-consulting {
    border-left: 4px solid #9ad9ea;
}

.cta-button-service.media {
    border-left: 4px solid #ff9966;
}

/* --- 共通フッター --- */
#footer_wrapper {
    background-color: var(--heading-color);
    color: #ccc;
    padding: 30px 0;
}

#footer {
    /* .container を適用 */
}

#footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer a {
    color: #eee;
    font-weight: 500;
    font-size: 0.9em;
    text-decoration: none;
}

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

#footer .copyright {
    width: 100%;
    font-size: 0.85em;
    margin-top: 15px;
    opacity: 0.8;
    text-align: center;
    color: #ccc;
    /* copyrightのテキスト色 */
}

#footer .copyright a {
    font-weight: normal;
    color: #eee;
    /* copyright内のリンク色 */
}

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

#footer img {
    /* W3Cバリデーション画像 */
    display: inline-block;
    vertical-align: middle;
}

/* --- ページトップへ戻るボタン --- */
.page-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--secondary-color);
    /* 共通スタイルに合わせる */
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3em;
    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で表示制御 */
    text-align: center;
    line-height: 50px;
    /* アイコン中央揃え */
}

.page-top:hover {
    background-color: var(--primary-color);
    /* ホバー色をLPのprimaryに */
    transform: scale(1.1);
    text-decoration: none;
    color: var(--white);
}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 992px) {
    .page-header h1 {
        font-size: 2.2em;
    }

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

@media screen and (max-width: 768px) {
    :root {
        --font-size-base: 15px;
    }

    h1 {
        font-size: 1.9em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }

    section {
        padding: 40px 0;
    }

    /* 共通ヘッダーレスポンシブ */
    #headernav {
        padding: 15px;
    }

    #headernav .logo {
        flex-basis: 80%;
    }

    #menu-icon {
        display: block;
        flex-basis: 15%;
        text-align: right;
    }

    #headernav nav {
        display: none;
        width: 100%;
        margin-top: 15px;
        background-color: white;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
    }

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

    #headernav nav li {
        width: 100%;
        text-align: center;
    }

    #headernav nav a {
        display: block;
        padding: 12px;
        width: 90%;
        margin: 2px auto;
    }

    /* LP固有部分レスポンシブ */
    .lp-catchphrase h1 {
        font-size: 2em;
    }

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

    .cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
        width: 90%;
        max-width: 300px;
        box-sizing: border-box;
    }

    /* 共通フッターレスポンシブ */
    .daisosha_service h3 {
        font-size: 1.3em;
    }

    .service-button-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .cta-button-service {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    #footer ul {
        gap: 10px 20px;
    }

    #footer a {
        font-size: 0.85em;
    }

    #footer .copyright {
        font-size: 0.8em;
    }

    .page-top {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.1em;
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --line-height-base: 1.7;
    }

    h1 {
        font-size: 1.7em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }

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

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

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

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

    .cta-button {
        width: 100%;
        padding: 14px 25px;
        font-size: 1em;
    }

    .book-cover {
        max-width: 180px;
    }

    .service-button-list {
        grid-template-columns: 1fr;
        /* スマホでは1列 */
    }
}