/* --- 基本スタイル & 変数定義 --- */
:root {
    --primary-color: #77A6F7;
    /* ソフトブルー */
    --secondary-color: #F7C5CC;
    /* ソフトピンク */
    --accent-color: #F5D98E;
    /* 明るいイエロー */
    --neutral-color: #cccccc;
    /* どちらともいえない: グレー */
    --text-color: #555;
    /* 少し柔らかいテキスト色 */
    --heading-color: #4a4a4a;
    /* 見出しの色 */
    --light-bg: #fdfafd;
    /* ほんのりピンクがかった背景 */
    --white: #ffffff;
    --green: #a5d6a7;
    /* 緑系 (小中高) */
    --blue: #90caf9;
    /* 青系 (大学) */
    --pink: #f48fb1;
    /* ピンク系 (企業) */
    --yellow: #fff59d;
    /* 黄色系 (個人) */
    --success-color: #84fab0;
    /* 緑系 */
    --shadow-light: 0 6px 20px rgba(0, 0, 0, 0.08);
    /* 少し柔らかい影 */
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius-small: 8px;
    --border-radius-medium: 12px;
    --border-radius-large: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* 滑らかなトランジション */
    --font-family-sans: 'Noto Sans JP', sans-serif;
    --font-family-rounded: 'M PLUS Rounded 1c', sans-serif;
}

/* --- グローバルリセット & 基本スタイル --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    color: var(--text-color);
    background-color: var(--white);
    /* 基本背景は白 */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    /* 横スクロール防止 */
}

#container {
    max-width: 100%;
}

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,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

/* --- ヘッダー --- */
.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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

#headernav nav ul {
    display: flex;
    gap: 20px;
}

#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;
}

#headernav nav a:hover,
#headernav nav a.active {
    /* activeクラスはJSで付与想定 */
    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);
}

/* --- ヒーローセクション --- */
.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%;
    opacity: 0.5;
    transform: rotate(30deg);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-section h1 {
    font-family: var(--font-family-rounded);
    font-size: 2.6em;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* --- CTAボタン共通 --- */
.cta-button {
    display: inline-flex;
    /* アイコンとテキストを横並び */
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

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

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

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-color), #ffd56b);
    /* イエロー系 */
    color: var(--heading-color);
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 18px rgba(245, 217, 142, 0.4);
    text-decoration: none;
    color: var(--heading-color);
}

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

.cta-button.secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

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

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

.section-title {
    font-family: var(--font-family-rounded);
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
}

.subsection-title {
    font-family: var(--font-family-rounded);
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

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

/* --- 課題提起セクション --- */
.problem-section {
    background-color: #fcf2f4;
    /* 少し赤みがかった背景 */
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.problem-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.problem-card i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.5em;
}

.section-conclusion {
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--heading-color);
}

.section-conclusion strong {
    color: var(--primary-color);
}

/* --- 差別化要因セクション --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.feature-card .card-icon {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.feature-card p {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- 書籍紹介セクション --- */
.book-feature-section {
    background-color: var(--light-bg);
}

.slide {
    padding: 40px;
    border-radius: var(--border-radius-large);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .slide-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.slide-image {
    max-width: 280px;
    /* 画像の最大幅を少し小さく設定 */
    flex-shrink: 0;
    /* フレックスコンテナ内で画像が縮みすぎないように設定 */
    margin: 0 auto 1.5rem;
    /* 中央揃えと下部のマージン */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-small);
}

@media (min-width: 768px) {
    .slide-image {
        margin: 0 2.5rem 0 0;
        /* PC表示では右側にマージンを設定 */
    }
}

.slide-info {
    text-align: center;
}

@media (min-width: 768px) {
    .slide-info {
        text-align: left;
    }
}

.slide-category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 15px;
}

.slide-title {
    font-family: var(--font-family-rounded);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.slide-author {
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 15px;
}

.slide-description {
    margin-bottom: 25px;
    opacity: 0.9;
}

.slide-price {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 25px;
}

.slide-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .slide-actions {
        justify-content: flex-start;
    }
}

.slide-actions .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slide-actions .btn-primary {
    background-color: #ff9900;
    /* Amazonカラー */
    color: var(--white);
}

.slide-actions .btn-primary:hover {
    background-color: #ffad33;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--white);
}

.slide-actions .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.slide-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--white);
}

/* --- アプリのメリット --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition-smooth);
    border-top: 5px solid var(--secondary-color);
    /* 上部にアクセントライン */
}

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

.benefit-card .card-icon {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.benefit-card p {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- 使い方 --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 アスペクト比 */
    height: 0;
    overflow: hidden;
    max-width: 854px;
    /* YouTubeのデフォルト幅に合わせる */
    margin: 0 auto 10px auto;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color);
    margin-bottom: 40px;
}

.steps-container {
    margin-top: 40px;
}

.steps-list {
    counter-reset: steps-counter;
    position: relative;
    padding-left: 40px;
    /* 線と番号のスペース */
    max-width: 700px;
    margin: 30px auto 0 auto;
}

/* 縦の線 */
.steps-list::before {
    content: '';
    position: absolute;
    left: 15px;
    /* 番号の中心あたり */
    top: 15px;
    bottom: 15px;
    width: 3px;
    background: linear-gradient(var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.steps-list li {
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px;
    /* 番号とテキストの間隔 */
    background-color: var(--white);
    padding: 20px 20px 20px 60px;
    /* 内側パディング調整 */
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}

.steps-list li::before {
    /* ステップ番号 */
    counter-increment: steps-counter;
    content: counter(steps-counter);
    position: absolute;
    left: -18px;
    /* 縦線に重ねる */
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.steps-list li:nth-child(even)::before {
    background-color: var(--secondary-color);
}

.steps-list li strong {
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.steps-list li p {
    margin: 0;
    font-size: 0.95em;
}

/* --- 活用シーン --- */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.use-case-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.use-case-item .icon {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.use-case-item h4 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.use-case-item p {
    font-size: 0.9em;
    margin-bottom: 0;
}

/* --- 導入実績・お客様の声 --- */
.testimonial-content {
    display: grid;
    grid-template-columns: 1fr;
    /* デフォルトは1カラム */
    gap: 40px;
    /* chart-area と voices-area の間隔 */
    margin-top: 40px;
}

@media (min-width: 992px) {

    /* 幅広画面 (PCなど) で2カラムにする */
    .testimonial-content {
        grid-template-columns: 1fr 1fr;
        /* グラフエリアと声エリアを左右に配置 */
        gap: 50px;
        /* PC表示時のカラム間隔を少し広げる */
    }
}

.chart-area .subsection-title,
.voices-area .subsection-title {
    text-align: left;
    /* 左寄せに変更 */
    margin-bottom: 20px;
}

.chart-wrapper {
    margin-bottom: 30px;
}

.chart-wrapper p {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95em;
}

/* --- カスタムグラフスタイル --- */
.custom-chart {
    display: flex;
    height: 30px;
    /* バーの高さ */
    border-radius: 5px;
    overflow: hidden;
    background-color: #eee;
    /* 背景 */
    margin-top: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    /* 内側に影 */
}

.chart-bar {
    height: 100%;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    /* 左寄せにするためコメントアウト */
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    transition: width 0.5s ease-in-out;
    position: relative;
    /* ラベル配置用 */
    overflow: hidden;
    /* はみ出し防止 */
}

.chart-bar.yes {
    background-color: var(--primary-color);
    /* 当てはまる: 青系 */
}

.chart-bar.neutral {
    background-color: var(--neutral-color);
    /* どちらともいえない: グレー */
}

.chart-bar.no {
    background-color: var(--secondary-color);
    /* 当てはまらない: ピンク系 */
}

.chart-bar.full {
    border-radius: 5px;
    /* 100%の場合 */
}

.chart-bar .label {
    padding: 0 10px;
    white-space: nowrap;
    position: absolute;
    /* バー内に配置 */
    left: 10px;
    /* 左寄せ */
    line-height: 30px;
    /* バーの高さに合わせる */
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 幅が狭いバーのラベル表示調整 (例: いいえ) */
.chart-bar.no .label {
    /* 必要に応じて右寄せや色変更 */
    /* right: 10px; */
    /* left: auto; */
    /* color: #555; */
    /* text-shadow: none; */
}

/* 幅が狭いバーのラベル表示調整 (例: どちらともいえない) */
.chart-bar.neutral .label {
    color: #333;
    /* グレー背景なので濃い色に */
    text-shadow: none;
}


/* --- グラフスタイルここまで --- */

.voices-list {
    padding-left: 20px;
}

.voices-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95em;
}

.voices-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color);
}


/* --- 料金プラン --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-plan {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    border-top: 6px solid;
    /* 上部ライン */
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* 各プランの色分け */
.pricing-plan.school {
    border-top-color: var(--green);
}

.pricing-plan.university {
    border-top-color: var(--blue);
}

.pricing-plan.corporate {
    border-top-color: var(--pink);
}

.pricing-plan.individual {
    border-top-color: var(--yellow);
}

.pricing-plan .plan-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.pricing-plan.school .plan-icon {
    color: var(--green);
}

.pricing-plan.university .plan-icon {
    color: var(--blue);
}

.pricing-plan.corporate .plan-icon {
    color: var(--pink);
}

.pricing-plan.individual .plan-icon {
    color: var(--yellow);
}

.pricing-plan h4 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.pricing-plan .plan-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
    /* 説明文で高さを揃える */
    min-height: 2.8em;
    /* 最低限の高さを確保 */
}

.price-options {
    margin-bottom: 20px;
}

.price-options .option {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    /* 縦並び */
    align-items: center;
}

.price-options .duration {
    font-weight: 500;
    font-size: 0.9em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.price-options .price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.price-options .price small {
    font-size: 0.7em;
    font-weight: 400;
}

.stripe-button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stripe-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Stripeボタンの色分け */
.pricing-plan.school .stripe-button {
    background-color: var(--green);
}

.pricing-plan.university .stripe-button {
    background-color: var(--blue);
}

.pricing-plan.corporate .stripe-button {
    background-color: var(--pink);
}

.pricing-plan.individual .stripe-button {
    background-color: var(--yellow);
    color: var(--heading-color);
}

.pricing-plan.school .stripe-button:hover {
    background-color: #81c784;
}

.pricing-plan.university .stripe-button:hover {
    background-color: #64b5f6;
}

.pricing-plan.corporate .stripe-button:hover {
    background-color: #f06292;
}

.pricing-plan.individual .stripe-button:hover {
    background-color: #fff176;
}

.plan-note {
    font-size: 0.85em;
    color: var(--text-color);
    margin-top: 15px;
}

.additional-services {
    margin-top: 40px;
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius-medium);
}

.additional-services .subsection-title {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.additional-services ul {
    padding-left: 20px;
}

.additional-services li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95em;
}

.additional-services li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

/* --- 学習鑑賞ポートフォリオとは --- */
.about-section p {
    margin-bottom: 1.2em;
}

.about-section small {
    font-size: 0.9em;
    color: var(--text-color);
}

.patent-info {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius-medium);
    border-left: 5px solid var(--accent-color);
}

.patent-info p {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}

.patent-info p:last-child {
    margin-bottom: 0;
}

.patent-info i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* --- 開発背景・ご挨拶 --- */
.background-section p {
    margin-bottom: 1.2em;
}

.profile-link {
    margin-top: 30px;
}

.profile-link p {
    font-weight: 500;
    margin-bottom: 10px;
}

.profile-link ul {
    padding-left: 20px;
}

.profile-link li {
    margin-bottom: 8px;
}

.profile-link a i {
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.7;
}

/* --- お問い合わせ --- */
.google-form-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    /* iframeのはみ出し防止 */
    margin-bottom: 25px;
    min-height: 1000px;
    /* 高さを確保 */
}

.contact-info-alt {
    text-align: center;
    font-size: 0.95em;
}

.contact-info-alt a {
    font-weight: 500;
}

/* --- フッターナビ & フッター (共通スタイル) --- */
#footer_navi {
    background-color: var(--light-bg);
    padding: 50px 0;
    margin-top: 60px;
}

.daisosha_service h3 {
    font-family: var(--font-family-rounded);
    font-size: 1.8em;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

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

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

.cta-button-service {
    display: block;
    padding: 18px 25px;
    border-radius: var(--border-radius-medium);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.cta-button-service:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--white);
}

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

.cta-button-service .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cta-button-service:hover .arrow {
    transform: translateY(-50%) translateX(5px);
    opacity: 1;
}

/* 各ボタンの色 */
.cta-button-service.yamamoto {
    background: linear-gradient(135deg, #6a7eff, #8a9fff);
}

.cta-button-service.gakushu {
    background: linear-gradient(135deg, #ff80ab, #ff9fbc);
}

.cta-button-service.takugaku {
    background: linear-gradient(135deg, #4db6ac, #6cc6bb);
}

.cta-button-service.fortunetelling {
    background: linear-gradient(135deg, #ffca28, #ffdd60);
    color: var(--heading-color);
}

.cta-button-service.ai-consulting {
    background: linear-gradient(135deg, #78909c, #90a4ae);
}

.cta-button-service.media {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
}

#footer_wrapper {
    background-color: var(--heading-color);
    color: #ccc;
    padding: 30px 0;
}

#footer {
    text-align: center;
}

#footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 25px;
}

#footer a {
    color: #eee;
    font-weight: 500;
}

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

#footer .copyright {
    width: 100%;
    font-size: 0.85em;
    margin-top: 15px;
    opacity: 0.8;
}

#footer .copyright a {
    font-weight: normal;
}

#footer img {
    /* W3C Validator */
    display: inline-block;
    vertical-align: middle;
}

/* --- ページトップへ戻るボタン --- */
.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 15px;
    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;
}

/* --- レスポンシブ --- */
@media (max-width: 992px) {
    #headernav nav ul {
        gap: 10px;
    }

    #headernav nav a {
        padding: 8px 10px;
        font-size: 0.95em;
    }
}

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

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

    .site-header {
        padding: 5px 0;
        position: static;
        /* スマホでは追従しない */
    }

    #headernav {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

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

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

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

    #headernav nav ul {
        flex-direction: column;
        gap: 0;
    }

    #headernav nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    #headernav nav li:last-child {
        border-bottom: none;
    }

    #headernav nav a {
        display: block;
        padding: 15px;
        border-radius: 0;
    }

    #headernav nav a:hover,
    #headernav nav a.active {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }

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

    .hero-section h1 {
        font-size: 2em;
    }

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

    .hero-buttons {
        gap: 15px;
    }

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

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

    .section-title {
        font-size: 1.8em;
    }

    .subsection-title {
        font-size: 1.4em;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .benefit-card {
        padding: 25px;
    }

    .steps-list {
        padding-left: 30px;
    }

    .steps-list::before {
        left: 10px;
    }

    .steps-list li {
        padding: 15px 15px 15px 50px;
    }

    .steps-list li::before {
        left: -18px;
        width: 32px;
        height: 32px;
        font-size: 1em;
    }

    .use-cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .testimonial-content {
        grid-template-columns: 1fr;
        /* スマホ・タブレットでは常に1カラム */
    }

    /* グラフのレスポンシブ調整 */
    .custom-chart {
        height: 25px;
        /* スマホでは少し高さを低く */
    }

    .chart-bar .label {
        line-height: 25px;
        font-size: 0.85em;
    }


    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pricing-plan {
        padding: 25px;
    }

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

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

    #footer li {
        font-size: 0.9em;
    }

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

    .page-top {
        padding: 10px 12px;
        font-size: 1em;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .subsection-title {
        font-size: 1.3em;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    /* グラフのレスポンシブ調整 */
    .custom-chart {
        height: 20px;
    }

    .chart-bar .label {
        line-height: 20px;
        font-size: 0.8em;
        left: 5px;
        padding: 0 5px;
    }

    .price-options .price {
        font-size: 1.2em;
    }

    .stripe-button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}