/* ========================================
   小森商店 - カスタムスタイルシート
   テーマカラー: ブルー（信頼感・誠実さ）
   ======================================== */

/* ========================================
   カラーパレット & 変数定義
   ======================================== */
:root {
    /* メインカラー */
    --primary-color: #1E88E5;
    --primary-dark: #1565C0;
    --primary-light: #42A5F5;
    
    /* アクセントカラー */
    --accent-color: #FF9800;
    --accent-dark: #F57C00;
    
    /* グレースケール */
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-blue-light: #E3F2FD;
    
    /* その他 */
    --success-color: #4CAF50;
    --error-color: #F44336;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* タイポグラフィ */
    --font-main: 'Noto Sans JP', sans-serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* トランジション */
    --transition: all 0.3s ease;
}

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

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   コンテナ & レイアウト
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-md);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* ナビゲーション */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-list a {
    font-weight: 500;
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-color);
    background-color: var(--bg-blue-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ヘッダー連絡先 */
.header-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--bg-light);
    border-radius: 8px;
}

.header-phone i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.phone-label {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.phone-number:hover {
    color: var(--primary-dark);
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--bg-white);
}

.btn-hero:hover {
    background-color: transparent;
    color: var(--bg-white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: var(--bg-white);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.3) 0%, rgba(21, 101, 192, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--bg-white);
    font-size: 2rem;
    opacity: 0.8;
}

.hero-scroll a:hover {
    opacity: 1;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   セクション共通スタイル
   ======================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ========================================
   サービスセクション
   ======================================== */
.services {
    background-color: var(--bg-white);
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item-reverse {
    direction: rtl;
}

.service-item-reverse > * {
    direction: ltr;
}

.service-image {
    width: 100%;
}

.service-image-photo {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-image-photo:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.service-image-placeholder {
    width: 100%;
    height: 550px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--bg-white);
    box-shadow: var(--shadow);
}

.car-image {
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
}

.recycle-image {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

.service-content {
    padding: var(--spacing-sm);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.recycle-icon {
    background-color: #4CAF50;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.service-tagline {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
    line-height: 1.9;
}

.service-list {
    display: grid;
    gap: 0.8rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

.service-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ========================================
   選ばれる理由セクション
   ======================================== */
.why-us {
    background-color: var(--bg-light);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.reason-card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.reason-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.reason-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto var(--spacing-sm);
}

.reason-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.reason-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   会社概要セクション
   ======================================== */
.company {
    background-color: var(--bg-white);
}

.company-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 2;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background-color: var(--bg-blue-light);
    color: var(--primary-dark);
    font-weight: 700;
    width: 30%;
}

.info-table td {
    color: var(--text-dark);
}

.info-table td a {
    color: var(--primary-color);
    text-decoration: underline;
}

.info-table td a:hover {
    color: var(--primary-dark);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.license-info {
    background-color: var(--bg-blue-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.license-info h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-info h4 i {
    font-size: 1.5rem;
}

.license-content p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.license-placeholder {
    background-color: var(--bg-white);
    padding: var(--spacing-sm);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-gray);
    border: 2px dashed var(--border-color);
}

.license-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: var(--spacing-sm);
}

.company-map {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
}

.map-container {
    width: 100%;
    flex: 1;
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.access-info {
    background-color: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: 8px;
}

.access-info h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.access-info p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.access-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: var(--spacing-sm);
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact {
    background: linear-gradient(135deg, var(--bg-blue-light) 0%, var(--bg-white) 100%);
}

.contact-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-intro h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-intro p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-method {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-method:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.contact-method-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--spacing-sm);
}

.contact-method h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.contact-method-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.contact-method-value a {
    color: var(--primary-color);
}

.contact-method-value a:hover {
    color: var(--primary-dark);
}

.contact-method-note {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* フォーム */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: var(--error-color);
    margin-left: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    text-align: center;
    margin-top: var(--spacing-sm);
}

.form-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #E8F5E9;
    color: var(--success-color);
    border: 2px solid var(--success-color);
    display: block;
}

.form-message.error {
    background-color: #FFEBEE;
    color: var(--error-color);
    border: 2px solid var(--error-color);
    display: block;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: var(--primary-light);
}

.footer-logo p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-info {
    margin-top: var(--spacing-sm);
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.footer-info a {
    color: var(--primary-light);
}

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

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

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

/* タブレット */
@media (max-width: 992px) {
    :root {
        font-size: 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav.active .nav-list {
        max-height: 300px;
    }
    
    .nav-list a {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .header-contact {
        order: 2;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-item,
    .service-item-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .service-image-placeholder {
        height: 300px;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .company-content {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .header-phone {
        display: none;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-image-photo,
    .service-image-placeholder {
        height: 300px;
        font-size: 5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .reason-title {
        font-size: 1.3rem;
    }
}