/*
Theme Name: Garage Travice
Theme URI: https://garage-travice.com
Description: カスタムWordPressテーマ - ガレージトラビス（大阪府東大阪市の自動車整備・販売）
Version: 1.0.0
Author: Garage Travice
Author URI: https://garage-travice.com
Text Domain: garage-travice
*/

/* ===================================
   リセットとベーススタイル
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット（ロゴベース） */
    --primary-navy: #2c4f6f;
    --primary-silver: #a8a8a8;
    --accent-red: #c91212;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-gray: #e0e0e0;

    /* タイポグラフィ */
    --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    --font-heading: 'Montserrat', 'Noto Sans JP', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
}

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

a {
    text-decoration: none;
    color: var(--primary-navy);
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ===================================
   ヘッダー
   =================================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover {
    color: var(--primary-navy);
    border-bottom-color: var(--primary-navy);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-button {
    background-color: var(--accent-red);
    color: var(--bg-white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #a00e0e;
    opacity: 1;
}

/* モバイルメニュートグル */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-navy);
}

/* ===================================
   メインコンテンツエリア
   =================================== */
.main-content {
    margin-top: 92px; /* ヘッダーの高さ分 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #4a7396 100%);
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--bg-white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.section-alt {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===================================
   サービスカード
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   フローセクション
   =================================== */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.flow-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy), #4a7396);
    color: var(--bg-white);
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(44, 79, 111, 0.3);
}

.flow-step h3 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   こだわりセクション
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-navy);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   アクセスセクション
   =================================== */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.access-info {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-label {
    font-weight: bold;
    color: var(--primary-navy);
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    color: var(--text-dark);
    flex: 1;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   フッター
   =================================== */
.site-footer {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 1024px) {
    .access-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 1;
    }

    .site-logo img {
        height: 70px;
    }

    .menu-toggle {
        display: block;
        order: 3;
        margin-left: auto;
    }

    .header-contact {
        display: none;
    }

    .main-navigation {
        width: 100%;
        order: 4;
        display: none;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--border-gray);
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }

    .header-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-section {
        height: 400px;
    }

    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .site-logo img {
        height: 65px;
    }
}
