/* テーマカラー設定（いただいたロゴをベースに設定しています） */
:root {
    --color-navy: #2B3541; /* ロゴの文字・左側のマーク色 */
    --color-gold: #B39B78; /* ロゴの右側のマーク色 */
    --color-bg: #FDFDFD;
    --color-text: #333333;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

*{
	margin:0;
	padding:0;
}

html{
	font-size:16px;
	margin:0;
	padding:0;
	scroll-behavior: smooth;
}
body{
	margin:0;
	padding:0;
}

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

/* =========================================
   ヒーローエリア（近代的・モダンデザイン）
========================================= */
.hero-modern {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1A222A 100%);
    color: #ffffff;
    padding: 100px 0;
    overflow: hidden; /* 浮かせた画像がはみ出さないように */
	height:100vh;
	box-sizing:border-box;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.main-logo {
    max-width: 170px;
    margin-bottom: 30px;
	border-radius:50%;
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 600;
	margin-bottom:40px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #cccccc;
	margin-bottom: 20px;
}

/* 浮遊感のあるモダンな画像配置 */
.hero-visual {
    flex: 1;
    position: relative;
}


/* =========================================
   HEROエリアの静止画像スタイル
========================================= */
.hero-static-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)); /* 画像に少し立体感を持たせる */
    transform: translateY(10px); /* テキストとのバランス調整 */
}



/* =========================================
   各セクション共通・未確定スペース
========================================= */
section {
    padding: 80px 0;
    text-align: center;
}

h2 {
    color: var(--color-navy);
    font-size: 2rem;
    margin-bottom: 50px;
}

/* =========================================
   共通タイトルデザイン
========================================= */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 60px;
    position: relative;
    font-weight: bold;
}

/* タイトル下の上品なゴールドライン */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-gold);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* =========================================
   お悩み提示ターン（実写画像対応・高度なデザイン設定）
========================================= */
.pain-points {
    background-color: #F8F9FA; 
    padding: 100px 0;
}

.points-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* 立体感のあるカードデザイン */
.point-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px; /* 画像が大きくなるため余白を調整 */
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(43, 53, 65, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 6px solid var(--color-gold);
    text-align: center;
    z-index: 1; /* ナンバーの下敷きにならないよう調整 */
}

/* マウスオーバーでカードが浮くアニメーション */
.point-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(43, 53, 65, 0.1);
}

/* 背後に薄く配置するアクセントナンバー */
.point-number {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-gold);
    opacity: 0.15;
    line-height: 1;
    z-index: -1;
}

/* =========================================
   追加：実写画像を大きく美しく見せる装飾
========================================= */
.point-image-wrapper {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px; /* 画像の角を少し丸くして柔らかさを演出 */
    overflow: hidden;    /* ズーム時に枠からはみ出さないようにする */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* 画像自体にも立体感を */
}

.pain-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease; /* ホバー時のズームアニメーション時間 */
}

/* ホバー時に画像を少しズームさせてリッチに見せる演出 */
.point-card:hover .pain-image {
    transform: scale(1.05);
}

/* ========================================= */

.point-title {
    color: var(--color-navy);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.point-desc {
    color: #555555;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

/* =========================================
   機能紹介ターン（ペインポイントと統一した高度なデザイン）
========================================= */
.features {
    background-color: #ffffff; /* ペインポイントと背景色を反転させてメリハリを出す */
    padding: 100px 0;
}

.feature-lead {
    text-align: center;
    font-size: 1.1rem;
    color: #e60000; /* お得感を強調するため赤色系 */
    margin-bottom: 50px;
    font-weight: bold;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* ペインポイントを踏襲した立体カード */
.feature-card {
    background-color: #F8F9FA;
    border-radius: 16px;
    padding: 30px 25px;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(43, 53, 65, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--color-gold); /* ペインは上部だったのでこちらは下部に配置 */
    text-align: center;
    margin-bottom: 10px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(43, 53, 65, 0.1);
}

/* 画像エリアの設定 */
.feature-image-wrapper {
    width: 100%;
    height: 160px; /* カードの高さがバラつかないように固定 */
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #eeeeee; /* 画像未設定時のダミー背景 */
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに綺麗に収める */
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-title {
    color: var(--color-navy);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-desc {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

/* =========================================
   料金シミュレーター
========================================= */
.simulator-section {
    background-color: #F8F9FA;
    padding: 100px 0;
}

.simulator-box {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(43, 53, 65, 0.05);
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    border-top: 6px solid var(--color-navy);
}

/* 入力エリア */
.sim-input-area {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px dashed #eeeeee;
}

.input-group {
    flex: 1;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 40px 15px 15px;
    font-size: 1.2rem;
    border: 2px solid #dddddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.input-wrapper .unit {
    position: absolute;
    right: 15px;
    color: #888888;
    font-weight: bold;
}

/* 結果表示エリア */
#sim-result-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--color-navy);
}

.result-title-highlight {
    color: #e60000 !important;
}

.sim-cards {
    display: flex;
    gap: 20px;
}

.sim-card {
    flex: 1;
    background-color: #fcfcfc;
    border: 2px solid #eeeeee;
    border-radius: 12px;
    padding: 30px 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* おすすめプランのハイライト装飾 */
.sim-card.recommended {
    border-color: #e60000;
    background-color: #fff9f9;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.1);
}

.recommend-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-gold);
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

.sim-card.recommended .recommend-badge {
    opacity: 1;
}

.sim-card h4 {
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--color-navy);
    font-size: 1.2rem;
}

/* 内訳リスト */
.sim-breakdown {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    font-size: 0.95rem;
}

.sim-breakdown li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #555555;
    border-bottom: 1px dotted #dddddd;
    padding-bottom: 4px;
}

.sim-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-navy);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
}

.sim-card.recommended .sim-total {
    background-color: #e60000;
}

.sim-total strong {
    font-size: 1.5rem;
}

.sim-total small {
    font-size: 1rem;
    font-weight: normal;
}

/* =========================================
   料金プラン＆比較表
========================================= */
.pricing-section {
    background-color: #F8F9FA;
    padding: 100px 0;
}

.special-offer {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--color-navy);
}

/* プランカード（既存のsim-cardベース） */
.plans-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.plan-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    width: 45%;
    box-shadow: 0 10px 25px rgba(43, 53, 65, 0.05);
    position: relative;
    text-align: center;
    border-top: 6px solid #dddddd;
}

.highlight-plan {
    border-top: 6px solid var(--color-gold);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(179, 155, 120, 0.2);
}

.plan-card h4 {
    color: var(--color-navy);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.plan-card .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.plan-card .old-price {
    font-size: 1rem;
    color: #999999;
    text-decoration: line-through;
}

.plan-card .fee {
    font-size: 1.2rem;
    color: #e60000;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 比較表 */
.comparison-table-wrapper h3 {
    text-align: center;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
}

.comparison-table th {
    background-color: var(--color-navy);
    color: #ffffff;
    font-weight: normal;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: bold;
    color: var(--color-navy);
}

.highlight-col {
    background-color: rgba(179, 155, 120, 0.1); /* ゴールドの薄い背景 */
    font-weight: bold;
}

.scroll-hint {
    display: none; /* PCでは非表示 */
}

.custom-table-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.custom-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #eeeeee;
    border-left: 1px solid #eeeeee;
}

.ct-row {
    display: flex;
    width: 100%;
}

.ct-cell {
    flex: 1;
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    background-color: #ffffff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 一番左の列（機能・仕様）の幅を広めに取る */
.ct-cell:first-child {
    flex: 1.5;
    justify-content: flex-start;
    text-align: left;
    font-weight: bold;
    color: var(--color-navy);
}

.ct-header .ct-cell {
    background-color: var(--color-navy);
    color: #ffffff;
    font-weight: normal;
}

.ct-highlight {
    background-color: rgba(179, 155, 120, 0.1);
    font-weight: bold;
}
.ct-header .ct-highlight {
    background-color: var(--color-navy); /* ヘッダー行のハイライト色はネイビーで統一 */
}

/* =========================================
   オプション・導入支援
========================================= */
.options-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.section-lead {
    text-align: center;
    margin-bottom: 50px;
    color: #555555;
}

.options-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.option-item {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 30px 20px;
    width: 33.333%;
    text-align: center;
    border: 1px solid #eeeeee;
}

.option-item h4 {
    color: var(--color-navy);
    margin-bottom: 15px;
}

.option-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.option-price span {
    font-size: 1rem;
}

.option-note {
    font-size: 0.85rem;
    color: #888888;
}

/* フルパック特別カード */
.fullpack-card {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1A222A 100%);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    color: #ffffff;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 30px rgba(43, 53, 65, 0.2);
}

.fullpack-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: #e60000;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.fullpack-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.fullpack-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.fullpack-price {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-align: right;
    min-width: 250px;
}

.fullpack-price span {
    font-size: 1.2rem;
    font-weight: normal;
}

/* =========================================
   よくある質問（FAQ）
========================================= */
.faq-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eeeeee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: #F8F9FA;
    color: var(--color-navy);
    font-size: 1.1rem;
    font-weight: bold;
    padding: 20px 25px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

/* アコーディオンの開閉アイコン（＋と－） */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

/* active時のアイコン変化（－になる） */
.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    display: none; /* デフォルトは非表示 */
    padding: 0 25px 20px;
    background-color: #F8F9FA;
    color: #555555;
    line-height: 1.7;
    border-top: 1px dashed #dddddd;
}

.faq-answer p {
    margin-top: 20px;
	text-align:left;
}

/* active時は回答を表示 */
.faq-item.active .faq-answer {
    display: block;
}

/* =========================================
   導入フロー
========================================= */
.flow-section {
    background-color: #F8F9FA;
    padding: 100px 0;
}

.flow-section .section-lead {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 50px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(43, 53, 65, 0.05);
    text-align: center;
    border: 1px solid #eeeeee;
    border-top: 4px solid var(--color-gold);
}

.step-number {
    display: inline-block;
    background-color: var(--color-gold);
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    padding: 6px 24px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.step-title {
    color: var(--color-navy);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.step-desc {
    color: #555555;
    line-height: 1.6;
}

/* ステップ間の矢印（SVG）のスタイル */
.step-arrow {
    margin: 20px 0;
    color: var(--color-gold); /* SVGのstroke="currentColor"に反映されます */
    opacity: 0.7;
}

/* =========================================
   下部CTAセクション
========================================= */
.bottom-cta-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1A222A 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    color: var(--color-gold);
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-lead {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #eeeeee;
}

.btn-large {
    padding: 20px 60px;
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(179, 155, 120, 0.4);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(179, 155, 120, 0.6);
}

/* =========================================
   フッター
========================================= */
.site-footer {
    background-color: #F8F9FA;
    padding: 60px 0 20px;
    color: #555555;
    border-top: 1px solid #eeeeee;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.company-details p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #777777;
}

.footer-links {
    margin-top: 20px;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    margin-bottom: 12px;
}

.link-list a {
    color: var(--color-navy);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.link-list a:hover {
    color: var(--color-gold);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid #dddddd;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #999999;
}

/* =========================================
   右下の追従マーク（エンブレム風リッチデザイン）
========================================= */
.floating-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    /* 単色から高級感のあるゴールドグラデーションへ */
    background: linear-gradient(135deg, #D4AF37 0%, #B39B78 50%, #8A7353 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    /* 内側にうっすら線を入れてスタンプ風に */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    z-index: 1000;
    
    animation: floatAnimation 3s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* マウスを乗せたとき少し明るく、ふわりと大きく */
.floating-badge:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* 波紋（パルス）のように広がる光の演出 */
.pulse-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    animation: pulseAnimation 2s linear infinite;
    opacity: 0;
    pointer-events: none; /* クリックの邪魔にならないようにする */
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* キラキラアイコン */
.badge-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    opacity: 0.9;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15); /* 文字を少し浮き上がらせて読みやすく */
}

/* フワフワ動くアニメーション */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* 波紋アニメーション */
@keyframes pulseAnimation {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* スマホ閲覧時のサイズ調整 */
@media (max-width: 768px) {
    .floating-badge {
        bottom: 20px;
        right: 20px;
        width: 100px;
        height: 100px;
    }
    .pulse-ring {
        top: -3px; left: -3px; right: -3px; bottom: -3px;
    }
    .badge-text {
        font-size: 0.7rem;
    }
    .badge-icon {
        width: 16px;
        height: 16px;
    }
}

/* =========================================
   LINEモック（Before / After）セクション
========================================= */
.line-mock-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.line-mock-section .section-lead {
    text-align: center;
    color: #555555;
    margin-bottom: 40px;
}

/* 切り替えタブ */
.mock-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.mock-tab {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid var(--color-navy);
    background-color: #ffffff;
    color: var(--color-navy);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.mock-tab.active {
    background-color: var(--color-navy);
    color: #ffffff;
}

/* スマートフォン風フレーム */
.phone-frame {
    width: 320px;
    height: 560px;
    margin: 0 auto;
    border: 12px solid #333333;
    border-radius: 40px;
    background-color: #8bb2cc; /* LINEの背景色に近い青 */
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.phone-header {
    background-color: #2b3541; /* ネイビーで統一 */
    color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    position: relative;
}

/* チャット画面共通 */
.chat-screen {
    padding: 20px 15px;
    height: calc(100% - 50px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease;
}

.active-screen {
    opacity: 1;
    pointer-events: auto;
}

.hidden-screen {
    opacity: 0;
    pointer-events: none;
}

/* 吹き出しのスタイル */
.chat-bubble {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    word-wrap: break-word;
	text-align:left;
}

.shop-msg {
    background-color: #ffffff;
    color: #333333;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.user-msg {
    background-color: #85e249; /* LINEの緑 */
    color: #111111;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.hidden-msg {
    display: none;
}

/* タイピングアニメーション（入力中...） */
.typing-indicator {
    padding: 10px 15px;
    border-radius: 15px;
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

/* お客様側のタイピング（右寄せ・緑背景・白ドット） */
.user-typing {
    align-self: flex-end;
    background-color: #85e249;
    border-top-right-radius: 2px;
}
.user-typing span {
    background-color: #ffffff;
}

/* 店舗側のタイピング（左寄せ・白背景・グレードット） */
.shop-typing {
    align-self: flex-start;
    background-color: #ffffff;
    border-top-left-radius: 2px;
}
.shop-typing span {
    background-color: #999999;
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* リッチメニュー風UI */
.rich-menu-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #dddddd;
}

.rich-menu-grid {
    display: flex;
    flex-wrap: wrap;
    height: 180px;
}

.rich-menu-btn {
    width: 50%;
    height: 50%;
    border-right: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--color-navy);
    cursor: pointer;
    background-color: #fcfcfc;
    transition: background-color 0.2s, transform 0.1s;
}

.rich-menu-btn:nth-child(even) { border-right: none; }
.rich-menu-btn:nth-child(n+3) { border-bottom: none; }

.btn-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* お客様がボタンを押したようなアニメーション */
.btn-pressed {
    background-color: #e0e0e0;
    transform: scale(0.95);
}

/* =========================================
   LINEモック：画面外のラリー発生メッセージ
========================================= */
.rally-message-box {
    /* スマホ画面の上に絶対配置ではみ出させる */
    position: absolute;
    top: 25%; /* スマホの上部から少し下がった位置 */
    left: 0;
    right: 0;
    margin: 0 auto;
    
    width: 90%;
    max-width: 480px; /* スマホの幅(320px)より大きくしてはみ出させる */
    z-index: 200; /* スマホ画面より手前に出す */
    
    text-align: center;
    background-color: #fff9f9;
    border: 3px dashed #e60000;
    border-radius: 16px;
    padding: 40px 30px; /* 余白を広げて窮屈さを解消 */
    
    /* 飛び出してきた感を強調する大きな影 */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* 少し跳ねるようなダイナミックなアニメーション */
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rally-text {
    color: #333333;
    font-size: 1.15rem; /* 文字を少し大きく */
    line-height: 1.8; /* 行間を広げて綺麗に見せる */
    margin-bottom: 25px;
}

.rally-text strong {
    color: #e60000;
    font-size: 1.3rem;
}

/* After用の成功メッセージスタイル */
.success-message-box {
    background-color: #f4fafe;
    border: 3px dashed var(--color-navy);
}

.success-message-box .rally-text strong {
    color: var(--color-navy);
}

/* ボタンを少し強調してフワフワさせる */
.btn-pulse {
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0% { box-shadow: 0 0 0 0 rgba(179, 155, 120, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(179, 155, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(179, 155, 120, 0); }
}

/* =========================================
   LINEモック：Flex Message風UI
========================================= */
.flex-msg-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.flex-msg-title {
    padding: 15px;
    margin: 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #dddddd;
    color: #333333;
}

.flex-btn-group {
    display: flex;
    flex-direction: column;
}

.flex-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid #eeeeee;
    padding: 12px 15px;
    color: #3b82f6; /* LINE風の青いリンクカラー */
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.flex-btn:last-child {
    border-bottom: none;
}

.flex-btn.outline-btn {
    color: #555555;
    font-weight: normal;
}

/* ボタン押下時のアニメーション用クラス */
.flex-btn.btn-pressed {
    background-color: #e0e0e0;
}

/* チャット画面のスクロールバーを隠す（UIを綺麗に見せるため） */
/* チャット画面のスクロールバーを隠す（UIを綺麗に見せるため） */
.chat-scroll-area::-webkit-scrollbar {
    display: none;
}
.chat-scroll-area {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   LINEモック：After用の成功メッセージスタイル
========================================= */
.success-message-box {
    background-color: #f4fafe; /* 爽やかな薄いブルー */
    border: 2px dashed var(--color-navy);
}

.success-message-box .rally-text strong {
    color: var(--color-navy);
    font-size: 1.3rem;
}

/* =========================================
   複数システム統合比較アニメーション
========================================= */
.integration-section {
    background-color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

.integration-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 550px; /* アニメーション中の高さブレを防ぐため少し広め */
}

/* シーン切り替え用 */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.active-scene {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative; /* 高さを確保するためアクティブ時のみrelative */
}

.hidden-scene {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* 中央の人物・ロゴエリア */
.center-person {
    position: relative;
    width: 280px;  /* 150pxから280pxへ拡大 */
    height: 280px; /* 150pxから280pxへ拡大 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto; /* 余白を調整 */
    z-index: 10;
}

.person-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.connext-logo-large {
    width: 250px;
    height: auto;
    opacity: 0; /* 追加：アニメーション前は見えなくしておく */
}

/* active-sceneが付与された時だけアニメーションを実行 */
.active-scene .connext-logo-large {
    animation: popInLogo 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 浮かぶ吹き出し（モワモワ） */
.floating-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background-color: #ffffff;
    border: 3px solid #dddddd;
    border-radius: 30px;
    padding: 15px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    opacity: 0;
}

/* 吹き出しのしっぽ（モワモワ感） */
.bubble::after, .bubble::before {
    content: '';
    position: absolute;
    background-color: #ffffff;
    border: 3px solid #dddddd;
    border-radius: 50%;
}
.bubble::after {
    width: 20px; height: 20px;
    bottom: -15px; left: 30px;
}
.bubble::before {
    width: 10px; height: 10px;
    bottom: -28px; left: 20px;
}


/* 1. 左上（LINE）: しっぽは右下へ */
.bubble-1::after { width: 20px; height: 20px; bottom: -15px; right: 30px; left: auto; }
.bubble-1::before { width: 10px; height: 10px; bottom: -28px; right: 20px; left: auto; }

/* 2. 右上（EC）: しっぽは左下へ */
.bubble-2::after { width: 20px; height: 20px; bottom: -15px; left: 30px; right: auto; }
.bubble-2::before { width: 10px; height: 10px; bottom: -28px; left: 20px; right: auto; }

/* 3. 右下（予約）: しっぽは左上へ（上にしっぽを出す） */
.bubble-3::after { width: 20px; height: 20px; top: -15px; left: 30px; bottom: auto; }
.bubble-3::before { width: 10px; height: 10px; top: -28px; left: 20px; bottom: auto; }

/* 4. 左下（ポイント）: しっぽは右上へ（上にしっぽを出す） */
.bubble-4::after { width: 20px; height: 20px; top: -15px; right: 30px; left: auto; bottom: auto; }
.bubble-4::before { width: 10px; height: 10px; top: -28px; right: 20px; left: auto; bottom: auto; }

/* 各ツールの金額表示 */
.bubble .tool-name {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}
.bubble .tool-price {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-navy);
}

/* -----------------------------------
   変更箇所：吹き出しのアニメーション分離
----------------------------------- */
/* 配置場所の定義のみ（アニメーションは削除） */
.bubble-1 { top: 5%; left: 10%; }
.bubble-2 { top: 0%; right: 10%; }
.bubble-3 { bottom: 35%; right: 15%; }
.bubble-4 { bottom: 40%; left: 10%; }

/* active-sceneが付与された時だけアニメーションを実行 */
.active-scene .bubble-1 { animation: popBubble 0.5s forwards 0.5s, floatBubble 3s infinite ease-in-out 1s; }
.active-scene .bubble-2 { animation: popBubble 0.5s forwards 1.2s, floatBubble 3.5s infinite ease-in-out 1.7s; }
.active-scene .bubble-3 { animation: popBubble 0.5s forwards 1.9s, floatBubble 4s infinite ease-in-out 2.4s; }
.active-scene .bubble-4 { animation: popBubble 0.5s forwards 2.6s, floatBubble 3.8s infinite ease-in-out 3.1s; }

@keyframes popBubble {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    70% { transform: scale(1.1) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* テキストボックス */
.scene-text-box {
    background-color: #F8F9FA;
    border: 2px dashed #dddddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
}

.success-box {
    background-color: #fff9f9;
    border-color: #e60000;
}

.scene-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.scene-desc strong {
    color: #e60000;
    font-size: 1.4rem;
}

/* アウトラインボタン（リセット用） */
.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-navy);
    padding: 12px 30px;
    border: 2px solid var(--color-navy);
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-outline:hover {
    background-color: var(--color-navy);
    color: #ffffff;
}

/* 統合後の機能タグ（円形に配置） */
.integrated-features-circle {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
    pointer-events: none;
}

.int-feature {
    position: absolute;
    background-color: var(--color-gold);
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(179, 155, 120, 0.4);
    opacity: 0;
    white-space: nowrap;
    /* ▼これを追加：アニメーション合成用の変数（初期値は空っぽ）▼ */
    --base-transform: translate(0, 0); 
}

/* Afterシーン表示時のアニメーション */
.active-scene .int-feature.pos-1 { top: -15%; left: 50%; transform: translateX(-50%)!important; animation: suckIn 0.6s forwards 0.3s; }
.active-scene .int-feature.pos-2 { top: 28%; right: -15%; animation: suckIn 0.6s forwards 0.5s; }
.active-scene .int-feature.pos-3 { bottom: 15%; right: 10px; animation: suckIn 0.6s forwards 0.7s; }
.active-scene .int-feature.pos-4 { bottom: 15%; left: 10px; animation: suckIn 0.6s forwards 0.9s; }
.active-scene .int-feature.pos-5 { top: 28%; left: -15%; animation: suckIn 0.6s forwards 1.1s; }

@keyframes popInLogo {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes suckIn {
    0% { opacity: 0; transform: scale(0.5) translate(0, 50px); }
    100% { opacity: 1; transform: scale(1) translate(0, 0); }
}

/* =========================================
   追従ヘッダー（ワイヤーフレーム対応・すりガラス仕様）
========================================= */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

/* HEROエリア内（透明） */
.sticky-header.transparent-header {
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 15px 0; /* ページトップでは少し余白を持たせる */
}

/* スクロール後（すりガラス） */
.sticky-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85); /* 半透明の白背景 */
    backdrop-filter: blur(12px); /* すりガラス効果 */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 5px 0; /* スクロール時は少しコンパクトに */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    display: block;
}

.header-logo {
    height: 60px; /* 40pxから60pxへ拡大し、ロゴの存在感をアップ */
    width: auto;
    transition: height 0.3s ease;
}

.scrolled .header-logo {
    height: 50px;
}

/* センターナビゲーション */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
}

/* 透明時のナビゲーション文字色 */
.transparent-header .header-nav a {
    color: #ffffff;
}

/* すりガラス（スクロール後）のナビゲーション文字色 */
.scrolled .header-nav a {
    color: var(--color-navy);
}

.header-nav a:hover {
    color: var(--color-gold);
}

/* 右側アクションエリア */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ログイン用テキストリンク */
.btn-text {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.transparent-header .btn-text {
    color: #ffffff;
}
.scrolled .btn-text {
    color: var(--color-navy);
}
.btn-text:hover {
    color: var(--color-gold);
}

/* 販売代理店制度ボタンの追従時カラー変更 */
.scrolled .partner-btn {
    border-color: var(--color-navy);
    color: var(--color-navy);
}
.scrolled .partner-btn:hover {
    background-color: var(--color-navy);
    color: #ffffff;
}

/* =========================================
   追従ヘッダー（ロゴサイズ調整）
========================================= */
.header-logo {
    height: 60px; /* 40pxから60pxへ拡大し、ロゴの存在感をアップ */
    width: auto;
    transition: height 0.3s ease;
}

/* スクロール時は少し小さくしてヘッダーをスッキリさせる場合（任意） */
.scrolled .header-logo {
    height: 50px;
}

/* =========================================
   ボタンのサイズ調整（全体的にスタイリッシュに縮小）
========================================= */
/* プライマリボタン（CTA） */
.btn-primary {
    display: inline-flex;
    background-color: var(--color-gold);
    color: #ffffff;
    padding: 14px 32px; /* 18px 40px から縮小 */
    border-radius: 50px; 
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem; /* 1.1rem から縮小 */
    box-shadow: 0 4px 15px rgba(179, 155, 120, 0.4);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
	align-items: center;
    justify-content: center;
	line-height: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 155, 120, 0.6);
}

/* ヘッダー用CTAボタン（さらに少し小さめ） */
.header-cta {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* その他のボタンサイズもバランスを取る */
.btn-outline-white {
    display: inline-flex;
    padding: 14px 32px; /* btn-primaryに合わせる */
    border-radius: 50px;
    border: 2px solid #fff; 
    color: #fff; 
    font-weight: bold; 
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
	align-items: center;
    justify-content: center;
	line-height: 1;
}

.btn-large {
    padding: 16px 40px; /* 極端に大きかったものを適正サイズへ */
    font-size: 1.1rem;
}

/* =========================================
   ヒーローエリアのボタン用吹き出し
========================================= */
/* ボタンと吹き出しをまとめるコンテナ */
.hero-btn-wrapper {
    position: relative;
    display: inline-block;
}

/* 吹き出しの基本スタイル */
.hero-balloon {
    position: absolute;
    /*bottom: calc(100% + 12px); /* ボタンの上部から少し離す */
	bottom: calc(100% - 10px); /* ボタンの上部から少し離す */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none; /* クリックの邪魔にならないように */
    /*animation: floatBalloon 2.5s ease-in-out infinite; /* 軽く上下に動かす */
}

/* 吹き出しのしっぽ（下向きの三角形）基本設定 */
.hero-balloon::after {
    /*content: '';*/
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
}

/* 登録ボタン用（目立つ赤系） */
.balloon-red {
    background-color: #e60000;
    color: #ffffff;
}
.balloon-red::after {
    border-color: #e60000 transparent transparent transparent;
}

/* 資料ダウンロード用（白系） */
.balloon-white {
    background-color: #ffffff;
    color: var(--color-navy);
    border: 1px solid #dddddd;
}
.balloon-white::after {
    border-color: #ffffff transparent transparent transparent;
    z-index: 2;
}
/* 白い吹き出しのしっぽの枠線用 */
/*.balloon-white::before {
    /*content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #dddddd transparent transparent transparent;
    z-index: 1;
}*/

/* 吹き出しが軽くふわふわ浮くアニメーション */
@keyframes floatBalloon {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

/* スマホ閲覧時のレイアウト調整 */
@media (max-width: 768px) {
    /* 吹き出し同士がぶつからないように調整 */
    .hero-balloon {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* PC専用 / スマホ専用の表示切替 */
.nav-sp-only { display: none; }

@media (min-width: 769px) {
    .hamburger { display: none; }
    .nav-cta-item { display: none; }
}

@media (max-width: 768px) {
    .pc-only-actions { display: none; }
    .nav-sp-only { display: block; margin-top: 15px; }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        /* スマホメニュー展開時は背景を白ベタにして視認性を確保 */
        background-color: #ffffff; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 2001;
        padding-top: 80px;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .header-nav.active { right: 0; }
    
    .header-nav ul { 
        flex-direction: column; 
        gap: 10px; 
        padding: 0 20px; 
    }
    
    /* スマホメニュー内のリンクは常にネイビー */
    .header-nav a, .transparent-header .header-nav a { 
        color: var(--color-navy); 
        display: block; 
        padding: 12px 0; 
        border-bottom: 1px solid #eeeeee; 
    }
    
    .btn-text-sp {
        color: var(--color-navy);
        font-weight: bold;
        text-decoration: none;
    }
    
    .nav-cta-item { margin-top: 15px; text-align: center; }
}

/* =========================================
   無料登録モーダル
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-navy);
}

.modal-title {
    color: var(--color-navy);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-lead {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ddd;
}

.form-section h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-required { background-color: #e60000; color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: normal; }
.badge-optional { background-color: #999; color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: normal; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 0.95rem; }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; font-size: 1rem; }

/* プラン選択ラジオボタンをカード型に */
.radio-group { display: flex; gap: 15px; }
.radio-card { flex: 1; position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.card-content { display: block; padding: 20px; border: 2px solid #ddd; border-radius: 8px; text-align: center; transition: all 0.2s; }
.radio-card input:checked + .card-content { border-color: var(--color-gold); background-color: rgba(179, 155, 120, 0.05); }
.card-content strong { display: block; font-size: 1.2rem; color: var(--color-navy); margin-bottom: 5px; }
.card-content span { color: #666; font-size: 0.95rem; }

/* オプション系 */
.checkbox-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; font-size: 0.95rem; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.highlight-pack { background-color: #fff9f9; border: 2px solid #e60000; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.highlight-pack strong { color: #e60000; }
.rich-menu-select { margin: 15px 0 15px 25px; }
.rich-menu-select select { padding: 8px; border-radius: 4px; border: 1px solid #ccc; font-size: 0.95rem; }
.form-hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }
.form-note { font-size: 0.85rem; color: #e60000; margin-bottom: 15px; }

/* 計算結果エリア */
.calculation-section { background-color: #F8F9FA; padding: 25px; border-radius: 8px; border: none; }
.calc-result { text-align: right; font-size: 1.2rem; }
.calc-result strong { font-size: 2.5rem; color: #e60000; margin: 0 10px; }
.payment-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; }

/* =========================================
   利用規約・モーダル追加要素
========================================= */
.hp-warning {
    background-color: #fff9f9;
    border: 1px solid #e60000;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    line-height: 1.6;
}

.terms-box {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #cccccc;
    padding: 15px 20px;
    background-color: #f9f9f9;
    font-size: 0.85rem;
    border-radius: 8px;
    color: #555555;
    margin-bottom: 15px;
}

.terms-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-navy);
}

.terms-box p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.terms-agree-label {
    justify-content: center;
    font-weight: bold;
    font-size: 1.05rem;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

/* 送信ボタンの非アクティブ（無効）状態 */
.btn-primary:disabled {
    background-color: #cccccc;
    box-shadow: none;
    cursor: not-allowed;
    color: #ffffff;
}

/* =========================================
   レスポンシブ対応（スマートフォン用）
========================================= */
/* ハンバーガーメニュー用のPC時非表示設定 */
@media (min-width: 769px) {
    .hamburger { display: none; }
    .nav-cta-item { display: none; }
}

@media (max-width: 768px) {
    /* 横揺れ（見切れ）防止の基本設定 */
    body {
        overflow-x: hidden;
    }
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    section {
        padding: 50px 0; /* 余白をスマホサイズに最適化 */
    }

    /* タイトルサイズの最適化（画像6の修正） */
    .section-title {
        font-size: 1.5rem; 
        margin-bottom: 40px;
    }
    .section-title::after {
        margin: 15px auto 0;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* ------------------------------
       ヘッダー・ハンバーガーメニュー
    ------------------------------ */
	.header-container {
    padding: 10px 20px;
}
    .header-logo {
        height: 40px; /* スマホ用にロゴを少し小さく */
    }
    .pc-only-cta {
        display: none;
    }
    .hamburger {
        display: block;
        width: 25px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 2002;
    }
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-navy);
        position: absolute;
        transition: all 0.3s ease;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { bottom: 0; }
    
    /* ×印になるアニメーション */
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* 右からのスライドインメニュー */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 2001;
        padding-top: 80px;
    }
    .header-nav.active { right: 0; }
    .header-nav ul { flex-direction: column; gap: 15px; padding: 0 20px; }
    .header-nav a { font-size: 1.1rem; display: block; padding: 10px 0; border-bottom: 1px solid #eeeeee; }
    .nav-cta-item { display: block; margin-top: 20px; text-align: center; }

    /* ------------------------------
       ヒーローエリア（画像6の修正）
    ------------------------------ */
    .hero-modern {
        height: auto;
        padding: 100px 0 50px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .main-logo {
        max-width: 180px; /* 巨大化していたロゴを縮小 */
        margin: 0 auto 20px;
        display: block;
    }
    .hero-text h1 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    .hero-visual {
        margin-top: 40px;
        width: 100%;
    }

    /* ------------------------------
       お悩み・機能紹介カード
    ------------------------------ */
    .points-grid, .features-grid {
        flex-direction: column;
    }
    .point-card, .feature-card {
        width: 100%;
        margin-bottom: 20px;
        padding: 30px 20px;
        box-sizing: border-box;
    }

    /* ------------------------------
       料金プラン（画像5の修正）
    ------------------------------ */
    .plans-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .plan-card {
        width: 100%;
        padding: 25px 15px;
        margin-bottom: 0;
        box-sizing: border-box;
    }
    .plan-card .price {
        font-size: 1.6rem;
    }

	.sim-input-area {
        display: flex;
        flex-direction: column !important; /* 確実に縦並びにする */
        gap: 20px;
        border-bottom: 2px dashed #eeeeee;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .input-group {
        width: 100%;
        text-align: left;
    }

    /* 料金結果カードを縦並びに */
    .sim-cards {
        display: flex;
        flex-direction: column !important; /* 確実に縦並びにする */
        gap: 20px;
    }

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

   /* =========================================
       カスタムテーブル（スマートフォン用スクロール・固定）
    ========================================= */
    .scroll-hint {
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--color-navy);
        background-color: #f0f0f0;
        padding: 8px;
        margin-bottom: 10px;
        border-radius: 4px;
        font-weight: bold;
        animation: swipe-hint 2s infinite;
    }

    @keyframes swipe-hint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-5px); }
    }

    /* 枠内でスクロールを発生させる */
    .custom-table-wrapper {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 60vh; 
        border: 2px solid #dddddd;
        position: relative; /* 固定の基準位置にするため追加 */
    }

    .custom-table {
        min-width: 450px; 
        border: none;
    }

	.ct-cell{
		padding: 12px 8px;
	}
	.ct-fixed-top {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    /* 1. 【修正】セルではなく「ヘッダー行そのもの」を上部で固定 */
    .ct-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .ct-header .ct-cell {
        background-color: var(--color-navy); /* 透け防止 */
        color: #ffffff;
        box-shadow: inset -1px -1px 0 #33404d; /* 境界線をbox-shadowで引く */
    }

    /* 2. 左側の列（機能・仕様）を左側で固定 */
    .ct-fixed-left {
        /* 【追加】PC用の広い幅設定を上書きし、幅を130pxに狭く固定する */
        flex: 0 0 130px !important; 
        
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: #ffffff;
        border-right: 2px solid #dddddd; /* スクロール時の境界線を強調 */
    }

    /* 3. 左上の角（上と左の両方固定される交差点） */
    .ct-header .ct-fixed-left {
        z-index: 3; /* 最前面に出す */
        background-color: var(--color-navy);
        box-shadow: inset -2px -1px 0 #33404d;
    }

    /* ------------------------------
       統合アニメーションエリア（画像3の修正）
    ------------------------------ */
    .floating-bubbles {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
    .bubble {
        position: relative !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        width: 100% !important; /* 隙間を無くし幅いっぱいにする */
        box-sizing: border-box;
        padding: 15px !important;
    }
    .bubble::after, .bubble::before { display: none; }
    
    .integrated-features-circle {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        top: auto;
        transform: none;
        margin-bottom: 30px;
    }
    .int-feature {
        position: relative !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    /* ------------------------------
       オプション（画像2の修正）
    ------------------------------ */
    .options-grid {
        flex-direction: column;
        gap: 15px;
    }
    .option-item {
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    .fullpack-card {
        padding: 30px 20px;
        box-sizing: border-box;
    }
    .fullpack-content {
        flex-direction: column;
        text-align: center;
    }
    .fullpack-badge {
        left: 50%;
        transform: translateX(-50%);
    }
    .fullpack-price {
        text-align: center;
        margin-top: 15px;
        min-width: auto;
    }

    /* ------------------------------
       フッターと追従ボタン（画像1の修正）
    ------------------------------ */
    .footer-container {
        flex-direction: column;
        text-align: center; /* 左寄りだったものを中央揃えに */
        align-items: center;
    }
    .footer-info {
        margin: 0 auto 30px;
    }
    .company-details p {
        text-align: center;
    }
    .link-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .site-footer {
        /* 右下のバッジとフッターの文字が被らないように下部余白を確保 */
        padding-bottom: 120px;
    }

    /* ------------------------------
       LINEモック画面
    ------------------------------ */
    .phone-frame {
        width: 100%;
        max-width: 320px;
        border-width: 8px;
    }
    .rally-message-box {
        position: relative;
        top: auto;
        margin-top: 20px;
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    /* モーダル内の調整 */
    .radio-group {
        flex-direction: column;
    }
    .payment-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   業種選択タブ（ペインポイントセクション用）
========================================= */
.industry-tabs {
    text-align: center;
    margin-bottom: 40px;
}

.industry-tabs-lead {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 20px;
}

/* 既存の .mock-tabs をスマホで折り返すように上書き */
.industry-tabs .mock-tabs {
    flex-wrap: wrap; 
}

/* ペインカードのグループ用アニメーション */
.pain-group {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pain-group.active {
    opacity: 1;
}

/* =========================================
   業態別利用イメージ・新機能セクション追加CSS
========================================= */

/* Hero Badge */
.hero-tecaregem-badge {
    display: inline-block;
    background-color: var(--color-gold);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Audience Cards (あなたのお店なら、こう使えます) */
.audience-section {
    background-color: #F8F9FA;
    padding: 100px 0;
}
.audience-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}
.audience-card {
    background-color: #ffffff;
    border: 2px solid #eeeeee;
    border-radius: 16px;
    padding: 40px 30px;
    width: 45%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}
.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.audience-card.is-active {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(43, 53, 65, 0.1);
}
.audience-subtitle {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.audience-title {
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}
.audience-copy {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}
.audience-flow {
    font-size: 0.85rem;
    color: #666;
    background: #f4f6f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.audience-flow i {
    color: var(--color-gold);
    font-size: 0.7rem;
}
.audience-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}
.audience-btn {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}
.audience-card.is-active .audience-btn {
    background-color: var(--color-navy);
    color: #ffffff;
}

/* Use Cases (一人のお客様とのつながりで見るconnext) */
.usecase-section {
    background-color: #ffffff;
    padding: 100px 0;
}
.usecase-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}
.usecase-tab {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid var(--color-navy);
    background-color: #ffffff;
    color: var(--color-navy);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}
.usecase-tab.is-active {
    background-color: var(--color-navy);
    color: #ffffff;
}
.usecase-panel {
    display: none;
    animation: fadeInPanel 0.4s ease;
}
.usecase-panel.is-active {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Timeline */
.journey-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}
.journey-step {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-top: 4px solid var(--color-gold);
    padding: 20px;
    border-radius: 8px;
    width: 250px;
    text-align: left;
    position: relative;
}
.journey-num {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: bold;
    margin-bottom: 10px;
}
.journey-title {
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}
.journey-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}
.journey-message {
    background-color: #f4fafe;
    border: 2px dashed var(--color-navy);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.journey-message h4 {
    color: var(--color-navy);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Flexibility Section (全部使わなくていい) */
.flexibility-section {
    background-color: #F8F9FA;
    padding: 80px 0;
    text-align: center;
}
.flexibility-title {
    color: var(--color-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.flexibility-desc {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}
.flexibility-examples {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.flex-example {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.flex-example strong {
    color: var(--color-navy);
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 5px;
}
.flexibility-safe {
    font-weight: bold;
    color: #e60000;
}

/* Feature Labels & Core Message */
.feature-label {
    display: inline-block;
    background: var(--color-gold);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}
.core-value-message {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1A222A 100%);
    color: #fff;
    border-radius: 12px;
}
.core-value-message h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}
.core-value-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #eee;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .audience-grid {
        flex-direction: column;
    }
    .audience-card {
        width: 100%;
        margin-bottom: 20px;
    }
    .usecase-tabs {
        flex-direction: column;
    }
    .journey-timeline {
        flex-direction: column;
        align-items: center;
    }
    .journey-step {
        width: 100%;
        max-width: 350px;
    }
    .flexibility-examples {
        flex-direction: column;
    }
}

/* =========================================
   利用ストーリー (Before/After 左右比較)
========================================= */
.story-comparison-container {
    background-color: #fcfcfc;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
}

/* キャラクター紹介 */
.story-characters {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.story-character-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eeeeee;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.story-character-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-navy);
}

/* Before / After のレイアウト */
.story-comparison-wrapper {
    display: flex;
    gap: 30px;
}

.story-comparison-col {
    flex: 1;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.story-before {
    background-color: #f7f7f7;
    border: 2px dashed #dddddd;
}

.story-after {
    background-color: #f4fafe;
    border: 2px solid var(--color-navy);
    box-shadow: 0 8px 20px rgba(43, 53, 65, 0.08);
}

.story-col-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.story-after .story-col-header {
    border-bottom: 1px solid rgba(43, 53, 65, 0.1);
}

.story-col-header h3 {
    margin: 15px 0 0 0;
    font-size: 1.3rem;
    color: var(--color-navy);
}

.story-badge-before {
    background-color: #999999;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.story-badge-after {
    background-color: var(--color-gold);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* リスト部分 */
.story-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.story-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
    text-align: left;
}

.story-after .story-list li {
    font-weight: bold;
    color: var(--color-navy);
}

.story-step {
    position: absolute;
    left: 0;
    top: 2px;
    background-color: #dddddd;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* =========================================
   利用ストーリー (Before/After 左右比較・パララックス)
========================================= */
.story-comparison-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-top: 20px;
}

/* キャラクター紹介 */
.story-characters {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.story-character {
    text-align: center;
    position: relative;
}

/* 2人の間に矢印アイコンなどの繋がりを示す装飾（任意） */
.story-character:first-child::after {
    content: '\f0c1'; /* FontAwesomeのリンクアイコン */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -35px;
    top: 30px;
    color: var(--color-gold);
    font-size: 1.2rem;
    opacity: 0.5;
}

.story-character-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f0f0;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.story-character:hover .story-character-img {
    transform: scale(1.1);
}

.story-character-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-navy);
    line-height: 1.4;
}

/* Before / After のレイアウト */
.story-comparison-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.story-comparison-col {
    flex: 1;
    border-radius: 12px;
    padding: 30px 25px;
    position: relative;
}

.story-before {
    background-color: #f9f9f9;
    border: 2px dashed #cccccc;
}

.story-after {
    background-color: #f4fafe;
    border: 2px solid var(--color-navy);
    box-shadow: 0 10px 30px rgba(43, 53, 65, 0.08);
}

.story-col-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dddddd;
}

.story-after .story-col-header {
    border-bottom: 1px solid rgba(43, 53, 65, 0.15);
}

.story-col-header h3 {
    margin: 15px 0 0 0;
    font-size: 1.3rem;
    color: var(--color-navy);
}

.story-badge-before {
    background-color: #888888;
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.story-badge-after {
    background-color: var(--color-gold);
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(179, 155, 120, 0.3);
}

/* リスト部分 */
.story-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.story-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    text-align: left;
}

.story-after .story-list li {
    font-weight: bold;
    color: var(--color-navy);
}

.story-step {
    position: absolute;
    left: 0;
    top: 0;
    background-color: #cccccc;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.story-after .story-step {
    background-color: var(--color-gold);
}

/* =========================================
   パララックス・スクロールアニメーション
========================================= */
.story-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.story-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.story-delay-1 {
    transition-delay: 0.3s; /* After側を少し遅れて表示させる */
}

/* レスポンシブ対応（スマートフォン） */
@media (max-width: 768px) {
    .story-comparison-wrapper {
        flex-direction: column;
    }
    
    .story-character:first-child::after {
        display: none; /* スマホでは間のアイコンを隠す */
    }
    
    .story-comparison-container {
        padding: 20px 10px;
    }
    
    .story-delay-1 {
        transition-delay: 0s; /* スマホの縦並び時は遅延を解除 */
    }
}

.story-after .story-step {
    background-color: var(--color-gold);
}

/* レスポンシブ対応（スマートフォン） */
@media (max-width: 768px) {
    .story-comparison-wrapper {
        flex-direction: column;
    }
    
    .story-comparison-container {
        padding: 20px 15px;
    }
    
    .story-characters {
        gap: 20px;
    }
    
    .story-character-img {
        width: 60px;
        height: 60px;
    }
    
    .story-comparison-col {
        padding: 20px;
    }
}


/* =========================================
   タイムライン型 利用ストーリー (st- prefix)
========================================= */
.st-section {
    background-color: #fdfdfd;
    padding: 100px 0;
    overflow: hidden;
}

/* キャラクター紹介エリア */
.st-character-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}
.st-char {
    text-align: center;
}
.st-char img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    background-color: #eee;
}
.st-char p {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-navy);
    line-height: 1.4;
}
.st-char p span {
    font-size: 0.75rem;
    color: #666;
    font-weight: normal;
}
.st-char-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    opacity: 0.6;
}

/* タイムラインコンテナ */
.st-timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 中央の時間軸（線） */
.st-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

/* 読んでいる位置に合わせて線に色を付ける演出（JSと連携） */
.st-timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-gold);
    transition: height 0.3s ease;
    height: 0%; /* JSで動的に変更 */
}

/* ヘッダータイトル配置 */
.st-timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}
.st-col-title {
    width: 45%;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.st-before-title {
    border-top: 4px solid #999;
}
.st-after-title {
    border-top: 4px solid var(--color-gold);
}
.st-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}
.st-badge-gray { background-color: #999; }
.st-badge-gold { background-color: var(--color-gold); }

.st-col-title h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin: 0;
}

/* 各ステップの行（左右比較） */
.st-step-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* 中央のマーカー（STEP 01 など） */
.st-step-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--color-navy);
    line-height: 1.2;
    z-index: 3;
    transition: all 0.4s ease;
}

/* 交差（表示）時のマーカー変化 */
.st-step-row.is-active .st-step-marker {
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 15px rgba(179, 155, 120, 0.4);
}

/* 左右のボックス */
.st-box {
    width: 42%;
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}
.st-before-box {
    border: 2px dashed #ddd;
}
.st-after-box {
    border: 2px solid var(--color-navy);
    box-shadow: 0 10px 25px rgba(43, 53, 65, 0.1);
}

/* ボックス内の要素 */
.st-box-title {
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.st-box-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
}
.st-box p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}
.st-after-box p {
    font-weight: bold;
    color: var(--color-navy);
}

/* アニメーション用クラス */
.st-fade-trigger .st-before-box {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}
.st-fade-trigger .st-after-box {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out 0.2s;
}

.st-step-row.is-active .st-before-box,
.st-step-row.is-active .st-after-box {
    opacity: 1;
    transform: translateX(0);
}

/* レスポンシブ対応（スマートフォン） */
@media (max-width: 768px) {
    .st-timeline-header {
        display: none; /* スマホではヘッダータイトルを非表示にし、スッキリさせる */
    }
    
    /* 線を左側に寄せる */
    .st-timeline-line {
        left: 30px;
        transform: none;
    }
    
    /* マーカーを左側の線上に配置 */
    .st-step-marker {
        left: 30px;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }
    
    .st-step-row {
        flex-direction: column;
        padding-left: 70px; /* 左側の線＋マーカー分の余白 */
        margin-bottom: 40px;
    }
    
    /* 左右のボックスを縦幅100%で縦並びに */
    .st-box {
        width: 100%;
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .st-box::before {
        content: 'Before';
        display: inline-block;
        background-color: #999;
        color: #fff;
        padding: 2px 10px;
        border-radius: 10px;
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    .st-after-box::before {
        content: 'After';
        background-color: var(--color-gold);
    }
    
    /* スマホ時は横スライドではなく、下からのフェードインに変更 */
    .st-fade-trigger .st-before-box,
    .st-fade-trigger .st-after-box {
        transform: translateY(20px);
    }
}

/* =========================================
   タイムライン型 利用ストーリー (st- prefix)
========================================= */
.st-section {
    background-color: #fdfdfd;
    padding: 100px 0;
    overflow: hidden;
}

.st-character-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}
.st-char { text-align: center; }
.st-char img {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px; background-color: #eee;
}
.st-char p {
    font-size: 0.9rem; font-weight: bold;
    color: var(--color-navy); line-height: 1.4; margin: 0;
}
.st-char p span { font-size: 0.75rem; color: #666; font-weight: normal; }
.st-char-icon { font-size: 1.5rem; color: var(--color-gold); opacity: 0.6; }

.st-timeline-container { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.st-timeline-line {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 4px; background-color: #e0e0e0;
    transform: translateX(-50%); border-radius: 2px; z-index: 1;
}

.st-timeline-header {
    display: flex; justify-content: space-between;
    margin-bottom: 40px; position: relative; z-index: 2;
}
.st-col-title {
    width: 45%; text-align: center; background: #fff;
    padding: 15px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.st-before-title { border-top: 4px solid #999; }
.st-after-title { border-top: 4px solid var(--color-gold); }
.st-badge {
    display: inline-block; padding: 3px 12px; border-radius: 15px;
    font-size: 0.8rem; font-weight: bold; color: #fff; margin-bottom: 5px;
}
.st-badge-gray { background-color: #999; }
.st-badge-gold { background-color: var(--color-gold); }
.st-col-title h3 { font-size: 1.2rem; color: var(--color-navy); margin: 0; }

.st-step-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 60px; position: relative; z-index: 2;
}

/* マーカー（日時表示用） */
.st-step-marker {
    position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    width: 80px; height: 80px;
    background-color: #fff; border: 3px solid #e0e0e0; border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: var(--color-navy); z-index: 3; transition: all 0.4s ease;
}
.st-date { font-size: 0.85rem; font-weight: bold; }
.st-time { font-size: 1.1rem; font-weight: 900; line-height: 1; margin-top: 2px; }

.st-step-row.is-active .st-step-marker {
    border-color: var(--color-gold); color: var(--color-gold);
    box-shadow: 0 0 15px rgba(179, 155, 120, 0.4);
}

.st-box {
    width: 42%; background-color: #fff; border-radius: 12px;
    padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); position: relative;
}
.st-before-box { border: 2px dashed #ddd; }
.st-after-box {
    border: 2px solid var(--color-navy);
    box-shadow: 0 10px 25px rgba(43, 53, 65, 0.1);
}

/* 対応不要の空ボックス用スタイル */
.st-empty-box {
    background-color: transparent;
    border: 2px dashed #e0e0e0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}
.st-no-task {
    color: #999 !important;
    font-weight: bold !important;
    text-align: center !important;
    margin: 0 !important;
}
.st-no-task span {
    font-size: 0.8rem;
    font-weight: normal;
}

.st-box-img {
    width: 100%; height: 120px; object-fit: cover;
    border-radius: 8px; margin-bottom: 15px; background-color: #f5f5f5;
}
.st-box p { font-size: 0.95rem; color: #444; line-height: 1.6; margin: 0; text-align: left; }
.st-after-box p { font-weight: bold; color: var(--color-navy); }

.st-fade-trigger .st-before-box, .st-fade-trigger .st-empty-box:nth-child(2) {
    opacity: 0; transform: translateX(-30px); transition: all 0.6s ease-out;
}
.st-fade-trigger .st-after-box, .st-fade-trigger .st-empty-box:nth-child(3) {
    opacity: 0; transform: translateX(30px); transition: all 0.6s ease-out 0.2s;
}
.st-step-row.is-active .st-before-box, .st-step-row.is-active .st-after-box,
.st-step-row.is-active .st-empty-box {
    opacity: 1; transform: translateX(0);
}

@media (max-width: 768px) {
    .st-timeline-header { display: none; }
    .st-timeline-line { left: 40px; transform: none; }
    
    .st-step-marker {
        left: 40px; transform: translateX(-50%);
        width: 60px; height: 60px;
    }
    .st-date { font-size: 0.75rem; }
    .st-time { font-size: 0.9rem; }
    
    .st-step-row {
        flex-direction: column; padding-left: 90px; margin-bottom: 40px;
    }
    .st-box, .st-empty-box { width: 100%; margin-bottom: 15px; padding: 20px; min-height: auto; }
    
    .st-before-box::before {
        content: 'Before'; display: inline-block; background-color: #999;
        color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 0.75rem; margin-bottom: 10px;
    }
    .st-after-box::before {
        content: 'After'; display: inline-block; background-color: var(--color-gold);
        color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 0.75rem; margin-bottom: 10px;
    }
    
    .st-fade-trigger .st-before-box, .st-fade-trigger .st-after-box, .st-fade-trigger .st-empty-box {
        transform: translateY(20px);
    }
}

/* =========================================
   アクションアイコン用のスタイル (人物・自動化共通)
========================================= */
.st-action-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* クドい枠線を無くし、洗練された影のみに変更 */
}

/* 自動送信ロゴ用（余白をつけて全体を収める） */
.st-auto-icon {
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

/* スマホ閲覧時などは少しサイズを調整 */
@media (max-width: 768px) {
    .st-action-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    .st-auto-icon {
        padding: 8px;
    }
}

/* =========================================
   シミュレーターのタブ・アラート用スタイル
========================================= */
.sim-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.sim-tab {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid var(--color-navy);
    background-color: #ffffff;
    color: var(--color-navy);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sim-tab.active {
    background-color: var(--color-navy);
    color: #ffffff;
}

.limit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #e60000;
    font-weight: bold;
    font-size: 1.2rem;
    flex-direction: column;
}

.limit-overlay small {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* =========================================
   料金プランカード (3カラム並び)
========================================= */
.plans-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* スマホ用に折り返し */
}

.plan-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    width: 31%; /* 3カラム対応 */
    box-shadow: 0 10px 25px rgba(43, 53, 65, 0.05);
    position: relative;
    text-align: center;
    border-top: 6px solid #dddddd;
    box-sizing: border-box;
}

.plan-card h4 {
    color: var(--color-navy);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.plan-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .plan-card {
        width: 100%; /* スマホでは縦並び */
    }
}

/* =========================================
   シミュレーターの入力エリア (UI改善版)
========================================= */
/* グリッドレイアウトで2列に並べ、高さを自動で合わせる */
.sim-input-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px dashed #eeeeee;
}

/* 1つ1つの入力ボックスをカード化 */
.input-group {
    background-color: #fdfdfd;
    border: 2px solid #eeeeee;
    padding: 25px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--color-gold);
}

.input-group label {
    display: block;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* 高さを吸収し、入力欄を常に一番下に揃えるマジック */
.input-group .sim-note {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* 余白をここで吸収させる */
}

.input-group .text-red {
    color: #e60000;
    font-weight: bold;
    display: inline-block;
    margin-top: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: auto; /* 一番下に配置 */
}

/* スマホ閲覧時は1列にする */
@media (max-width: 768px) {
    .sim-input-area {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ワイヤーフレーム対応 新規セクション用CSS
========================================= */

.wf-section { padding: 80px 0; }
.bg-white { background-color: #ffffff; }
.bg-gray { background-color: #f8f9fa; }
.bg-gold-light { background-color: #fbf9f4; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--color-gold); }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.wf-section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 40px;
    font-weight: bold;
}

/* ボタン汎用 */
.btn-outline-white {
    display: inline-block; padding: 18px 40px; border-radius: 50px;
    border: 2px solid #fff; color: #fff; font-weight: bold; text-decoration: none;
    transition: all 0.3s;
}
.btn-outline-white:hover { background-color: #fff; color: var(--color-navy); }

.btn-outline-gold {
    display: inline-block; padding: 15px 40px; border-radius: 50px;
    border: 2px solid var(--color-gold); color: var(--color-gold); font-weight: bold;
    background: transparent; cursor: pointer; transition: all 0.3s;
}
.btn-outline-gold:hover { background-color: var(--color-gold); color: #fff; }

.btn-outline-gray {
    display: inline-block; padding: 12px 30px; border-radius: 30px;
    border: 1px solid #ccc; color: #555; background: #fff; cursor: pointer; transition: all 0.3s;
}
.btn-outline-gray:hover { background: #eee; }

.btn-outline-sm {
    padding: 8px 20px; border: 1px solid #ccc; border-radius: 20px;
    background: #fff; cursor: pointer; font-size: 0.9rem;
}

/* 2. connextとは？ */
.wf-about-flex { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.wf-about-text { flex: 1; }
.wf-lead { font-size: 1.5rem; line-height: 1.6; margin-bottom: 20px; color: var(--color-navy); }
.wf-desc { color: #555; line-height: 1.6; }
.wf-about-image { flex: 1; display: flex; justify-content: center; }

.wf-circle-diagram {
    position: relative; width: 300px; height: 300px; border: 1px dashed #ccc; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.circle-center { width: 100px; height: 100px; background: var(--color-navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.circle-item { position: absolute; width: 80px; height: 80px; background: #fff; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.7rem; text-align: center; color: #555; }
.circle-item i { font-size: 1.2rem; color: var(--color-gold); margin-bottom: 5px; }
.item1 { top: -20px; left: 110px; } .item2 { top: 70px; right: -30px; }
.item3 { bottom: 20px; right: 0px; } .item4 { bottom: 20px; left: 0px; }
.item5 { top: 70px; left: -30px; }

/* 3. 課題 */
.wf-pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wf-pain-card { background: #fff; padding: 0 0 20px 0; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow:hidden;}
.pain-img-mock { width: 60px; height: 60px; background: #eee; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #999; }
.wf-pain-card p { font-size: 0.95rem; font-weight: bold; color: var(--color-navy); line-height: 1.5; }

/* 4. ビジョン */
.wf-vision-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.wf-vision-tabs button { padding: 10px 30px; border-radius: 30px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.wf-vision-tabs button.active { background: var(--color-gold); color: #fff; border-color: var(--color-gold); }
.vision-box-flex { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 40px; }
.vision-col { background: #f9f9f9; padding: 30px; border-radius: 12px; width: 300px; }
.vision-col.after { background: #fff; border: 2px solid var(--color-gold); box-shadow: 0 10px 20px rgba(179, 155, 120, 0.1); }
.vision-col h3 { text-align: center; margin-bottom: 20px; font-size: 1.1rem; }
.vision-col ul { list-style: none; padding: 0; }
.vision-col li { margin-bottom: 15px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.vision-arrow { font-size: 2rem; color: #ccc; }
.vision-image-wrapper {
    position: relative;
    max-width: 800px; /* 画像の最大幅 */
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.vision-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}
/* 画像の上に重なる吹き出しコメント */
.vision-image-comment {
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: #ffffff;
    color: var(--color-navy);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--color-gold);
    z-index: 2;
    animation: floatComment 3s ease-in-out infinite;
}

.vision-image-comment strong {
    color: #e60000;
    font-size: 1.3rem;
}

/* 吹き出しのしっぽ */
.vision-image-comment::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 40px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-right: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    transform: rotate(45deg);
}

/* コメントがふわふわ浮くアニメーション */
@keyframes floatComment {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* スマホ対応の調整 */
@media (max-width: 768px) {
    .vision-image-comment {
        top: -15px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1rem;
        padding: 10px 20px;
        white-space: nowrap;
        animation: none; /* スマホではアニメーションをオフにするかお好みで調整 */
    }
    .vision-image-comment::after {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }
}

/* 5. シミュレーション */
.wf-sim-row { display: flex; justify-content: center; gap: 20px; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.sim-item { flex: 1; }
.sim-item label { display: block; font-size: 0.85rem; color: #666; margin-bottom: 5px; font-weight: bold; }
.sim-item select, .sim-item input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
.input-with-unit { position: relative; }
.input-with-unit span { position: absolute; right: 10px; top: 10px; color: #999; }

/* 6. 機能一覧 */
.wf-features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.wf-feat-card { text-align: center; padding: 20px 10px; background: #f9f9f9; border-radius: 12px; }
.wf-feat-card i { font-size: 2rem; color: var(--color-navy); margin-bottom: 15px; }
.wf-feat-card p { font-size: 0.8rem; line-height: 1.4; color: #555; }
.wf-feat-card p strong { font-size: 1rem; color: var(--color-navy); display: block; margin-bottom: 5px; }

/* 7. 料金プラン */
.wf-pricing-grid { display: flex; justify-content: center; gap: 20px; }
.wf-price-card { background: #fff; padding: 40px 30px; border-radius: 16px; text-align: center; width: 30%; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid #ccc; position: relative; }
.wf-price-card.highlight { border-top-color: var(--color-gold); transform: scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.wf-price-card h4 { font-size: 1.2rem; color: var(--color-navy); margin-bottom: 15px; }
.price-amount { font-size: 2.5rem; font-weight: bold; color: var(--color-navy); margin-bottom: 20px; }
.price-amount span { font-size: 1rem; color: #666; font-weight: normal; }
.price-features { list-style: none; padding: 0; text-align: left; margin-bottom: 30px; }
.price-features li { margin-bottom: 12px; font-size: 0.95rem; color: #444; }

/* 8. 料金比較 */
.wf-compare-flex { display: flex; align-items: center; justify-content: center; gap: 30px; }
.compare-box { background: #f9f9f9; padding: 30px; border-radius: 12px; width: 40%; }
.compare-box.new { background: var(--color-navy); color: #fff; position: relative; }
.compare-box h4 { margin-bottom: 20px; text-align: center; }
.compare-box ul { list-style: none; padding: 0; margin-bottom: 20px; }
.compare-box.old ul li { display: flex; justify-content: space-between; border-bottom: 1px dotted #ccc; padding: 8px 0; font-size: 0.9rem; }
.compare-total { background: #eee; padding: 15px; text-align: center; border-radius: 8px; font-weight: bold; }
.compare-total strong { font-size: 1.5rem; margin-left: 10px; }
.compare-box.new .plan-name { text-align: center; font-size: 1.1rem; margin-bottom: 10px; color: var(--color-gold); }
.compare-box.new .price-amount { color: #fff; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; margin-bottom: 20px; }
.new-features li { margin-bottom: 10px; font-size: 0.95rem; }
.new-features i { color: var(--color-gold); margin-right: 10px; }
.saving-badge { position: absolute; top: -20px; right: -20px; background: var(--color-gold); color: #fff; width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.85rem; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* 9. オプション */
.wf-options-grid { display: flex; justify-content: center; gap: 20px; }
.wf-opt-card { background: #fff; display: flex; align-items: center; padding: 20px; border-radius: 12px; width: 30%; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.opt-icon { font-size: 2.5rem; color: #ccc; margin-right: 20px; }
.opt-text h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--color-navy); }
.opt-text p { font-size: 0.8rem; color: #666; margin-bottom: 10px; }
.opt-price { font-size: 1.2rem; font-weight: bold; color: var(--color-navy); margin-bottom: 10px; }
.opt-price span { font-size: 0.8rem; font-weight: normal; }
/* =========================================
   オプションセクションのレイアウト調整（6要素対応）
========================================= */
.wf-options-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* 要素が増えた際に折り返すように追加 */
}

.wf-opt-card {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    width: 31%; /* 3カラムを綺麗に維持するために調整 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .wf-options-grid {
        flex-direction: column;
    }
    .wf-opt-card {
        width: 100%; /* スマホ時は1カラム */
    }
}

/* 10. モック体験 */
.wf-mock-flex { display: flex; align-items: center; justify-content: center; gap: 40px; }
.mock-images img { max-width: 400px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.mock-list-box { background: #f9f9f9; padding: 20px; border-radius: 12px; }
.mock-list-box h4 { margin-bottom: 15px; font-size: 1rem; color: var(--color-navy); }
.mock-list-box ul { list-style: none; padding: 0; }
.mock-list-box li { margin-bottom: 10px; font-size: 0.95rem; }

/* 11. セキュリティ */
.wf-sec-grid { display: flex; justify-content: center; gap: 20px; }
.sec-item { background: #fff; padding: 30px 10px; border-radius: 12px; width: 18%; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.sec-item i { font-size: 2rem; color: var(--color-navy); margin-bottom: 15px; }
.sec-item p { font-size: 0.85rem; font-weight: bold; color: #444; }

/* 13. 導入フロー */
.wf-flow-grid { display: flex; align-items: center; justify-content: center; gap: 15px; }
.flow-step { background: #fff; padding: 20px; border-radius: 12px; width: 22%; text-align: center; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.step-num { width: 30px; height: 30px; background: #ccc; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin: 0 auto 10px; }
.flow-step h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--color-navy); }
.flow-step p { font-size: 0.8rem; color: #666; }
.flow-arrow { color: #ccc; font-size: 1.5rem; }

/* フッター */
.site-footer { background: var(--color-navy); padding: 60px 0; color: #fff; }
.footer-container { display: flex; justify-content: space-between; }
.footer-links-grid { display: flex; gap: 50px; }
.footer-links-grid h4 { margin-bottom: 20px; font-size: 1rem; color: #fff; }
.footer-links-grid ul { list-style: none; padding: 0; }
.footer-links-grid li { margin-bottom: 10px; }
.footer-links-grid a { color: #aaa; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links-grid a:hover { color: var(--color-gold); }

/* レスポンシブ調整（スマホ対応） */
@media (max-width: 768px) {
    .wf-about-flex, .vision-box-flex, .wf-sim-row, .wf-pricing-grid, .wf-compare-flex, .wf-options-grid, .wf-mock-flex, .wf-sec-grid, .wf-flow-grid, .footer-container { flex-direction: column; }
    .wf-pain-grid, .wf-features-grid { grid-template-columns: repeat(2, 1fr); }
    .wf-price-card, .compare-box, .wf-opt-card, .sec-item, .flow-step { width: 100%; }
    .wf-sim-row { gap: 10px; }
    .vision-arrow, .compare-arrow, .flow-arrow { transform: rotate(90deg); margin: 20px auto; }
    .footer-links-grid { flex-direction: column; gap: 30px; margin-top: 40px; }
}

 /* 4プラン並列表示のためのレイアウト調整 */
        @media (min-width: 769px) {
            .wf-pricing-grid {
                flex-wrap: nowrap !important;
                gap: 15px !important;
            }
            .wf-price-card {
                width: 25% !important;
                padding: 35px 20px !important;
            }
        }
        .price-amount {
            margin-bottom: 5px !important;
        }
        .price-monthly {
            font-size: 0.95rem;
            color: #666;
            font-weight: bold;
            margin-bottom: 25px;
        }
        .pro-note {
            font-size: 0.8rem;
            color: #888;
            text-align: left;
            margin-bottom: 20px;
            line-height: 1.4;
        }

/* =========================================
   ATCボタン (コンバージョン用リッチボタン)
========================================= */
.btn-atc {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* ゴールドを基調としたグラデーション */
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4b486 100%);
    color: #ffffff;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(179, 155, 120, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

/* ホバー時の浮き上がりと影の強調 */
.btn-atc:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(179, 155, 120, 0.6);
}

/* ボタン内のテキストとアイコン */
.btn-atc .atc-text {
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.btn-atc .atc-icon {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* ホバー時に矢印アイコンが少し右に動く（視線誘導） */
.btn-atc:hover .atc-icon {
    transform: translateX(6px);
}

/* キラッと光るシャイニングエフェクト */
.btn-atc::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    /* 3秒に1回光る */
    animation: shineATC 3s infinite;
    z-index: 1;
}

@keyframes shineATC {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* スマホ閲覧時のサイズ調整 */
@media (max-width: 768px) {
    .btn-atc {
        padding: 16px 30px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 320px;
    }
}

/* =============================================================
   LP mobile refinement / 2026-11-14
   Overrides only: existing desktop design remains unchanged.
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
.container, .modal-content, .wf-section, .hero-text { min-width: 0; }
.wf-section-title, .section-title, .hero-description,
.wf-price-card, .wf-feat-card, .wf-opt-card, .compare-box,
.modal-content, .form-group, .footer-links-grid {
    overflow-wrap: anywhere;
}
.faq-question .faq-icon { flex: 0 0 20px; }
/* A generic desktop-only nowrap rule is overridden on narrower devices. */
@media (max-width: 900px) {
    .hero-modern.hero-renew { height: auto; min-height: 0; }
    .hero-modern.hero-renew .hero-container { min-width: 0; }
    .hero-modern.hero-renew .hero-headline .hero-line {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .hero-modern.hero-renew .hero-headline .highlight {
        white-space: normal;
    }
}
@media (max-width: 768px) {
    html { -webkit-text-size-adjust: 100%; }
    .container { width: 100%; padding-left: 18px; padding-right: 18px; }
    .wf-section { padding: 52px 0; }
    .wf-section-title, .section-title { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.4; margin-bottom: 26px; }
    .wf-pain-grid, .wf-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .wf-pricing-grid { flex-direction: column !important; flex-wrap: wrap; gap: 18px; align-items: stretch; }
    .wf-price-card { width: 100% !important; max-width: none; padding: 28px 22px !important; }
    .wf-price-card.highlight { transform: none; }
    .wf-compare-flex { flex-direction: column; gap: 22px; }
    .compare-box { width: 100%; min-width: 0; padding: 25px 20px; }
    .saving-badge { right: 0; top: -14px; width: 75px; height: 75px; font-size: .72rem; }
    .wf-options-grid { flex-direction: column; }
    .wf-opt-card { width: 100%; min-width: 0; }
    .wf-sim-row { flex-direction: column; padding: 18px 14px; }
    .sim-item { width: 100%; min-width: 0; }
    .sim-input-area { display: flex; flex-direction: column; gap: 18px; padding-bottom: 24px; }
    .simulator-box { padding: 24px 16px; }
    .sim-cards { flex-direction: column; }
    .sim-card.recommended { transform: none; }
    .sim-breakdown li, .sim-total { gap: 8px; }
    .modal-overlay { padding: 12px; }
    .modal-content { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); padding: 34px 18px 24px; }
    .modal-close { top: 10px; right: 14px; }
    .radio-group:not(.payment-group) { flex-direction: column; gap: 9px; }
    .radio-card { flex: none; width: 100%; }
    .card-content { padding: 14px; }
    .form-group input, .form-group select, .form-group textarea, .sim-item input, .sim-item select { max-width: 100%; font-size: 16px; }
    .calc-result { flex-wrap: wrap; gap: 5px; }
    .wf-flow-grid { flex-direction: column; }
    .flow-step { width: 100%; }
    .flow-arrow { transform: rotate(90deg); }
    .footer-links-grid { flex-direction: column; gap: 22px; }
    .footer-container { flex-direction: column; }
    .comparison-table-wrapper, .custom-table-wrapper, .feat-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .comparison-table { min-width: 570px; }
    .ct-row { min-width: 570px; }
    .hero-modern.hero-renew .hero-action-main, .hero-modern.hero-renew .hero-action-sub { box-sizing: border-box; }
    .phone-frame { width: min(320px, 100%); height: auto; min-height: 500px; }
    .mock-tabs { flex-wrap: wrap; }
    .mock-tab { min-width: 0; padding: 12px 18px; }
    .btn-large, .btn-atc { max-width: calc(100% - 20px); white-space: normal; }
}
@media (max-width: 420px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .wf-pain-grid, .wf-features-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-modern.hero-renew .hero-headline { font-size: clamp(23px, 6.5vw, 29px); line-height: 1.38; }
    .hero-modern.hero-renew .hero-headline .hero-number { font-size: 1.1em; }
    .hero-modern.hero-renew .hero-container { width: calc(100% - 30px); }
    .modal-content { padding: 32px 14px 20px; }
    .compare-total strong { display: inline-block; margin-left: 5px; font-size: 1.25rem; }
    .sim-total strong { font-size: 1.15rem; }
    .wf-price-card .price-amount { font-size: 2rem; }
    .header-nav { max-width: 88vw; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}


/* =============================================================
   2026-11-15 実機確認に基づくモバイル改善（既存PCデザインは維持）
   ============================================================= */
html,body {max-width:100%;}
*,*::before,*::after {box-sizing:border-box;}
/* 画像等の大きな要素を画面外に押し出さない */
.container,.wf-section,.wf-mock-flex,.wf-vision-content,.wf-pricing-grid,.wf-compare-flex,
.header-container,.footer-container {min-width:0;max-width:100%;}
img,video,svg {max-width:100%;height:auto;}
/* アクセシブルなハンバーガーボタン */
.hamburger {border:0;background:transparent;padding:0;appearance:none;touch-action:manipulation;}
.hamburger:focus-visible {outline:2px solid var(--color-gold);outline-offset:6px;}
/* OWASP: 一つの縦スクロール領域に集約。横方向のみ表内スクロール */
#owasp-modal {padding:12px;overflow:hidden;align-items:center;}
#owasp-modal .owasp-content {
 display:block;width:min(800px,100%);max-width:800px;
 max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden;
 padding:30px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
}
#owasp-modal .owasp-table-scroll {
 width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;
 border:1px solid #eee;border-radius:8px;-webkit-overflow-scrolling:touch;
}
#owasp-modal .owasp-table-scroll .comparison-table {min-width:600px;}
@media(max-width:768px) {
 html {overflow-x:clip;}
 body {overflow-x:clip;min-width:0;}
 section,.wf-section,footer {max-width:100%;}
 /* ハンバーガーが開いた際に画面外の横スクロールを作らない */
 .header-nav {width:min(300px,88vw);right:0;transform:translateX(110%);transition:transform .25s ease;overflow-y:auto;max-height:100dvh;padding-bottom:24px;visibility:hidden;}
 .header-nav.active {right:0;transform:translateX(0);visibility:visible;}
 .hamburger {flex:0 0 30px;width:30px;height:26px;}
 .mobile-nav-open {overflow:hidden;}
 /* 日本語の不自然な一文字折り返しを抑制 */
 .wf-section-title,.section-title,.modal-title,.modal-lead,.wf-section p,.vision-col li,
 .wf-feat-card,.wf-opt-card,.wf-price-card,.footer-links-grid a,.wf-vision-tabs button {
  overflow-wrap:normal;word-break:normal;line-break:strict;
 }
 .wf-section-title,.section-title,.modal-title {text-wrap:balance;}
 .wf-section p,.modal-lead {text-wrap:pretty;}
 .wf-section-title,.section-title {font-size:clamp(1.35rem,5.4vw,1.8rem);line-height:1.45;}
 /* 4つの業種は2列に。縦書きに見える改行を防止 */
 .wf-vision-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-bottom:24px;}
 .wf-vision-tabs button {width:100%;min-width:0;padding:12px 7px;white-space:nowrap;font-size:clamp(.85rem,3.7vw,1rem);line-height:1.4;}
 .vision-col {width:100%;max-width:100%;}
 .vision-box-flex {width:100%;}
 /* モック画像は読み取れる幅を確保し、画像だけを横に移動可能 */
 .wf-mock-flex {width:100%;gap:20px;}
 .mock-images {width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:8px 2px 18px;}
 .mock-images img {display:block;width:560px;max-width:none;height:auto;}
 .mock-info {width:100%;min-width:0;}
 /* モーダルはタイトル・閉じるボタンが重ならないよう調整 */
 .modal-overlay {height:100dvh;max-width:100vw;align-items:center;padding:12px;}
 .modal-content {max-height:calc(100dvh - 24px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
 .modal-title {padding-right:30px;font-size:clamp(1.3rem,5vw,1.75rem);line-height:1.4;}
 .modal-lead {font-size:.9rem;line-height:1.75;}
 #owasp-modal .owasp-content {padding:45px 18px 22px;}
 #owasp-modal .modal-title {font-size:1.4rem!important;padding-right:24px;}
 #owasp-modal .modal-lead {font-size:.9rem!important;}
 #owasp-modal .owasp-table-scroll {margin:14px 0;}
 #features-modal .modal-content {padding:46px 14px 22px;}
 #features-modal .modal-title {font-size:1.35rem;}
 /* フッター余白をコンパクトにし、読みやすい階層をつける */
 .site-footer {padding:40px 0 64px;}
 .footer-container {align-items:stretch;text-align:left;gap:20px;}
 .footer-info {margin:0 0 4px;text-align:center;}
 .footer-links-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;margin-top:0;width:100%;}
 .footer-links-grid h4 {margin-bottom:10px;font-size:.96rem;}
 .footer-links-grid li {margin-bottom:8px;}
 .footer-links-grid a {font-size:.85rem;line-height:1.5;}
 .footer-links-grid>div:last-child {grid-column:1/-1;}
 /* 横幅の広いコンテンツはページ全体ではなく自身でスクロール */
 .comparison-table-wrapper,.custom-table-wrapper,.feat-table-scroll {max-width:100%;overscroll-behavior-x:contain;}
}
@media(max-width:375px) {
 .wf-vision-tabs button {font-size:.84rem;padding:11px 4px;}
 .footer-links-grid {grid-template-columns:1fr;gap:18px;}
 .footer-links-grid>div:last-child {grid-column:auto;}
 .modal-title {font-size:1.25rem;}
}


/* =============================================================
   2026-11-15: iPhone実機からの再修正
   既存のJS、登録処理、PC画面のレイアウトは変更しない
   ============================================================= */
@media (max-width: 768px) {
  /* メニューの3本線/閉じる×は同じ中心点を軸に描画する。 */
  #hamburger.hamburger {
    display:block; position:relative; flex:0 0 36px;
    width:36px; height:36px; min-width:36px;
    margin:0; padding:0; background:transparent; border:0;
    border-radius:6px; cursor:pointer; z-index:2002;
    appearance:none; -webkit-appearance:none;
  }
  #hamburger.hamburger span {
    position:absolute; display:block;
    left:4px; top:17px; bottom:auto; right:auto;
    width:28px; height:2.5px; border-radius:2px;
    padding:0; margin:0;
    background:var(--color-navy);
    transform-origin:center center;
    transition:transform .22s ease, opacity .15s ease;
    box-shadow:none;
  }
  #hamburger.hamburger span:nth-child(1) {transform:translateY(-9px);}
  #hamburger.hamburger span:nth-child(2) {transform:none;}
  #hamburger.hamburger span:nth-child(3) {transform:translateY(9px);}
  #hamburger.hamburger.active span:nth-child(1) {transform:rotate(45deg);}
  #hamburger.hamburger.active span:nth-child(2) {opacity:0;transform:scaleX(0);}
  #hamburger.hamburger.active span:nth-child(3) {transform:rotate(-45deg);}
  /* 白地のドロワーにすることで背後のヒーローが文字に透けない。 */
  #header-nav.header-nav {background:#fff; opacity:1;}
  #header-nav.header-nav a {color:var(--color-navy);}
  /* 日本語を文字単位で強制切断しない。小さな画面はフォントも調整。 */
  #sim-result-title {font-size:clamp(1.15rem,4.6vw,1.5rem)!important;
    line-height:1.65; overflow-wrap:normal;word-break:normal;line-break:strict;text-wrap:balance;}
  #sim-recommended-name {display:inline-block;white-space:nowrap;}
  .wf-section-title,.section-title,.wf-price-card h3,.wf-price-card h4,
  .modal-title,.modal-lead,.feat-compare-note {overflow-wrap:normal;word-break:normal;line-break:strict;}
  /* 比較表の左端のみ固定。スクロール対象は比較表の横方向に限定。 */
  #features-modal .feat-table-scroll {
    width:100%;max-width:100%;position:relative;overflow-x:auto;
    overflow-y:hidden;-webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;isolation:isolate;
  }
  #features-modal .comparison-table {
    width:760px!important;min-width:760px!important;max-width:none!important;
    table-layout:fixed;border-collapse:separate;border-spacing:0;
    overflow:visible!important;border-radius:0;
  }
  #features-modal .comparison-table thead th:first-child,
  #features-modal .comparison-table tbody tr:not(.feat-category) > td:first-child {
    position:-webkit-sticky!important;position:sticky!important;left:0!important;
    width:175px!important;min-width:175px!important;max-width:175px!important;
    z-index:4;background:#fff!important;
    box-shadow:3px 0 6px rgba(43,53,65,.17);
    white-space:normal;overflow-wrap:normal;word-break:normal;
  }
  #features-modal .comparison-table thead th:first-child {
    z-index:6;background:var(--color-navy)!important;color:#fff!important;
  }
  #features-modal .comparison-table thead th:not(:first-child),
  #features-modal .comparison-table tbody tr:not(.feat-category) > td:not(:first-child) {
    width:195px!important;min-width:195px!important;max-width:195px!important;
  }
  #features-modal .comparison-table thead th:last-child {
    background:var(--color-gold)!important;
  }
  #features-modal .comparison-table tbody tr.feat-category td {
    position:static!important;box-shadow:none;
  }
  #features-modal .comparison-table td {vertical-align:middle;}
}
@media(max-width:390px) {
 #features-modal .comparison-table thead th:first-child,
 #features-modal .comparison-table tbody tr:not(.feat-category)>td:first-child {
   width:150px!important;min-width:150px!important;max-width:150px!important;
 }
 #features-modal .comparison-table {width:735px!important;min-width:735px!important;}
}


/* かけつけ設定（登録モーダル） */
.onsite-service-section {text-align:left;}
.onsite-description {font-size:.94rem;line-height:1.8;color:#555;margin:8px 0 16px;overflow-wrap:anywhere;}
.onsite-options {margin-top:14px;padding:18px;background:#f8f7f3;border:1px solid #ded7c9;border-radius:12px;min-width:0;}
.onsite-options[hidden] {display:none !important;}
.onsite-options label {display:block;font-weight:700;font-size:.91rem;color:#2B3541;margin:14px 0 8px;}
.onsite-options select {display:block;width:100%;max-width:100%;min-height:46px;padding:10px 12px;border:1px solid #b8b8b8;border-radius:8px;background:#fff;font-size:16px;box-sizing:border-box;color:#2B3541;}
.onsite-options select:disabled {color:#777;background:#efefef;}
.onsite-status {font-size:.86rem;color:#7d5c29;line-height:1.65;margin:12px 0 0;}
.onsite-note {font-size:.8rem;line-height:1.7;color:#666;margin:10px 0 0;}
@media(max-width:600px){.onsite-options{padding:14px 12px}.onsite-service-section h3{line-height:1.7}}

/* かけつけ設定：空き日カレンダー／1時間枠（既存CSSに追記） */
.onsite-options .onsite-calendar-label {display:block;font-weight:700;font-size:.91rem;color:#2B3541;margin:16px 0 8px;}
.onsite-calendar {width:100%;max-width:100%;padding:12px;background:#fff;border:1px solid #ded7c9;border-radius:12px;box-sizing:border-box;}
.onsite-calendar-head {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;color:#2B3541;}
.onsite-calendar-head strong {font-size:1rem;}
.onsite-calendar-nav {display:grid;place-items:center;width:38px;height:38px;border:1px solid #d5c9b5;border-radius:9px;background:#fff;color:#2B3541;font-size:1.55rem;cursor:pointer;}
.onsite-calendar-nav:disabled {opacity:.3;cursor:default;}
.onsite-weekdays,.onsite-calendar-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;}
.onsite-weekdays {margin-bottom:6px;color:#65707a;font-size:.79rem;font-weight:700;}
.onsite-weekdays span:first-child {color:#b65353;}
.onsite-weekdays span:last-child {color:#4675a5;}
.onsite-day {min-width:0;aspect-ratio:1/1;border:1px solid transparent;border-radius:9px;background:transparent;color:#b0b0b0;font-size:.88rem;cursor:default;}
.onsite-day.is-available {background:#f8f3e9;border-color:#dfd0b5;color:#2B3541;font-weight:700;cursor:pointer;}
.onsite-day.is-available:hover,.onsite-day.is-selected {background:#B39B78;border-color:#B39B78;color:#fff;}
.onsite-day:focus-visible,.onsite-time-option:focus-visible,.onsite-calendar-nav:focus-visible {outline:3px solid #80602e;outline-offset:2px;}
.onsite-time-wrap[hidden] {display:none!important;}
.onsite-time-buttons {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.onsite-time-option {min-width:0;min-height:44px;padding:8px 4px;border:1px solid #d3c4a9;border-radius:8px;background:#fff;color:#2B3541;font-size:.85rem;cursor:pointer;white-space:nowrap;}
.onsite-time-option:hover,.onsite-time-option.is-selected {background:#2B3541;border-color:#2B3541;color:#fff;}
.onsite-selection {font-weight:700;color:#2B3541;font-size:.86rem;line-height:1.6;margin:10px 0 0;}
@media(max-width:420px){.onsite-calendar{padding:9px}.onsite-weekdays,.onsite-calendar-days{gap:2px}.onsite-time-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.onsite-time-option{font-size:.81rem}}

/* AI初期設定サポート 3択・FAQプロンプト（2026-11） */
.ai-setup-radio-group{display:grid;gap:10px;margin-top:12px}
.ai-setup-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #dedede;border-radius:10px;padding:14px;background:#fff;cursor:pointer;text-align:left;line-height:1.6}
.ai-setup-option:has(input:checked){border-color:#B39B78;background:#fbf8f2;box-shadow:0 0 0 1px #B39B78 inset}
.ai-setup-option input{flex:none;margin-top:5px;accent-color:#B39B78}
.ai-setup-option span{display:block;min-width:0}
.ai-setup-option strong{display:block;color:#2B3541;font-size:14px}
.ai-setup-option small{display:block;margin-top:4px;font-size:12px;color:#666;line-height:1.6}
.ai-setup-lead{font-size:13px;color:#555;margin:8px 0}
.ai-setup-preview{margin-top:14px;padding:15px;border:1px solid #e4dccf;background:#faf8f4;border-radius:10px}
.ai-setup-preview p{font-size:13px;line-height:1.7;margin:0 0 10px}
.ai-guide-prompt{display:block;box-sizing:border-box;resize:vertical;width:100%;min-width:0;min-height:150px;max-width:100%;padding:12px;font-size:13px;line-height:1.75;background:#fff;color:#2B3541;border:1px solid #d3d5d8;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere}
.ai-guide-copy{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;min-height:42px;background:#2B3541;color:#fff;border:0;border-radius:7px;padding:10px 16px;cursor:pointer;font-size:13px;font-weight:700}
.ai-guide-copy:hover{background:#46515f}
.ai-guide-warning,.ai-setup-preview .ai-guide-warning{margin:9px 0 0;font-size:12px;color:#9b3b31;line-height:1.6}
#onsite-service-section[hidden],#ai-setup-preview[hidden]{display:none!important}
@media(max-width:600px){.ai-setup-option{padding:12px}.ai-guide-prompt{font-size:13px;min-height:145px}.ai-guide-copy{width:100%}}

/* TecaReGemご購入者専用：ビューポート右下に固定（heroから独立） */
.floating-badge.hero-tecaregem-floating {
    position: fixed;
    top: auto;
    left: auto;
    bottom: 30px;
    right: 30px;
    width: 124px;
    height: 124px;
    box-sizing: border-box;
    z-index: 1000;
    padding: 10px;
}
.floating-badge.hero-tecaregem-floating .badge-text {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: keep-all;
}
.floating-badge.hero-tecaregem-floating .badge-icon {
    stroke: #fff;
    fill: none;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .floating-badge.hero-tecaregem-floating {
        width: 94px;
        height: 94px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: calc(20px + env(safe-area-inset-right, 0px));
        padding: 6px;
    }
    .floating-badge.hero-tecaregem-floating .badge-text { font-size: 10px; }
    .floating-badge.hero-tecaregem-floating .badge-icon { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .floating-badge.hero-tecaregem-floating,
    .floating-badge.hero-tecaregem-floating .pulse-ring { animation: none; }
}

/* TecaReGem購入者限定：通常料金と特典額の比較（通常のLPには表示されません） */
.teca-pricing-intro {
    display:flex; align-items:center; justify-content:center; gap:10px;
    max-width:760px; margin:0 auto 30px; padding:13px 18px;
    border:1px solid rgba(179,155,120,.55); border-radius:12px;
    background:#fffaf1; color:#564327; font-size:.95rem; line-height:1.6;
}
.teca-pricing-intro i { color:#a88a50; font-size:1.2rem; flex-shrink:0; }
.teca-pricing-intro strong { color:#796035; }
.wf-price-card .teca-price-benefit {
    background:#fcf8ef; border:1px solid #e8d9bf; border-radius:10px;
    padding:12px 10px; margin:-10px 0 24px;
    color:#453b2c; text-align:center;
}
.teca-regular-price {font-size:.85rem; color:#76706a; margin-bottom:8px;}
.teca-regular-price del, .teca-modal-discount del {text-decoration:line-through; text-decoration-thickness:1.5px;}
.teca-benefit-bottom {display:flex; flex-direction:column; align-items:center; gap:7px;}
.teca-limited-tag {display:inline-block; background:#a68b61; color:#fff; border-radius:100px; padding:3px 11px; font-size:.72rem; font-weight:700; line-height:1.5;}
.teca-benefit-bottom strong {font-size:1rem; color:#a03f2d; font-weight:800; white-space:normal;}
.teca-modal-discount {display:block; margin-top:5px; font-size:.76rem; color:#776b5d; line-height:1.5;}
.teca-modal-discount b {color:#a03f2d; font-weight:700;}
@media(max-width:768px) {
    .teca-pricing-intro {text-align:left; font-size:.88rem; padding:12px 14px;}
    .wf-price-card .teca-price-benefit {max-width:340px; margin:-6px auto 20px;}
    .teca-modal-discount {font-size:.72rem;}
}
