/* 東亮介社会保険労務士事務所 - パソコン/スマホ表示完全最適化版 */
:root {
    --primary-color: #1a5f8a;
    --accent-color: #ff9800;
    --secondary-color: #2ecc71;
    --dark-blue: #1a3a5c;
    --light-blue: #f0f7ff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(26, 95, 138, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- 全体レイアウト --- */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--dark-blue);
    background-color: #fff;
    padding-top: 100px; /* PCヘッダー分 */
}

/* --- ヘッダー設定 --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--dark-blue);
    display: block;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.95rem;
}

/* PCではスマホ用相談バーを絶対に表示しない */
.mobile-cta-bar {
    display: none;
}

/* --- スマホ専用：表示設定 --- */
@media (max-width: 768px) {
    body {
        padding-top: 170px !important; 
    }

    .site-header {
        padding: 0.6rem 0;
    }

    .header-container {
        flex-direction: column;
        gap: 0.6rem;
    }

    .logo a {
        font-size: 1.4rem !important; 
        text-align: center;
    }

    .logo-sub {
        font-size: 0.95rem !important;
        text-align: center;
    }

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 6px;
        width: 100%;
        padding: 0 5px;
    }

    .nav-link {
        font-size: 0.85rem !important;
        background: var(--light-blue);
        padding: 8px 2px;
        border-radius: 4px;
        text-align: center;
        border: 1px solid #d1e3f0;
    }

    /* スマホ時のみ相談バーを表示 */
    .mobile-cta-bar {
        display: flex; 
        position: fixed;
        bottom: 15px;
        left: 3%;
        width: 94%;
        z-index: 10000;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        border-radius: 50px;
        overflow: hidden;
        background: #fff;
    }

    .mobile-cta-item {
        flex: 1;
        text-align: center;
        padding: 14px 2px;
        color: white !important;
        font-weight: bold;
        font-size: 0.8rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        gap: 8px;
    }

    .mobile-cta-tel { background-color: #2ecc71; }
    .mobile-cta-line { background-color: #06C755; }
    .mobile-cta-mail { background-color: var(--primary-color); }
    
    body { padding-bottom: 100px !important; }

    .service-cta {
        display: flex;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center;
        margin-top: 1.5rem;
    }

    .cta-button {
        width: 100% !important;
        max-width: 320px;
        padding: 1.2rem 1rem !important;
    }

    .hero { padding: 2.5rem 1rem !important; }
    .hero h1 { font-size: 1.7rem !important; }
    .section { padding: 3rem 0 !important; }
    .section-title { font-size: 1.6rem !important; }
}

/* --- コンテンツパーツ --- */
.hero {
    background: linear-gradient(135deg, #e6f2ff 0%, #ffffff 100%);
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background-color: var(--accent-color);
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    text-align: center;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* --- フッターとSNSアイコン --- */
.site-footer {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    padding: 3rem 0 2rem;
    border-top: 1px solid #d1e3f0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 1px solid #d1e3f0;
    border-radius: 10px;
    color: var(--primary-color) !important;
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(26, 95, 138, 0.08);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 95, 138, 0.2);
}

.social-icon .fa-twitter:hover { color: #1DA1F2 !important; }
.social-icon .fa-instagram:hover { color: #E4405F !important; }
.social-icon .fa-line:hover { color: #06C755 !important; }

/* その他共通パーツ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.strength-card { background: white; padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); border: 1px solid #e2e8f0; margin-bottom: 1.5rem; }
.highlight-card { border: 2px solid var(--primary-color) !important; background-color: var(--light-blue) !important; }
.price-card { background: white; padding: 2rem; border-radius: var(--border-radius); border: 2px solid #1a5f8a; }
.faq-section { background-color: #fff; border: 1px solid #d1e3f0; border-radius: var(--border-radius); padding: 1.5rem; }
.faq-question { font-size: 1.1rem; font-weight: 700; padding: 12px 0; width: 100%; text-align: left; background: none; border: none; color: var(--dark-blue); cursor: pointer; }
.faq-answer { color: #4a5568; line-height: 1.8; }
.profile-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 2rem; border: 6px solid #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.copyright { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid #d1e3f0; font-size: 0.85rem; opacity: 0.6; }

/* --- アニメーション --- */
@keyframes fuwafuwa {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .mobile-cta-line {
    animation: fuwafuwa 2s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
    position: relative;
    z-index: 1;
  }
}

.nav-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.2);
}

/* --- 遡及請求タイムライン図解（PC/スマホ完全分離・絶対修正版） --- */
.sokyu-timeline-container {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2.5rem auto;
    max-width: 850px;
    text-align: center;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.timeline-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: bold;
}

.timeline-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem 0;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.point-label {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.point-dot {
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.benefit-box {
    background: #fff4e5;
    border: 2px dashed #e67e22;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.benefit-text strong {
    font-size: 1.6rem;
    color: #e74c3c;
    margin-left: 5px;
}

/* ----------------------------------
   PC専用の設定（画面幅651px以上）
---------------------------------- */
@media (min-width: 651px) {
    .timeline-arrow-back {
        flex: 1;
        height: 6px;
        background: #e67e22;
        position: relative;
        margin: 0 15px;
        min-width: 100px;
    }

    .timeline-arrow-back::before {
        content: '';
        position: absolute;
        left: -2px;
        top: -8px;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
        border-right: 16px solid #e67e22;
    }

    .arrow-text {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        font-size: 0.9rem;
        color: #e67e22;
        font-weight: bold;
        background: #fff;
        padding: 0 8px;
    }
}

/* ----------------------------------
   スマホ専用の設定（画面幅650px以下）
---------------------------------- */
@media (max-width: 650px) {
    .timeline-visual {
        flex-direction: column;
        padding: 0;
    }

    /* 棒をただの細い縦線にする */
    .timeline-arrow-back {
        width: 4px;
        height: 60px;
        background: #e67e22;
        position: relative;
        margin: 10px auto;
        display: block;
        /* PC用の設定が漏れないようにリセット */
        flex: none;
    }

    /* 上向きの小さな三角形だけを表示 */
    .timeline-arrow-back::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 14px solid #e67e22;
        /* PC用のborder設定を完全に打ち消す */
        border-top: none;
        width: 0;
        height: 0;
    }

    .arrow-text {
        position: absolute;
        top: 50%;
        left: 25px;
        transform: translateY(-50%);
        white-space: nowrap;
        font-size: 0.85rem;
        color: #e67e22;
        font-weight: bold;
        text-align: left;
        /* PC用の背景白を解除 */
        background: none;
    }

    .benefit-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .benefit-text strong {
        display: block;
        margin-top: 5px;
    }
}