/* 第1位事務所の特別スタイル - 完全版 */

/* リセットと基本設定 */
.top-office-card {
    border: 3px solid #FFD700;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFFFF 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.top-office-card * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ヘッダー部分 */
.top-office-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #FFFFFF;
    padding: 1rem;
}

.top-office-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-office-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #FFFFFF;
}

.top-office-badge {
    background: #FF0000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.05em;
    display: inline-block;
}

.top-office-rating {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #FFFFFF;
}

.top-office-rating span {
    font-size: 0.85rem;
    opacity: 0.95;
}

/* ボディ部分 */
.top-office-body {
    padding: 1rem;
}

.top-office-highlight {
    background: #FFF0F5;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #FF1493;
}

.top-office-highlight-title {
    color: #FF1493;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0.25rem;
}

.top-office-highlight-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    letter-spacing: 0.01em;
}

/* 特徴リスト */
.top-office-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.top-office-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.875rem;  /* 間隔を均等に調整 */
    font-size: 0.9rem;
    line-height: 1.65;  /* 行高を少し上げて読みやすく */
    letter-spacing: 0.01em;
    color: #333;
}

/* 最後のリスト項目は余白なし */
.top-office-features li:last-child {
    margin-bottom: 0;
}

.top-office-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;  /* 位置を明確に */
    color: #FF6347;
    font-weight: bold;
}

.top-office-features strong {
    font-weight: 600;
    color: #222;
    margin-right: 0.3rem;  /* 少し余白を増やす */
    display: inline-block;  /* インラインブロックで安定化 */
}

.top-office-emphasis {
    color: #FF0000;
    font-weight: bold;
    letter-spacing: 0.02em;
}

/* CTAセクション */
.top-office-cta {
    text-align: center;
    margin: 1.25rem 0 0.5rem;
}

.top-office-btn {
    background: linear-gradient(135deg, #FF6347 0%, #FF0000 100%);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.top-office-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #FF5030 0%, #DD0000 100%);
}

.top-office-note {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* モバイル最適化 (スマートフォン) */
@media (max-width: 767px) {
    .top-office-card {
        margin-bottom: 1.25rem;
        border-radius: 6px;
    }

    .top-office-header {
        padding: 0.875rem;
    }

    .top-office-title {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .top-office-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .top-office-rating {
        font-size: 0.9rem;
        margin-top: 0.4rem;
    }

    .top-office-body {
        padding: 0.875rem;
    }

    .top-office-highlight {
        padding: 0.625rem;
        margin-bottom: 0.875rem;
    }

    .top-office-highlight-title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .top-office-highlight-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .top-office-features li {
        font-size: 0.85rem;
        line-height: 1.55;
        margin-bottom: 0.75rem;  /* モバイルでも均等な間隔 */
        padding-left: 1.1rem;
    }

    .top-office-features li:last-child {
        margin-bottom: 0;
    }

    .top-office-btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        letter-spacing: 0.03em;
    }

    .top-office-note {
        font-size: 0.75rem;
    }
}

/* タブレット最適化 */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-office-header {
        padding: 1.25rem;
    }

    .top-office-title {
        font-size: 1.3rem;
    }

    .top-office-badge {
        font-size: 0.85rem;
        padding: 0.3rem 0.9rem;
    }

    .top-office-body {
        padding: 1.25rem;
    }

    .top-office-features li {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 0.875rem;
    }

    .top-office-features li:last-child {
        margin-bottom: 0;
    }

    .top-office-btn {
        padding: 1rem 2.5rem;
        font-size: 1.05rem;
    }
}

/* PC最適化 */
@media (min-width: 1024px) {
    .top-office-pc-wrapper {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }

    .top-office-card {
        border-radius: 10px;
    }

    .top-office-header {
        padding: 1.5rem 2rem;
    }

    .top-office-title {
        font-size: 1.6rem;
        line-height: 1.3;
        letter-spacing: 0.03em;
    }

    .top-office-badge {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
        letter-spacing: 0.08em;
    }

    .top-office-rating {
        font-size: 1.1rem;
        margin-top: 0.625rem;
    }

    .top-office-body {
        padding: 1.75rem 2rem;
    }

    .top-office-highlight {
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .top-office-highlight-title {
        font-size: 1.1rem;
        margin-bottom: 0.375rem;
    }

    .top-office-highlight-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* PC版2カラムレイアウト */
    .top-office-features-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin: 1.5rem 0;
    }

    .top-office-features-section h4 {
        color: #FF6347;
        font-size: 1.05rem;
        margin-bottom: 0.875rem;
        letter-spacing: 0.02em;
        font-weight: 600;
    }

    .top-office-features {
        margin-bottom: 0;
    }

    .top-office-features li {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 0.75rem;  /* PC版でも統一 */
        padding-left: 1.5rem;
    }

    .top-office-features li:last-child {
        margin-bottom: 0;
    }

    .top-office-btn {
        padding: 1.125rem 3rem;
        font-size: 1.2rem;
        letter-spacing: 0.08em;
        min-width: 280px;
    }

    .top-office-note {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}

/* ダークモード完全無効化 */
@media (prefers-color-scheme: dark) {
    .top-office-card,
    .top-office-card * {
        background-color: revert !important;
        color: revert !important;
    }

    .top-office-card {
        background: linear-gradient(135deg, #FFF8DC 0%, #FFFFFF 100%) !important;
    }

    .top-office-header {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
        color: #FFFFFF !important;
    }

    .top-office-title,
    .top-office-rating,
    .top-office-badge {
        color: #FFFFFF !important;
    }

    .top-office-highlight {
        background: #FFF0F5 !important;
    }

    .top-office-highlight-title {
        color: #FF1493 !important;
    }

    .top-office-highlight-text,
    .top-office-features li,
    .top-office-features strong {
        color: #333 !important;
    }

    .top-office-emphasis {
        color: #FF0000 !important;
    }

    .top-office-note {
        color: #666 !important;
    }
}

/* アニメーション */
@keyframes highlight-pulse {
    0% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
}

.top-office-card {
    animation: highlight-pulse 3s infinite;
}

/* プリント対応 */
@media print {
    .top-office-card {
        border: 2px solid #FFD700;
        box-shadow: none;
        animation: none;
    }

    .top-office-btn {
        border: 2px solid #FF0000;
        color: #FF0000;
        background: white;
    }
}