/* --- 全体の設定 --- */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Desktop Phone Link (Default) */
.phone-link {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

/* フォント設定（通常） */
body {
    font-family: "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

/* フォント設定（太字部分・見出し） */
strong,
b,
h1,
h2,
h3,
h4,
h5,
h6,
.text-bold,
dt,
th,
.button,
.cta-button,
.submit-button,
.check-list strong,
.ng-list strong,
.framework-label {
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    /* 英数字の見出しにPoppinsを優先 */
    font-weight: 700;
}

/* --- レイアウト構造 --- */
.simple-header,
.simple-footer {
    padding: 1em 2em;
    background: linear-gradient(to right, #fff, #f8fbff);
    /* Subtle gradient */
    border-bottom: 1px solid #eee;
}

.simple-footer {
    border-top: 1px solid #eee;
    border-bottom: none;
    padding: 2em;
}

.header-container,
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.header-logo img,
.footer-logo {
    height: 30px;
    display: block;
}

.footer-logo {
    margin: 0 auto;
}

.page-container {
    max-width: 1164px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 3em;
    padding: 3em 2em;
}

main {
    flex: 1;
    min-width: 0;
}

/* --- サイドバー --- */
.sidebar-nav {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 2em;
}

.sidebar-nav-inner {
    background-color: #fff;
    /* White background */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px solid #f0f0f0;
}

.sidebar-nav h2 {
    margin-top: 0;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 1em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5em;
}

.sidebar-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.sidebar-nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.9em;
    transition: color 0.2s;
}

.sidebar-nav a:hover {
    text-decoration: underline;
    color: #205EA4;
}

/* Active link state (applied by JS on scroll) */
.sidebar-nav li.active a {
    color: #1a3b5d;
    font-weight: 700;
    border-left: 3px solid #3498db;
    padding-left: 10px;
    margin-left: -13px;
}

.sidebar-cta {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #ddd;
    text-align: center;
}

.sidebar-cta h4 {
    margin: 0 0 0.5em 0;
    font-size: 1em;
}

.sidebar-cta p {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 1em;
}

.sidebar-cta .cta-button {
    display: block;
    width: 100%;
    background-color: #205EA4;
    color: #fff;
    padding: 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    box-sizing: border-box;
    transition: opacity 0.3s;
}

/* ホバー時に文字色が消えないように指定 */
.sidebar-cta .cta-button:hover {
    opacity: 0.8;
    color: #fff;
}


/* --- TYPOGRAPHY & 装飾 --- */
main h1 {
    font-size: 2.4em;
    line-height: 1.4;
    margin-bottom: 1em;
    color: #1a3b5d;
    /* Deep Navy */
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
}

.lead-text {
    font-size: 1.16em;
    /* Increased size */
    line-height: 2;
    /* Increased line-height */
    color: #444;
    margin-bottom: 2.5em;
}

/* H2デザイン：下線 */
.content-section h2 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 1em;
    color: #0f2d52;
    /* Darker Navy */
    padding-bottom: 0.5em;
    border-bottom: 3px solid #3498db;
    /* Bright Blue Accent */
    line-height: 1.3;
}

.h2-subcopy {
    font-size: 1.1em;
    color: #1a3b5d;
    margin-top: 0;
    margin-bottom: 2em;
}

.content-section h3 {
    font-size: 1.5em;
    margin-top: 2em;
    /* Further increased for better rhythm */
    margin-bottom: 1.2em;
    color: #1a3b5d;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.marker-yellow {
    background: linear-gradient(transparent 60%, #fff9c4 60%);
    /* Softer yellow */
    padding: 0 4px;
    border-radius: 4px;
}

.text-red {
    color: #c0392b;
}

/* --- コンテンツセクション --- */
.content-section {
    padding: 2em 0;
}

.content-section:last-child {
    border-bottom: none;
}

/* 背景色（alt-bg）削除 */
.alt-bg {
    background-color: transparent;
    margin: 0;
    padding: 4em 0;
}

/* --- 警告・注目ボックス --- */
.alert-box {
    background: linear-gradient(to right, #fff8e1, #fffef5);
    /* Subtle gradient */
    border: 2px solid #f39c12;
    border-left: 5px solid #f39c12;
    /* Accent border */
    padding: 25px;
    margin: 35px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.1);
    /* Subtle glow */
}

.alert-icon {
    font-size: 2.5rem;
    color: #f39c12;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content h4 {
    margin-top: 0;
    color: #d35400;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.alert-content p {
    margin: 0;
    font-size: 1em;
}

/* --- カードグリッド（縦並び） --- */
.benefit-card-grid,
.tips-grid,
.solution-card-grid,
.strategy-card-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 2em;
}

.benefit-card,
.tip-card,
.solution-card,
.strategy-card {
    background-color: #fff;
    border: none;
    /* Remove border */
    border-radius: 12px;
    /* More rounded */
    padding: 2.5em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.benefit-card:hover,
.tip-card:hover,
.solution-card:hover,
.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.card-icon-large {
    font-size: 2rem;
    color: #3498db;
    /* Bright Blue Accent */
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.card-header-flex h4 {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.4;
    color: #333;
}

/* --- リスト（Flexbox + アイコン位置調整） --- */
.check-list,
.circle-list,
.ng-list,
.framework-list {
    list-style: none;
    padding: 0;
    margin: 1.8em 0 0 1.8em;
}

.check-list li,
.ng-list li {
    position: relative;
    padding-left: 1.8em;
    /* Stack title and description vertically */
}

/* --- New Utility Classes --- */
.definition-box {
    border: 2px solid #e1e4e8;
    padding: 1.5em;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 1.5em 0;
}

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

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

/* --------------------------- */

.check-list li,
.ng-list li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 1em;
    /* Increased from 1.5em for better separation */
    display: flex;
    flex-direction: column;
    /* Stack title and description vertically */
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #27ae60;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    text-shadow: 0 1px 2px rgba(39, 174, 96, 0.3);
}

.circle-list li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
}

.circle-list li::before {
    content: '\f111';
    /* Circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    /* Regular (Hollow) */
    color: #27ae60;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    text-shadow: 0 1px 2px rgba(39, 174, 96, 0.3);
}

.circle-list li strong {
    display: block;
    margin-bottom: 0.3em;
    color: #1a3b5d;
    font-size: 1.05em;
    line-height: 1.4;
}

.ng-list li::before {
    content: '\f00d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #e74c3c;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.3);
}

.check-list li strong,
.ng-list li strong {
    display: block;
    margin-bottom: 0.3em;
    color: #1a3b5d;
    font-size: 1.05em;
    line-height: 1.4;
}

.list-desc {
    display: block;
    color: #555;
    line-height: 1.8;
}

/* --- 【修正】フレームワークリスト（縦積みレイアウト） --- */
.framework-list li {
    display: flex;
    flex-direction: column;
    /* Stack label and content vertically */
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5em;
    padding-top: 0.5em;
    margin-bottom: 1em;
}

.framework-list li:last-child {
    border-bottom: none;
}

.framework-label {
    display: block;
    color: #205EA4;
    border-left: 4px solid #205EA4;
    padding-left: 10px;
    margin-bottom: 0.5em;
    font-size: 1.1em;
    line-height: 1.4;
}

.framework-content {
    padding-left: 14px;
    font-size: 1em;
    line-height: 1.8;
}

.framework-content small {
    display: block;
    margin-top: 0.5em;
    color: #666;
    font-size: 0.9em;
}

/* --- 比較表（自動幅） --- */
.comparison-box {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    display: block;
    /* Scroll on narrow screens */
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    /* Ensure table doesn't get too cramped */
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    /* Clip corners */
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background-color: #f4f4f4;
    color: #555;
    white-space: nowrap;
}

.comparison-table .highlight-col {
    background-color: #fffbea;
    border: 2px solid #e6b422;
    position: relative;
}

/* --- コラムボックス --- */
.column-box {
    background: linear-gradient(to right, #f9f9f9, #fefefe);
    /* Subtle gradient */
    border: 1px solid #eee;
    border-left: 5px solid;
    border-image: linear-gradient(to bottom, #1a3b5d, #3498db) 1;
    /* Gradient left border */
    padding: 25px;
    margin: 35px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.column-box h4 {
    margin-top: 0;
    color: #1a3b5d;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* --- 5ステップ図解 --- */
.step-flow-container {
    position: relative;
    padding: 2em 0;
}

.step-flow-container::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 25px;
    width: 4px;
    background-color: #205EA4;
    opacity: 0.2;
    transform: translateX(-50%);
}

.step-flow-container ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-flow-container li {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2.5em;
}

.step-flow-container li:last-child {
    margin-bottom: 0;
}

.step-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: #205EA4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 0 5px #fff;
    font-size: 1.2em;
}

.step-content {
    margin-left: 25px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    flex-grow: 1;
    border: 1px solid #e1e4e8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-content h4 {
    margin: 0 0 0.8em 0;
    font-size: 1.2em;
    color: #19467A;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
}

.step-content p {
    margin: 0 0 1em 0;
    font-size: 0.95em;
}

.step-detail {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #555;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

/* --- 7つのコツ図解 --- */
.tip-card {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #eee;
}

.tip-number {
    font-size: 2.5em;
    color: #205EA4;
    opacity: 0.2;
    margin-right: 0.8em;
    line-height: 1;
    flex-shrink: 0;
    font-family: "Arial", sans-serif;
}

.tip-content h4 {
    font-size: 1.1em;
    margin: 0 0 0.5em 0;
    font-weight: bold;
}

.tip-content p {
    font-size: 0.95em;
    margin: 0;
}

/* --- ケーススタディ --- */
.case-study-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 2em;
}

.case-study-main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.case-study-sidebar {
    background: #fff5f5;
    padding: 30px;
    border-radius: 8px;
    border-left: 6px solid #c0392b;
}

.study-block {
    margin-bottom: 2em;
}

.study-block h4 {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.1em;
    margin-bottom: 0.8em;
}

/* 担当者プロフィール */
.client-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Increased gap for better balance with larger image */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.client-photo {
    width: 80px;
    /* Increased from 60px */
    height: 80px;
    /* Increased from 60px */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-company {
    font-size: 0.9em;
    color: #666;
}

.client-name {
    font-weight: bold;
    font-size: 1.1em;
}


/* --- コンテキストCTA（センタリング） --- */
.cta-block-context {
    background-color: #eef4fa;
    border: 2px solid #205EA4;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-block-context h3 {
    color: #333;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    border: none;
    padding: 0;
    width: 100%;
    text-align: center;
    /* 見出しセンタリング */
}

.cta-block-context p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1em;
}

.cta-button-context {
    display: inline-block;
    background-color: #205EA4;
    color: #fff;
    padding: 15px 50px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(32, 94, 164, 0.2);
}

.cta-button-context:hover {
    background-color: #19467A;
    transform: translateY(-2px);
}

.notification-hub {
    margin-top: 50px;
    /* Increased spacing */
    margin-bottom: 60px;
    /* Increased spacing */
    padding: 35px;
    background-color: #fafbfc;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: left;
}

.notification-hub p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #333;
}

.notification-hub-buttons {
    display: flex;
    justify-content: center;
    /* 中央寄せ */
    gap: 15px;
    flex-wrap: wrap;
}

.notification-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    /* 幅を均等に */
    min-width: 180px;
    /* 最小幅 */
    max-width: 250px;
    /* 最大幅 */
}

.notification-button:hover {
    background-color: #eef4fa;
    /* More visible hover */
    border-color: #3498db;
    color: #1a3b5d;
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.notification-button:hover i {
    color: #3498db;
    /* Icon color change on hover */
}

.notification-button i {
    font-size: 1.1em;
    color: #555;
}

.push-button i {
    color: #205EA4;
}

.x-button i {
    color: #000;
}

.email-button i {
    color: #666;
}


/* --- FAQ --- */
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.faq-question {
    color: #205EA4;
    margin-bottom: 10px;
    display: block;
    font-size: 1.1em;
}

.faq-answer {
    display: block;
    line-height: 1.8;
}

/* --- 最後のCTA（修正） --- */
.cta-area {
    background-color: #eef2f7;
    padding: 50px 30px;
    text-align: left;
    /* 本文左寄せ */
    border-radius: 8px;
    margin: 50px 0;
}

.cta-area h3 {
    text-align: center;
    /* 見出しのみセンタリング */
    margin-bottom: 30px;
    font-size: 1.6em;
    border: none;
    padding: 0;
    white-space: normal;
    /* 改行許可（画面幅による） */
}

.cta-area p {
    margin-bottom: 1.5em;
}

.cta-button-large {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    /* ボタン中央寄せ */
    background: linear-gradient(135deg, #e67e22, #d35400);
    /* Gradient orange */
    color: #fff;
    padding: 20px 70px;
    /* Larger padding */
    font-size: 1.4em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.4);
    /* Glow effect */
    text-align: center;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 126, 34, 0.6);
}

/* --- フォーム --- */
.form-container {
    padding: 3em;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-intro-text {
    text-align: center;
    margin-bottom: 1.5em;
    color: #666;
}

.contact-info {
    text-align: center;
    margin-bottom: 2.5em;
}

.phone-number-display {
    font-size: 1.8em;
    color: #333;
    letter-spacing: 0.05em;
}

.phone-number-display i {
    margin-right: 0.5em;
    color: #205EA4;
}

.c-form .form-group {
    margin-bottom: 2em;
}

.c-form dt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1em;
    box-sizing: border-box;
    margin-bottom: 0.5em;
}

.c-form dd {
    margin: 0;
}

.c-form .required,
.c-form .optional {
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 3px;
    vertical-align: middle;
}

.c-form .required {
    background-color: #dc3545;
    color: #fff;
}

.c-form .optional {
    background-color: #6c757d;
    color: #fff;
}

.c-form input[type="text"],
.c-form input[type="email"],
.c-form input[type="tel"],
.c-form textarea {
    width: 100%;
    padding: 15px;
    /* More padding */
    border: 2px solid #eee;
    /* Thicker border */
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #fcfcfc;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.c-form input:focus,
.c-form textarea:focus {
    border-color: #3498db;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    /* Focus ring */
}

.c-form textarea {
    resize: vertical;
}

.c-form .form-note {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.8em;
}

.c-form .checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.c-form .checkbox-list li label {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    cursor: pointer;
}

.c-form .checkbox-list li label:hover {
    background-color: #eef4fa;
    border-color: #205EA4;
}

.c-form .checkbox-list input[type="checkbox"] {
    display: none;
}

.c-form .checkbox-list input[type="checkbox"]+span::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 0.8em;
    vertical-align: middle;
    background-color: #fff;
    transition: all 0.2s ease;
}

.c-form .checkbox-list input[type="checkbox"]:checked+span::before {
    background-color: #205EA4;
    border-color: #205EA4;
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    text-align: center;
    line-height: 1.2em;
}

.privacy-policy-container {
    margin: 2em 0;
}

.privacy-policy-box {
    height: 150px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 1.5em;
    font-size: 0.85em;
    background-color: #f9f9f9;
    line-height: 1.6;
}

.privacy-policy-agreement {
    text-align: center;
    margin-bottom: 2.5em;
}

.privacy-policy-agreement label {
    cursor: pointer;
}

.privacy-policy-agreement input[type="checkbox"] {
    margin-right: 0.5em;
    transform: scale(1.2);
}

.submit-button-wrapper {
    text-align: center;
}

.submit-button {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    border: none;
    padding: 20px 80px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a3b5d, #3498db);
    /* Gradient */
    color: #fff;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(26, 59, 93, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
}

.back-to-top:hover i {
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* --- レスポンシブデザイン --- */
@media (min-width: 768px) {
    .c-form .form-group {
        display: flex;
        align-items: flex-start;
    }

    .c-form dt {
        width: 220px;
        flex-shrink: 0;
        padding-top: 12px;
    }

    .c-form dd {
        flex-grow: 1;
    }

    .c-form .checkbox-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .page-container {
        flex-direction: column;
        padding: 0;
    }

    main {
        padding: 2em;
    }

    .sidebar-nav {
        position: static;
        width: auto;
        order: -1;
        margin: 2em;
    }

    .content-section h2 {
        font-size: 1.6em;
    }

    .h2-subcopy,
    .content-section h3 {
        font-size: 1.3em;
    }

    .alt-bg {
        margin: 0;
        padding: 4em 0;
    }
}

/* --- マーケティングフロー図解 --- */
.marketing-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #f9fbfc, #fff);
    border: 1px solid #eee;
    border-radius: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.flow-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
    /* Increased from 120px */
    position: relative;
    z-index: 1;
}

.flow-icon-box {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #1a3b5d;
    box-shadow: 0 8px 20px rgba(26, 59, 93, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    border: 2px solid #eef4fa;
}

.flow-step:hover .flow-icon-box {
    transform: translateY(-5px);
    border-color: #3498db;
}

.flow-label {
    font-weight: 700;
    color: #1a3b5d;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.flow-sub {
    font-size: 0.75rem;
    color: #7f8c8d;
    line-height: 1.3;
}

/* 中央のホワイトペーパー（強調） */
.flow-step.main {
    width: 180px;
    /* Increased from 140px */
}

.flow-step.main .flow-icon-box {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1a3b5d, #3498db);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.flow-step.main .flow-label {
    font-size: 1.1rem;
    color: #3498db;
}

/* 矢印 */
.flow-arrow {
    color: #bdc3c7;
    font-size: 1.2rem;
    margin: 0 5px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .marketing-flow {
        flex-direction: column;
        gap: 30px;
    }

    .flow-group {
        flex-direction: row;
        justify-content: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* 双方向矢印のスタイル */
.flow-arrow.bidirectional {
    color: #3498db;
    font-size: 1.4rem;
    animation: pulse-arrow 2s infinite;
}

@keyframes pulse-arrow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* --- 診断チャート（Section 3） --- */
.selection-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8fbff;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid #e1e8ed;
}

.chart-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.chart-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    width: 100%;
    /* flex-wrap: wrap; Removed to force horizontal layout on desktop */
}

.chart-box {
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    position: relative;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Context CTA Button --- */
.cta-button-context {
    display: inline-block;
    padding: 15px 40px;
    background-color: #fff;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 15px;
}

.cta-button-context:hover {
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
}

.chart-box.question {
    background: #fff;
    border-color: #3498db;
}

.chart-box.question h4 {
    margin: 0 0 5px 0;
    color: #3498db;
    font-size: 1rem;
}

.chart-box.result {
    background: linear-gradient(135deg, #1a3b5d, #2c3e50);
    border: none;
    color: #fff;
}

.chart-box.result h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.1rem;
}

.chart-box p {
    margin: 0;
    font-size: 0.9rem;
}

.chart-arrow-down {
    color: #bdc3c7;
    font-size: 1.5rem;
    width: 280px;
    text-align: center;
}

.chart-arrow-right {
    color: #3498db;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chart-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #3498db;
}

.chart-label.no {
    color: #e74c3c;
}

/* --- Sugoroku Roadmap (Section 4) --- */
.roadmap-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.roadmap-step {
    display: flex;
    gap: 30px;
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e8ed;
    z-index: 2;
}

/* Icon & Number */
.roadmap-icon-wrapper {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.roadmap-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a3b5d, #3498db);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    z-index: 3;
}

.roadmap-number {
    font-size: 1.2rem;
    font-weight: 900;
    color: #e67e22;
    font-family: 'Arial', sans-serif;
}

/* Content */
.roadmap-content {
    flex-grow: 1;
}

.roadmap-content h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #1a3b5d;
    border-bottom: 2px solid #eef4fa;
    padding-bottom: 10px;
}

.roadmap-content h4 .sub-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: normal;
}

.roadmap-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Connecting Path (Vertical Line for Mobile Default) */
.roadmap-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 65px;
    /* Align with icon center */
    width: 4px;
    background: #eef4fa;
    z-index: 1;
}

/* Specific Step Styles */
.roadmap-step.step-5 .roadmap-icon {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.roadmap-step.step-5 .roadmap-number {
    color: #d35400;
}

/* Desktop Layout (Keep Vertical, just adjust sizing) */
/* Desktop Layout (Keep Vertical, just adjust sizing) */
@media (min-width: 900px) {
    .roadmap-container {
        max-width: 800px;
        /* Slightly narrower for better readability */
    }

    .roadmap-step {
        padding: 40px;
        /* More breathing room on desktop */
    }
}

/* --- Sidebar CTA Button (Global) --- */
/* --- Sidebar CTA Button (Global) --- */
.sidebar-cta-button {
    display: block;
    width: auto;
    /* Changed from 100% to auto to prevent right overflow */
    margin: 10px auto 0;
    /* Center align */
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a3b5d, #3498db);
    /* Blue gradient matching other CTAs */
    color: #fff !important;
    text-align: center;
    font-weight: bold;
    border-radius: 50px;
    /* Rounded pill shape like other CTAs */
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    /* Ensure no underline */
    color: #fff !important;
    opacity: 1;
    /* Remove opacity change, use transform instead */
}

/* --- Context CTA Heading Alignment --- */
.cta-block-context h3 {
    text-align: center;
}

/* --- Column Box Spacing Fix --- */
.column-box h4 {
    margin-bottom: 0.5em;
    /* Reduced from 15px/default to tighten space */
}

.column-box .ng-list {
    margin-top: 0.5em;
    /* Reduced top margin */
}

/* --- Marker Visibility Fix --- */
.marker-yellow {
    background: linear-gradient(transparent 60%, #ffc107 60%);
    /* Darker yellow (Amber) for better contrast */
    font-weight: bold;
}

@media (max-width: 768px) {
    .roadmap-step {
        padding: 20px;
        gap: 15px;
    }

    .roadmap-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .roadmap-icon-wrapper {
        width: 60px;
    }

    .roadmap-container::before {
        left: 50px;
        /* Adjust line position */
    }
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {

    /* Layout Stacking */
    .page-container {
        flex-direction: column;
        padding: 1.5em 1em;
        gap: 2em;
    }

    .sidebar-nav {
        width: 100%;
        position: static;
        order: 2;
        /* Move sidebar to bottom */
        margin-top: 2em;
    }

    main {
        width: 100%;
        order: 1;
    }

    /* Typography Adjustments */
    main h1 {
        font-size: 1.8em;
    }

    .lead-text {
        font-size: 1em;
        line-height: 1.8;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .content-section h3 {
        font-size: 1.3em;
        margin-top: 2.5em;
    }

    /* Component Adjustments */
    .chart-row {
        flex-direction: column;
        gap: 15px;
    }

    .chart-box {
        width: 100%;
        box-sizing: border-box;
    }

    .client-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .client-info {
        align-items: center;
    }

    .cta-block-context {
        padding: 25px 15px;
    }

    .cta-block-context h3 {
        font-size: 1.3em !important;
        /* Force smaller size on mobile */
    }

    .cta-button-context {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 20px;
        font-size: 1em;
    }

    .notification-hub {
        padding: 20px;
    }

    .selection-chart {
        display: none;
    }

    .notification-hub-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        /* Ensure items are centered */
    }

    .notification-button {
        width: 100%;
        justify-content: center;
        text-align: center;
        /* Ensure text is centered */
    }

    .step-content {
        margin-left: 15px;
        padding: 15px;
    }

    .step-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    /* Header/Footer */
    .simple-header,
    .simple-footer {
        padding: 1em;
    }

    .footer-container {
        text-align: center;
    }

    /* Mobile Phone Link */
    .phone-link {
        pointer-events: auto;
        text-decoration: underline;
        color: #205EA4;
    }
}

/* --- CF7調整用CSS（横幅均一化・最終版） --- */

/* 1. 元凶となっている親要素のグリッド設定を強制リセット */
.c-form .checkbox-list {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
}

/* 2. CF7が生成するラッパー（内側）を2列グリッド化 */
.c-form .checkbox-list .wpcf7-checkbox {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 1:1の比率で2列にする */
    gap: 10px;
    width: 100%;
}

/* 3. 個々のリストアイテム設定 */
.c-form .checkbox-list .wpcf7-list-item {
    margin: 0;
    padding: 0;
    display: flex; /* 中身を広げるための準備 */
    width: 100%;   /* セル幅いっぱいを使う */
}

/* ▼▼▼ 追加：ここが横幅を揃えるための重要な記述 ▼▼▼ */
/* ラベルタグ自体を強制的に広げる */
.c-form .checkbox-list .wpcf7-list-item label {
    display: flex;
    width: 100%;   /* これがないと文字数幅に縮んでしまう */
    margin: 0;
}

/* 4. 見た目のデザイン（ボックス部分） */
.c-form .checkbox-list .wpcf7-list-item-label {
    display: flex;
    align-items: center;         /* 垂直中央 */
    justify-content: flex-start; /* 左寄せ */
    width: 100%;                 /* 親(label)に合わせて広げる */
    min-height: 54px;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    
    /* 崩れ防止設定 */
    white-space: nowrap;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* 5. デフォルトのチェックボックスを非表示 */
.c-form .checkbox-list input[type="checkbox"] {
    display: none !important;
}

/* 6. 自作チェックボックス（四角い枠）の作成 */
.c-form .checkbox-list .wpcf7-list-item-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 12px;
    background-color: #fff;
    flex-shrink: 0;
    transition: all 0.2s ease;
    
    /* FontAwesome（チェックマーク） */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 7. チェック時のスタイル（青背景化） */
.c-form .checkbox-list input[type="checkbox"]:checked + .wpcf7-list-item-label {
    background-color: #eef4fa;
    border-color: #205EA4;
}
.c-form .checkbox-list input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
    background-color: #205EA4;
    border-color: #205EA4;
    content: '\f00c';
}

/* --- スマホ対応（1列に戻す） --- */
@media (max-width: 768px) {
    .c-form .checkbox-list .wpcf7-checkbox {
        grid-template-columns: 1fr; /* スマホは1列 */
    }
    .c-form .checkbox-list .wpcf7-list-item-label {
        white-space: normal; /* スマホのみ改行許可 */
    }
}