/* --- Global Settings --- */
:root {
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Great Vibes', cursive;
    --color-main-text: #5D544A; /* メインのテキストカラー（濃い茶色） */
    --color-bg: #FDFBF8; /* 背景色（温かみのある白） */
    --color-accent: #E8C4C4; /* アクセントカラー（くすんだピンク） */
    --color-white: #FFFFFF;
    --color-border: #ddd;
}

body {
    font-family: var(--font-jp);
    color: var(--color-main-text);
    /* bodyの背景色はコンテンツを覆ってしまうため削除 */
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

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

.content-section {
    padding: 120px 5%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden; /* for fade-in animation */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::before {
    content: attr(data-en);
    font-family: var(--font-en);
    color: var(--color-accent);
    font-size: 1.8rem;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* --- Header (Updated for visibility) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
    /* transitionにtext-shadowを追加 */
    transition: background-color 0.4s, color 0.4s, text-shadow 0.4s;
    /* 初期状態の文字色を白に指定 */
    color: var(--color-white);
    /* ↓↓↓【修正点】テキストシャドウを追加して視認性を向上させます ↓↓↓ */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-main-text);
    /* ↓↓↓【修正点】スクロール後はテキストシャドウを解除します ↓↓↓ */
    text-shadow: none;
}


.header-logo {
    font-family: var(--font-en);
    font-size: 2rem;
}

.header-nav ul {
    display: flex;
    list-style: none;
}

.header-nav li:not(:last-child) {
    margin-right: 30px;
}

.header-nav a {
    font-family: var(--font-en);
    font-size: 1.4rem;
}


/* --- Hero Section (Simplified) --- */
#hero {
    height: 100vh;
    color: var(--color-white);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1; 
}

.hero-title-wrap {
    position: relative; 
    z-index: 2;
}

.hero-sub-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 6rem;
    line-height: 1.2;
}

/* --- Content starts on top of Hero --- */
main {
    position: relative;
    /* コンテンツ部分の背景色 */
    background-color: var(--color-bg);
}

/* --- Concept Section --- */
#concept {
    text-align: center;
}
.concept-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
}
.concept-body {
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Menu Section --- */
.menu-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 40px;
    gap: 20px;
}

.menu-tab-item {
    padding: 10px 30px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.menu-tab-item:hover {
    background-color: #f0f0f0;
    opacity: 1;
}

.menu-tab-item.active {
    background-color: var(--color-main-text);
    color: var(--color-white);
    border-color: var(--color-main-text);
}

.menu-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.category-image-wrapper {
    margin-bottom: 50px;
    text-align: center;
}

.category-image-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.category-description {
    font-size: 1.1rem;
    font-weight: 300;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 25px;
}

.menu-item {
    text-align: center;
}
.menu-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.menu-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
}
.menu-item p {
    font-size: 0.85rem;
    color: #888;
    margin: 8px 0;
}
.menu-item span {
    font-size: 0.95rem;
    font-weight: 500;
}


/* --- Reservation Form Section --- */
.reservation-form {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 8px;
    background-color: var(--color-white);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-main-text);
}

.order-item-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.order-item-row select {
    flex-grow: 1;
}
.order-item-row input {
    width: 80px;
}
.btn-remove-item {
    padding: 8px;
    background-color: #fdd;
    border: 1px solid #fbb;
    color: #c33;
    border-radius: 50%;
    cursor: pointer;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    line-height: 1;
}

.btn-add-item {
    display: block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
}

.total-price-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed var(--color-border);
}
.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.price-row.total-row {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--color-main-text);
}
.price-row span:last-child {
    font-family: sans-serif;
}

.submit-button-wrapper {
    text-align: center;
    margin-top: 40px;
}
.btn-submit {
    padding: 15px 40px;
    background-color: var(--color-main-text);
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}
.btn-submit:hover {
    opacity: 0.8;
}

/* --- Profile Section --- */
.profile-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.profile-img {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}
.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-text h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.profile-text h4 span {
    font-family: var(--font-en);
    font-size: 1.2rem;
    margin-left: 15px;
    color: #aaa;
}
.profile-text p {
    font-weight: 300;
}

/* --- Access Section --- */
.access-flex {
    display: flex;
    gap: 50px;
}
.access-info {
    flex: 1;
}
.access-map {
    flex: 1;
}
.access-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px 10px;
}
.access-info dt {
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    padding: 60px 5%;
    text-align: center;
    background-color: #EAE5E0; /* A bit darker bg */
}
.footer-logo {
    font-family: var(--font-en);
    font-size: 2rem;
    margin-bottom: 10px;
}


/* --- Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .content-section {
        padding: 80px 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    .section-title::before {
        font-size: 1.5rem;
        top: -15px;
    }

    .header {
        padding: 15px 20px;
    }
    .header-logo {
        font-size: 1.5rem;
    }
    .header-nav {
        display: none; /* Simplification for mobile */
    }

    .hero-sub-title {
        font-size: 1.2rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }

    .menu-tabs {
        gap: 10px;
        flex-wrap: wrap;
    }
    .menu-tab-item {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 25px 15px;
    }
    
    .category-image-wrapper img {
        height: 250px;
    }

    .reservation-form {
        padding: 20px;
    }

    .profile-flex, .access-flex {
        flex-direction: column;
        gap: 30px;
    }
    .profile-img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    .profile-text {
        text-align: center;
    }
    
    .access-info dl {
        grid-template-columns: 80px 1fr;
    }
}
