/*
Theme Name: PremiumCar
Description: 高級車販売店向けプレミアムWordPressテーマ。洗練されたデザインと管理画面からの簡単な更新機能を提供します。
Version: 1.0
Author: WordPress Developer
*/

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

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

/* ==========================================
   サービス概要（ACF: service_sections / footer_buttons）
   ========================================== */
/* ヒーロー */
.service-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
}
.service-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.service-hero__overlay {
    position: relative;
    width: 100%;
    min-height: 340px;
    background: rgba(26, 43, 71, 0.78);
    display: flex;
    align-items: center;
}
.service-hero__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}
.service-hero__title {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}
.service-hero__lead {
    max-width: 760px;
    margin: 0 auto;
    opacity: .9;
}

/* セクション一覧 */
.service-sections {
    padding: 70px 0 90px;
}
.service-section {
    max-width: 1100px;
    margin: 0 auto 64px;
    padding: 0 20px;
}
.service-section:last-child { margin-bottom: 0; }
.service-section__header { margin-bottom: 22px; }
.service-section__title {
    font-size: 2rem;
    font-weight: 800;
    color: #3A7DFF;
}
.service-section__grid {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}
.service-section.is-reversed .service-section__grid { flex-direction: row-reverse; }

.service-section__col { flex: 1 1 50%; }
.image-column .service-section__figure {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.service-section__image { display: block; width: 100%; height: auto; }
.text-column .service-section__description { line-height: 1.9; }

/* 交互の画像回転（動きのアクセント） */
.service-section:not(.is-reversed) .service-section__image { transform: rotate(2deg); }
.service-section.is-reversed .service-section__image { transform: rotate(-2deg); }
.service-section__image { transition: transform .25s ease; }
.service-section__figure:hover .service-section__image { transform: translateY(-2px) rotate(0deg); }

/* Q&A（details/summary） */
.service-section__qa { margin-top: 18px; }
.qa-list { list-style: none; padding: 0; margin: 0; }
.qa-item { margin: 10px 0; }
.qa-accordion {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
}
.qa-accordion > summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    position: relative;
    list-style: none;
}
.qa-accordion > summary::-webkit-details-marker { display: none; }
.qa-accordion > summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #3A7DFF;
    font-weight: 900;
}
.qa-accordion[open] > summary::after { content: '−'; }
.qa-answer { padding: 0 16px 16px; opacity: .95; }

/* フッターCTA */
.service-footer-cta { padding: 40px 20px 80px; }
.service-footer-cta__inner { max-width: 1100px; margin: 0 auto; }
.service-footer-cta__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.service-footer-cta__button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
    background: #0b3a75;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(11,58,117,.18);
    transition: all .2s ease;
}
.service-footer-cta__button:hover { background: #124a95; transform: translateY(-1px); }

/* レスポンシブ */
@media (max-width: 1024px) {
    .service-section__title { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .service-hero__title { font-size: 2rem; }
    .service-section { margin-bottom: 44px; }
    .service-section__grid { flex-direction: column; gap: 20px; }
    .service-section.is-reversed .service-section__grid { flex-direction: column; }
    .service-section__col { width: 100%; }
    /* モバイルでは回転をフラットにして見やすく */
    .service-section__image { transform: none !important; }
}
@media (max-width: 480px) {
    .service-footer-cta__button { width: 100%; text-align: center; }
}

/* ===== 基本設定 ===== */
html, body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #1A2B47; /* 深い紺色 */
    color: #ffffff; /* 白テキスト */
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ===== 共通要素 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #3A7DFF; /* アクセントカラー */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== コンテナ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ヘッダー ===== */
.site-header {
    background-color: rgba(26, 43, 71, 0.95);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* ナビゲーションメニュー */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    color: #ffffff;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: #3A7DFF;
    text-decoration: none;
}

/* ===== メインコンテンツエリア ===== */
.site-main {
    margin-top: 90px; /* ヘッダーの高さ分オフセット */
    min-height: calc(100vh - 90px);
}

/* ===== ヒーローセクション ===== */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 43, 71, 0.7);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ===== セクション共通スタイル ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #3A7DFF;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3A7DFF;
    margin: 20px auto;
}

/* ===== サービスセクション ===== */
.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-image {
    flex: 1;
    text-align: center;
}

.service-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-title {
    font-size: 1.8rem;
    color: #3A7DFF;
    margin-bottom: 20px;
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* ===== アコーディオンスタイル（Q&A） ===== */
.accordion {
    margin-top: 40px;
}

.accordion-item {
    border: 1px solid rgba(58, 125, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background-color: rgba(58, 125, 255, 0.1);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: rgba(58, 125, 255, 0.2);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: #3A7DFF;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding: 20px;
    max-height: 200px;
}

/* ===== フッター ===== */
.site-footer {
    background-color: #0f1a2a;
    position: relative;
    overflow: hidden;
}

/* 車のシルエット帯 */
.footer-decoration {
    height: 80px;
    background: linear-gradient(90deg, #3A7DFF 0%, #1A2B47 100%);
    position: relative;
    overflow: hidden;
}

.footer-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M20,15 L25,10 L35,10 L45,8 L55,8 L65,10 L75,10 L80,15 L85,12 L90,15' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 200px 20px;
    opacity: 0.3;
}

.footer-content {
    padding: 50px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== ボタンスタイル ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3A7DFF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 125, 255, 0.3);
}

/* ===== レスポンシブデザイン ===== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        height: 50vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .service-item {
        margin-bottom: 40px;
    }
    
    .accordion-header {
        padding: 15px;
    }
    
    .accordion-content.active {
        max-height: 300px;
    }
}

/* ===== ユーティリティクラス ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* WordPressデフォルトクラス */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.wp-caption {
    max-width: 100%;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ===== お問い合わせページ ===== */
.contact-main {
    min-height: calc(100vh - 120px);
}

/* ページタイトル */
.page-title-section {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: #3A7DFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* 進捗インジケーター */
.progress-indicator {
    margin-bottom: 50px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background-color: #3A7DFF;
    border-color: #3A7DFF;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(58, 125, 255, 0.5);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.progress-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

/* お問い合わせフォーム */
.contact-form-section {
    margin-bottom: 60px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Googleフォーム埋め込み調整 */
.contact-form-wrapper iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* フォームが設定されていない場合のメッセージ */
.no-form-message {
    text-align: center;
    padding: 60px 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.no-form-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* お問い合わせ補足情報 */
.contact-info {
    margin-bottom: 40px;
}

.contact-note {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(58, 125, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(58, 125, 255, 0.3);
    text-align: center;
}

.contact-note h3 {
    color: #3A7DFF;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-note p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.detail-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.detail-item strong {
    color: #3A7DFF;
    margin-right: 8px;
}

.detail-item a {
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.detail-item a:hover {
    color: #3A7DFF;
}

/* お問い合わせページ - モバイル対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .page-title-section {
        padding: 40px 0 30px;
    }

    .progress-steps {
        gap: 15px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .progress-arrow {
        font-size: 1.2rem;
        margin: 0 5px;
    }

    .contact-form-wrapper {
        padding: 20px;
        margin: 0 10px;
    }

    .contact-note {
        padding: 20px;
        margin: 0 10px;
    }

    .contact-details {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .detail-item {
        padding: 12px 20px;
    }
}
