/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fffe;
    transform: scale(1.0);
    transform-origin: top left;
    width: 100%;
    min-height: 100vh;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* サイトタイトル */
.site-title {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a90e2;
    margin: 0;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.site-logo-image {
    height: 2.5rem;
    width: auto;
    vertical-align: middle;
}

.site-logo-text {
    flex: 1;
    text-align: left;
    line-height: 1.2;
    min-width: 0;
}

.site-logo-br {
    display: none;
}

/* ヘッダー */
.header {
    background: url('images/2025.10.05右.png') center/cover;
    color: white;
    padding: 120px 0;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    position: relative;
    overflow: hidden;
    background-position: right center;
    background-repeat: no-repeat;
}


/* 円形の半透明白背景をヘッダー全体に付与 */
.header::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    width: 390px;  /* 768px時点より少し小さく、固定サイズ */
    height: 390px; /* 画面サイズを変えても同一サイズ */
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    pointer-events: none;
}
/* ヘッダー内のテキストは前面に */
.header .header-content { position: relative; z-index: 2; }

/* ヘッダーコンテンツ */
.header-content {
    text-align: left;
    position: relative;
    z-index: 2;
    margin-right: 50%;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-pre-title {
    font-size: 1.3rem;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    color: #ef3000;
    margin-bottom: 15px;
    line-height: 1.4;
    padding: 10px 20px;
    display: block;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
}

.header-problem {
    font-size: 1.4rem;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    color: #ff3300;
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 10px 20px;
    display: block;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
}

.header-problem strong {
    color: #ff3300;
    font-size: 1.5rem;
}

.logo {
    font-size: 2.2rem;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: black;
    margin-bottom: 15px;
    margin-left: 5px;
    text-shadow: 4px 4px 8px rgba(255,255,255,1.0), 2px 2px 6px rgba(255,255,255,0.9), 0 0 15px rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
    line-height: 1.3;
    transform: perspective(500px) rotateX(5deg);
    width: 100%;
    box-sizing: border-box;
    padding: 10px 10px;
}

.highlight-text {
    color: #ffeb3b;
    font-size: 2.2rem;
    background: #ef3000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: none;
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.3); }
    50% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.5), 0 0 30px rgba(135,206,235,0.4); }
}

.header-subtitle {
    font-size: 1.2rem;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    color: black;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 3px 3px 6px rgba(255,255,255,0.9), 1px 1px 3px rgba(255,255,255,0.8), 0 0 10px rgba(255,255,255,0.5);
    padding: 12px 20px;
    display: block;
    margin-top: 10px;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
}

/* ヘッダー内テキスト 白縁 */
.header .header-content .header-pre-title,
.header .header-content .header-subtitle,
.header .header-content .logo {
    -webkit-text-stroke: 0.05px #ffffff;
    text-shadow:
        -0.5px -0.5px 0 rgba(255,255,255,0.95),
         0.5px -0.5px 0 rgba(255,255,255,0.95),
        -0.5px  0.5px 0 rgba(255,255,255,0.95),
         0.5px  0.5px 0 rgba(255,255,255,0.95);
}

/* 見出し本体（フランチャイズ比較サイトが〜）に白縁のみ再付与（既存のtext-shadowは維持） */
.header .header-content .logo {
    -webkit-text-stroke: 0.3px #ffffff !important;
}

/* 「解決します！」の塗りを維持（グラデーション）し、白縁＋.logoと同じ白いシャドウを適用 */
.header .header-content .logo .highlight-text {
    color: #ff3300;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.7px #ffffff !important;
    
}

/* .highlight-text は元のグラデーション表示を維持（白縁なし） */

/* ヘッダー内テキスト 白縁（上記で統一適用） */

/* メインビジュアル */
.hero {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e9f6 50%, #b8ddf0 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(74,144,226,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(135,206,235,0.1) 0%, transparent 50%);
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    color: #ff3300;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
    transform: perspective(500px) rotateX(5deg);
}
.hero-title-text {
    padding-left: 10px;
    padding-right: 10px;
    background: linear-gradient(transparent 60%, #ffff66 40%);

}

@keyframes titleBounce {
    0% { transform: translateY(-30px); opacity: 0; }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); opacity: 1; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #2c72af;
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    font-weight: bold;
}

/* 問題リスト */
.problem-list {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.problem-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.problem-bubbles {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    z-index: 2;
}

.problem-bubble {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 15px;
    border-radius: 25px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #4a90e2;
    font-size: 1rem;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.bubble-left,
.bubble-center,
.bubble-right {
    position: static;
    transform: none;
    animation: none;
}

.problem-image-center {
    width: 200px;
    height: 200px;
    object-fit: contain;
    z-index: 1;
}

.problem-item {
    background: #fefefe;
    padding: 15px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #f8f8f8;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.problem-item:first-child,
.problem-item:nth-child(2),
.problem-item:nth-child(3) {
    flex-direction: column;
    text-align: center;
    min-width: 200px;
}

.problem-item:first-child span,
.problem-item:nth-child(2) span,
.problem-item:nth-child(3) span {
    white-space: nowrap;
}

.problem-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.problem-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    background-color: transparent;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    object-fit: contain;
    filter: contrast(1.1) brightness(1.05);
    -webkit-filter: contrast(1.1) brightness(1.05);
}

.problem-item span:last-child {
    color: #333;
    font-weight: 500;
}

.solution-text {
    font-size: 1.5rem;
    color: #2c72af;
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
    font-weight: bold;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    animation: featureFloat 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.feature-item:nth-child(1) { --delay: 0s; }
.feature-item:nth-child(2) { --delay: 0.5s; }
.feature-item:nth-child(3) { --delay: 1s; }

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    animation: iconSpin 4s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(74,144,226,0.3));
}

.feature-icon img,
img.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

/* ボタンスタイル */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2 0%, #6bb3ff 50%, #87ceeb 100%);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.6);
    animation: none;
}

/* セクション共通 */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    color: #ff3300;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
}
.section-title-text {
    padding-left: 10px;
    padding-right: 10px;
    background: linear-gradient(transparent 60%, #ffff66 40%);

}

.section-title::after {
    display: none;
}

.section-title::before {
    display: none;
}

@keyframes sparkle {
    0%, 100% { 
        transform: translateY(-50%) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-50%) scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

/* ターゲット層アピール */
.target-appeal {
    background-color: white;
}

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

.target-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(74,144,226,0.15);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.target-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #4a90e2, #6bb3ff, #87ceeb, #4a90e2);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.target-card:hover::before {
    opacity: 0.1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.target-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74,144,226,0.25);
    border-color: rgba(74,144,226,0.3);
}

.target-card h4 {
    color: #6b8db5;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 比較セクション（共通スタイルを両方に適用） */
.comparison-costs,
.comparison-points {
    background: linear-gradient(135deg, #f4f8fc 0%, #e6f2fa 100%);
}

/* コスト優位性セクション */
.cost-advantage {
    margin: 50px 0;
}

.cost-highlight {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #8aafcc;
}

.cost-highlight h4 {
    text-align: center;
    font-size: 1.5rem;
    color: #6b8db5;
    margin-bottom: 30px;
    font-weight: bold;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-item h5 {
    color: #6b8db5;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

.advantage-item p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.comparison-table {
    overflow-x: auto;
    margin-bottom: 50px;
    background: white;
    border-radius: 15px;
    /* softer shadow applied to wrapper so corners look cleaner */
    box-shadow: 0 6px 14px -6px rgba(0,0,0,0.12), 0 4px 10px -4px rgba(0,0,0,0.08);
    overflow-y: visible;
}

.comparison-table table {
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

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

.comparison-table th {
    background: #2c72af;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.comparison-table .highlight {
    background: linear-gradient(135deg, #6b8db5 0%, #8aafcc 100%);
    color: white;
    font-weight: bold;
    position: relative;
    box-shadow: 0 2px 8px rgba(107, 141, 181, 0.3);
}

.comparison-table th.highlight {
    background: #ef3000;
    font-size: 1.3rem;
    position: relative;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: 2px solid #ff3300;
}


.comparison-table td.highlight {
    background: linear-gradient(135deg, #fff8f7 0%, #ffebe8 100%);
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #ff3300;
    color: #ff3300;
}

/* 1列目（項目列）のデータセルは常に太字（>=769px でも適用） */
.comparison-table td:first-child {
    font-weight: bold;
}

.comparison-table .table-link {
    font-size: 0.75rem;
}


.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* 特別価格スタイル */
.special-price {
    color: #d73527 !important;
    font-size: 2.2rem !important;
}

.price-note {
    display: block;
    font-size: 0.8rem;
    color: #ff3300;
    font-weight: bold;
    margin-top: 5px;
}

.affiliate-link.special {
    background: linear-gradient(135deg, #ff3300 0%, #ff3300 100%);
    font-size: 1.1rem;
    padding: 18px;
}

.affiliate-link.special:hover {
    box-shadow: 0 5px 15px rgba(215, 53, 39, 0.3);
}

.fc-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.fc-card:hover {
    transform: translateY(-5px);
}

.fc-card.recommended {
    border: 3px solid #d73527;
    position: relative;
    box-shadow: 0 15px 40px rgba(215, 53, 39, 0.3);
    transform: scale(1.05);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff3300 0%, #ff3300 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(215, 53, 39, 0.4);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(215, 53, 39, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(215, 53, 39, 0.6);
        transform: scale(1.05);
    }
}

.fc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f2f8;
}

.fc-header h4 {
    font-size: 1.5rem;
    color: #6b8db5;
}

.fc-features {
    list-style: none;
    margin-bottom: 25px;
}

.fc-features li {
    padding: 8px 0;
    color: #8aafcc;
}

.fc-price {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f6fafc;
    border-radius: 10px;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6b8db5;
}

.affiliate-link {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #6b8db5 0%, #8aafcc 100%);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.affiliate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 141, 181, 0.3);
}

/* FC詳細リンクセクション */
.fc-link-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8f2f8;
    text-align: center;
}

.fc-link-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.fc-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-detail-link {
    color: #6b8db5;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.fc-detail-link:hover {
    text-decoration: underline;
    background-color: rgba(107, 141, 181, 0.1);
}

/* 成功事例 */
.success-stories {
    background-color: white;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: #f6fafc;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e8f2f8;
}

.story-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
}

.story-card h4 {
    color: #6b8db5;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.story-location {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.story-content {
    color: #8aafcc;
    font-style: italic;
    line-height: 1.6;
}

/* メリットセクション */
.benefits {
    background: linear-gradient(135deg, #f4f8fc 0%, #e6f2fa 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-card {
    background: #fefefe;
    padding: 30px;
    border-radius: 0px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #f8f8f8;
    transition: none;
}

.benefit-card:hover {
    transform: none;
}

.benefit-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
}

.benefit-card h4 {
    color: #6b8db5;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 900;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
}

.benefit-card p {
    color: #666;
    font-weight: 600;
}

/* 表内リンク */
.table-link {
    display: inline-block;
    padding: 8px 16px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.table-link:hover {
    background: #357abd;
}

.table-link.recommended {
    background: #fb3f11;
}

.table-link.recommended:hover {
    background: #d63526;
}

/* 画像セクション */
.image-section {
    background: url('images/2025.10.07.png') left center/cover no-repeat;
    padding: 100px 0;
    position: relative;
    min-height: 500px;
}


.image-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 500px;
}

.text-overlay {
    max-width: 500px;
    margin-right: 50px;
}

.text-overlay h3 {
    font-size: 2.2rem;
    color: #ff3300;
    margin-bottom: 25px;
    line-height: 1.4;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    text-shadow: 2px 2px 4px rgba(255 255, 255, 0.7);
}

.text-overlay p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: black;
    opacity: 0.9;
    margin-bottom: 20px;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(255,255,255,0.9), 1px 1px 3px rgba(255,255,255,0.8), 0 0 10px rgba(255,255,255,0.5);
}

.text-overlay p:last-child {
    margin-bottom: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-logo {
        font-size: 0.95rem;
    }
    
    .site-logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .site-logo-br {
        display: block;
    }
    
    .header {
        padding: 80px 0;
        background-position: 80% center;
    }
    
    .header-content {
        margin-right: 0;
        padding-left: 0px !important;
        text-align: center;
    }
    
    .logo {
        font-size: 1.3rem;
        padding: 8px;
        margin-left: 0px !important;
        background: transparent !important;
    
    }
    
    .highlight-text {
        font-size: 1.6rem;
    }
    
    .header-pre-title {
        font-size: 0.95rem;
        padding: 8px 10px;
        text-shadow: 1px 1px 0 rgba(255,255,255,0.8) !important;

    }
    
    .header-problem {
        font-size: 1.2rem;
        padding: 8px 10px;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
        padding: 8px 10px;
        text-shadow: 1px 1px 0 rgba(255,255,255,0.8) !important;

    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-icon {
        width: 100px;
        height: 100px;
    }
    
    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table table {
        width: 100%;
        table-layout: fixed;
        font-size: 0.80rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        white-space: normal;
        word-break: break-word;
    }
    
    /* 768px以下: ヘッダー行と第2列をさらに小さく */
    .comparison-table th {
        font-size: 0.75rem;
    }
    .comparison-table th.highlight,
    .comparison-table td.highlight {
        font-size: 0.80rem;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 1;
        min-width: 80px;
    }
    
    .comparison-table th.highlight {
        background: linear-gradient(135deg, #ff3300 0%, #ff3300 100%);
    }
    
    .comparison-table td.highlight {
        background: linear-gradient(135deg, #fff8f7 0%, #ffebe8 100%);
    }
    
    .comparison-table th:first-child {
        background: #4a90e2;
        color: white;
    }
    
    .comparison-table td:first-child {
        background: #f8f9fa;
        font-weight: bold;
        color: #2c3e50;
    }
    
    /* 768px以下: 特定行をさらに小さく（項目行・初期費用行・年収目安行） */
    .comparison-table thead th {
        font-size: 0.7rem;
    }
    .comparison-table tbody tr:nth-child(1) td,
    .comparison-table tbody tr:nth-child(6) td {
        font-size: 0.7rem;
    }
    
    .problem-bubbles {
        flex-direction: column;
        gap: 15px;
    }
    
    .problem-bubble {
        font-size: 0.9rem;
        padding: 15px 12px;
        min-height: 60px;
    }
    
    .problem-image-center {
        width: 150px;
        height: 150px;
    }
    
    .image-section {
        padding: 60px 0;
        min-height: 400px;
        background-position: 25% center;
    }
    
    .image-overlay-content {
        justify-content: center;
        min-height: 400px;
    }
    
    .text-overlay {
        margin-right: 0;
        margin: 0 20px;
        padding: 30px;
        max-width: 100%;
        background: rgba(255,255,255,0.6);
        border-radius: 8px;
    }
    
    .text-overlay h3 {
        font-size: clamp(1.1rem, 5vw, 1.8rem);
    }
    
    .text-overlay p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .target-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 15px;
    }
}

/* LINE CTA */
.line-cta {
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.line-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ff3300;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9), 1px 1px 3px rgba(255,255,255,0.5);
    transform: perspective(500px) rotateX(5deg);
    background: rgba(255,255,255,0.8);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(255,255,255,0.7);
    padding: 15px 20px;
    border-radius: 8px;
    color: #333;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-benefit {
    background: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
}

.line-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #00C300, #00E600, #00C300);
    background-size: 200% 200%;
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 195, 0, 0.4);
    animation: lineButtonGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.line-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.line-button:hover::before {
    left: 100%;
}

@keyframes lineButtonGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 8px 25px rgba(0, 195, 0, 0.4);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 12px 35px rgba(0, 230, 0, 0.6);
    }
}

.line-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 195, 0, 0.6);
    animation: none;
}

.line-icon {
    font-size: 1.5rem;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* フッター */
.footer {
    background: #475a6b;
    color: white;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #8aafcc;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #6b8db5;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-link {
    margin: 0;
}

.footer-link a {
    color: #8aafcc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #b8ddf0;
    text-decoration: underline;
}

/* 480px以下のレスポンシブ対応 */
@media (max-width: 480px) {
    .site-logo {
        font-size: 0.9rem;
    }
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 60px 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .header-pre-title {
        font-size: 0.9rem;
    }
    
    .header-problem {
        font-size: 1.1rem;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .benefit-icon {
        width: 80px;
        height: 80px;
    }
    
    .comparison-table table {
        width: 100%;
        table-layout: fixed;
        font-size: 0.75rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
        white-space: normal;
        word-break: break-word;
    }
    
    /* 480px以下: ヘッダー行と第2列をさらに小さく */
    .comparison-table th {
        font-size: 0.7rem;
    }
    .comparison-table th.highlight,
    .comparison-table td.highlight {
        font-size: 0.75rem;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: 70px;
    }
    
    /* 480px以下: 特定行をさらに小さく（項目行・初期費用行・年収目安行） */
    .comparison-table thead th {
        font-size: 0.65rem;
    }
    .comparison-table tbody tr:nth-child(1) td,
    .comparison-table tbody tr:nth-child(6) td {
        font-size: 0.65rem;
    }
    
    .problem-bubble {
        font-size: 0.8rem;
        padding: 12px 8px;
        min-height: 50px;
    }
    
    .problem-image-center {
        width: 120px;
        height: 120px;
    }
    
    .text-overlay h3 {
        font-size: clamp(1.1rem, 5vw, 1.8rem);
    }
    
    .text-overlay p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
    
    .comparison-table .table-link {
        font-size: 0.65rem;
        padding: 6px 8px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
    }
    /* add semi-transparent white background behind text */
    .text-overlay {
        background: rgba(255,255,255,0.6);
        border-radius: 8px;
    }
    /* 1列目（項目列）の文字サイズを常に統一 */
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        font-size: 0.9rem !important;
    }
    /* 「初期費用」「年収目安」行の1列目も同じサイズに強制 */
    .comparison-table tbody tr:nth-child(1) td:first-child,
    .comparison-table tbody tr:nth-child(6) td:first-child {
        font-size: 0.9rem !important;
    }
}


/* プライバシーポリシー専用スタイル */
header.privacy-header {
    background: url('images/10.23.jpeg') right 35%/cover !important;
    background-position: right 35% !important;
}

@media (max-width: 768px) {
    header.privacy-header {
        background-position: 80% 35% !important;
    }
}

header.privacy-header .header-content {
    margin-top: 120px;
    padding-top: 40px;
}

.privacy-content {
    background: linear-gradient(135deg, #f4f8fc 0%, #e6f2fa 100%);
    padding: 80px 0;
}

.privacy-text {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 1.8;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

.privacy-intro {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    font-weight: 600;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section-title {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f2f8;
}

.privacy-section p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.privacy-list {
    color: #555;
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
}

.privacy-sublist {
    margin-top: 10px;
    padding-left: 20px;
}

.privacy-sublist li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* プライバシーポリシー専用レスポンシブ対応 */
@media (max-width: 768px) {
    .privacy-content {
        padding: 60px 0;
    }
    
    .privacy-text {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .privacy-intro {
        font-size: 1rem;
        padding: 15px;
    }
    
    .privacy-section-title {
        font-size: 1.3rem;
    }
    
    .privacy-section p {
        font-size: 0.95rem;
    }
    
    .privacy-list li {
        font-size: 0.95rem;
    }
    
    .privacy-sublist li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 0.9rem;
    }
    .privacy-text {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .highlight-text {
        font-size: 1.25rem;
    }
    
    .privacy-intro {
        font-size: 0.95rem;
        padding: 12px;
    }
    
    .privacy-section-title {
        font-size: 1.2rem;
    }
    
    .privacy-section p {
        font-size: 0.9rem;
    }
    
    .privacy-list li {
        font-size: 0.9rem;
    }
    
    .privacy-sublist li {
        font-size: 0.85rem;
    }
}

/* 320px以下のレスポンシブ対応 */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .site-logo {
        font-size: 0.85rem;
    }
    
    .header {
        padding: 50px 0;
        background-position: 80% center;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .header-pre-title {
        font-size: 0.85rem;
    }
    
    .header-problem {
        font-size: 1rem;
    }
    
    .header-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
    }
    
    .comparison-table table {
        width: 100%;
        table-layout: fixed;
        font-size: 0.7rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 6px 4px;
        white-space: normal;
        word-break: break-word;
    }
    
    /* 320px以下: ヘッダー行と第2列をさらに小さく */
    .comparison-table th {
        font-size: 0.65rem;
    }
    .comparison-table th.highlight,
    .comparison-table td.highlight {
        font-size: 0.7rem;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: 60px;
    }
    
    /* 320px以下: 特定行をさらに小さく（項目行・初期費用行・年収目安行） */
    .comparison-table thead th {
        font-size: 0.6rem;
    }
    .comparison-table tbody tr:nth-child(1) td,
    .comparison-table tbody tr:nth-child(6) td {
        font-size: 0.6rem;
    }
    
    .problem-bubble {
        font-size: 0.8rem;
        padding: 12px 8px;
        min-height: 50px;
    }
    
    .problem-image-center {
        width: 120px;
        height: 120px;
    }
    
    .text-overlay h3 {
        font-size: clamp(1.1rem, 5vw, 1.8rem);
    }
    
    .text-overlay p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
    
    .cta-title {
        font-size: 1.3rem;
    }
    
    .cta-description {
        font-size: 0.8rem;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .comparison-table .table-link {
        font-size: 0.6rem;
        padding: 5px 6px;
    }
    
    .privacy-text {
        padding: 15px 10px;
        margin: 0 5px;
    }
    
    .privacy-intro {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .privacy-section-title {
        font-size: 1.1rem;
    }
    
    .privacy-section p {
        font-size: 0.85rem;
    }
    
    .privacy-list li {
        font-size: 0.85rem;
    }
    
    .privacy-sublist li {
        font-size: 0.8rem;
    }
    /* 1列目（項目列）の文字サイズを常に統一 */
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        font-size: 0.9rem !important;
    }
    /* 「初期費用」「年収目安」行の1列目も同じサイズに強制 */
    .comparison-table tbody tr:nth-child(1) td:first-child,
    .comparison-table tbody tr:nth-child(6) td:first-child {
        font-size: 0.9rem !important;
    }
}

/* 769px以上のレイアウト調整（ヘッダーコンテンツを拡張し、任意改行を抑制） */
@media (min-width: 769px) {
    .header-content {
        margin-right: 30%;
        white-space: nowrap;
    }
    .site-logo-text {
        white-space: nowrap;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* パーティクル効果 */
.hero::after {
    display: none;
}

@keyframes particleMove {
    0% { transform: translateX(0px); }
    100% { transform: translateX(-200px); }
}

.hero-content,
.target-card,
.fc-card,
.story-card,
.benefit-card {
    animation: fadeInUp 0.6s ease-out;
}

/* スクロール時のアニメーション用 */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* フランチャイズ選択のポイント スタイル */
.selection-guide {
    margin: 40px 0;
}

.benefits-container {
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
}

.benefit-number {
    background: linear-gradient(135deg, #4a90e2 0%, #6bb3ff 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.benefit-content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-title {
    color: #4a90e2;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    min-height: 3.6rem;
    line-height: 1.2;
}

.benefit-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.benefit-text {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.benefit-number-inline {
    background: linear-gradient(135deg, #4a90e2 0%, #6bb3ff 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.benefit-content-inline {
    flex: 1;
}

.benefit-content-reverse {
    flex-direction: row-reverse !important;
}

.key-points-container {
    margin-top: 40px;
    padding: 30px;
}

.key-points-header {
    margin-bottom: 20px;
}

.key-points-icon {
    background: linear-gradient(135deg, #4a90e2 0%, #6bb3ff 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.key-points-single-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.key-point-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.check-icon {
    background: #4a90e2;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.key-point-text {
    color: #333;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.guide-intro {
    font-size: 1.5rem;
    color: #2c72af;
    margin: 0 10px 30px;
    line-height: 1.6;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.1);
    font-weight: bold;
}

.points-table {
    margin: 30px 0;
    overflow-x: auto;
}

.points-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.points-table th {
    background: #4a90e2;
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1rem;
}

.points-table th:first-child {
    width: 200px;
    min-width: 150px;
}

.points-table td {
    padding: 20px;
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
}

.points-table tr:last-child td {
    border-bottom: none;
}

.point-title {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.point-detail {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.summary-points {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 0;
    border-left: 4px solid #4a90e2;
}

.summary-points h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-points ul {
    list-style: none;
    padding: 0;
}

.summary-points li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.summary-points li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.2rem;
}



@media (min-width: 1024px) {
    .comparison-table .table-link {
        font-size: 1.6rem;
        padding: 18px 26px;
    }
}

@media (min-width: 1440px) {
    .comparison-table .table-link {
        font-size: 2rem;
        padding: 22px 32px;
    }
}

@media (min-width: 1920px) {
    .comparison-table .table-link {
        font-size: 2.4rem;
        padding: 26px 36px;
    }
}

@media (min-width: 2560px) {
    .comparison-table .table-link {
        font-size: 2.8rem;
        padding: 30px 42px;
    }
}
@media (min-width: 3840px) {
    .comparison-table .table-link {
        font-size: 3.2rem;
        padding: 34px 48px;
    }
}

/* 769px以上: 改行が不要な場合は一文につき一行で表示（<br>のみ有効） */
@media (min-width: 769px) {
    /* 769px以上では円形オーバーレイを表示しない（デフォルト） */
    .header::before { content: none !important; }
    /* 広い画面では文を横並び（通常の折返し）+ 文間にスペースを挿入 */
    .comparison-points .guide-intro .guide-line {
        display: inline;
    }
    /* 前にスペースを挿入（1文目を除く） */
    .comparison-points .guide-intro .guide-line:not(:first-child)::before {
        content: " ";
    }
    /* 強制改行する文の前にはスペースを挿入しない */
    .comparison-points .guide-intro .guide-force-break::before {
        content: "";
        display: block;
    }
    .comparison-table .table-link {
        font-size: 1.25rem;
        padding: 14px 20px;
    }
    .benefit-content{
        padding: 40px;
    }
    .key-points-container{
        padding-left: 50px !important;
    }
    
}
/* 中間幅(769–1024px): 第2文(費用〜)の直前でも改行する */
@media (min-width: 769px) and (max-width: 1024px) {
    .comparison-points .guide-intro .guide-optional-break::before {
        content: "";
        display: block;
    }
}

@media (max-width: 768px) {
    .comparison-table .table-link {
        font-size: 0.65rem;
        padding: 5px 8px;
    }
    .hero-title-text {
        font-size: 1.6rem;
    }
    .solution-text {
        font-size: 1.4rem;
    }
    .comparison-points .guide-intro .guide-line {
        display: block;
    }
    .points-table th:first-child {
        width: 120px;
        min-width: 100px;
    }
    
    .points-table th,
    .points-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .point-title {
        font-size: 1rem;
    }
    
    .point-detail {
        font-size: 0.9rem;
    }
    
    .summary-points {
        padding: 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-number {
        margin: 20px auto;
    }
    
    .benefit-content {
        padding: 0 20px 20px 20px;
    }
    
    .key-points-single-box {
        gap: 10px;
    }
    
    .key-point-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .problem-container {
        gap: 20px;
    }
    .benefit-description {
        text-align: left;
    }
    .benefit-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 10px;
        align-items: start;
    }
    /* ネストをグリッド直下に昇格 */
    .benefit-text,
    .benefit-content-inline {
        display: contents;
    }
    /* 1行目: 見出し（左） */
    .benefit-title {
        grid-column: 1;
        grid-row: 1;
        margin: 0; /* 余白調整 */
    }
    /* 1行目: 画像（右） */
    .benefit-image {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        width: clamp(48px, 20vw, 96px);
        height: auto;
        object-fit: contain;
    }
    /* 2行目: 説明（全幅） */
    .benefit-description {
        grid-column: 1 / span 2;
        grid-row: 2;
        text-align: left;
        margin-top: 2px;
    }
    /* 番号バッジは見出しの直前でインライン扱いに */
    .benefit-number-inline {
        grid-column: 1;
        grid-row: 1;
        display: inline-block;
        margin-right: 8px;
        vertical-align: top;
    }
    /* 反転レイアウトも同一配置に統一 */
    .benefit-content.benefit-content-reverse {
        display: grid;
    }
    .benefit-content {
        display: grid;
        grid-template-columns: auto 1fr auto; /* 番号 | タイトル | 画像 */
        grid-auto-rows: auto;                 /* 説明文が複数でも自動で新しい行へ */
        column-gap: 12px;
        row-gap: 8px;
        align-items: center; /* 1行目の縦位置を画像に合わせて中央 */
    }
    .benefit-number-inline {
        grid-column: 1;
        grid-row: 1;
        display: inline-block;
        margin-right: 6px;
        align-self: center;
    }
    .benefit-title {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0;
        min-height: 0; /* 既存の最小高さを無効化してセンタリングを確実に */
    }
    .benefit-image {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        width: clamp(48px, 20vw, 96px);
        height: auto;
        object-fit: contain;
    }
    .benefit-description {
        grid-column: 1 / -1; /* 全幅に拡張 */
        grid-row: auto;      /* 明示的に自動配置に戻す → 複数段落も縦に並ぶ */
        text-align: left;
        margin-top: 4px;
    }
    /* 反転レイアウトも同一配置を適用 */
    .benefit-content.benefit-content-reverse {
        display: grid;
    }
    .benefit-title {
        font-size: 1.25rem;
        line-height: 1.3;
        min-height: 0; /* モバイルでは高さ制約を解除 */
    }
    .benefit-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .benefit-title .title-part {
        display: inline;
    }
    .benefit-title .title-break-md {
        display: block;
    }
    .benefit-title .title-break-md::before {
        content: "　"; /* 全角スペースで2行目頭を下げる */
    }
    .key-points-container .key-point-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        text-align: left;
    }
    .key-points-container .check-icon {
        flex-shrink: 0;
    }
    .key-points-container .key-point-text {
        text-align: left;
    }
    .key-point-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .key-points-container {
        margin-top: 10px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .selection-guide{
        margin-bottom: 0;
    }
}
@media (max-width: 650px) {
    .solution-text {
        font-size: 1.1rem;
    }
}

/* 481px〜768px: 「詳細を見る」ボタンを少し大きく */
@media (min-width: 481px) and (max-width: 768px) {
    .comparison-table .table-link {
        font-size: 0.73rem;
        padding: 10px 14px;
    }
    /* 1列目（項目列）の文字サイズを常に統一（481–768px） */
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    /* 「初期費用」「年収目安」行の1列目も同じサイズに強制 */
    .comparison-table tbody tr:nth-child(1) td:first-child,
    .comparison-table tbody tr:nth-child(6) td:first-child {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    /* 481–768px: 半透明白円を大きめに */
    .header::before {
        width: 460px;
        height: 460px;
    }
}
@media (min-width: 481px) and (max-width: 600px) {
    .comparison-points .guide-intro {
        font-size: 1.2rem;
    }
}


@media (max-width: 480px) {
    .section-title{
        margin-bottom:25px;
    }
    .comparison-costs{
        padding-bottom: 20px;
    }
    .comparison-table .table-link {
        font-size: 0.6rem;
        padding: 5px 6px;
    }
    .hero-title-text {
        font-size: 1.3rem;
    }
    .solution-text {
        font-size: 0.80rem !important;
    }
    .benefits .section-title {
        font-size: 1.4rem;
    }
    .comparison-costs .section-title{
        font-size: 1.6rem;
    }
    .comparison-points .section-title{
        font-size: 1.35rem;
    }
    /* 2つ目の「フランチャイズ３社費用比較」も同じ大きさに */
    .comparison-table-section .section-title {
        font-size: 1.6rem;
    }
    .comparison-points .selection-guide{
        margin-top:0px;
    }
    .benefits-grid {
        gap: 12px;
    }
    .benefit-card {
        padding: 16px 14px;
    }
    .benefit-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 12px;
    }
    .benefit-card h4 {
        margin-bottom: 8px;
    }
    .benefit-card p {
        margin: 0;
        line-height: 1.4;
    }
    .comparison-points .guide-intro{
        font-size: 1.0rem;
    }
    .benefit-content .benefit-image {
        width: clamp(40px, 22vw, 80px);
    }
    .benefit-title {
        font-size: 1.1rem;
    }
    .benefit-description {
        font-size: 0.9rem;
    }
    .benefit-title .title-break-md::before {
        content: none;
    }
    .benefit-content {
        column-gap: 6px;
    }
    .benefit-number-inline {
        margin-right: 2px;
    }
    .benefit-content .benefit-image {
        width: clamp(34px, 18vw, 68px);
        height: auto;
    }
    .key-point-text {
        font-size: 0.9rem;
    }
    /* ensure text-overlay paragraph wraps at right edge */
    .text-overlay p {
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-break: strict;
    }
    /* add semi-transparent white background behind text */
    .text-overlay {
        background: rgba(255,255,255,0.6);
        border-radius: 8px;
    }
    /* 1列目（項目列）の文字サイズを常に統一（より小さく） */
    .comparison-table th:first-child,
    .comparison-table td:first-child,
    .comparison-table tbody tr:nth-child(1) td:first-child,
    .comparison-table tbody tr:nth-child(6) td:first-child {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    /* 「初期費用」「年収目安」行の1列目も同じサイズに強制 */
    .comparison-table tbody tr:nth-child(1) td:first-child,
    .comparison-table tbody tr:nth-child(6) td:first-child {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    /* header-subtitle の一文目を指定位置で改行 */
    .header-subtitle .hs-part { display: inline; }
    .header-subtitle .hs-break-md { display: block; }
    /* 余分な改行（<br>）は非表示にして間隔を詰める */
    .header-subtitle br { display: none; }
}

@media (max-width: 400px) {
    .benefits .section-title {
        font-size: 1.1rem;
    }
    .hero-title-text {
        font-size: 1.1rem;
    }
    .comparison-costs .section-title{
        font-size: 1.2rem;
    }
    .comparison-points .section-title{
        font-size: 1.05rem;
    }
    .comparison-points .guide-intro{
        font-size: 0.90rem;
    }
    /* 2つ目の「フランチャイズ３社費用比較」も同じ大きさに */
    .comparison-table-section .section-title{
        font-size: 1.2rem;
    }

}

/* 360px以下: guide-intro をもう少し小さく */
@media (max-width: 360px) {
    .comparison-points .guide-intro {
        font-size: 0.75rem;
    }
    .benefit-content .benefit-image {
        width: clamp(36px, 24vw, 72px);
    }
    .benefit-title {
        font-size: 1.0rem;
    }
    .benefit-description {
        font-size: 0.85rem;
    }
    .benefit-content .benefit-image {
        width: clamp(30px, 20vw, 60px);
        height: auto;
    }
    .key-point-text {
        font-size: 0.85rem;
    }
    .solution-text {
        font-size: 0.70rem !important;
    }
}

@media (max-width: 320px) {
    .comparison-table .table-link {
        font-size: 0.55rem;
        padding: 4px 6px;
    }
    .solution-text {
        font-size: 0.65rem !important;
    }
    .hero-title-text {
        font-size: 1.05rem;
    }
    .solution-text {
        font-size: 0.85rem;
    }
    .benefit-title {
        font-size: 0.95rem;
    }
    .benefit-description {
        font-size: 0.8rem;
    }
    .key-point-text {
        font-size: 0.8rem;
    }
    /* 1列目（項目列）の文字サイズを常に統一（さらに小さく） */
    .comparison-table th:first-child,
    .comparison-table td:first-child,
    .comparison-table tbody tr:nth-child(1) td:first-child,
    .comparison-table tbody tr:nth-child(6) td:first-child {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
    }
}

/* 768px以下: 問題カードの横幅を狭く（中央寄せ） */
@media (max-width: 768px) {
    .problem-bubbles { align-items: center; }
    .problem-bubble {
        width: 85%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
    }
}

/* 480px以下: さらに狭く */
@media (max-width: 480px) {
    .problem-bubble {
        width: 90%;
        max-width: 360px;
    }
}

/* 360px以下: もう少し狭く */
@media (max-width: 360px) {
    .problem-bubble {
        width: 95%;
        max-width: 320px;
    }
}

@media (max-width: 375px) {
    .header .logo {
        font-size: 1.1rem;
        line-height: 1.25;
    }
    .header .logo .highlight-text {
        font-size: 1.1rem;
        line-height: 1.25;
    }
}




