/* ========================================
   petit rêve - Main Stylesheet
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

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

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

ul, ol {
    list-style: none;
}

/* ========================================
   Color Variables
   ======================================== */
:root {
    --primary-blue: #1a2a4a;
    --primary-red: #c43c3c;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
}

/* ========================================
   Loading & Error States
   ======================================== */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid #eee;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary-red);
}

/* ========================================
   Header
   ======================================== */
.header {
    background-color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    font-style: italic;
    color: var(--primary-blue);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    margin-left: -10px;
}

.logo-img {
    height: 30px;
    width: auto;
}

.logo span {
    color: var(--primary-red);
    font-size: 12px;
    display: block;
    font-style: normal;
    letter-spacing: 2px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 14px;
    color: var(--text-dark);
    transition: color 0.3s;
    font-family: 'Times New Roman', serif;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-red);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #87CEEB 0%, #4A90D9 100%);
    overflow: hidden;
    padding: 40px 20px;
}

/* スマホ用ヒーロー画像スタイル */
@media screen and (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 0;
        background: #fff !important;
        display: block;
    }
    
    .hero img {
        width: 100%;
        height: auto;
        display: block;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0;
        padding: 0;
    }
}

.hero-content {
    position: relative;
    text-align: center;
}

.hero-door {
    max-width: 400px;
    margin: 0 auto;
}

.hero-text {
    color: #fff;
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

/* ========================================
   Page Title
   ======================================== */
.page-title {
    background-color: var(--primary-blue);
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 2px;
}

/* ========================================
   Section Title (Red Bar)
   ======================================== */
.section-title {
    background-color: var(--primary-red);
    color: #fff;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 20px;
}

.section-title:first-child {
    margin-top: 0;
}

/* ========================================
   Content Styles
   ======================================== */
.content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.content h2 {
    color: var(--primary-red);
    font-size: 20px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 15px;
    line-height: 2;
}

.content-bold {
    font-weight: bold;
    font-size: 16px;
    margin: 25px 0 15px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    transition: opacity 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.8;
}

/* ========================================
   Menu Page
   ======================================== */
.menu-section {
    margin-bottom: 50px;
}

.menu-section h2 {
    color: var(--primary-red);
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.course-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #fafafa;
    border-radius: 8px;
}

.course-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.course-content {
    line-height: 2.2;
    color: #555;
}

/* 「・」はセルに含めるので、自動では付けない */
.course-content p {
    margin-bottom: 5px;
}

.menu-note {
    font-size: 14px;
    color: #666;
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* ========================================
   Wine List Page
   ======================================== */
.wine-section {
    margin-bottom: 40px;
}

.wine-category {
    color: var(--primary-red);
    font-size: 18px;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--primary-red);
}

.wine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dotted #ddd;
}

.wine-name {
    color: #333;
}

.wine-price {
    color: var(--primary-blue);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 20px;
}

.wine-note {
    font-size: 14px;
    color: #666;
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* ========================================
   Gallery Page
   ======================================== */
.gallery-section {
    margin-bottom: 50px;
}

.gallery-section h2 {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* History Section with Captions */
.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.history-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-item img {
    width: 100%;
    height: auto;
    display: block;
}

.history-caption {
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    background-color: #fafafa;
    min-height: 60px;
}

/* ========================================
   Info Page
   ======================================== */
.info-section {
    margin-bottom: 40px;
}

.info-item {
    margin-bottom: 12px;
    line-height: 1.8;
}

.info-label {
    font-weight: bold;
    margin-right: 10px;
}

.reservation-list {
    background-color: #f9f9f9;
    padding: 20px 20px 20px 35px;
    border-radius: 5px;
    margin-top: 15px;
}

.reservation-list li {
    margin-bottom: 8px;
    position: relative;
}

.reservation-list li::before {
    content: "▶";
    position: absolute;
    left: -20px;
    color: var(--primary-red);
    font-size: 10px;
    top: 5px;
}

.map-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    display: block;
}

.shop-info {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.shop-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.shop-address {
    color: #666;
    margin-bottom: 10px;
}

.shop-tel {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.shop-tel a {
    color: inherit;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
    margin-bottom: 30px;
}

.contact-note {
    font-weight: bold;
    font-size: 18px;
    margin: 25px 0;
}

.contact-btn-area {
    margin: 30px 0;
}

.contact-description {
    color: #555;
    margin: 20px 0;
    line-height: 2;
}

.contact-tel {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 20px 0;
}

.contact-tel a {
    color: inherit;
}

.contact-warning {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

/* ========================================
   SNS Page
   ======================================== */
.sns-list {
    padding: 20px 0;
}

.sns-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.sns-item:last-child {
    border-bottom: none;
}

.sns-link {
    font-size: 18px;
    color: var(--text-dark);
    transition: color 0.3s;
    display: inline-block;
}

.sns-link:hover {
    color: var(--primary-red);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--primary-red);
    color: #fff;
    padding: 40px 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-nav-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 14px;
    transition: opacity 0.3s;
    min-width: 100px;
    text-align: center;
}

.footer-nav-btn:hover {
    opacity: 0.8;
}

.footer-info {
    text-align: center;
    margin-top: 30px;
}

.footer-tel {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-tel a {
    color: inherit;
}

.footer-address {
    font-size: 14px;
}

/* ========================================
   Responsive
   ======================================== */
@media screen and (max-width: 768px) {
    /* Header */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 50vh;
    }

    .hero-door {
        max-width: 280px;
    }

    .hero-text {
        font-size: 18px;
    }

    /* Page Title */
    .page-title {
        font-size: 22px;
        padding: 20px 15px;
    }

    /* Content */
    .content {
        padding: 30px 15px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-nav {
        gap: 10px;
    }

    .footer-nav-btn {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 80px;
    }

    .footer-tel {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .section-title {
        font-size: 16px;
        padding: 12px 20px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
        display: block;
        text-align: center;
    }

    .course-item {
        padding: 20px 15px;
    }

    .wine-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .wine-price {
        margin-left: 0;
    }
}

/* ========================================
   Info Page Styles
   ======================================== */
.info-section {
    margin-bottom: 60px;
}

.info-section h2 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 500;
}

.info-block p {
    line-height: 1.8;
    color: #555;
}

.info-block a {
    color: var(--primary-blue);
    text-decoration: none;
}

.info-block a:hover {
    color: var(--primary-red);
}

.map-container {
    margin-bottom: 20px;
}

.map-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Contact Page Styles
   ======================================== */
.contact-section {
    margin-bottom: 60px;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-intro {
    line-height: 2;
    color: #555;
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn-line {
    background-color: #06C755;
    color: #fff !important;
}

.btn-line:hover {
    background-color: #05a847;
}

.btn-tel {
    background-color: var(--primary-blue);
    color: #fff !important;
    font-size: 18px;
    letter-spacing: 1px;
}

.contact-address {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    display: inline-block;
}

.contact-address p {
    line-height: 2;
    color: #555;
}

/* ========================================
   SNS Page Styles
   ======================================== */
.sns-section {
    text-align: center;
}

.sns-intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
}

.sns-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.sns-card {
    display: block;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sns-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.sns-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.sns-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
}

.sns-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.sns-card p {
    color: #666;
    margin-bottom: 15px;
}

.sns-follow {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.sns-card:hover .sns-follow {
    background: var(--primary-red);
}

/* ========================================
   Menu Wine Section Styles
   ======================================== */
.wine-section {
    margin-top: 40px;
}

.wine-price-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
}

.wine-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 8px;
}

.wine-price-item .wine-name {
    font-size: 16px;
    color: var(--primary-blue);
}

.wine-price-item .wine-price {
    font-size: 16px;
    color: var(--primary-red);
    font-weight: 500;
}

.menu-note-section {
    margin-top: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.menu-note-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}