/* ========================================
   サービス詳細ページ 共通スタイル
======================================== */

/* ヒーローセクション */
.detail-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* 動画ラッパー */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 暗幕オーバーレイ */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* テキストを動画の上に */
.detail-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .detail-hero-inner {
        padding: 0 20px;
    }
}

/* スクロール誘導 */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
}

.hero-scroll-indicator::before {
    content: '';
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    margin: 0 auto 10px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: translateY(-10px); opacity: 0; }
    50%       { transform: translateY(10px);  opacity: 1; }
}

.hero-scroll-indicator span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* パンくず・ラベル・タイトル・キャッチ */
.detail-breadcrumb {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

.detail-breadcrumb a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.detail-breadcrumb a:hover { color: #fff; }
.detail-breadcrumb span   { margin: 0 10px; }

.detail-label {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -20px;
}

@media (max-width: 768px) {
    .detail-label { font-size: 3.5rem; }
}

.detail-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.detail-catch {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.2em;
}

/* セクション共通 */
.detail-video-section,
.detail-strengths-section,
.detail-menu-section,
.detail-works-section,
.detail-pricing-section,
.detail-faq-section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .detail-video-section,
    .detail-strengths-section,
    .detail-menu-section,
    .detail-works-section,
    .detail-pricing-section,
    .detail-faq-section {
        padding: 70px 0;
    }
}

.detail-strengths-section,
.detail-works-section,
.detail-faq-section {
    background: #f8f8f8;
}

.detail-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #999;
    margin-bottom: 16px;
}

.detail-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #000;
    margin-bottom: 60px;
    letter-spacing: 0.03em;
}

/* 動画エリア */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 3つの強み */
.strengths-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 769px) {
    .strengths-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.strength-item {
    background: #fff;
    padding: 40px 32px;
    border-radius: 12px;
}

.strength-number {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    opacity: 0.08;
    line-height: 1;
    margin-bottom: 16px;
}

.strength-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
}

.strength-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* サービスメニュー */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 769px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-item {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.menu-item-body {
    padding: 28px 24px;
}

.menu-item-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.menu-item-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
}

/* 実績 */
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 769px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-case {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.work-case img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.work-case-body {
    padding: 28px 24px;
}

.work-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    background: #000;
    color: #fff;
    border-radius: 2px;
    margin-bottom: 14px;
}

.work-case-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.work-case-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
}

/* 料金プラン */
.pricing-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: -40px;
    margin-bottom: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.pricing-card {
    border: 2px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border-color: #000;
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.pricing-card-header {
    position: relative;
    background: #000;
    padding: 32px 28px 24px;
}

.pricing-card:not(.featured) .pricing-card-header {
    background: #f8f8f8;
}

.pricing-plan-name {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 4px;
}

.pricing-card:not(.featured) .pricing-plan-name {
    color: #000;
}

.pricing-plan-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.1em;
}

.pricing-card:not(.featured) .pricing-plan-desc {
    color: #999;
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.pricing-card-body {
    padding: 32px 28px;
    flex: 1;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 24px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
}

.pricing-list {
    list-style: none;
    padding: 0;
}

.pricing-list li {
    font-size: 0.9rem;
    color: #444;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-left: 20px;
    position: relative;
}

.pricing-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: 700;
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 18px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: back-ground 0.3s ease;
}

.pricing-card:not(.featured) .pricing-btn {
    background: #f0f0f0;
    color: #000;
}

.pricing-card:not(.featured) .pricing-btn:hover {
    background: #000;
    color: #fff;
}

.pricing-btn:hover {
    background: #333;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 20px;
}

.faq-question span {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    line-height: 1.6;
}

.faq-question i {
    font-size: 1rem;
    color: #000;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 28px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.9;
}

/* CTA */
.detail-cta-section {
    padding: 120px 0;
    background: #000;
    text-align: center;
    color: #fff;
}

.detail-cta-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.detail-cta-section p {
    font-size: 1rem;
    color: #999;
    margin-bottom: 50px;
}

.cta-btn {
    display: inline-block;
    padding: 20px 60px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #fff;
    color: #000;
}

/* フェードイン */
.detail-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.detail-fade.visible {
    opacity: 1;
    transform: translateY(0);
}