/* ========== 共通設定 ========== */
body {
    margin: 0;
    font-family: 'Noto Serif JP', 'Yu Mincho', serif; /* Prioritize Noto Serif JP for a modern, elegant look */
    background-color: #FAF9F7;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
    -moz-osx-font-smoothing: grayscale; /* Smoother font rendering */
}

h1, h2, h3, h4 {
    font-weight: 500; /* Medium weight for headings */
    color: #5A4E3C;
    margin-bottom: 0.5em;
    font-family: 'Noto Serif JP', 'Yu Mincho', serif;
    line-height: 1.3;
}

h1 {
    color: #fff;
    font-weight: 700; /* Bold for hero heading */
}

a {
    color: #5A4E3C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7A6955;
}

.btn {
    display: inline-block;
    background-color: #5A4E3C;
    color: white;
    padding: 0.8em 1.8em; /* Slightly more padding */
    border-radius: 4px;
    margin-top: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Add transform for subtle hover effect */
    text-align: center;
    border: none; /* Remove default button border */
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

.btn:hover {
    background-color: #7A6955;
    transform: translateY(-2px); /* Lift button on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.inner {
    max-width: 1100px; /* Consistent max-width for content */
    margin: 0 auto;
    padding: 0 1.5rem; /* Add some padding on sides for smaller screens */
}

.section-padding {
    padding: 80px 0; /* Consistent vertical padding for sections */
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #4a3e36;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.section-description {
    font-size: 1.05rem;
    color: #444;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* --- Utilities --- */
.text-white { color: #fff; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.fw-bold { font-weight: 700; }
.display-4 { font-size: calc(1.425rem + 2.1vw); } /* Responsive font size */
.display-5 { font-size: calc(1.325rem + 0.9vw); }
.fs-5 { font-size: 1.25rem; }
.lead { font-size: 1.25rem; font-weight: 300; }
.w-100 { width: 100%; }
.w-md-50 { width: 50%; } /* Bootstrap-like utility */
.rounded { border-radius: 0.5rem; }
.rounded-top { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-bottom { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-md-start { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rounded-md-end { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gap-4 { gap: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.small { font-size: 0.875em; }
.text-muted { color: #6c757d; }
.flex-column { flex-direction: column; }
.flex-md-row { flex-direction: row; }
.flex-md-row-reverse { flex-direction: row-reverse; }
.align-items-stretch { align-items: stretch; }
.justify-content-center { justify-content: center; }
.d-md-none { display: none; } /* Hide on medium screens and up */
.shadow { box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15)!important; }
.p-4 { padding: 1.5rem; }
.bg-light { background-color: #f8f9fa!important; }
.bg-white { background-color: #fff!important; }
.btn-outline-dark {
    color: #5A4E3C;
    border: 1px solid #5A4E3C;
    background-color: transparent;
}
.btn-outline-dark:hover {
    color: #fff;
    background-color: #5A4E3C;
}

/* ナビゲーションバーのスタイル */
.navbar {
    background-color: #5A4E3C;
    color: white;
    padding: 0.8em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ナビゲーション内部のコンテナ */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5em;
}

/* ロゴリンク */
.logo {
    display: flex;
    align-items: center; /* 縦中央に揃える */
    margin-right: auto;  /* ロゴを左に固定し、メニューと空間を作る */
}

/* ロゴ画像 */
.logo img {
    height: 48px;      /* 適度に視認性を持たせるサイズ */
    width: auto;
    display: block;    /* 余白除去のため */
}

/* ハンバーガーメニュー */
.menu-icon {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: white;
    line-height: 1;
    transition: transform 0.3s ease;
    margin-left: 1em; /* ロゴとの距離 */
}

/* チェックボックス非表示 */
#menu-toggle {
    display: none;
}

/* ナビリンク */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
}

/* 各リンクスタイル */
.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em 0;
    position: relative;
    transition: color 0.3s ease;
}

/* ホバーアニメーション */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        flex-direction: column;
        background-color: #5A4E3C;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
        max-height: 500px; /* 実際の内容に応じて調整 */
    }

    .nav-links li {
        text-align: center;
        padding: 0.8em 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:first-child {
        border-top: none;
    }

    .logo img {
        height: 42px; /* モバイル時はやや小さめ */
    }

    .nav-container {
        padding: 0.8em 1em;
    }
}

/* ========== ヒーローセクション ========== */
.site-hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.site-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay for better text contrast */
    z-index: 1;
}

.site-hero .container {
    position: relative;
    z-index: 2;
    padding: 4em 1em;
}

.site-hero .heading {
    font-size: 3.5em; /* Larger heading */
    margin-bottom: 0.5em;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Stronger shadow */
    line-height: 1.3;
}

.site-hero .sub-heading {
    font-size: 1.5em; /* Larger sub-heading */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .site-hero .heading {
        font-size: 2.5em;
    }
    .site-hero .sub-heading {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .site-hero .heading {
        font-size: 2em;
    }
    .site-hero .sub-heading {
        font-size: 1em;
    }
}


/* ========== 固定フッター ========== */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(90, 78, 60, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8em 0.5em; /* More padding */
    z-index: 1000;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.25); /* Stronger shadow */
    font-family: 'Yu Gothic', '游ゴシック体', sans-serif;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out; /* Smooth slide out/in */
}

.fixed-footer.hidden {
    transform: translateY(100%); /* Slide down to hide */
    opacity: 0;
    pointer-events: none; /* Disable interaction when hidden */
}

.fixed-footer a {
    text-decoration: none;
    color: #fff;
    text-align: center;
    flex: 1;
    padding: 0.8em 0; /* Larger clickable area */
    transition: background-color 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.fixed-footer a:last-child {
    border-right: none;
}

.fixed-footer a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.fixed-footer .label {
    font-size: 0.95em; /* Slightly larger label */
    letter-spacing: 0.05em;
    display: block; /* Ensure label is on its own line */
}

@media (max-width: 768px) {
    .fixed-footer .label {
        font-size: 0.85em;
    }
}


/* ========== 会席料理セクション ========== */
.kaiseki-section {
    padding: 80px 20px; /* More padding top/bottom */
    background-color: #f8f9fa;
    text-align: center;
}

.kaiseki-card-list {
    display: flex;
    flex-direction: column; /* Stack cards by default */
    gap: 4rem; /* More space between cards */
}

.kaiseki-card {
    background: #fff;
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: stretch; /* Ensure content stretches vertically */
}

.kaiseki-card:hover {
    transform: translateY(-8px); /* Lift more on hover */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.kaiseki-card .image {
    background-size: cover;
    background-position: center;
    min-height: 350px; /* Slightly taller images */
    flex-shrink: 0; /* Prevent image from shrinking */
}

.kaiseki-card .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem; /* More padding inside text box */
    text-align: left; /* Align text left */
}

.kaiseki-card h3 {
    font-size: 1.8rem; /* Larger heading for dishes */
    margin-bottom: 1rem;
    color: #5a4033;
}

.kaiseki-card p {
    font-size: 1.05rem; /* Slightly larger paragraph text */
    margin-bottom: 1.2rem;
    color: #444;
    line-height: 1.7;
}

.kaiseki-card .menu {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}

.kaiseki-card .btn-outline-dark {
    align-self: flex-start; /* Align button to the start */
    margin-top: auto; /* Push button to bottom */
}

/* Specific styling for the breakfast section if needed, otherwise use .kaiseki-card */
.breakfast-section .kaiseki-card .text {
    text-align: left; /* Ensure consistent text alignment */
}


@media (max-width: 768px) {
    .kaiseki-card {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;
    }

    .kaiseki-card .image {
        width: 100%;
        min-height: 250px;
        border-radius: 12px 12px 0 0; /* Apply top-only radius */
    }

    .kaiseki-card .text {
        width: 100%;
        border-radius: 0 0 12px 12px; /* Apply bottom-only radius */
        text-align: center; /* Center text on small screens */
        padding: 2rem;
    }

    .kaiseki-card .btn-outline-dark {
        align-self: center; /* Center button on small screens */
    }

    .section-header h2 {
        font-size: 2rem;
    }
    .section-header p {
        font-size: 1rem;
    }
    .display-4 { font-size: 2.2rem; }
    .display-5 { font-size: 1.8rem; }
}


/* ========== フッター ========== */
.footer {
    font-family: 'Noto Serif JP', "Yu Mincho", serif;
    color: #333;
    background: #fff;
    padding: 60px 20px 30px; /* More vertical padding */
    text-align: center;
}

.footer-top {
    margin-bottom: 40px;
}

.footer-logo p {
    font-weight: 500; /* Medium weight */
    font-size: 1.2rem; /* Slightly smaller */
    line-height: 1.8;
    margin-bottom: 20px; /* Less space if ryokan name is already large */
    letter-spacing: 0.03em;
}

.footer-logo ruby rt {
    font-size: 0.7rem;
}

.ryokan-name {
    font-family: 'Noto Serif JP', "Yu Mincho", serif;
    font-size: 2.2rem; /* Larger */
    font-weight: 700;
    display: inline-block;
    margin: 15px 0; /* More margin */
    color: #4a3e36;
}

.ryokan-name ruby rt {
    font-size: 0.8rem;
}

.footer .tel {
    font-size: 1.4rem; /* Larger phone number */
    font-weight: 700;
    margin-top: 15px;
    display: block; /* Ensure it's on its own line */
    color: #5A4E3C;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px; /* Less gap for better fit */
    margin-bottom: 50px;
    padding: 0 20px;
    text-align: left;
}

.footer-col {
    min-width: 150px; /* Smaller min-width for columns */
    flex: 1;
    max-width: 250px; /* Smaller max-width */
}

.footer-col h4 {
    border-bottom: 2px solid #ddd; /* Thicker border */
    padding-bottom: 10px; /* More padding below border */
    margin-bottom: 15px;
    font-weight: 600; /* Slightly bolder */
    font-size: 1.15rem; /* Slightly larger */
    color: #4a3e36;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-col ul li {
    position: relative;
    padding-left: 18px; /* More space for bullet */
    margin-bottom: 10px;
    color: #666; /* Darker link color */
    font-size: 0.95rem; /* Slightly larger link text */
    line-height: 1.6;
}

.footer-col ul li::before {
    content: "・"; /* Use a solid dot */
    position: absolute;
    left: 0;
    color: #a7b79a; /* Softer green color */
    font-size: 1.2em;
    line-height: 1; /* Align bullet vertically */
}

.footer-col ul li a {
    color: #666;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #5A4E3C;
    text-decoration: underline;
}

.footer-bottom {
    font-size: 0.8rem; /* Slightly larger copyright */
    color: #999; /* Lighter color */
    border-top: 1px solid #eee;
    padding-top: 20px; /* More padding above copyright */
    margin-top: 30px; /* More margin above copyright */
    text-align: center;
}


@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-col {
        min-width: unset;
        max-width: 100%;
        width: 80%; /* Limit width on small screens */
    }

    .footer-col h4 {
        text-align: center;
    }

    .footer-col ul {
        text-align: center;
    }

    .footer-col ul li {
        padding-left: 0; /* Remove left padding for centering */
    }

    .footer-col ul li::before {
        display: none; /* Hide bullets for centered list */
    }
}

/* Add custom classes for different media queries if needed for more granular control */
@media (min-width: 769px) {
    .d-md-none { display: none !important; } /* Ensure this utility works as expected */
    .w-md-50 { width: 50% !important; }
    .rounded-md-start {
        border-top-left-radius: 0.5rem !important;
        border-bottom-left-radius: 0.5rem !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    .rounded-md-end {
        border-top-right-radius: 0.5rem !important;
        border-bottom-right-radius: 0.5rem !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
}


/* セクション共通 */
.section {
  background-color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
}

/* 背景パターンセクション */
.bg-pattern {
  background: #f9fafb url('img/pattern.svg') repeat; /* 任意の背景パターン */
}

/* 見出し */
.heading {
  font-weight: 700;
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* リード文 */
.lead {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* スライダー画像 */
.home-slider .slider-item img {
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}
.home-slider .slider-item img:hover {
  transform: scale(1.05);
}

/* ボタン */
a.btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
}
a.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,123,255,0.4);
}

/* メニューカード */
.media-custom {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 1rem;
  transition: box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.media-custom:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* メニュー画像 */
.media-custom img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* メニュータイトル */
.media-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #222;
}

/* 価格 */
.price {
  color: #e94e1b;
  font-weight: 700;
  font-size: 1.15rem;
}

/* 写真説明 */
.media-body p {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

/* レスポンシブで画像縮小調整 */
@media (max-width: 767px) {
  .heading {
    font-size: 2rem;
  }
  .lead {
    font-size: 1rem;
  }
}
