:root {
    --primary-color: #204E7E;
    --secondary-color: #E98B2A;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e5e7eb;
    --border-color: #ddd;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

/* Header nav social icons */
.nav-list .social-nav-item a {
    font-size: 1.3rem;
    color: var(--primary-color);
}
.nav-list .social-nav-item a:hover {
    color: var(--secondary-color);
}
.nav-list .social-nav-item {
    margin-left: 1rem;
}
li.social-nav-item:last-of-type {
    margin-right: 0.5rem;
}


/* Header nav reservation button */
.header .nav-list .reserve-btn {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.header .nav-list .reserve-btn:hover {
    color: white !important;
    background-color: #d67821;
}

.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-position: center;
    background-size: cover;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    max-width: 500px;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-left: 4px solid var(--secondary-color);
}

.slide-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.slide-content p {
    font-size: 1rem;
    margin: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.prev, .next {
    background-color: rgba(255,255,255,0.5);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(255,255,255,0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

.booking-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
}

.booking-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.booking-container h3 {
    margin-bottom: 1rem;
    color: white;
}

.booking-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.booking-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.booking-btn:hover {
    background-color: #d67821;
}

.direct-call-info {
    color: white;
    font-size: 1rem;
}
.direct-call-info a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin-left: 0.5rem;
}
.direct-call-info a:hover {
    text-decoration: underline;
}

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-size: 1.8rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-content p {
    margin: 0;
    font-size: 0.9rem;
}

.room-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.room-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .room-card {
        flex-direction: row;
    }
}

.room-image {
    flex: 1;
    min-height: 250px;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-info {
    flex: 1;
    padding: 1.5rem;
}

.room-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.room-info p {
    margin-bottom: 1rem;
}

/* ★ 追加: 和室の畳数表示スタイル */
.room-info .room-size {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem; /* 説明文との間隔を調整 */
    font-size: 1rem;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-reserve {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-reserve:hover {
    background-color: #d67821;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.facility-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.facility-list {
    list-style: none;
    padding-left: 1.5rem;
}

.facility-list li {
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.facility-list li::before {
    content: '•';
    position: absolute;
    left: -1.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-svg-icon {
    width: 1.7rem; /* 他のアイコンとサイズ感を合わせる */
    height: 1.7rem;
    fill: currentColor; /* 親要素(.service-icon)のcolor(白)を継承する */
}

.service-content h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.service-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* --- SHIRO Diary Section --- */
.shiro-diary {
    background-color: #ffffff;
}
.diary-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.diary-post-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.diary-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}
.diary-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.diary-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.diary-post-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}
.diary-post-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}
.diary-post-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.7;
    flex-grow: 1;
    white-space: pre-wrap; /* To respect newlines */
    word-break: break-word; /* ★ 修正点: 長い文字列によるレイアウト崩れを防ぐ */
}

/* ★ 追加: 日記がない場合のメッセージスタイル */
.diary-posts-container p {
    text-align: center;
    color: #666;
    padding: 2rem 0;
    grid-column: 1 / -1; /* グリッドレイアウトで中央に配置 */
}


/* --- Access & Attractions --- */
#access .parking-info {
    margin-bottom: 3rem;
}
.parking-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.parking-icon {
    background-color: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}
.parking-details h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.parking-details ul { list-style: none; padding: 0; }
.parking-details li { margin-bottom: 0.5rem; }

.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.attraction-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.attraction-image { height: 200px; }
.attraction-image img { width: 100%; height: 100%; object-fit: cover; }
.attraction-content { padding: 1.5rem; flex-grow: 1; }
.attraction-content h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.3rem; }
.attraction-content p { margin: 0.25rem 0; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5em; }
.map-container { height: 400px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.map-container iframe { border: none; }


.cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.card-icon { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 140px; text-align: center; }
.card-icon i { font-size: 3rem; line-height: 1; width: 1.5em; margin-bottom: 0.25em; text-align: center; }
.visa i { color: #1434CB; }
.jcb i { color: #019E59; }
.amex i { color: #006FCF; }
.mastercard i { color: #EB001B; }


.footer { background-color: var(--primary-color); color: white; padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-logo h2 { margin-top: 0; margin-bottom: 1rem; color: white; font-size: 1.5rem; }
.footer-logo p { margin: 0.5rem 0; font-size: 0.9rem; }
.footer-links h3, .footer-social h3 { color: white; margin-top: 0; margin-bottom: 1rem; font-size: 1.2rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: white; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--secondary-color); }
.social-icons { display: flex; gap: 1rem; }
.social-icon { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: white; color: var(--primary-color); border-radius: 50%; text-decoration: none; transition: all 0.3s; font-size: 1.2rem; }
.social-icon:hover { background-color: var(--secondary-color); color: white; }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #ccc; text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* Language Switch */
.lang-switch { background-color: var(--secondary-color); color: white !important; border-radius: 4px; padding: 0.25rem 0.75rem; text-decoration: none; transition: background-color 0.3s; white-space: nowrap; }
.lang-switch:hover { background-color: #d67821; color: white !important; }

/* --- Reservation Modal --- */
.reservation-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 1000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.reservation-modal.show { display: flex; opacity: 1; }
.reservation-modal-content { background-color: white; padding: 2rem 2.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); position: relative; width: 90%; max-width: 500px; text-align: center; transform: scale(0.95); transition: transform 0.3s ease; }
.reservation-modal.show .reservation-modal-content { transform: scale(1); }
.reservation-modal-content h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.6rem; }
.reservation-modal-content .intro-text { margin-top: 0; margin-bottom: 1.5rem; color: #555; }
.close-modal-btn { position: absolute; top: 10px; right: 15px; background: transparent; border: none; font-size: 2rem; color: #aaa; cursor: pointer; line-height: 1; }
.close-modal-btn:hover { color: #333; }
.reservation-links { display: flex; flex-direction: column; gap: 1rem; }
.reservation-link { display: block; padding: 0.75rem 1rem; color: white !important; text-decoration: none; border-radius: 4px; font-size: 1rem; font-weight: 500; transition: all 0.3s; }
.reservation-link:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.reservation-link.rakuten, .reservation-link.jalan, .reservation-link.rurubu { background-color: var(--primary-color); }
.reservation-link.rakuten:hover, .reservation-link.jalan:hover, .reservation-link.rurubu:hover { background-color: #183e66; }
.direct-call-divider { display: flex; align-items: center; text-align: center; margin: 2rem 0; color: #aaa; }
.direct-call-divider::before, .direct-call-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.direct-call-divider:not(:empty)::before { margin-right: .5em; }
.direct-call-divider:not(:empty)::after { margin-left: .5em; }
.direct-call .direct-call-text { margin-top: 0; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-color); }
.reservation-link.direct { background-color: var(--secondary-color); }
.reservation-link.direct:hover { background-color: #d67821; }
.reservation-link.direct i { margin-right: 0.5em; }

/* --- Admin Modal & Dashboard --- */
.admin-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 1000; overflow-y: auto; padding: 2rem 0; }
.admin-login { background-color: white; width: 90%; max-width: 400px; margin: 5vh auto; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.admin-login h3 { margin-top: 0; margin-bottom: 1.5rem; text-align: center; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form label { display: block; margin-bottom: 0.25rem; }
.login-form input, .login-form textarea { width: 100%; padding: 0.5rem; border: 1px solid var(--border-color); border-radius: 4px; }
.login-button { background-color: var(--primary-color); color: white; border: none; border-radius: 4px; padding: 0.5rem; cursor: pointer; transition: background-color 0.3s; margin-top: 1rem; }
.login-button:hover { background-color: #183e66; }
.close-modal { position: fixed; top: 20px; right: 20px; background: transparent; border: none; color: white; font-size: 2rem; cursor: pointer; line-height: 1; z-index: 1001; }

.admin-dashboard { display: none; background-color: white; width: 95%; max-width: 1000px; margin: 5vh auto; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); position: relative; }
.admin-dashboard h3 { margin-top: 0; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.dashboard-section { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border-color); }
.dashboard-section:last-of-type { border-bottom: none; }
.dashboard-section h4 { margin-top: 0; margin-bottom: 1rem; color: var(--primary-color); }
.image-upload-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.upload-item { border: 1px solid var(--border-color); border-radius: 4px; padding: 1rem; }
.upload-item h5 { margin-top: 0; margin-bottom: 0.5rem; }
.preview-image { width: 100%; height: 120px; object-fit: cover; margin-bottom: 0.5rem; border: 1px solid var(--border-color); }
.upload-form { display: flex; flex-direction: column; gap: 0.5rem; }
.upload-btn { background-color: var(--secondary-color); color: white; border: none; border-radius: 4px; padding: 0.5rem; cursor: pointer; transition: background-color 0.3s; }
.upload-btn:hover { background-color: #d67821; }

.price-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.price-item { display: flex; flex-direction: column; gap: 0.5rem; }
.price-item label { display: block; margin-bottom: 0.25rem; }
.price-item input { width: 100%; padding: 0.5rem; border: 1px solid var(--border-color); border-radius: 4px; }
.save-btn { background-color: var(--primary-color); color: white; border: none; border-radius: 4px; padding: 0.5rem 1rem; cursor: pointer; transition: background-color 0.3s; margin-top: 1rem; }
.save-btn:hover { background-color: #183e66; }
.close-dashboard { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: var(--primary-color); font-size: 1.5rem; cursor: pointer; }
.admin-action-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* Admin Diary Management */
.diary-post-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.diary-post-form .form-group { display: flex; flex-direction: column; }
.diary-post-form label { margin-bottom: 0.25rem; font-weight: 500; }
.diary-post-form input, .diary-post-form textarea { font-size: 1rem; }

.diary-management-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border-color); padding: 0.5rem; border-radius: 4px; }
.diary-management-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; border-bottom: 1px solid var(--light-gray); }
.diary-management-item:last-child { border-bottom: none; }
.diary-management-item span { flex-grow: 1; }
.delete-post-btn { background-color: #dc3545; color: white; border: none; border-radius: 4px; padding: 0.25rem 0.5rem; cursor: pointer; font-size: 0.8rem; }
.delete-post-btn:hover { background-color: #c82333; }


/* Responsive (Smartphone Compatibility) */
@media (max-width: 1024px) { .nav-list li { margin-left: 1rem; } .attraction-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
@media (max-width: 900px) { .header-container { flex-direction: column; padding-bottom: 0.5rem; } .main-nav { margin-top: 1rem; width: 100%; } .nav-list { flex-wrap: wrap; justify-content: center; } .nav-list li { margin: 0.3rem 0.5rem; } .nav-list .social-nav-item { margin: 0.3rem 0.75rem; } }
@media (max-width: 768px) { .hero { height: 50vh; } .slide-content { bottom: 20px; left: 20px; max-width: calc(100% - 40px); padding: 0.75rem; } .slide-content h2 { font-size: 1.4rem; } .booking-actions { flex-direction: column; gap: 1rem; } .info-grid, .services-grid { grid-template-columns: 1fr; } .parking-info { flex-direction: column; text-align: center; gap: 1rem; } .attraction-grid { grid-template-columns: 1fr; } .footer-content { grid-template-columns: 1fr; text-align: center; } .social-icons { justify-content: center; } }
@media (max-width: 480px) { .amenities-list { grid-template-columns: 1fr; } .nav-list { gap: 0.5rem; } .nav-list li { margin-left: 0.5rem; } .cards-wrapper { gap: 0.5rem; } .card-icon { width: 120px; } }

/* Admin notification */
.notification { position: fixed; bottom: 20px; right: 20px; padding: 15px 25px; background-color: #4CAF50; color: white; border-radius: 4px; opacity: 0; transition: opacity 0.3s; z-index: 2000; }
.notification.show { opacity: 1; }