/* ===================================
   美容室予約システム - メインCSS
   =================================== */

:root {
    /* メインカラー：ローズゴールド / ウォームベージュ系 */
    --primary: #C4956A;
    --primary-light: #E8D5C4;
    --primary-dark: #8B6914;

    /* アクセント */
    --accent: #D4A574;
    --accent-soft: #F5EDE3;

    /* ベース */
    --bg-main: #FDFBF8;
    --bg-section: #F9F5F0;
    --bg-card: #FFFFFF;

    /* テキスト */
    --text-primary: #2C2C2C;
    --text-secondary: #6B6B6B;
    --text-light: #9B9B9B;

    /* ステータスカラー */
    --status-available: #7BAE7F;
    --status-few: #E8B84B;
    --status-full: #D17B7B;
    --status-blocked: #CCCCCC;

    /* フォント */
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
}

/* リセット */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* ===================================
   共通コンポーネント
   =================================== */

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

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-title-en {
    font-family: var(--font-accent);
    font-size: 14px;
    text-align: center;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn--small {
    padding: 8px 20px;
    font-size: 13px;
}

.btn--block {
    display: block;
    width: 100%;
}

/* カード */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* フラッシュメッセージ */
.flash {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.flash--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.flash--error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

.flash--info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    background: var(--bg-card);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.header__logo {
    font-family: var(--font-accent);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
}

.header__logo a {
    color: inherit;
    text-decoration: none;
}

.header__nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header__nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.header__nav a:hover {
    color: var(--primary);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--primary-light) 50%, var(--accent) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: var(--font-accent);
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero__description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 2;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   メニューセクション
   =================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.menu-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.menu-card__name {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.menu-card__description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.menu-card__meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.menu-card__price {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.menu-card__duration {
    color: var(--text-light);
}

/* ===================================
   インフォメーション
   =================================== */
.info-section {
    text-align: center;
}

.info-table {
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 15px;
}

.info-table th,
.info-table td {
    padding: 12px 25px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.info-table th {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* ===================================
   フォーム
   =================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--status-full);
    font-size: 12px;
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--status-full);
}

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

.form-error {
    color: var(--status-full);
    font-size: 13px;
    margin-top: 5px;
}

/* チェックボックス / ラジオボタン */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: var(--primary);
    background: var(--accent-soft);
}

.checkbox-item input:checked + span,
.radio-item input:checked + span {
    color: var(--primary);
    font-weight: 500;
}

.checkbox-item input,
.radio-item input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* ===================================
   予約完了ページ
   =================================== */
.complete-box {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin: 60px auto;
}

.complete-box__icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--status-available);
}

.complete-box__title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
}

.complete-box__code {
    background: var(--bg-section);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 20px 0;
}

/* ===================================
   予約確認ページ
   =================================== */
.check-result {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-top: 30px;
}

.check-result__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.check-result__code {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    background: #e3f2fd;
    color: #1565c0;
}

.status-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background: #f5f5f5;
    color: #757575;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    gap: 15px;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list__label {
    color: var(--text-secondary);
    font-size: 13px;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-list__value {
    font-size: 14px;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: var(--text-primary);
    color: #ccc;
    padding: 50px 20px 25px;
    text-align: center;
}

.footer__info {
    margin-bottom: 30px;
}

.footer__name {
    font-family: var(--font-accent);
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer__detail {
    font-size: 13px;
    line-height: 2;
    color: #999;
}

.footer__copyright {
    font-size: 12px;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* ===================================
   ページヘッダー（フォームなどの上部）
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--primary-light) 100%);
    padding: 50px 20px;
    text-align: center;
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.page-header__subtitle {
    font-family: var(--font-accent);
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 768px) {
    .hero {
        padding: 70px 20px;
    }

    .hero__title {
        font-size: 32px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .header__nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .info-table th,
    .info-table td {
        padding: 10px 15px;
        font-size: 14px;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
    }

    .detail-list li {
        flex-direction: column;
        gap: 3px;
    }

    .check-result__header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .complete-box {
        padding: 40px 20px;
        margin: 30px auto;
    }

    .complete-box__code {
        font-size: 16px;
        padding: 12px 20px;
    }
}
