/* ==================================================
   SNS運用代行LP - 共通スタイルシート
   ================================================== */

/* Google Fonts読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&display=swap');

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

/* スパム対策のhoneypot項目。
   display:none だとBOTに無視されやすいため、画面外へ飛ばして隠す。
   aria-hidden と tabindex="-1" を併用し、支援技術・キーボード操作からは到達しない。 */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* フォーム送信ステータス（確認モーダルを使わず、その場で結果を返す） */
.form-status {
    margin-top: 14px;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    letter-spacing: 0.02em;
}

.form-status:empty {
    display: none;
}

.form-status.is-pending {
    color: #6b7280;
}

.form-status.is-success {
    padding: 12px 14px;
    background-color: #e8f4f6;
    color: #1c6b7d;
}

.form-status.is-error {
    padding: 12px 14px;
    background-color: #fdeceb;
    color: #a32e25;
    white-space: pre-line;
}

/* スクリーンリーダー専用（視覚的に非表示だが読み上げ・クロール対象） */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', 'BIZ UDPGothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #dddddd;
}

/* コンテナ - スマホ版 */
.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #dddddd;
    width: 100%;
}

/* 画像の基本設定 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

.mobile-screen #mobile-frame-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-screen #mobile-frame-content .container {
    max-width: none !important;
    width: 100% !important;
}

/* ==================================================
   レスポンシブ表示制御
   ================================================== */

/* スマホ版（767px以下） */
@media screen and (max-width: 767px) {
    .mobile-only {
        display: block !important;
        position: relative;
        z-index: 10000;
        background-color: #dddddd;
        width: 100%;
        min-height: 100vh;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .desktop-layout {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

    
}

.desktop-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.desktop-bg-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: calc(100% - 390px - 60px);
    height: 100vh;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.desktop-logo {
    margin-bottom: 40px;
}

.desktop-logo-img {
    width: 300px;
    height: auto;
}

/* テキストコンテンツ */
.desktop-text {
    margin-bottom: 60px;
    color: white;
}

.intro-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ffffff;
}

.service-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 8px;
    color: #ffffff;
}

.approach-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 8px;
    color: #ffffff;
}

.result-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    margin-top: 20px;
    color: #ffffff;
}

.desktop-menu {
    margin-bottom: 40px;
}

.desktop-menu-list {
    list-style: none;
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: flex-start;
}

.desktop-menu-item {
    font-family: 'BIZ UDPGothic', sans-serif;
    color: white;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.desktop-menu-item:hover {
    color: #5db3b8;
}

.desktop-menu-item.active {
    color: #5db3b8;
}

.desktop-menu-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: #5db3b8;
}

.desktop-contact {
    margin-top: 60px;
}

.desktop-contact-button {
    font-family: 'BIZ UDPGothic', sans-serif;
    background: white;
    border: none;
    cursor: pointer;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.desktop-contact-button:hover {
    transform: scale(1.05);
    background-color: #5db3b8;
    color: white;
}

.mobile-frame {
    position: fixed;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    width: 390px;
    height: calc(100vh - 60px);
    background: #000;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 5;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    overflow-y: auto; /* overflow: hidden から変更 */
    overflow-x: hidden; /* 追加 */
    background: #dddddd;
    position: relative;
}

.mobile-screen .container {
    width: 100%;
    height: auto; 
    min-height: auto; /* min-height: 100% から変更 */
    overflow-y: visible; /* overflow-y: auto から変更 */
    overflow-x: hidden;
}

/* スクロールバーのスタイルを .mobile-screen に移動 */
.mobile-screen::-webkit-scrollbar {
    width: 4px;
}

.mobile-screen::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-screen::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* スマホフレーム内では390pxに制限 */
@media screen and (min-width: 768px) {
    .mobile-frame .container {
        max-width: 390px !important; /* フレーム内でのみ390px制限 */
        width: 100% !important;
    }
}


/* ==================================================
   タブレット版（768px - 1023px）
   ================================================== */

@media screen and (min-width: 768px) and (max-width: 1023px) {    
    .desktop-nav {
        width: calc(100% - 390px - 110px);
        padding: 40px;
    }
    
    .desktop-logo {
        margin-bottom: 30px;
    }
    
    .desktop-logo-img {
        width: 250px;
    }
    
    .desktop-text {
        margin-bottom: 40px;
    }
    
    .intro-text,
    .service-text,
    .approach-text,
    .result-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .desktop-menu {
        margin-bottom: 30px;
    }
    
    .desktop-menu-list {
        flex-direction: column;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .desktop-menu-item {
        font-size: 14px;
        text-align: left;
    }
    
    .desktop-contact {
        margin-top: 40px;
    }
    
    .desktop-contact-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .mobile-frame {
        right: 60px;
        height: calc(100vh - 40px);
    }
}

/* ==================================================
   デスクトップ版（1024px以上）
   ================================================== */

@media screen and (min-width: 1024px) {
    /* デスクトップ版では全ての要素がデフォルトサイズで表示 */
}

/* ==================================================
   各セクション別スタイル
   ================================================== */

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    z-index: 100;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* MIRANAロゴ */
.hero-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

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

/* スマートフォン配置 */
.hero-phones {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Instagram Phone (左側・小) */
.phone-instagram {
    position: absolute;
    top: 30%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 3;
    animation: phoneFloat 4s ease-in-out infinite;
}

.phone-instagram .phone-img {
    width: 120px;
    height: auto;
}

/* TikTok Phone (右側・大) */
.phone-tiktok {
    position: absolute;
    top: 32%;
    right: 1%;
    transform: translateY(-50%);
    z-index: 4;
    animation: phoneFloat 3.5s ease-in-out infinite 0.5s;
}

.phone-tiktok .phone-img {
    width: 220px;
    height: auto;
}

/* フローティングアニメーション */
@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(-50%) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateY(-8px);
    }
}

/* 実績UIアニメーション */
.hero-results {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 5;
}

.results-marquee {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    will-change: transform;
}

.result-item {
    flex: 0 0 auto;
    margin-right: 20px;
}

.result-item img {
    width: 120px;
    height: auto;
}

/* 無料相談ボタン */
.hero-cta {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
}

.cta-button {
    position: relative;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-img {
    width: 280px;
    height: auto;
    display: block;
}

/* 光るエフェクト */
.sparkle-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 30px;
    overflow: hidden;
}

.sparkle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: sparkleGlow 3s ease-in-out infinite;
    border-radius: 30px;
}

.sparkle-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sparkle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px white;
    animation: sparkleFlash 3s ease-in-out infinite;
}

.dot-1 {
    top: 30%;
    left: 18%;
    animation-delay: 0s;
}

.dot-2 {
    top: 25%;
    right: 15%;
    animation-delay: 0.3s;
}

.dot-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 0.6s;
}

.dot-4 {
    bottom: 30%;
    right: 25%;
    animation-delay: 0.9s;
}

@keyframes sparkleGlow {
    0%, 70%, 100% {
        opacity: 0;
    }
    85% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.4;
    }
}

@keyframes sparkleFlash {
    0%, 70%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    75% {
        opacity: 0.8;
        transform: scale(1);
    }
    80% {
        opacity: 0;
        transform: scale(1.2);
    }
    85% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* ==================================================
   SNSの重要性セクション
   ================================================== */

.importance {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    margin-top: -210px;
    z-index: 50;
}

.importance-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.importance-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.importance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

/* TikTokセクション */
.tiktok-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.tiktok-content {
    max-width: 320px;
    width: 100%;
    height: auto;
}

/* Instagramセクション */
.instagram-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -50px;
}

.instagram-content {
    max-width: 320px;
    width: 100%;
    height: auto;
}

/* SNS比較セクション */
.sns-comparison {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -80px;
}

.sns-icons-img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* ==================================================
   運用実績セクション
   ================================================== */

.achievements {
    position: relative;
    width: 100%;
    z-index: 30;
}

/* 各実績アイテム */
.achievement-item {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.achievement-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.achievement-bg-img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 100vh;
    object-fit: cover;
}

.achievement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.achievement-content {
    max-width: 350px;
    width: 90%;
    height: auto;
}

/* ==================================================
   プロセスセクション
   ================================================== */

.process {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #dddddd;
    z-index: 20;
    margin-top: -170px;
}

.process-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.process-bg-img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 100vh;
    object-fit: cover;
}

.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.process-content {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* ==================================================
   共鳴の哲学セクション
   ================================================== */

.philosophy {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #dddddd;
    z-index: 25; /* z-index: 10 から 25 に変更 */
    margin-top: -70px;
}

.philosophy-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.philosophy-bg-img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 100vh;
    object-fit: cover;
}

/* ==================================================
   料金プラン・FAQセクション
   ================================================== */

.price-faq {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #dddddd;
    z-index: 8;
    margin-top: -150px;
}

.price-faq-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.price-faq-bg-img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 100vh;
    object-fit: cover;
}

/* ==================================================
   お問い合わせセクション
   ================================================== */

   .contact {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    z-index: 15; /* z-index: 5 から 15 に変更 */
    margin-top: 0px;
}

.contact-header {
    position: relative;
    width: 100%;
}

.contact-header-img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-content {
    padding: 40px 20px;
    max-width: 350px;
    margin: 0 auto;
}

/* フォームスタイル */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.required {
    font-size: 12px;
    font-weight: normal;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5db3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 個人情報保護方針 */
.privacy-policy {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.privacy-policy h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    text-align: center;
}

.privacy-policy h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 15px 0 8px 0;
    color: #333;
    text-align: center;
}

.privacy-policy p {
    font-size: 11px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
    text-align: justify;
}

/* チェックボックス */
.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-right: 10px;
    transform: scale(1.2);
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin: 40px 0;
}

.submit-button {
    background-color: #5db3b8;
    color: white;
    border: none;
    padding: 15px 60px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #4a9ca2;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* フッター */
.contact-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-footer p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.confirm-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.confirm-item label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.confirm-item span,
.confirm-item div {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

#confirm-message {
    white-space: pre-wrap;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-cancel,
.btn-send,
.btn-ok {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-send,
.btn-ok {
    background-color: #5db3b8;
    color: white;
}

.btn-send:hover,
.btn-ok:hover {
    background-color: #4a9ca2;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}