:root {
    --primary-white: #ffffff;
    --secondary-white: #ffffff;
    --accent-gray: #333333;
    --text-main: #1a1a1a;
    --text-muted: #777777;
    --border-color: #eeeeee;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --gallery-green: #2d5a27;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    background-color: var(--primary-white);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex; /* Always show on mobile */
    }
}

/* Header */
.header {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* 折り返しを禁止 */
}

.logo {
    flex-shrink: 0;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 0.5px;
    white-space: nowrap; /* ロゴの縦折れを防止 */
}

.nav {
    margin-left: auto; /* 全体的に右に寄せ、ロゴとの間を開ける */
}

.nav-mail {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 6px; /* 間隔を半分に縮めて全体の幅を調整 */
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 400;
    transition: var(--transition);
    padding: 6px 5px; /* 余白を半分に縮小 */
    border-radius: 4px;
    display: block;
    white-space: nowrap; /* 文字の縦折れを防止 */
}

/* 最後の国旗の右余白を維持（元の10pxに戻す調整） */
.nav li:last-child a:last-child {
    padding-right: 10px;
}

.nav a:hover {
    background-color: #f5f5f5;
}

.nav a.active {
    background-color: #e8f5e9;
    color: #2d5a27;
    /* font-weight: 600 を削除して横幅の変化（ガタつき）を防止 */
}

.icon-svg-nav {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    pointer-events: none;
}

.nav-mail a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* Hit area expanded */
    margin: -8px; /* Compensation */
    transition: transform 0.2s ease;
}

.nav-mail a:hover {
    transform: scale(1.2);
}

.nav-car-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transform: translateY(0px) !important; /* 垂直方向のリセット */
}

.nav-flag-link {
    display: inline-flex !important;
    transform: translateY(1.5px) !important; /* 国旗のみ微調整 */
}

.nav-car-link span {
    font-size: 0.75rem;
    font-weight: 600;
}

.icon-img-nav {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 10px;
    filter: none;
}

.nav-extra-icons {
    display: flex;
    align-items: center;
}

/* English Specific Styles to prevent layout shift */
html[lang="en"] .nav ul {
    gap: 8px; /* 英語は項目が長いため間隔を少し詰める */
}

html[lang="en"] .nav a {
    padding: 6px 8px; /* 英語はパディングを少し削る */
    font-size: 0.75rem;
}

.nav-mail {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important; /* gapをリセット */
}

.nav-mail a {
    margin-right: 20px !important; /* 間隔を40pxから20pxに調整してスペースを確保 */
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.nav-mail a:last-child {
    margin-right: 0 !important;
}



/* Page Navigation (Menu Guide) */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    width: 100%;
}

.page-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    max-width: 45%;
}

.page-nav-link.prev {
    align-items: flex-start;
}

.page-nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.page-nav-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.page-nav-link:hover {
    opacity: 0.6;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    max-width: 1000px;
    margin: 0 auto 40px;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s ease-out;
}

.hero-section:hover .hero-image {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-notice-container {
    max-width: 1000px;
    margin: -35px auto 30px;
    padding: 0 10px;
    text-align: right;
}

.hero-notice {
    color: #888;
    font-size: 11pt;
    font-family: "Noto Sans JP", sans-serif;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-text h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.1rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 4.5vw;
    }
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

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

/* Grid Section */
.hero-grid-section {
    padding: 15px 0;
}

.square-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 rows of 3 cards = total 6 */
    gap: 32px; /* Increased for more breathing room */
    margin-bottom: 25px;
}

.grid-card {
    display: block;
    position: relative;
    aspect-ratio: 6 / 4;
    overflow: hidden;
    background-color: #2d5a27; /* Target Vivid Green */
    border: 2px solid #fff;
    padding: 10px;
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition);
    transform: scale(0.9); /* Shrunk to 90% overall */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.grid-card::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Double border effect */
    border-radius: 8px;
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain for stencils */
    padding: 20px;
    transition: var(--transition);
    /* 
       Removed grayscale filter to allow white stencils to show clearly
    */
    filter: brightness(1.2) contrast(1.1);
    mix-blend-mode: screen;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #2d5a27;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #1e3d1a;
    transform: translateY(-2px);
    opacity: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Title at bottom */
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6) 0%, transparent 60%); /* Darkened corner for readability */
}

.card-overlay h2 {
    font-family: 'Shippori Mincho', serif; /* Elegant Gallery Style */
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 1px 1px 2px rgba(0, 0, 0, 1);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.grid-card:hover {
    transform: translateY(-5px);
}

.grid-card:hover .card-image img {
    transform: scale(1.05);
}

/* Shop Info Section */
.shop-info-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* 左側の情報エリアを広く、右側のマップ幅を小さく調整 */
    gap: 30px;
    padding: 30px 20px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #000;
}

.shop-info-left {
    display: flex;
    gap: 30px;
}

.shop-image {
    width: 240px;
    height: 240px;
    flex-shrink: 0;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.shop-text h3 {
    font-size: 1.0rem;
    margin-bottom: 8px;
    color: #000;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 4px;
}

.shop-text h3 .jp-title {
    font-family: 'Shippori Mincho', serif;
    white-space: nowrap;
}

.shop-text h3 span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
}

.notice {
    font-size: 0.84rem;
    color: #d9534f;
    margin-bottom: 12px;
    font-weight: 600;
}

.description {
    font-size: 0.96rem;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.6;
}

.details p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #000;
}

.contact {
    margin-top: 15px;
}

.mail-icon-inline {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.icon-svg-inline {
    width: 16px;
    height: 16px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    pointer-events: none; /* Add this to ensure the <a> tag receives the click */
}

.shop-info-right {
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.map-address {
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
}

.map-container {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

/* Footer */
.footer {
    padding: 25px 0;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .shop-info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .square-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-info-left {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        z-index: 999;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-extra-icons {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 500px) {
    .square-grid {
        grid-template-columns: 1fr;
    }
}
/* Sub-page Specific Styles */
.detail-main { 
    padding: 60px 0; 
    background: #fff; 
}

.detail-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.detail-title { 
    font-family: 'Shippori Mincho', serif; 
    font-size: 1.8rem; 
    margin-bottom: 40px; 
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.detail-section { 
    margin-bottom: 50px; 
}

/* Detailed Pages Common Styles */
.detail-title { 
    font-family: 'Shippori Mincho', serif; 
    font-size: 1.6rem; 
    margin-bottom: 40px; 
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    text-align: left;
}

.image-container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.image-container img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container:hover img {
    transform: scale(1.05);
}

.detail-section h2 { 
    font-family: 'Shippori Mincho', serif;
    font-size: 1.4rem; 
    margin-bottom: 20px; 
    color: var(--gallery-green);
}

.detail-text { 
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: #1a1a1a; 
    margin-bottom: 25px; 
    text-align: justify;
}

.inline-image { 
    width: 80%; /* 8割の大きさに調整 */
    max-height: 50vh; 
    height: auto; 
    object-fit: cover; 
    border-radius: 8px; 
    margin: 30px auto; /* 中央寄せ */
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.back-link { 
    display: inline-block; 
    margin-top: 40px; 
    color: #666; 
    text-decoration: none; 
    border-bottom: 1px solid #666; 
    transition: 0.3s; 
}

.back-link:hover { 
    opacity: 0.7; 
}

/* Info Table (About Page) */
.info-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 40px; 
}

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

.info-table th { 
    width: 30%; 
    color: #777; 
    font-weight: 400; 
}
