/* Base Styles */
:root {
    --primary-color: #9e1f26; /* Deep Wine Red */
    --accent-color: #4a627a;  /* Adjusted for new blue palette */
    --bg-start: #ffffff;
    --bg-mid: #a8c5dc;        /* Previous Blue */
    --bg-end: #9dacd4;        /* New Blue */
    --text-color: #1a252f;
    --light-text: #222222;
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Shippori Mincho', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 500;
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.section {
    padding: 100px 0;
    position: relative; /* Base for deco-img */
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent instead of solid beige */
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-50 {
    margin-bottom: 60px;
}

/* Decoration Images */
.deco-img {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    opacity: 0.25;
    animation: slowSway 10s ease-in-out infinite; /* 左右にゆらゆらと揺れる動き */
    transform-origin: center bottom; /* 支点を下側にし、上部が揺れるように変更 */
}

@keyframes slowSway {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

/* 各画像でタイミングをずらして自然に見せる */
.deco-about-1 {
    top: 45%;
    left: -320px;
    width: 900px;
}

.deco-about-2 {
    bottom: 30%;
    right: -250px;
    width: 600px;
    animation-delay: -3s;
}

.deco-choice-right {
    top: 45%;
    right: -250px;
    width: 800px;
    animation-delay: -4s;
    animation-duration: 11s;
}

.deco-menu-right {
    top: 10%;
    right: -250px;
    width: 900px;
    animation-delay: -5s;
    animation-duration: 12s;
}

.deco-info-left {
    top: -5%;
    left: -300px;
    width: 600px;
    animation-delay: -7s;
    animation-duration: 15s;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: transparent;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: 0.3s;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff; /* Initial color white */
}

.nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff; /* Initial color white */
}

.nav a:hover {
    color: var(--primary-color);
}

#header.scrolled .logo a,
#header.scrolled .nav a {
    color: var(--text-color);
}

.btn-contact {
    display: inline-block;
    padding: 8px 25px;
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 2px;
}

.btn-contact:hover {
    background-color: #a00000;
}

/* Hero */
#hero {
    position: relative;
    height: 100vh;
    background-color: #222;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/top.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards 0.5s;
    position: relative;
    z-index: 10;
}

.hero-content .subtitle {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
}

.hero-content .title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    z-index: 20;
}

.scroll-down::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 50%;
    width: 1px;
    height: 80px;
    background-color: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .en {
    display: block;
    font-size: 14px;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* About */
#about {
}

.about-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1.4;
}

.about-text p {
    margin-bottom: 20px;
}

.about-img {
    flex: 0.6;
}

.about-slider {
    position: relative;
    width: 500px;
    height: 500px;
    margin-left: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.about-slide.active {
    opacity: 1;
}

/* Choice */
.choice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.choice-text {
    width: 100%;
}

.choice-text .lead {
    font-size: 22px;
    font-family: var(--font-heading);
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--primary-color);
}

.choice-images {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.choice-img-item {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.choice-img-item:hover {
    transform: translateY(-5px);
}

.choice-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Wine */
.yakushu-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.yakushu-img {
    flex: 0.6;
}

.yakushu-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.yakushu-text {
    flex: 1.4;
}

.yakushu-text p {
    margin-bottom: 20px;
}

.wine-grid {
    display: flex;
    gap: 30px;
}

.wine-item {
    flex: 1;
    text-align: center;
}

.wine-item h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 20px 0 10px;
}

.wine-item p {
    font-size: 14px;
    color: var(--light-text);
}

/* Menu */
#menu {
    overflow: hidden;
}

.menu-flex {
    display: flex;
    gap: 100px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-list {
    flex: 1.2;
    margin: 0;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dotted #ccc;
}

.menu-list .tax {
    font-size: 0.7em;
    margin-left: 2px;
}

.menu-img-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.menu-img-item:hover {
    transform: translateY(-5px);
}

.menu-img-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Info */
.info-flex {
    display: flex;
    gap: 80px;
    align-items: stretch;
}

.info-table {
    flex: 1.4;
}

.info-map {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    position: relative; /* Added for map-link */
}

.map-link {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
}

.map-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.map-link a:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.info-map iframe {
    width: 100%;
    height: 100%;
}

.info-table dl {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0;
}

.info-table dt {
    width: 150px;
    font-weight: 700;
}

.info-table dd {
    flex: 1;
}

/* Footer */
#footer {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #9eacd3 0%, #b8c7e6 100%);
    color: #fff;
    text-align: center;
}

.wave-container {
    position: absolute;
    top: -99px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
}

.wave-container svg {
    width: 100%;
    height: 100%;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.copyright {
    font-size: 12px;
    color: #555;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    transform: translateY(10px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#back-to-top a:hover {
    background-color: #a00000;
    transform: scale(1.1);
}

.arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: 5px;
}

/* Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff; /* Initial color white */
    position: absolute;
    left: 0;
    transition: 0.3s;
}

#header.scrolled .hamburger span {
    background-color: var(--text-color);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* Hamburger Active (X Shape) */
.hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
        display: flex; /* Ensure it stays flex when active */
    }

    .nav ul {
        flex-direction: column;
        gap: 40px;
    }

    .nav a {
        font-size: 20px;
        color: #fff !important;
    }

    .hamburger {
        display: block;
    }
    .about-flex {
        flex-direction: column;
        gap: 30px;
    }
    .about-img {
        width: 100%;
    }
    .about-slider {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }
    .wine-grid {
        flex-direction: column;
    }
    .menu-flex {
        flex-direction: column;
        gap: 40px;
    }
    .hero-content .title {
        font-size: 32px;
    }
    .yakushu-flex {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .yakushu-img {
        width: 100%;
        max-width: 400px; /* スマホで画像が大きくなりすぎないように */
        margin: 0 auto;
    }
    .deco-img {
        display: block; /* 非表示を解除 */
        opacity: 0.4;   /* さらに濃く表示 */
    }
    .deco-about-1 {
        width: 450px;
        left: -160px;
        top: 2%;
    }
    .deco-about-2 {
        width: 380px;
        right: -150px;
        top: 32%;
    }
    .deco-choice-right {
        width: 450px;
        right: -150px;
        top: 20%;
    }
    .deco-menu-right {
        width: 550px;
        right: -120px;
        top: 70%;
    }
    .deco-info-left {
        width: 380px;
        left: -140px;
        top: 20%;
    }
    .choice-content {
        flex-direction: column;
        gap: 40px;
    }
    .choice-images {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
    .choice-img-item {
        width: 100%;
    }
    .info-flex {
        flex-direction: column;
        gap: 40px;
    }
    .info-table dl {
        flex-direction: column;
        padding: 15px 0;
    }
    .info-table dt {
        width: 100%;
        margin-bottom: 5px;
    }
    .info-map {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }
}
