/* ==========================================================================
   Cobito Logic - 完全版スタイルシート（修正版）
   スマホヘッダー問題を完全に解決
   ========================================================================== */

:root {
    --color-navy: #1B1464;
    --color-gold: #FFD700;
    --color-gold-dark: #C9A961;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #999999;
    --color-gray-dark: #333333;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* ========================================
   基本スタイル
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========================================
   ヘッダー（固定グローバルナビ）
======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(27, 20, 100, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(27, 20, 100, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* ロゴ */
.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 70px !important;
    width: auto !important;
    object-fit: contain;
    display: block !important;
}

/* グローバルナビ */
.global-nav {
    flex: 1;
    margin-left: 40px;
}

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

.nav-list li a {
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-list li a:hover {
    color: var(--color-gold) !important;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.nav-list li a.active {
    color: var(--color-gold-dark) !important;
}

/* ヘッダーCTAボタン */
.header-cta .cta-button {
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: inline-block;
}

.header-cta .cta-button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(27, 20, 100, 0.98);
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 30px;
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    background: rgba(255, 215, 0, 0.2);
    color: var(--color-gold) !important;
}

/* ========================================
   ヒーローセクション
======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5) contrast(1.1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 20, 100, 0.85) 0%,
        rgba(27, 20, 100, 0.75) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.hero-content,
.hero-content-left {
    position: relative;
    z-index: 10 !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: left;
}

.hero-title {
    font-size: 4rem !important;
    font-weight: 900 !important;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 35px;
    text-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.9),
        0 6px 30px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(27, 20, 100, 0.6);
    letter-spacing: 0.02em;
}

.hero-title .highlight {
    color: var(--color-gold);
    font-weight: 900;
    text-shadow: 
        0 3px 15px rgba(255, 215, 0, 0.8),
        0 6px 30px rgba(255, 215, 0, 0.6),
        0 0 50px rgba(255, 215, 0, 0.4);
    display: inline-block;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    color: #fff;
    line-height: 1.9;
    margin-bottom: 45px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.7);
    font-weight: 500;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button.cta-primary {
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
    display: inline-block;
    border: 2px solid transparent;
}

.cta-button.cta-primary:hover {
    background: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.5);
    border: 2px solid var(--color-gold);
}

/* ========================================
   セクション共通スタイル
======================================== */

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--color-gold);
    border-radius: 2px;
}

.section-title {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    color: var(--color-navy);
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
    border-radius: 2px;
}

.section-description,
.section-subtitle {
    font-size: 1.25rem !important;
    color: #555;
    line-height: 1.9;
    margin-bottom: 40px;
    font-weight: 400;
}

.subsection-title {
    font-size: 2rem !important;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--color-gold);
}

/* ========================================
   問題提起セクション
======================================== */

.problem-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 80px 0;
}

.problem-quote {
    font-size: 1.5rem !important;
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-left: 25px;
    border-left: 5px solid var(--color-gold);
    font-style: italic;
}

.problem-description {
    font-size: 1.2rem !important;
    color: #555;
    line-height: 1.9;
    margin-top: 30px;
}

.problem-description strong {
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ========================================
   サービス特徴セクション（Feature）
======================================== */

.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--color-gold);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
    line-height: 1.4;
}

.feature-description {
    font-size: 1.1rem !important;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   よくあるお悩みセクション（2カラム改善版）
======================================== */

.pain-points-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.pain-point {
    font-size: 1.1rem !important;
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-gold);
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
}

.pain-point:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    background: #fffef8;
}

/* ========================================
   サービス詳細セクション
======================================== */

.service-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.service-list {
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--color-gold);
    transition: all 0.3s;
    display: flex;
    gap: 30px;
}

.service-item:hover {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
    transform: translateX(5px);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.3);
    line-height: 1;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
}

.service-subtitle {
    font-size: 1.15rem !important;
    color: var(--color-gold-dark);
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
}

.service-description {
    font-size: 1.1rem !important;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-examples h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--color-gold);
}

.service-examples ul {
    list-style: none;
    padding-left: 0;
}

.service-examples li {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.service-examples li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-note {
    font-size: 0.95rem;
    color: #999;
    margin-top: 15px;
    font-style: italic;
}

/* ========================================
   ターゲット顧客セクション
======================================== */

.target-section {
    padding: 80px 0;
    background: #fff;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.target-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-gold);
    transition: all 0.3s;
    text-align: center;
}

.target-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

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

.target-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   フローセクション（番号円形修正版）
======================================== */

.flow-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.flow-step {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.flow-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(201, 169, 97, 0.2));
    border: 3px solid #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #C9A961;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
}

.flow-step-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.flow-step-title {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #1B1464;
    margin-bottom: 15px;
    line-height: 1.4;
}

.flow-step-description {
    font-size: 1rem !important;
    color: #666;
    line-height: 1.7;
    flex: 1;
}

.flow-arrow {
    display: none;
}

/* ========================================
   Aboutセクション
======================================== */

.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-story {
    margin-bottom: 50px;
}

.about-description {
    font-size: 1.25rem !important;
    color: #555;
    line-height: 1.9;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.about-description strong {
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1.3rem;
}

.about-meaning {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.meaning-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 4px solid var(--color-gold);
}

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

.meaning-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

.about-tagline {
    font-size: 1.3rem;
    color: var(--color-navy);
    font-weight: 700;
    text-align: center;
    line-height: 1.9;
    padding: 30px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 5px solid var(--color-gold);
    border-radius: 8px;
}

/* ========================================
   プロフィールセクション
======================================== */

.profile-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.profile-with-image {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-image {
    flex-shrink: 0;
    width: 250px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid #fff;
}

.profile-info {
    flex: 1;
}

.profile-role {
    font-size: 1rem;
    color: var(--color-gold-dark);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.profile-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 25px;
}

.profile-bio {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
}

/* ========================================
   FAQセクション
======================================== */

.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--color-gold);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-answer {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   CTAセクション
======================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, #0d0a3d 100%);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.8;
}

.cta-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   フッター
======================================== */

.site-footer {
    background: var(--color-navy);
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo-img {
    width: 200px !important;
    height: auto !important;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   Back to Top ボタン（矢印中央配置修正版）
======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-gold);
    color: var(--color-navy);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    border: none;
    cursor: pointer;
}

.back-to-top span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* ========================================
   スムーズスクロール
======================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* ========================================
   スクロールアニメーション
======================================== */

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ========================================
   ユーティリティ
======================================== */

.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--color-gold);
    color: var(--color-navy);
}

/* ==========================================================================
   📱 スマホ最適化 - 横スクロール防止 + ヘッダー高さ調整
   ========================================================================== */

@media (max-width: 768px) {
    
    /* ========================================
       横スクロール防止の基本設定
    ======================================== */
    
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    body {
        font-size: 16px;
        line-height: 1.7;
        position: relative !important;
    }
    
    * {
        max-width: 100% !important;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* ========================================
       ヘッダー（高さを大幅に削減）
    ======================================== */
    
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        padding: 8px 0 !important; /* 15px → 8px に削減 */
        background: rgba(27, 20, 100, 1) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        z-index: 9999 !important;
        overflow: hidden !important;
    }
    
    .site-header.scrolled {
        background: rgba(27, 20, 100, 1) !important;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4) !important;
    }
    
    .header-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 15px !important; /* 20px → 15px に削減 */
        height: 60px !important; /* 明確な高さ指定 */
        box-sizing: border-box !important;
    }
    
    /* ロゴ（左側固定・サイズ縮小） */
    .logo {
        flex-shrink: 0 !important;
        order: 1 !important;
        margin-right: auto !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    .logo a {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    .logo img,
    .logo-img {
        height: 45px !important; /* 60px → 45px に削減 */
        width: auto !important;
        max-width: 150px !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    /* グローバルナビとヘッダーCTAを非表示 */
    .global-nav,
    .header-cta,
    .main-nav,
    .nav-list {
        display: none !important;
    }
    
     /* ハンバーガーメニューボタン */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 10px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        order: 2 !important;
        margin-left: auto !important;
        z-index: 10000 !important;
        position: relative !important;
        flex-shrink: 0 !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    /* 3本線のスタイル */
    .mobile-menu-toggle span {
        display: block !important;
        width: 26px !important;
        height: 2.5px !important;
        background-color: #ffffff !important;
        border-radius: 2px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        margin: 0 !important;
    }
    
    /* アクティブ時（×の形） */
    .mobile-menu-toggle.active {
        gap: 0 !important;
    }
    
    .mobile-menu-toggle.active span {
        position: absolute !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) !important;
    }
}
    
    /* モバイルナビ（ドロップダウン） */
    .mobile-nav {
        display: none !important;
        position: fixed !important;
        top: 76px !important; /* 90px → 76px（ヘッダー高さに合わせる） */
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        background: rgba(27, 20, 100, 0.98) !important;
        padding: 20px 0 !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(10px) !important;
        z-index: 9998 !important;
        max-height: calc(100vh - 76px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .mobile-nav.active {
        display: block !important;
    }
    
    .mobile-nav ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .mobile-nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }
    
    .mobile-nav ul li:last-child {
        border-bottom: none !important;
    }
    
    .mobile-nav ul li a {
        display: flex !important;
        align-items: center !important;
        padding: 16px 20px !important; /* 20px 30px → 16px 20px に削減 */
        color: #fff !important;
        text-decoration: none !important;
        font-size: 16px !important; /* 18px → 16px */
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        min-height: 50px !important; /* 60px → 50px */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav ul li a:hover,
    .mobile-nav ul li a.active {
        background: rgba(255, 215, 0, 0.2) !important;
        color: #FFD700 !important;
        padding-left: 30px !important; /* 40px → 30px */
    }
    
   /* ========================================
   ヒーローセクション（スマホ最適化）
======================================== */

@media screen and (max-width: 768px) {
    
    .hero-section {
        padding-top: 76px !important;
        min-height: calc(100vh - 76px) !important;
        margin-top: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    .hero-background {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .hero-overlay {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .hero-content,
    .hero-content-left {
        position: relative !important;
        z-index: 10 !important;
        padding: 30px 25px 40px !important; /* 左右のパディングを25pxに */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* タイトル：可変フォントサイズ + サイズ調整 */
    .hero-title {
        font-size: clamp(1.5rem, 4.5vw, 1.75rem) !important; /* 1.8rem → 1.75rem */
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        word-break: keep-all !important;
        letter-spacing: 0.01em !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* サブタイトル：可変フォントサイズ + サイズ調整 */
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.8vw, 0.98rem) !important; /* 1rem → 0.98rem */
        line-height: 1.75 !important;
        margin-bottom: 30px !important;
        word-break: keep-all !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-buttons,
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        width: 100% !important;
    }
    
    .cta-button.cta-primary,
    .hero-cta .hs-cta-wrapper a {
        width: 100% !important;
        padding: 14px 25px !important;
        font-size: 16px !important;
        text-align: center !important;
        min-height: 50px !important;
        box-sizing: border-box !important;
    }
}

/* 小型スマホ用（375px以下） */
@media screen and (max-width: 375px) {
    .hero-content,
    .hero-content-left {
        padding: 25px 20px 35px !important;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-subtitle {
        font-size: 0.92rem !important;
    }
}

/* 超小型スマホ用（360px以下） */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.55rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
}

/* 中型スマホ用（414px以下） */
@media screen and (max-width: 414px) {
    .hero-title {
        font-size: 1.7rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
}
    }
    
    /* ========================================
       セクション共通（コンパクト化）
    ======================================== */
    
    .section {
        padding: 40px 0; /* 50px → 40px */
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    section {
        padding: 40px 0; /* var(--spacing-lg) → 40px */
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .section-header {
        text-align: left;
        margin-bottom: 30px; /* 35px → 30px */
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 1.6rem !important; /* 1.75rem → 1.6rem */
        padding-bottom: 12px; /* 15px → 12px */
        margin-bottom: 15px; /* 20px → 15px */
    }
    
    .section-title::after {
        left: 0;
        transform: none;
        width: 50px; /* 60px → 50px */
        height: 3px;
    }
    
    .section-description,
    .section-subtitle {
        font-size: 1rem !important; /* 1.05rem → 1rem */
    }
    
    .subsection-title {
        font-size: 1.3rem !important; /* 1.4rem → 1.3rem */
        padding: 0 20px;
    }
    
    /* グリッドレイアウト */
    .features-grid,
    .target-grid,
    .pain-points-grid,
    .about-meaning {
        grid-template-columns: 1fr;
        gap: 15px; /* 20px → 15px */
        padding: 0 20px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
        gap: 15px; /* 20px → 15px */
        padding: 0 20px;
        width: 100% !important;
    }
    
    /* カード系の余白調整 */
    .feature-card,
    .target-card,
    .meaning-item,
    .flow-step,
    .pain-point,
    .service-item,
    .faq-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 25px 15px !important; /* パディング削減 */
    }
    
    /* プロフィールセクション */
    .profile-with-image {
        flex-direction: column;
        text-align: center;
        gap: 20px; /* 25px → 20px */
        padding: 0 20px;
    }
    
    .profile-image {
        width: 150px; /* 180px → 150px */
        margin: 0 auto;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px; /* 20px → 15px */
        padding: 0 20px;
    }
    
    .footer-logo img,
    .footer-logo-img {
        width: 120px !important; /* 140px → 120px */
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 15px; /* 20px → 15px */
        right: 15px; /* 20px → 15px */
        width: 45px; /* 48px → 45px */
        height: 45px; /* 48px → 45px */
        font-size: 20px; /* 22px → 20px */
    }
    
    /* スクロール余白 */
    html {
        scroll-padding-top: 80px !important; /* 100px → 80px */
    }
    
    /* メニュー開いた時のbody固定 */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
    }
}

/* ========================================
   📱 超小型スマホ対応（375px以下）
======================================== */

@media (max-width: 375px) {
    body {
        font-size: 15px;
    }
    
    .site-header {
        padding: 6px 0 !important; /* さらに削減 */
    }
    
    .header-content {
        padding: 0 12px !important;
        height: 56px !important;
    }
    
    .logo img,
    .logo-img {
        height: 40px !important; /* さらに削減 */
    }
    
    .mobile-menu-toggle {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 6px !important;
    }
    
    .mobile-menu-toggle span {
        width: 24px !important;
        height: 2px !important;
    }
    
    .mobile-nav {
        top: 68px !important;
        max-height: calc(100vh - 68px) !important;
    }
    
    .mobile-nav ul li a {
        padding: 14px 15px !important;
        font-size: 15px !important;
        min-height: 46px !important;
    }
    
    .hero-section {
        padding-top: 68px !important;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .cta-button.cta-primary {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    html {
        scroll-padding-top: 72px !important;
    }
}
/* ========================================
   📱 タブレット（768px〜1024px）
======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 17px;
    }
    
    .container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    .section-title {
        font-size: 2.3rem !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .target-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ========================================
   ハンバーガーメニュー強制右寄せ
======================================== */

@media (max-width: 768px) {
    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
    }
    
    .logo {
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    
    .global-nav,
    .header-cta {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        order: 2 !important;
        margin-left: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ==========================================================================
   🔧 追加修正 - フォーム項目を白に・ハンバーガーメニュー表示確実化
   ========================================================================== */

/* 1. フォームのすべてのラベル・説明文・項目名を白に */

/* すべてのラベルと説明文を白に */
.cta-form label,
.cta-form .hs-form label,
.cta-form .hs-form .hs-field-desc,
.cta-form .hs-form .hs-form-field label,
.cta-form .hs-form .hs-form-field > label,
.cta-form .hs-form .hs-fieldtype-text label,
.cta-form .hs-form .hs-fieldtype-textarea label,
.cta-form .hs-form .hs-fieldtype-select label,
.cta-form .hs-form .hs-fieldtype-radio label,
.cta-form .hs-form .hs-fieldtype-checkbox label,
.cta-form .hs-form .hs-fieldtype-booleancheckbox label,
.cta-form .hs-form .field label,
.cta-form .hs-form-field label,
.cta-form .hs-form-required,
.cta-form p,
.cta-form h2,
.cta-form h3,
.cta-form span {
    color: var(--color-white) !important;
}

/* 必須マーク（*）も白に */
.cta-form .hs-form .hs-form-required {
    color: var(--color-white) !important;
}

/* 入力欄の背景とボーダー */
.cta-form .hs-form input,
.cta-form .hs-form textarea,
.cta-form .hs-form select {
    background-color: var(--color-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--color-gray-dark) !important; /* 入力テキストは黒 */
    padding: 12px !important;
    border-radius: 5px !important;
    width: 100% !important;
}

/* プレースホルダーはグレー */
.cta-form .hs-form input::placeholder,
.cta-form .hs-form textarea::placeholder {
    color: var(--color-gray-medium) !important;
    opacity: 0.7;
}

/* フォーカス時のスタイル */
.cta-form .hs-form input:focus,
.cta-form .hs-form textarea:focus,
.cta-form .hs-form select:focus {
    outline: none !important;
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.2) !important;
}

/* ボタンのスタイル */
.cta-form .hs-form .hs-button,
.cta-form .hs-form input[type="submit"],
.cta-form .hs-submit .hs-button {
    background-color: var(--color-gold) !important;
    color: var(--color-navy) !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.cta-form .hs-form .hs-button:hover,
.cta-form .hs-form input[type="submit"]:hover {
    background-color: var(--color-white) !important;
    transform: translateY(-2px) !important;
}

/* エラーメッセージは赤 */
.cta-form .hs-form .hs-error-msgs,
.cta-form .hs-form .hs-error-msg {
    color: #ff6b6b !important;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* チェックボックス・ラジオボタンのラベルも白に */
.cta-form .hs-form .hs-form-checkbox label,
.cta-form .hs-form .hs-form-radio label,
.cta-form .hs-form .hs-form-booleancheckbox label,
.cta-form .hs-form .inputs-list label {
    color: var(--color-white) !important;
}

/* 2. ハンバーガーメニューの表示を確実化 */
@media screen and (max-width: 768px) {
    .mobile-nav {
        display: none !important;
        position: fixed !important;
        top: 76px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        background-color: rgba(27, 20, 100, 0.98) !important;
        z-index: 9998 !important;
        max-height: calc(100vh - 76px) !important;
        overflow-y: auto !important;
        padding: 20px 0 !important;
    }

    .mobile-nav.active {
        display: block !important;
    }

    .mobile-nav ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-nav a {
        display: block !important;
        padding: 15px 20px !important;
        color: var(--color-white) !important;
        text-decoration: none !important;
        font-size: 16px !important;
        transition: all 0.3s ease !important;
    }

    .mobile-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        padding-left: 30px !important;
    }

    /* body固定化（メニュー開いている間スクロール防止） */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
}

/* END 追加修正 */

/* PC/スマホ共通の改行制御用クラス */
.wo-pc {
    display: inline;
}

.wo-sp {
    display: none;
}

.br-sp {
    display: none;
}

/* スマホ用の改行位置調整（768px以下） */
@media screen and (max-width: 768px) {
  .hero-title {
        font-size: clamp(1.45rem, 4.2vw, 1.7rem) !important; /* さらに小さく */
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        word-break: keep-all !important;
        letter-spacing: -0.01em !important; /* 文字を少し詰める */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* 390px〜414px のスマホ（iPhone 12/13/14など） */
@media screen and (max-width: 414px) and (min-width: 390px) {
    .hero-title {
        font-size: 1.65rem !important;
        letter-spacing: -0.015em !important;
    }
}

/* 375px〜389px のスマホ（iPhone SE など） */
@media screen and (max-width: 389px) and (min-width: 375px) {
    .hero-title {
        font-size: 1.6rem !important;
        letter-spacing: -0.01em !important;
    }
}

/* 小型スマホ用（375px以下） */
@media screen and (max-width: 374px) {
    .hero-title {
        font-size: 1.55rem !important;
        letter-spacing: 0 !important;
    }
}

/* 超小型スマホ用（360px以下） */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
}

/* ===================================
   デスクトップ/ノートPC用ヘッダー余白調整
   =================================== */

/* 基本のヒーローセクション（全デバイス共通） */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 140px; /* デスクトップのデフォルト余白 */
}

/* ノートPC用（1024px〜1440px） */
@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .hero-section {
    padding-top: 120px !important; /* ノートPCに最適化 */
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 3.5rem !important; /* 4remより少し小さく */
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
  }
  
  .hero-subtitle {
    font-size: 1.35rem !important; /* 1.5remより少し小さく */
    line-height: 1.7 !important;
    margin-bottom: 35px !important;
  }
  
  .hero-content,
  .hero-content-left {
    padding: 50px 40px !important;
  }
}

/* 大型デスクトップ（1441px以上） */
@media screen and (min-width: 1441px) {
  .hero-section {
    padding-top: 150px !important;
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 4rem !important;
    line-height: 1.2 !important;
    margin-bottom: 30px !important;
  }
  
  .hero-subtitle {
    font-size: 1.5rem !important;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
  }
  
  .hero-content,
  .hero-content-left {
    padding: 60px 50px !important;
  }
}

/* タブレット（769px〜1023px） */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .hero-section {
    padding-top: 100px !important;
    min-height: 85vh;
  }
  
  .hero-title {
    font-size: 3rem !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }
  
  .hero-subtitle {
    font-size: 1.2rem !important;
    line-height: 1.65 !important;
    margin-bottom: 30px !important;
  }
  
  .hero-content,
  .hero-content-left {
    padding: 40px 35px !important;
  }
}

/* スマホ（768px以下）は既存のまま維持 */
@media screen and (max-width: 768px) {
  .hero-section {
    padding-top: 76px !important;
    min-height: calc(100vh - 76px) !important;
  }
  
  .hero-title {
    font-size: clamp(1.45rem, 4.2vw, 1.7rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.01em !important;
  }
  
  .hero-subtitle {
    font-size: clamp(0.9rem, 2.8vw, 0.98rem) !important;
    line-height: 1.75 !important;
    margin-bottom: 30px !important;
  }
  
  .hero-content,
  .hero-content-left {
    padding: 30px 30px 40px !important;
  }
}

/* 小型スマホ（390px以下） */
@media screen and (max-width: 390px) {
  .hero-title {
    font-size: 1.6rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.92rem !important;
  }
  
  .hero-content,
  .hero-content-left {
    padding: 25px 25px 35px !important;
  }
}

/* 超小型スマホ（360px以下） */
@media screen and (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
  }
}