/* =========================================
   1. 基本設定 (Reset & Global)
   ========================================= */
:root {
    --color-gold: #FFD700;       /* 鮮やかなビビッドイエロー */
    --color-gold-dark: #FFB300;  /* 深みのあるゴールド */
    --color-gold-light: #FFE082; /* ボタンの輝き用 */
    --pc-bezel: #121212;
    --sp-frame: #0a0a0a;
}

body { 
    font-family: 'Noto Sans JP', sans-serif; 
    background-color: #000; 
    color: #fff; 
    line-height: 1.8; 
    overflow-x: hidden; 
}
.font-eng { font-family: 'Montserrat', sans-serif; }

/* --- ローディング画面 --- */
#loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    box-sizing: border-box; /* 追加: ボーダーを幅・高さの計算に含め、サイズのブレを防ぐ */
    flex-shrink: 0;         /* 追加: Flexboxによる意図しない伸縮を防ぐ */
    margin: 0;              /* 追加: 余期せぬマージンの干渉をリセットする */
    
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 高級感のあるゴールドボタン --- */
.btn-glow, .ffx-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; border-radius: 9999px; font-weight: 700; color: #000 !important;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-dark) 50%, #FFA000 100%);
    box-shadow: 0 4px 15px rgba(255, 176, 0, 0.3); overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none !important; z-index: 1; letter-spacing: 0.05em;
}
.btn-glow::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg); animation: shine 3s infinite ease-in-out;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 176, 0, 0.5); filter: brightness(1.1); }

/* --- Page TOPボタン（reCAPTCHAとの重なり回避修正） --- */
#pageTop {
    position: fixed;
    bottom: 100px; /* reCAPTCHAバッジ(通常約60-80px)を避けるために上に配置 */
    right: 20px;
    z-index: 50;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#pageTop.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}
#pageTop:not(.is-visible) {
    transform: translateY(20px);
}
#pageTop:hover {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

/* =========================================
   MVセクション専用（背景・デバイス・レスポンシブ）
   ========================================= */

/* 背景設定 */
.mv-bg-custom { 
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.65)), url('https://netoco.jp/lpb/tcddemo/img/seizo01.avif') center/cover no-repeat; 
}
.mv-bg-custom02 { 
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.65)), url('https://netoco.jp/lpb/tcddemo/img/lpmvbg05.png') center/cover no-repeat; 
}
.mv-bg-dots { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-image: radial-gradient(rgba(255,215,0,0.1) 1px, transparent 1px); 
    background-size: 40px 40px; opacity: 0.4; pointer-events: none; 
}

/* Laptop V3 (Mac風リアリティ) */
.laptop-v3 { 
    position: relative; width: 85%; z-index: 5; 
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.9)); 
}
.laptop-screen-v3 { 
    position: relative; aspect-ratio: 16 / 10.5; background: #0a0a0a; 
    border-radius: 10px 10px 0 0; padding: 1.5%; border: 1px solid #333; overflow: hidden; 
}
.laptop-inner { width: 100%; height: 100%; background-color: #000; overflow: hidden; position: relative; }
.laptop-inner img, .phone-inner img { 
    width: 100%; height: 100%; object-fit: cover; object-position: top; 
    position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1.5s ease; 
}
.laptop-inner img.active, .phone-inner img.active { opacity: 1; z-index: 2; }

.laptop-base-v3 { 
    position: relative; width: 110%; height: 12px; margin-left: -5%; 
    background: linear-gradient(to bottom, #444 0%, #111 100%); 
    border-radius: 0 0 10px 10px; box-shadow: inset 0 1px 2px rgba(255,255,255,0.1); 
}
.laptop-base-v3::after { 
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); 
    width: 50px; height: 4px; background: rgba(0,0,0,0.4); border-radius: 0 0 4px 4px; 
}

/* Phone V3 (サイズ修正版) */
.phone-v3 { 
    position: absolute; bottom: -8px; right: -5%; width: 24%; 
    aspect-ratio: 9 / 18.5; z-index: 10; 
    filter: drop-shadow(15px 15px 30px rgba(0,0,0,0.8)); 
}
.phone-frame-v3 { 
    position: relative; width: 100%; height: 100%; background: #080808; 
    border: 2.5px solid #2a2a2a; border-radius: 22px;
    padding: 6px; box-sizing: border-box; overflow: hidden; 
    box-shadow: inset 0 0 4px rgba(255,255,255,0.15); 
}
.phone-inner { width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: #000; position: relative; }
.phone-notch-small { 
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%); 
    width: 25%; height: 14px; background: #000; border-radius: 10px; z-index: 10; 
}

/* 画面共通の反射 */
.screen-reflection { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 45%, rgba(255,255,255,0.03) 50%, transparent 100%); 
    pointer-events: none; z-index: 5; 
}

/* --- レスポンシブ修正 (MVスマホサイズ) --- */
@media (max-width: 1024px) {
    .laptop-v3 { width: 90%; }
    .phone-v3 { width: 26%; right: -3%; }
}
@media (max-width: 768px) {
    /* PCをやや縮小、スマホの巨大化を防止(145pxから95px前後に修正) */
    .laptop-v3 { width: 80%; margin-right: auto; margin-left: 0; }
    .phone-v3 { 
        width: 100px !important; /* 大きすぎたサイズを適正化 */
        right: 0; 
        bottom: -15px; 
    }
    .device-mockup-v3 { padding-right: 20px; justify-content: flex-start; }
}

/* --- スクロールダウンアニメーション --- */
.scroll-line-v3 {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.scroll-line-v3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    animation: scroll-anim-line 2s cubic-bezier(0.76, 0, 0.3, 1) infinite;
}
@keyframes scroll-anim-line {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* =========================================
   3. Bridge Section (背景画像修正版)
   ========================================= */
#status {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* デフォルトPC用 */
}

@media (max-width: 768px) {
    #status {
        background-attachment: scroll !important; /* iOS等のモバイルで背景が消える・拡大される問題を修正 */
        background-position: center !important;
    }
}

.donut-chart {
    background: conic-gradient(#4b5563 0% 42%, #111827 42% 82%, #facc15 82% 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 50%;
}

/* =========================================
   Portfolio (Quick Web 中央揃え修正版)
   ========================================= */
.js-track { overflow: hidden; width: 100%; }
.ticker-wrapper {
    display: flex; width: max-content;
    animation: slide-ticker 90s linear infinite;
    will-change: transform;
}
.ticker-content { display: flex; gap: 1.5rem; padding-right: 1.5rem; }
@keyframes slide-ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.ticker-wrapper:hover { animation-play-state: paused; }

/* SP時のQuickWebヘッダー中央揃え */
@media (max-width: 768px) {
    #quick-web .reveal {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    #quick-web .sec-title-wrap {
        margin-bottom: 20px;
    }
    #quick-web .flex-col.items-end {
        align-items: center !important;
    }
    #quick-web p.text-right {
        text-align: center !important;
    }
}

/* =========================================
   4. Solution Section (Bubbles)
   ========================================= */
.solve-bubble {
    width: 8.5rem; height: 8.5rem; border-radius: 50%; background: #000; color: #fff !important;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.3s;
}
@media (min-width: 768px) { .solve-bubble { width: 10rem; height: 10rem; } }
.solve-bubble:hover { transform: scale(1.1); }
.solve-txt { font-size: 0.8rem; font-weight: 900; line-height: 1.3; text-align: center; color: #fff !important; }

/* =========================================
   5. 白背景セクション (制作の流れ & 料金プラン)
   ========================================= */
#02, #plans { background-color: #fff !important; }

#02 h2, #02 h3, #02 p, #02 span,
#plans h2, #plans h3, #plans p, #plans span, #plans div:not(.bg-black) {
    color: #000 !important;
}

.plan-item-card {
    background: #fff;
    border: 1px solid #000 !important;
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .plan-item-card + .plan-item-card {
        margin-left: -1px;
    }
}

.plan-is-recommended {
    z-index: 10 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

#plans .text-red-600 { color: #d7000f !important; }
#plans .text-gray-400 { color: #888 !important; }
#plans .line-through { color: #aaa !important; text-decoration: line-through; }

/* =========================================
   6. アコーディオン (FAQ / Location)
   ========================================= */
#clinic-location {
    background-color: #fff !important;
}
#clinic-location .card {
    border: 1px solid #000 !important; /* 黒枠線 */
    background: #fff !important;
    border-radius: 8px;
    margin-bottom: 1rem;
}
#clinic-location .faq-btn {
    width: 100%; text-align: left; font-weight: 700; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; color: #000 !important; background: #fff !important; border:none; cursor: pointer; transition: none;
}
#clinic-location .faq-btn::after { content: "＋"; font-size: 1.2rem; color: var(--color-gold); transition: transform 0.3s ease; }
#clinic-location .faq.open .faq-btn::after { content: "－"; }
#clinic-location .faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: #fff !important; }
#clinic-location .faq.open .faq-panel { border-top: 1px solid #eee; }
#clinic-location .faq-content, 
#clinic-location .faq-panel div {
    padding: 1.5rem; line-height: 1.7; color: #333 !important;
}

/* =========================================
   7. 共通アニメーション & ユーティリティ
   ========================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.marker { background: linear-gradient(transparent 60%, rgba(255, 215, 0, 0.4) 60%); font-weight: 700; color: inherit; }

/* =========================================
   8. About Us Section
   ========================================= */
#company dl dt {
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    #company .grid { gap: 1rem; }
    #company .reveal div { text-align: left; }
    #company .text-center { text-align: center; }
}

/* =========================================
   9. フォーム専用スタイル（整理版）
   ========================================= */

        /* フォーム：洗練されたミッドナイトデザイン */
        .contact-card-refined {
            max-width: 800px;
            margin: 0 auto;
            background: rgba(30, 41, 59, 0.7); 
            backdrop-blur: 16px;
            padding: 60px 10%;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }
        .contact-header-lp { text-align: center; margin-bottom: 50px; }
        .contact-title-lp { font-family: "Montserrat", sans-serif; font-size: 2.5rem; font-weight: 900; letter-spacing: 0.1em; color: #fff; margin-bottom: 8px; }
        .contact-desc-lp { font-size: 0.95rem; color: rgba(255,255,255,0.6); }

        .form-row-lp { margin-bottom: 28px; text-align: left; }
        .form-label-lp { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; color: #FFD700; letter-spacing: 0.1em; }
        
        .form-input-lp, .form-textarea-lp {
            width: 100%; 
            padding: 16px 24px; /* 左側に十分な余白 */
            background: rgba(15, 23, 42, 0.6); 
            border: 1px solid rgba(255, 255, 255, 0.1); 
            font-family: inherit; 
            font-size: 1rem;
            transition: all 0.3s; 
            border-radius: 12px; 
            color: #fff;
        }
        .form-input-lp:focus, .form-textarea-lp:focus { outline: none; border-color: #FFD700; background: rgba(15, 23, 42, 0.9); box-shadow: 0 0 20px rgba(255, 215, 0, 0.15); }
        .form-textarea-lp { height: 160px; resize: vertical; }

        .policy-area-lp { text-align: center; margin: 40px 0; }
        .policy-label-lp { font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); }
        .policy-label-lp a { border-bottom: 1px solid #FFD700; color: #fff; }
        .policy-label-lp input { width: 20px; height: 20px; accent-color: #FFD700; }

        .btn-submit-lp {
            display: block; width: 100%; 
            background: linear-gradient(135deg, #FFD700 0%, #FFB300 100%); 
            color: #000; text-align: center; 
            padding: 22px; font-size: 1.1rem; font-weight: 800; 
            font-family: "Montserrat", sans-serif; 
            border: none; cursor: pointer; letter-spacing: 0.2em; 
            transition: 0.3s; border-radius: 12px;
        }
        .btn-submit-lp:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255, 179, 0, 0.4); }

        .hp-field { display: none !important; }
        @media (max-width: 768px) { .contact-card-refined { padding: 40px 6%; } }