/* --- Variables --- */
:root {
    /* カラーパレット: 信頼と安心のオレンジ×ティール */
    --primary-orange: #f39c12; 
    --hover-orange: #e67e22;
    --primary-teal: #1abc9c;
    --hover-teal: #16a085;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;   
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 70px; /* Header Height */
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
br.pc_none{display: none !important; }
/* --- Header --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo a { display: flex; align-items: center; gap: 10px; color: var(--text-dark); }
.logo-text { font-size: 1.4rem; font-weight: 900; }
.logo-icon { color: var(--primary-orange); font-size: 1.4rem; }

.nav-menu ul { display: flex; gap: 20px; }
.nav-menu a { color: var(--text-dark); font-weight: 700; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary-orange); }

/* ボタンの親要素：隙間を調整 */
.header-cta {
    display: flex;
    gap: 15px; /* ボタン同士の間隔 */
    align-items: center;
}
/* --- サブボタン（資料請求） --- */
.btn-header-teal {
    background: #fff; /* 白背景で軽さを出す */
    color: var(--primary-teal); /* 文字色をティールに */
    border: 2px solid var(--primary-teal); /* 枠線 */
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px; /* アイコンと文字の間隔 */
    text-decoration: none;
}

.btn-header-teal i {
    font-size: 1rem;
}

/* ホバー時は反転させて目立たせる */
.btn-header-teal:hover {
    background: var(--primary-teal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.2);
}

.btn-header-tel { color: var(--primary-orange); font-weight: bold; font-size: 1.1rem; }
/* --- メインボタン（無料デモ）調整 --- */
/* 既存の .btn-header-orange にホバー時の動きを追加して統一感を出す */
.btn-header-orange {
    /* 既存のスタイルは維持しつつ、以下を確認/追加 */
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 10px 24px; /* 少し大きくしてメイン感を強調 */
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid var(--primary-orange); /* 高さを揃えるための枠線（色は背景と同じ） */
    transition: all 0.3s ease;
}

.btn-header-orange:hover {
    background: var(--hover-orange);
    border-color: var(--hover-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: #333; margin: 5px 0; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    transform: translateX(100%);
    transition: 0.3s;
    z-index: 900;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu ul { padding: 20px; }
.mobile-menu li { border-bottom: 1px solid #eee; }
.mobile-menu a { display: block; padding: 15px 0; font-weight: bold; color: var(--text-dark); }


/* =========================================
   Hero Section (Complete Version)
   ========================================= */
.hero {
    position: relative;
    padding: 70px 20px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #fffcf5 0%, #ffffff 100%);
}

.hero-bg-shape {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 180%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-content { flex: 1; max-width: 600px; }

/* テキストバッジ */
.hero-badge {
    background: #eefcf9;
    color: var(--primary-teal);
    border: 1px solid var(--primary-teal);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* タイトル & コピー */
.hero h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero h1 .text-main {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(transparent 70%, rgba(243, 156, 18, 0.3) 70%);
}

.hero-description { font-size: 1.1rem; margin-bottom: 30px; color: var(--text-gray); }
.hero-note { font-size: 0.8rem; color: var(--text-gray); margin-top: 10px; }

/* ボタンエリア */
.hero-buttons { display: flex; gap: 15px; }

.btn-lg-teal, .btn-lg-orange {
    display: inline-block;
    text-align: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-lg-teal { background: var(--primary-teal); }
.btn-lg-teal:hover { background: var(--hover-teal); transform: translateY(-2px); }
.btn-lg-orange { background: var(--primary-orange); }
.btn-lg-orange:hover { background: var(--hover-orange); transform: translateY(-2px); }

/* 画像エリア (Simple) */
.hero-image { 
    flex: 1; 
    max-width: 600px; 
    position: relative; 
    text-align: center;
}

.hero-image img { 
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); 
}




/* --- Problems Section --- */
.problems { padding: 80px 0; background: var(--white); text-align: center; }
.section-title { font-size: 2.2rem; margin-bottom: 50px; line-height: 1.4; text-align: center;}
.section-title span { color: var(--primary-orange); border-bottom: 3px solid #eee; display: inline-block; padding-bottom: 10px; }

.problems-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.problem-card {
    width: 300px;
    text-align: center;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 30px 20px;
    background: #fff;
    transition: 0.3s;
}
.problem-card:hover { border-color: var(--primary-orange); transform: translateY(-5px); box-shadow: var(--shadow); }

.problem-text { font-weight: bold; font-size: 1.1rem; margin-bottom: 20px; color: var(--text-dark); min-height: 80px; display: flex; align-items: center; justify-content: center; }
.problem-icon { max-width: 200px; color: #bdc3c7; margin: 0 auto;}

/* =========================================
   Solution Bridge (Emotional Design)
   ========================================= */


.solution-bridge {
    background: radial-gradient(circle at 30% 50%, #f39c12 0%, #e67e22 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: visible; /* 矢印を枠外にはみ出させるために重要 */
    color: #fff;
    z-index: 10; /* 下のセクションより手前に表示 */
}

/* 上部のカーブ（そのまま維持） */
.curve-top {
    position: absolute; top: -1px; left: 0; width: 100%; height: 60px;
    background: var(--white);
    border-radius: 0 0 50% 50%;
    z-index: 10;
}

/* 下向き矢印（▼） - 静止版 */
.solution-bridge::after {
    content: '';
    position: absolute;
    bottom: -39px; /* 1px重ねて隙間防止 */
    left: 50%;
    transform: translateX(-50%);
    
    /* 三角形の描画 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 60px 0 60px;
    border-color: #e67e22 transparent transparent transparent;
    
    z-index: 10;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

/* --- レイアウトコンテナ（変更なし） --- */
.solution-wrapper {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    padding-left: 70px;
}

/* --- Content Layer (Foreground) --- */
.solution-text-area {
    position: relative;
    z-index: 5; /* 画像より手前 */
    text-align: left;
    width: 100%;
    max-width: 650px; /* テキストが右に行き過ぎないように制限 */
}

.solution-catch {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px); /* 軽い磨りガラス */
}

.solution-main-title {
    font-size: 3.2rem;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 40px;
    /* 強い影で可読性を担保 */
    text-shadow: 0 5px 20px rgba(160, 60, 0, 0.4); 
}

.solution-main-title .highlight-text {
    background: #fff;
    color: var(--primary-orange);
    padding: 2px 15px;
    border-radius: 8px;
    display: inline-block;
    transform: skewX(-10deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* キーワードバッジ（ここがGlassmorphismの主役） */
.solution-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 600px; /* バッジが画像の顔に被りすぎないよう調整 */
}

.keyword-badge {
    /* 半透明の白背景 */
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.05rem;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    
    /* ★磨りガラスエフェクト★ */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, background 0.3s;
}

/* ホバー時に少し濃くして浮き上がらせる */
.keyword-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
}

.keyword-badge i { color: var(--primary-teal); }


/* --- Background Layer (Image) --- */
.solution-image-area {
    position: absolute;
    z-index: 1; /* テキストより奥 */
    bottom: -30px; /* 下部カット */
    right: -20px;  /* 右端（少し見切れてもOK） */
    width: 310px;
    pointer-events: none;
}

.solution-image-area img {
    width: 100%;
    height: auto;

}



/* =========================================
   New: Break CTA Section (High Conversion)
   ========================================= */
.break-cta {
    background: var(--primary-teal); /* 信頼感のある緑で場面転換 */
    padding: 60px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 背景に斜めの光沢を入れてリッチに */
.break-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -50%; width: 200%; height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.break-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.break-sub {
    font-weight: bold;
    background: rgba(0,0,0,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.break-cta-text h3 {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
}

.break-cta-text .text-yellow {
    color: #f1c40f; /* 視認性の高い黄色 */
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* 立体的なオレンジボタン */
.btn-break-shadow {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e67e22;
    color: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 0 #d35400, 0 15px 20px rgba(0,0,0,0.2); /* 立体的な影 */
    transition: all 0.1s;
    position: relative;
    top: 0;
}

.btn-break-shadow:active {
    top: 6px;
    box-shadow: 0 0 0 #d35400, 0 0 5px rgba(0,0,0,0.2); /* 押した時の沈み込み */
}

.btn-break-shadow .main-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.btn-break-shadow .sub-text {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 3px;
}



/* --- Reasons Section --- */
.reasons { padding: 80px 0; background: #fff; }
.reason-item { display: flex; align-items: center; gap: 50px; margin-bottom: 80px; }
.reason-item.reverse { flex-direction: row-reverse; }
.reason-img { flex: 1; }
.reason-img img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }

.reason-content { flex: 1; }
.reason-badge {
    background: var(--primary-orange); color: var(--white);
    display: inline-block; padding: 5px 15px;
    font-weight: bold; border-radius: 5px 5px 5px 0;
    margin-bottom: 15px;
}
.reason-content h3 { font-size: 1.8rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; }
.reason-content h3 span { color: var(--primary-orange); }
.reason-content p { margin-bottom: 20px; color: var(--text-gray); }

.check-list li {
    position: relative; padding-left: 25px; margin-bottom: 10px;
    font-weight: bold; color: var(--text-dark);
}
.check-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; color: var(--primary-teal); font-size: 1rem;
}

/* =========================================
   Specs Section (Updated: Modern SaaS Grid)
   ========================================= */

.specs-section {
    padding: 80px 0;
    background: #fdfaf5; /* ほんのり温かみのある背景 */
}

/* --- Common Header Style (Unified with Benefits) --- */
.common-header {
    text-align: center;
    margin-bottom: 50px;
}

.common-subtitle { 
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    background: #fff8e1; /* 薄いオレンジ背景 */
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- Grid Layout (2x2 Balanced) --- */
.specs-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC: 2列が黄金比 */
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Card Design --- */
.spec-modern-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.spec-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 188, 156, 0.1);
    border-color: rgba(26, 188, 156, 0.3);
}

/* --- Icon Box (App Icon Style) --- */
.spec-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

/* Color Variations */
.icon-teal {
    background: rgba(26, 188, 156, 0.1);
    color: var(--primary-teal);
}
.icon-orange {
    background: rgba(243, 156, 18, 0.1);
    color: var(--primary-orange);
}

.spec-modern-card:hover .icon-teal { background: var(--primary-teal); color: white; }
.spec-modern-card:hover .icon-orange { background: var(--primary-orange); color: white; }

/* --- Typography --- */
.spec-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.spec-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* =========================================
   Benefits Section (Hybrid Design: Pattern 2 + Pattern 3)
   ========================================= */

.benefits-hybrid {
    padding: 80px 0;
    background: radial-gradient(circle at top center, #fffcf5 0%, #ffffff 70%);
}

/* --- Header Style (Pattern 2) --- */
.bp2-header {
    text-align: center;
    margin-bottom: 50px;
}
.bp2-subtitle { 
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    background: #fff8e1;
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- Grid Layout (Pattern 3) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3カラム */
    grid-template-rows: repeat(2, minmax(200px, auto)); /* 高さの最小値を確保 */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Common Card Design (Sophisticated) --- */
.bento-card {
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden; /* 背景アイコンのはみ出しをカット */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Typography & Labels */
.bento-label {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.bento-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.bento-content p {
    font-size: 0.9rem;
    color: var(--text-gray); /* 色を少し濃くして読みやすく */
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Background Icon (Common) */
.bento-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 9rem; /* 巨大アイコン */
    opacity: 0.08; /* 薄く表示 */
    z-index: 0;
    pointer-events: none;
    transform: rotate(-10deg);
    transition: 0.5s;
}

.bento-card:hover .bento-bg-icon {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.12;
}


/* --- Individual Card Themes (Flavor) --- */

/* 1. Security (Large, Teal) */
.card-security {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%); /* 薄いティール */
    border-bottom: 4px solid var(--primary-teal);
}
.card-security .bento-label { color: var(--primary-teal); }
.card-security .bento-bg-icon { color: var(--primary-teal); }

/* 2. Excel (Standard, Orange) */
.card-excel {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(145deg, #ffffff 0%, #fff8e1 100%); /* 薄いオレンジ */
    border-bottom: 4px solid var(--primary-orange);
}
.card-excel .bento-label { color: var(--primary-orange); }
.card-excel .bento-bg-icon { color: var(--primary-orange); }

/* 3. Speed (Standard, Gray/Blue) */
.card-speed {
    background: linear-gradient(145deg, #ffffff 0%, #f4f6f7 100%); /* 薄いグレー */
    border-bottom: 4px solid #7f8c8d;
}
.card-speed .bento-label { color: #7f8c8d; }
.card-speed .bento-bg-icon { color: #34495e; }

/* 4. Mobile (Wide, Mixed) */
.card-mobile {
    grid-column: span 2;
    background: linear-gradient(145deg, #ffffff 30%, #eefcf9 100%);
    border-bottom: 4px solid #3498db;
    display: flex;
    justify-content: center; /* コンテンツを中央寄せ気味に */
}
.card-mobile .bento-label { color: #3498db; }
.card-mobile .bento-bg-icon { color: #3498db; right: 20px; bottom: -40px; }


/* --- Comparison Section --- */
.comparison { padding: 80px 0; background: var(--white); }
.comparison-wrapper { overflow-x: auto; background: white; border-radius: 10px; box-shadow: var(--shadow); padding: 20px; border: 1px solid #eee; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-table th, .comparison-table td { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }

.th-label { width: 20%; }
.th-before { background: #95a5a6; color: white; width: 40%; border-radius: 8px 8px 0 0; }
.th-after { background: var(--primary-orange); color: white; width: 40%; border-radius: 8px 8px 0 0; font-size: 1.2rem; }

.td-head { font-weight: bold; background: #f9f9f9; text-align: left; padding-left: 30px; }
.td-b { color: var(--text-gray); }
.td-b i { color: #bdc3c7; margin-right: 5px; }
.td-a { color: var(--primary-orange); background: #fffcf5; font-size: 1.1rem; }
.td-a i { color: var(--primary-orange); margin-right: 5px; }

/* --- Flow Section (Illustration Style) --- */

.flow-section { 
    padding: 80px 0; 
    background: var(--white); 
}

.flow-steps { 
    display: flex; 
    justify-content: space-between; 
    gap: 40px; 
    position: relative; 
    max-width: 1000px;
    margin: 0 auto;
}

/* 背景の線（位置を調整） */
.flow-steps::before {
    content: ''; 
    position: absolute; 
    top: 75px; /* 円の中心(150px/2)に来るよう調整 */
    left: 100px; 
    right: 100px;
    height: 4px; 
    background: #f0f0f0; 
    z-index: 0;
    border-radius: 4px;
}

.step-item { 
    flex: 1; 
    text-align: center; 
    position: relative; 
    z-index: 1; 
}

/* イラストを囲む円（サイズアップ） */
.step-visual {
    position: relative;
    width: 150px;  /* 120px -> 150px */
    height: 150px; /* 120px -> 150px */
    margin: 0 auto 25px;
    background: var(--white); 
    border-radius: 50%;
    padding: 10px; 
}

/* 実際の画像・アイコンエリア */
.step-img-box {
    width: 100%;
    height: 100%;
    background: #fff8e1; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    
    /* アイコンフォントの場合のサイズ */
    font-size: 4rem; /* 2.5rem -> 4rem */
    overflow: hidden;
}

/* 画像（imgタグ）を使う場合のサイズ */
.step-img-box img {
    width: 75%; /* 60% -> 75% (余白を減らして大きく) */
    height: auto;
    object-fit: contain;
}

/* 数字のバッジ */
.step-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px; /* 少し大きく */
    height: 40px;
    background: var(--primary-teal);
    color: #fff;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.step-item h3 { 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    font-weight: bold;
}

.step-item p { 
    color: var(--text-gray); 
    font-size: 0.95rem; 
    line-height: 1.6;
}

/* --- Flow Action Area (New) --- */
.flow-action-area {
    margin-top: 50px;
    text-align: center;
    background: #fffcf5; /* 薄いオレンジ背景 */
    padding: 40px 20px;
    border-radius: 16px;
    border: 2px dashed var(--primary-orange);
}

.flow-action-text {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-flow-action {
    display: inline-block;
    background: var(--primary-teal);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 15px 50px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.4);
    transition: 0.3s;
}

.btn-flow-action:hover {
    transform: translateY(-3px);
    background: var(--hover-teal);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.5);
}

.flow-note {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 15px;
}


/* --- FAQ Section --- */
.faq-section { padding: 80px 0; background: #f9f9f9; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 15px; border-radius: 8px; border: 1px solid #eee; overflow: hidden; }
.faq-question {
    padding: 20px; font-weight: bold; cursor: pointer;
    position: relative; padding-right: 50px; transition: background 0.3s;
}
.faq-question:hover { background: #fcfcfc; }
.toggle-icon {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--primary-orange); transition: 0.3s;
}
.faq-answer {
    padding: 0 20px 20px; color: var(--text-gray); display: none;
    line-height: 1.8; background: #fff;
}
.faq-item.active .faq-answer { display: block; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.faq-item.active .toggle-icon { transform: translateY(-50%) rotate(45deg); }

/* --- CTA Box --- */
.cta-section { padding: 60px 20px; background: #fff8e1; }
.cta-box {
    background: var(--white); border: 3px solid var(--primary-orange);
    border-radius: 20px; padding: 50px; text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); max-width: 900px; margin: 0 auto;
}
.cta-header h3 { font-size: 2rem; margin-bottom: 10px; color: var(--text-dark); }
.cta-header p { color: var(--text-gray); }

.cta-body { display: flex; justify-content: center; align-items: center; gap: 50px; margin-top: 40px; flex-wrap: wrap; }
.cta-left { text-align: center; }
.cta-left img { margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid #eee; }
.cta-left p { font-weight: bold; color: var(--primary-orange); }

.cta-right { flex: 1; max-width: 500px; }
.cta-tel-block { margin-bottom: 25px; }
.tel-number { font-size: 2.5rem; font-weight: 900; color: var(--primary-orange); display: block; line-height: 1.2; }
.tel-time { font-size: 0.9rem; color: var(--text-gray); }

.cta-buttons { display: flex; gap: 15px; justify-content: center; }
.btn-cta-teal, .btn-cta-orange {
    width: 100%; padding: 15px; border-radius: 50px;
    font-weight: bold; color: var(--white); text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-cta-teal { background: var(--primary-teal); }
.btn-cta-orange { background: var(--primary-orange); }

/* --- Footer --- */
footer { background: #333; color: #fff; padding: 40px 0; text-align: center; }
.footer-links a { color: #ccc; margin: 0 15px; font-size: 0.9rem; }
.copyright { margin-top: 20px; font-size: 0.8rem; color: #888; }

/* --- Mobile Sticky CTA --- */
.mobile-sticky-cta {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95); padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 999;
    display: none; backdrop-filter: blur(5px);
}
.btn-sticky {
    display: block; background: var(--primary-orange);
    color: white; text-align: center; padding: 15px;
    border-radius: 50px; font-weight: bold; font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* --- Animations --- */
.fade-in-up { opacity: 0; animation: fadeInUp 0.8s forwards; }
.fade-in-left { opacity: 0; animation: fadeInLeft 0.8s forwards; }
.fade-in-right { opacity: 0; animation: fadeInRight 0.8s forwards; }
.delay-200 { animation-delay: 0.2s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }


/* =========================================
   Mobile Optimization (Complete Professional Edition)
   ========================================= */

@media (max-width: 768px) {
    
    /* --- Base Typography & Balance --- */
    body {
        font-size: 15px;
        line-height: 1.6;
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .container { padding: 0 20px; }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    .section-title span {
        border-bottom-width: 2px;
        padding-bottom: 5px;
    }

    /* --- Header --- */
    .header { height: 60px; }
    .logo-text { font-size: 1.1rem; }
    .logo-icon { font-size: 1.2rem; }
    .hamburger {
        display: block;
        margin-left: auto;
        padding: 10px;
        margin-right: -10px;
    }
    .header .nav-menu, .header-cta { display: none; }

    /* --- Hero Section --- */
    br.sp_none {
        display: none !important;
    }
    br.pc_none{
        display: inline-block !important;
    }
  .hero {
        padding: 40px 20px 60px;
        text-align: center;
        background: linear-gradient(180deg, #fffcf5 0%, #ffffff 100%);
    }
    
    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 0; /* 並び替え時に個別にマージンを設定するため0にする */
        padding: 0 10px;
    }

    /* ★魔法のプロパティ: 親枠を無視して子要素をフラットに扱う */
    .hero-content {
        display: contents;
    }
    
    /* --- 並び順の制御 (Order) --- */
    
    /* 1. バッジ */
    .hero-badge {
        order: 1;
        margin: 0 auto 15px;
        font-size: 0.7rem;
        text-align: left;
        max-width: 100%;
        white-space: normal;
    }
    
    /* 2. メインタイトル */
    .hero h1 {
        order: 2;
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 20px;
        font-weight: 700;
    }
    
    .hero h1 .text-main {
        font-size: 1.6rem; /* 画面に収まるサイズ */
        font-weight: 900;
        margin-top: 5px;
        display: inline;
        /* 改行時の装飾保持 */
        background: linear-gradient(transparent 60%, rgba(243, 156, 18, 0.4) 60%);
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
        padding: 0 4px;
    }
    
    /* 3. 説明文 */
    .hero-description {
        order: 3;
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 0;
        text-align: justify;
    }

    /* 4. 画像 (ここに割り込み！) */
    .hero-image {
        order: 4;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 30px; /* ボタンとの余白 */
    }

    /* 5. ボタン */
    .hero-buttons {
        order: 5;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .btn-lg-teal, .btn-lg-orange {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    /* 6. 注釈 */
    .hero-note {
        order: 6;
    }


    /* --- Problems Section --- */
    .problems { padding: 50px 0; }
    
    .problem-card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 20px;
        min-height: auto;
    }
    
    .problem-text .br-pc { display: none; }

    .problem-text {
        font-size: 0.95rem;
        margin-bottom: 0;
        flex: 1;
        order: 2;
        line-height: 1.5;
        text-align: left;
    }
    
    .problem-icon {
        width: 80px;
        min-width: 80px;
        margin: 0;
        order: 1;
    }

    /* --- Specs Grid (SaaS Modern Style) --- */
    .specs-grid-modern {
        grid-template-columns: 1fr; /* スマホ: 1列 */
        gap: 15px;
    }

    .spec-modern-card {
        padding: 20px;
        /* スマホ用レイアウト：アプリアイコン風横並び */
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "icon title"
            "desc desc";
        column-gap: 15px;
        row-gap: 8px;
        align-items: center;
    }

    .spec-icon-box {
        grid-area: icon;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .spec-content { display: contents; }

    .spec-content h4 {
        grid-area: title;
        margin-bottom: 0;
        font-size: 1.1rem;
    }

    .spec-content p {
        grid-area: desc;
        font-size: 0.9rem;
        margin-top: 5px;
        padding-left: 5px;
    }

    /* --- Hybrid Benefits Section (Mobile Fix) --- */
    .benefits-hybrid { padding: 50px 0; }
    
    .bento-grid {
        grid-template-columns: 1fr; /* スマホは1カラム */
        grid-template-rows: auto;
    }
    
    /* PCのグリッド設定をリセット */
    .card-security, .card-mobile {
        grid-column: auto;
        grid-row: auto;
    }

    .bento-card {
        padding: 25px;
        min-height: auto;
    }
    
    .bento-bg-icon {
        font-size: 6rem; /* スマホでは少し小さく */
        bottom: -10px;
        right: -10px;
    }

    .bento-content h3 { font-size: 1.2rem; }

    /* --- Solution Bridge --- */
    .solution-bridge {
        /* 矢印が突き出る分、下のセクションを物理的に離す */
        margin-bottom: 30px; 
        
        /* 既存の設定維持 */
        padding: 80px 0 60px;
        overflow: visible; 
    }

    /* スマホ用に矢印を小さくする */
    .solution-bridge::after {
        /* PC版(40px 60px...)の半分のサイズに縮小 */
        border-width: 20px 30px 0 30px; 
        
        /* 位置の微調整（高さ20px - 1px = 19px） */
        bottom: -19px; 
    }

    .solution-wrapper {
        display: block;
        min-height: auto;
        padding-left: 0;
        text-align: center;
    }

    .solution-text-area {
        max-width: 100%;
        text-align: center;
        z-index: 10; /* スマホでも手前に */
    }

    .solution-catch {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .solution-main-title {
        font-size: 2.1rem;
        margin-bottom: 25px;
    }
    
    /* スマホではバッジを中央寄せ */
    .solution-keywords {
        justify-content: center;
        margin: 0 auto;
        flex-direction: column; /* 縦積みで見やすく */
        gap: 10px;
    }

    .keyword-badge {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.9); /* スマホは少し不透明度を上げる */
    }

    /* スマホでの画像配置 */
    .solution-image-area {
        position: relative; /* absolute解除 */
        width: 260px;
        right: auto;
        bottom: auto;
        margin: -30px auto -50px; /* ネガティブマージンで潜り込ませる */
        z-index: 1;
        opacity: 0.95;
    }


    /* --- Break CTA Section (High Conversion)--- */
    .break-cta-text h3 { font-size: 1.4rem; }
    .btn-break-shadow { width: 100%; padding: 12px 20px; }
    .btn-break-shadow .main-text { font-size: 1.2rem; }
    

    /* --- Reasons Section --- */
    .reasons { padding: 50px 0; }
    .reason-item, .reason-item.reverse {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }
    .reason-content { text-align: left; }
    .reason-badge { font-size: 0.75rem; margin-bottom: 10px; }
    .reason-content h3 { font-size: 1.3rem; line-height: 1.4; margin-bottom: 15px; }
    .reason-content p { font-size: 0.95rem; text-align: justify; }
    .check-list li { font-size: 0.9rem; }

    /* --- Comparison Table --- */
/* --- Comparison Table: Mobile Optimization (Card Style) --- */
    
    /* ラッパーのスクロール設定を解除 */
    .comparison-wrapper {
        border: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
        overflow-x: visible; /* 横スクロール無効化 */
    }
    
    /* テーブル構造をブロック要素に変換 */
    .comparison-table, 
    .comparison-table tbody, 
    .comparison-table tr, 
    .comparison-table td {
        display: block;
        width: 100%;
        min-width: 0; /* ★ここが重要：PC版の600px制限をリセット */
    }
    
    /* PC用のヘッダー行は非表示 */
    .comparison-table thead {
        display: none;
    }
    
    /* 行（tr）をカードとしてスタイリング */
    .comparison-table tr {
        background: white;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border: 1px solid #eee;
        overflow: hidden;
    }
    
    /* セル（td）のデザイン調整 */
    .comparison-table td {
        padding: 15px 20px;
        text-align: left; /* 左揃えで見やすく */
        border-bottom: 1px solid #f5f5f5;
        position: relative;
    }
    .comparison-table td:last-child {
        border-bottom: none;
    }
    
    /* --- 各セルのスタイル --- */
    
    /* 1. 項目名（例：情報共有） */
    .td-head {
        background: var(--primary-teal);
        color: white;
        font-weight: bold;
        text-align: center !important; /* ここだけ中央揃え */
        padding: 10px !important;
        font-size: 1.1rem;
    }
    
    /* 2. Before（これまでの管理） */
    .td-b {
        color: var(--text-gray);
        background: #fff;
        font-size: 0.95rem; /* 文字サイズ調整 */
    }
    /* CSSで擬似ラベルを追加 */
    .td-b::before {
        content: "▼ これまでの管理";
        display: block;
        font-size: 0.75rem;
        font-weight: bold;
        color: #999;
        margin-bottom: 6px;
    }
    
    /* 3. After（導入後） */
    .td-a {
        background: #fffcf5; /* 薄いオレンジ背景で強調 */
        font-weight: bold;
        color: var(--text-dark);
        font-size: 1rem;
    }
    .td-a::before {
        content: "▼ 居住支援クラウド"; /* サービス名を強調 */
        display: block;
        font-size: 0.75rem;
        font-weight: bold;
        color: var(--primary-orange);
        margin-bottom: 6px;
    }
    /* チェックアイコンの色調整 */
    .td-a i {
        color: var(--primary-orange);
        margin-right: 5px;
    }


/* --- Flow Section (Mobile Optimization) --- */
    .flow-steps { 
        flex-direction: column; 
        gap: 45px; /* 円が大きくなった分、間隔を少し広げる */
    }
    
    .flow-steps::before { display: none; }
    
    .step-item {
        background: transparent;
        padding: 0;
    }

    .step-item:not(:last-child)::after {
        content: '▼';
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        color: #ddd;
        font-size: 1.4rem; /* 矢印も少し大きく */
    }
    
    /* スマホでのサイズ調整（PCよりは控えめだが大きく） */
    .step-visual {
        width: 120px;  /* 100px -> 120px */
        height: 120px; /* 100px -> 120px */
        margin-bottom: 15px;
        padding: 0;
        background: transparent;
    }
    
    .step-img-box {
        font-size: 3rem; /* アイコンサイズアップ */
    }
    
    .step-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-item h3 { font-size: 1.3rem; }

    .flow-action-area { padding: 30px 15px; margin-top: 40px; }
    .btn-flow-action { width: 100%; font-size: 1.1rem; padding: 15px 30px;}



    /* --- CTA Box --- */
    .cta-box { padding: 30px 20px; border-width: 2px; }
    .cta-body { flex-direction: column; gap: 20px; margin-top: 20px; }
    .cta-header h3 { font-size: 1.4rem; }
    .tel-number { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; width: 100%; }

    /* --- Mobile Sticky CTA --- */
.mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px 15px 20px; /* iPhone下部エリア考慮 */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        backdrop-filter: blur(5px);
        
        /* ★ここを追加：最初は隠す */
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    /* ★ここを追加：JSで付与されるクラス */
    .mobile-sticky-cta.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .btn-sticky {
        display: block;
        background: var(--primary-orange);
        color: white;
        text-align: center;
        padding: 12px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 1rem;
        box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
        /* パルスアニメーション */
        animation: pulse 2s infinite;
    }
}

/* =========================================
   Contact Form 7 Custom Style for LP (Final Polished)
   ========================================= */

/* --- Layout: 全体を縦並び --- */
.cta-form-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    align-items: center;
    width: 100%;
}

.cta-offer-area {
    width: 100%;
    max-width: 800px;
}

.cta-form-area {
    width: 100%;
    max-width: 700px;
}


/* --- Campaign Box (Killer Offer) --- */
.campaign-box {
    background: linear-gradient(135deg, #fff8e1 0%, #fffcf5 100%);
    border: 3px solid #f39c12;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.15);
}

.campaign-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 20px;
    border-radius: 30px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    border: 2px solid #fff;
    white-space: nowrap; /* 改行させない */
}

.campaign-title {
    color: var(--text-dark);
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 10px 0 10px;
    font-weight: bold;
}

.highlight-yellow {
    background: linear-gradient(transparent 60%, #ffeaa7 60%);
    font-weight: 900;
    font-size: 1.6rem;
    color: #d35400;
    padding: 0 5px;
}

.campaign-note {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: bold;
    color: var(--text-dark);
}

.campaign-note small {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
}


/* --- Form Styles (CF7) --- */
.cf7-lp-form { width: 100%; }

/* ラベルと入力欄の間隔を狭める修正 */
.form-row { 
    margin-bottom: 20px; 
    text-align: left; 
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px; /* ここを狭めました (8px -> 4px) */
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.4;
}

.form-row label span.required {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: text-bottom;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
    background: #fdfdfd;
}
.form-control:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

/* Checkbox */
.checkbox-row .wpcf7-list-item { margin: 0 20px 10px 0; display: inline-block; }
.checkbox-row input[type="checkbox"] { transform: scale(1.3); margin-right: 8px; cursor: pointer; }
.checkbox-row label { cursor: pointer; font-weight: normal; }


/* --- Submit Button & Privacy --- */
.submit-box { text-align: center; margin-top: 30px; }

/* プライバシーポリシーの位置修正 */
.privacy-note {
    font-size: 0.85rem;
    margin-bottom: 15px; /* ボタンとの間隔 */
    color: #666;
}
.privacy-note a { text-decoration: underline; color: var(--primary-orange); }

.btn-submit {
    background: linear-gradient(to bottom, #f39c12, #e67e22);
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    padding: 20px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    transition: 0.3s;
    width: 100%;
    max-width: 100%;
    letter-spacing: 0.05em;
    -webkit-appearance: none; /* iPhoneでのボタン崩れ防止 */
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
    background: linear-gradient(to bottom, #f1c40f, #f39c12);
}



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


/* --- Responsive (Mobile Optimization) --- */
@media (max-width: 768px) {
    /* 左右の余白を少し広げて圧迫感を減らす */
    .cta-box {
        padding: 30px 15px; /* 横幅いっぱいは避ける */
    }
    
    .cta-form-container { gap: 20px; }
    
    /* キャンペーンボックスのスマホ最適化 */
    .campaign-box { padding: 25px 15px; }
    
    .campaign-badge { font-size: 0.8rem; }
    
    .campaign-title { 
        font-size: 1.1rem; /* 少し小さく */
        margin-top: 15px;
    }
    
    .highlight-yellow { 
        font-size: 1.3rem; /* 巨大すぎないように調整 */
        display: inline-block; /* 改行の崩れ防止 */
    }
    
    .campaign-note { font-size: 0.9rem; }
    
    /* 入力フォームのスマホ最適化 */
    .form-control {
        padding: 12px;
        font-size: 16px; /* iOSでズームされないサイズ */
    }
    
    /* ボタン周りの最適化 */
    .submit-box { margin-top: 25px; }
    
    .btn-submit {
        font-size: 1.1rem; /* スマホで大きすぎないサイズ */
        padding: 15px 20px;
        white-space: nowrap; /* 文字折り返し防止 */
    }
    
    .privacy-note { font-size: 0.8rem; }
    
    .cta-section { padding: 60px 10px;}
}


/* =========================================
   Scroll to Top Button
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    z-index: 900; /* 固定CTAよりは下、コンテンツよりは上 */
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* 初期状態は隠す */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* 表示状態（JSでクラス付与） */
.scroll-top-btn.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--hover-orange);
    transform: translateY(-5px); /* ホバーで少し浮く */
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

/* スマホ対応（固定CTAがあるため位置を上げる） */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        right: 20px;
        
        /* スマホ用固定CTA（高さ約70~80px）があるため、それより上に配置 */
        bottom: 90px; 
    }
}

/* =========================================
   資料請求フォーム　Document Request Page Styles
   ========================================= */

/* --- Page Wrapper --- */
.doc-page-wrapper {
    background: #fdfdfd;
    padding-bottom: 80px;
}

/* --- Hero Area --- */
.doc-hero {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%); /* 薄いティール背景 */
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #e0f2f1;
}

.doc-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.doc-title .sub-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-teal);
    display: inline-block;
    margin-bottom: 5px;
}

.highlight-teal {
    background: linear-gradient(transparent 60%, #a7f3d0 60%);
    padding: 0 5px;
    color: #0f766e;
}

.doc-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}


/* --- Split Layout --- */
.doc-content {
    padding: 50px 0;
}

.doc-layout {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
}

/* Left: Visual Area */
.doc-visual-area {
    flex: 1;
    max-width: 450px;
}

.doc-mockup {
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.doc-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-bottom-left-radius: 8px;
}



/* Right: Form Area */
.doc-form-area {
    flex: 1;
    max-width: 550px;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.1); /* グリーンの影 */
    padding: 0;
    border: 1px solid #e0f2f1;
    overflow: hidden;
}

.form-header-green {
    background: var(--primary-teal);
    color: white;
    padding: 20px;
    text-align: center;
}

.form-header-green h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.form-header-green p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CF7 Padding Adjustment */
.doc-form .form-row, 
.doc-form .submit-box {
    padding: 0 30px; /* フォーム内部に余白を持たせる */
}
.doc-form .form-row:first-child {
    margin-top: 30px;
}
.doc-form .submit-box {
    margin-bottom: 30px;
}

/* Green Button Modifier */
.btn-submit.btn-green {
    background: linear-gradient(to bottom, #1abc9c, #16a085);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.4);
}

.btn-submit.btn-green:hover {
    background: linear-gradient(to bottom, #2ecc71, #1abc9c);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.5);
}


/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .doc-layout {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .doc-visual-area, .doc-form-area {
        max-width: 100%;
        width: 100%;
    }

    .doc-mockup {
        max-width: 200px; /* スマホでは表紙画像を小さく */
        margin: 0 auto 20px;
    }

    .doc-title {
        font-size: 1.6rem;
    }

    .doc-form .form-row, 
    .doc-form .submit-box {
        padding: 0 20px;
    }
}


/* =========================================
   Legal Pages (Privacy & Law)
   ========================================= */

/* ラッパー */
.policy-container, .law-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* プライバシーポリシーの見出し */
.policy-container h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    color: var(--text-dark);
}

.policy-container p, .policy-container ul {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.policy-container ul {
    padding-left: 20px;
    list-style: disc;
}

.policy-container .date {
    text-align: right;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #999;
}

/* 特商法のテーブル */
.law-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.law-table th, .law-table td {
    padding: 15px 20px;
    border: 1px solid #eee;
    text-align: left;
}

.law-table th {
    background: #f9f9f9;
    font-weight: bold;
    color: var(--text-dark);
    width: 30%; /* PCでの見出し幅 */
}

.law-table td {
    color: var(--text-gray);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .policy-container, .law-container {
        padding: 22px;
        margin: 0;
    }

    .law-table th, .law-table td {
        display: block;
        width: 100%;
    }
    
    .law-table th {
        background: #f0f0f0;
        border-bottom: none;
    }
}