/* RIDE'S KoM ウェブサイト用スタイルシート */
/* メインカラー設定 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

/* 画像の基本設定 */
img {
    max-width: 100%;
    height: auto;
}

/* ヘッダー */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

/* ナビゲーション */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero/hero-image.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ボタン */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--accent-color);
}

/* セクション共通 */
section {
    padding: 4rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

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

/* フレックスレイアウト */
.flex-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.flex-item {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.flex-item img {
    width: 100%;
    border-radius: 5px;
}

.flex-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.flex-item ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.flex-item ul li {
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* 完全予約制セクション */
.reservation-reason {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.reservation-reason h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.reservation-reason p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.reservation-reason ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.reservation-reason ul li {
    margin-bottom: 0.8rem;
}

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

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

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

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

/* サービスカードアニメーション */
.service-card.animate {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ブランド */
.brands-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.brand-card {
    text-align: center;
    width: 120px;
    margin-bottom: 20px;
}

.brand-card img {
    margin-bottom: 0.5rem;
    max-width: 100px;
    max-height: 50px;
}

.brand-card h4 {
    font-size: 0.9rem;
}

.brand-note {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-weight: bold;
}

.featured-brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 3rem;
}

.featured-brand {
    text-align: center;
    width: 250px;
}

.featured-brand img {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 200px;
}

.featured-brand h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.featured-link {
    color: var(--secondary-color);
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    font-weight: bold;
}

.featured-link:hover {
    text-decoration: underline;
}

/* 料金表 */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pricing-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.pricing-table tr:hover {
    background-color: var(--light-bg);
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
}

.inline-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

/* 料金表ページ用スタイル */
.tab-container {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--light-bg);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    border-radius: 5px 5px 0 0;
    margin-right: 0.5rem;
}

.tab-button.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.price-section {
    margin-bottom: 3rem;
}

.price-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

.price-note {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.price-note h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price-note ul {
    margin-left: 1.5rem;
}

.price-note li {
    margin-bottom: 0.5rem;
}

.call-to-action {
    text-align: center;
    margin: 3rem 0;
}

.pricing-header-image {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 予約フォーム */
.reservation-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

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

.required::after {
    content: " *";
    color: var(--secondary-color);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

.form-note {
    font-size: 0.9rem;
    color: #666;
}

/* フォームバリデーションスタイル */
.invalid {
    border: 1px solid var(--secondary-color);
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* フッター */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section ul {
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.line-btn {
    margin-right: 15px;
    display: inline-block;
}

.instagram-btn {
    font-size: 2.2rem;
    vertical-align: middle;
    color: var(--white);
}

.instagram-btn:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ページローディングアニメーション */
body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

body:not(.loaded) {
    opacity: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .flex-item {
        flex: 100%;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-card img {
        width: 60px;
        height: 60px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        padding: 0 1rem;
    }
    
    .pricing-table {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .brands-container {
        gap: 10px;
    }
    
    .brand-card {
        width: 80px;
        margin-bottom: 10px;
    }
    
    .brand-card img {
        width: 100%;
        height: auto;
    }
    
    .brand-card h4 {
        font-size: 0.8rem;
    }
    
    .featured-brands {
        gap: 20px;
    }
    
    .featured-brand {
        width: 100%;
        max-width: 250px;
        margin-bottom: 30px;
    }
    
    .reservation-reason {
        padding: 1.5rem;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-button {
        margin-bottom: 0.5rem;
    }
}

/* 大画面対応 */
@media (min-width: 1200px) {
    .hero {
        height: 70vh;
        background-position: center 20%;
    }
}

/* フォーム送信成功メッセージ */
.success-message {
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.success-message h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 10px;
}
