:root {
    --primary-color: #b24d54;
    --bg-color: #fdfaf5;
    --text-color: #333;
}

body {
    margin: 0;
    font-family: 'Noto Serif JP', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
}

section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* ヘッダーのスタイル */
header {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* スマホ表示で折り返す */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* ヘッダーの空室確認・予約ボタンのスタイル */
.header-booking-btn {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header-booking-btn:hover {
    background-color: #a04040;
}

/* ヒーローセクション */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('images/main_1.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 10px; letter-spacing: 0.2em; }
.hero p {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 15px;
}

/* フォトギャラリー */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 700px; /* 最初に見せる高さ */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.gallery-grid.open {
    max-height: 5000px; /* 全開時の高さ */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee;
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(178, 77, 84, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.75rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.more-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 40px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.more-btn:hover { background: var(--primary-color); color: #fff; }

/* 地図セクション */
.map-wrapper {
    margin-top: 40px;
    border: 2px solid var(--primary-color);
    padding: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* 予約・CTA */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.booking-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 18px 50px;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 15px; border-bottom: 1px solid #e0e0e0; text-align: left; }
th { color: var(--primary-color); width: 30%; }

/* 新着情報セクション (index.html用) */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-content {
    color: #666;
    line-height: 1.6;
}

.news-loading {
    text-align: center;
    padding: 40px;
    color: #777;
}

.news-error {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
}

footer { text-align: center; padding: 40px; font-size: 0.9rem; color: #777; }

/* detail.html固有のスタイル */
.back-button {
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #8a3a40;
}

.article-header {
    margin-bottom: 40px;
}

.article-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.4;
}

.article-thumbnail {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1rem;
    line-height: 2;
    margin-top: 40px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content h1 {
    font-size: 1.8rem;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.loading {
    text-align: center;
    padding: 80px 20px;
    color: #777;
}

.error {
    text-align: center;
    padding: 80px 20px;
    color: #d32f2f;
}


@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    nav ul li { margin: 5px 8px; } /* スマホで上下にマージンを追加し、行間を調整 */
    nav ul li a { font-size: 0.9rem; }
}