* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #555;
    background: #fff;
}

header {
    background: #ffffff;
    color: #333;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 26px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* ロゴとナビゲーションを中央揃え */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 40px; /* ロゴの高さを指定 */
    width: auto;
    display: block;
}

/* --- パンくずリスト --- */
.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    padding: 0 0.75rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #84c333; /* メインの緑 */
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb-item a:hover {
    opacity: 0.7;
}

.breadcrumb-item.active {
    color: #6c757d;
}
/* --- /パンくずリスト --- */

.nav-toggle {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* メニューより手前に */
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center; /* 垂直中央揃え */
}

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* ヘッダーナビゲーション内のボタン */
.cta-button-nav {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    background: #f5a100; /* オレンジ */
    color: white;
    box-shadow: 0 4px #c48100; /* 少し濃いオレンジで影を作成 */
    border: none;
}

.cta-button-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px #c48100;
}

.cta-button-nav:active {
    transform: translateY(1px);
    box-shadow: 0 2px #c48100;
}

.cta-button-nav.primary {
    background-color: #84c333;
    color: #fff;
    box-shadow: 0 4px #689c29;
}

.cta-button-nav.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px #689c29;
}

.cta-button-nav.primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px #689c29;
}


.hero {
    background: linear-gradient(135deg, #e0f2f1 0%, #ffffff 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-image {
    flex-shrink: 0;
    position: relative; /* 子要素を絶対配置するための基準 */
}

.hero-image img {
    animation: float 3s ease-in-out infinite alternate; /* ふわふわ浮くアニメーション */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #84c333; /* メインの緑 */
    /*color: #fff; /* ビデオが暗い場合を想定してテキスト色を白に */
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 読みやすくするために影を追加 */
}

.hero .subtitle {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero .tagline {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    background: rgba(255,255,255,0.5);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: inline-block;    
    color: #333;
    font-weight: bold;
}

/* CTAボタンのスタイル調整 */
.hero .cta-buttons a {
    margin: 10px auto; /* ボタン間の余白 */
    /* 必要に応じてボタンのスタイルを調整 */
}

.hero .cta-buttons {
    justify-content: flex-start;
}

.cta-button {
    background: #84c333; /* メインの緑 */
    color: white;
    padding: 1rem 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;    transition: all 0.2s ease-in-out;
    box-shadow: 0 5px #689c29; /* 少し濃い緑で下に影を作成 */
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px); /* ホバー時に少し上に移動 */
    box-shadow: 0 7px #689c29; /* 影も少し伸ばす */
}

.cta-button:active {
    transform: translateY(2px); /* クリック時に少し下に移動 */
    box-shadow: 0 3px #689c29; /* 影を短くして沈んだように見せる */
}

.cta-button.secondary {
    background: #f5a100; /* オレンジ */
    color: white;
    box-shadow: 0 5px #c48100; /* 少し濃いオレンジで影を作成 */
}

.cta-button.secondary:hover {
    box-shadow: 0 7px #c48100;
}
.cta-button.secondary:active {
    box-shadow: 0 3px #c48100;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .cta-button {
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

section {
    padding: 4rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #84c333; /* メインの緑 */
    position: relative;
    padding-bottom: 1rem;
    line-height: 1.4; /* 行間を調整 */
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #84c333; /* メインの緑 */
    border-radius: 2px;
}

/* FAQページのH1は中央寄せ */
h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #84c333; /* メインの緑 */
    position: relative;
    padding-bottom: 1rem;
}
h1::after {
    /* h2と同じ下線スタイルを適用 */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #84c333; /* メインの緑 */
    border-radius: 2px;
}

.section-lead {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: -1rem auto 3rem;
    color: #666;
}

/* --- 保障内容アコーディオン --- */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.3s;
}
.accordion-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.accordion-title {
    font-weight: bold;
    font-size: 1.3rem;
    color: #333;
    padding: 1.5rem 4rem 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    list-style: none;
}
.accordion-title::before, .accordion-title::after {
    content: '';
    position: absolute;
    right: 28px;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: #00a0e9;
    transition: transform 0.3s ease-in-out;
}
.accordion-item[open] > .accordion-title::before {
    transform: translateY(-50%) rotate(90deg);
}
.accordion-item[open] > .accordion-title::after {
    transform: translateY(-50%) rotate(180deg);
}
.accordion-content {
    padding: 0 2rem 2rem 2rem;
}
.accordion-content .article-section {
    margin-bottom: 0;
}
.accordion-content .text-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #00a0e9;
    text-decoration: none;
    font-weight: bold;
}
.new-options-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.new-option-card-simple {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}
/* --- /保障内容アコーディオン --- */

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #84c333; /* メインの緑 */
}

.features {
    background: #f8f9fa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 18px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #84c333; /* メインの緑 */
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.comparison-table th {
    background: #84c333; /* メインの緑 */
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.highlight {
    background: #fff3cd;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #84c333; /* メインの緑 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: bold;
    font-size: 1.2rem;
    color: #84c333; /* メインの緑 */
    margin-bottom: 1rem;
}

/* --- FAQページ用スタイル --- */
.faq-category { /* h2として使用 */
    font-size: 1.6rem;
    color: #333;
    border-bottom: 2px solid #84c333; /* メインの緑 */
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.faq-question-accordion {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    list-style: none; /* summaryのデフォルトマーカーを消す */
}

.faq-question-accordion::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #84c333; /* メインの緑 */
    transition: transform 0.3s;
}

.faq-item-accordion[open] > .faq-question-accordion::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer-accordion {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.8;
    color: #555;
}
/* --- /FAQページ用スタイル --- */

/* --- 請求プロセスページ用スタイル --- */
.claim-process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.claim-step {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.step-body {
    padding: 1.5rem;
}

.step-note {
    background: #f0f7e9;
    border: 1px solid #d4e6c2;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.step-note h4 {
    color: #84c333;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.step-note ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.small-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
}
/* --- /請求プロセスページ用スタイル --- */

footer {
    background: #f8f9fa; /* 薄いグレー */
    color: #555;
    padding: 3rem 0 1rem;
    border-top: 1px solid #e9ecef; /* コンテンツとの区切り線 */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #84c333; /* メインの緑 */
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #555;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.7;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #777;
}

/* --- 保障内容ページ（旧security.php）用スタイル --- */
#article-content-page {
    padding: 3rem 0;
}

#article-content-page h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid #00a0e9;
    padding-bottom: 0.8rem;
    display: inline-block;
    color: #333; /* h1のデフォルト色を上書き */
}
#article-content-page h1::after {
    display: none; /* h1共通の下線を非表示 */
}

.article-section {
    margin-bottom: 4rem;
}

.article-section h2 {
    font-size: 1.8rem;
    border-left: 5px solid #00a0e9;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    text-align: left; /* 中央寄せを解除 */
    color: #333; /* h2のデフォルト色を上書き */
}
.article-section h2::after {
    display: none; /* h2共通の下線を非表示 */
}

.article-section h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    color: #333; /* h3のデフォルト色を上書き */
}

.lead-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* ポイントボックス */
.point-box {
    background-color: #f0f8ff;
    border: 2px solid #b0e0e6;
    border-radius: 8px;
    margin: 2rem 0;
}
.point-title {
    background-color: #b0e0e6;
    color: #333;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.point-content {
    padding: 1.5rem;
}
.point-content p {
    margin: 0.5rem 0;
}
.point-content strong {
    font-size: 1.2em;
    color: #d9534f;
}

/* 定義リスト */
.definition-list {
    margin: 1.5rem 0;
}
.definition-list dt {
    font-weight: bold;
    margin-top: 1rem;
}
.definition-list dd {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.definition-list ul {
    list-style-type: '● ';
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

/* 支払いフロー */
.payment-flow {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}
.flow-item {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}
.flow-item h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.flow-item.success h4 { color: #5cb85c; }
.flow-item.failure h4 { color: #d9534f; }
.flow-chart {
    font-size: 0.9rem;
}
.flow-chart .highlight {
    font-weight: bold;
}
.flow-item.success .highlight { color: #5cb85c; }
.flow-item.failure .highlight { color: #d9534f; }

/* 選択肢ボックス */
.choice-boxes {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}
.choice-box {
    flex: 1;
    padding: 1.5rem;
    border: 2px dashed #00a0e9;
    border-radius: 8px;
    text-align: center;
    background-color: #f7fcfd;
}
.choice-box p {
    margin: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 治療法グリッド */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.treatment-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fff;
}
.treatment-card h4 {
    margin-top: 0;
    font-size: 1.2rem;
}

/* 予防費用保障ボックス */
.point-box.prevention-box {
    background-color: #f0fff0;
    border-color: #98fb98;
}
.point-box.prevention-box .point-title {
    background-color: #98fb98;
}

/* 5ステップフロー */
.step-flow-5 {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    position: relative;
}
.step-flow-5::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #00a0e9;
    z-index: 0;
    transform: translateY(-50%);
}
.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #00a0e9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    border: 3px solid #fff;
}
.step-item p {
    font-size: 0.9rem;
}

/* 予防費用保障テーブル */
.prevention-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.prevention-table th, .prevention-table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
}
.prevention-table th {
    background-color: #f2f2f2;
}
.prevention-table td:last-child {
    font-weight: bold;
}

/* 費用例リスト */
.example-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* 特約ポイントボックス */
.point-box.special-option-box {
    background-color: #fff8e1;
    border-color: #ffecb3;
}
.point-box.special-option-box .point-title {
    background-color: #ffecb3;
}

/* 4つのポイントグリッド */
.point-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.point-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
}
.point-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.point-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffc107;
    color: #333;
    font-weight: bold;
}

/* 薬剤テーブル */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}
.drug-example-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
.drug-example-table th, .drug-example-table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
}
.drug-example-table th {
    background-color: #f2f2f2;
    text-align: center;
}
.drug-example-table td:nth-child(2),
.drug-example-table td:nth-child(4) {
    text-align: center;
}

/* 適応外薬・未承認薬の定義ボックス */
.definition-box-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.definition-box {
    flex: 1;
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
}
.definition-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.definition-box p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 記事セクション内のh4 */
.article-section h4 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #00a0e9;
}

/* 新特約グリッド */
.new-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.new-option-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.new-option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.new-option-header .option-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #00a0e9;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.new-option-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    flex-grow: 1;
}

.new-option-header .option-price {
    font-size: 1rem;
    font-weight: bold;
    color: #d9534f;
    white-space: nowrap;
}

.new-option-body {
    padding: 1.5rem;
}

.new-option-body p {
    margin-bottom: 1rem;
}

/* 比較チャート */
.comparison-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.chart-item { text-align: center; }
.chart-item h4 { font-size: 0.9rem; color: #666; margin: 0 0 0.25rem 0; }
.chart-item p { font-size: 1.2rem; font-weight: bold; margin: 0; }
.chart-item.highlighted p { color: #d9534f; }
.chart-item.highlighted p strong { font-size: 1.5em; }
.chart-arrow { font-size: 1.5rem; color: #00a0e9; }


/* --- /保障内容ページ用スタイル --- */

.schema-org {
    display: none; /* 構造化データ用なので非表示 */
}

.sr-only {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 9px;
    color: #777;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
    .hero-container {
        flex-direction: column;
    }
    .hero-image {
        order: -1; /* 画像を上に */
        margin-bottom: 2rem;
    }
    .hero-image img {
        max-width: 300px;
        height: auto;
    }
    .hero h1 {
        font-size: 2.2em; /* Adjust from 2.5em to 2.2em */
        margin-bottom: 1rem; /* Added */
    }
    .hero .subtitle {
        font-size: 1.1em; /* Adjust from 1.2em to 1.1em */
        margin-bottom: 1.5rem; /* Added */
    }
    .hero .tagline {
        font-size: 0.9em; /* Adjust from 1em to 0.9em */
        padding: 0.8rem 1.2rem; /* Adjust padding */
        margin-bottom: 1.5rem; /* Added */
    }
    .hero .cta-buttons {
        justify-content: center;
    }
    .hero h1, .hero .subtitle, .hero .tagline {
        text-align: center;
        gap: 1rem; /* Reduce gap */
    }
    .hero .cta-button {
        padding: 0.8rem 30px; /* Adjust button padding */
        font-size: 1em;
        line-height: 1.3; /* ボタン内のテキスト行間を詰める */
    }
}


    /* New: Even smaller screens (e.g., mobile portrait) */
    @media (max-width: 480px) {
        .hero h1 {
            font-size: 1.8em;
        }
        .hero .subtitle {
            font-size: 1em;
        }
        .hero .tagline {
            font-size: 0.8em;
            padding: 0.6rem 1rem;
        }
        .hero .cta-buttons {
            flex-direction: column; /* Stack buttons vertically */
            gap: 0.8rem;
        }
        .hero .cta-button {
            width: 100%; /* Make buttons take more width */
            max-width: 250px; /* Limit max width */
            padding: 8px 40px;
            font-size: 18px;
        }
        
        .cta-buttons {
        flex-direction: column;
    }
    
    .nav-toggle {
        display: block; /* スマホで表示 */
    }
    
    .nav-links {
        /* ハンバーガーメニューのスタイル */
        position: fixed;
        top: 0px; /* ヘッダーの高さ分下げる */
        right: 0;
        width: 75%; /* 画面右半分より少し広め */
        max-width: 300px; /* 最大幅を指定 */
        height: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        
        /* 表示・非表示の切り替え */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
        
        /* メニュー項目の配置 */
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 14px;
    }
    
    .nav-links.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 0.5rem 1.5rem;
        display: block;
        width: 100%;
    }
    
    .nav-button {
        width: 100%;
        padding: 0 1.5rem;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    /* 保障内容ページ レスポンシブ */
    .payment-flow, .choice-boxes {
        flex-direction: column;
    }
    .treatment-grid {
        grid-template-columns: 1fr;
    }
    #article-content-page h1 {
        font-size: 1.8rem;
    }
    #article-content-page .article-section h2 {
        font-size: 1.5rem;
    }
    .step-flow-5 {
        flex-direction: column;
        gap: 1.5rem;
    }
    .step-flow-5::before {
        display: none;
    }
    .point-grid {
        grid-template-columns: 1fr;
    }
    .definition-box-container {
        flex-direction: column;
    }
    .new-option-header {
        flex-wrap: wrap;
    }
    .accordion-title {
        font-size: 20px;
        padding: 16px 56px 16px 20px;
    }
    
    /* p要素のフォントサイズをスマホ表示で少し小さく調整 */
    p {
        font-size: 15px;
    }
}
    
    
    /* /保障内容ページ レスポンシブ */
    
    /* シミュレーション誘導セクションのボタンスタイル */
    #simulation-promo .cta-buttons {
        text-align: center;
    }
    
/* スマートフォンでのみ改行を有効にするためのクラス */
@media (min-width: 769px) {
    .br-mobile {
        display: none;
    }
}

/* PCで非表示、スマホで表示するためのクラス */
.mobile-only {
    display: none; /* デフォルトでは非表示 */
}
@media (max-width: 768px) {
    .mobile-only { display: block; } /* スマホでは表示 */
}

/* --- Video Section --- */
#video-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.video-container {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button img {
    width: 80px;
    height: auto;
}

/* --- Video Modal --- */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.video-modal-content video {
    width: 100%;
    height: auto;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
