#topics {
  clear: both;
  padding: 60px 3% 100px;
  background: url(../img/topics-bg.jpg) no-repeat center bottom fixed;
  background-size: cover;
  overflow: hidden;
}


.section {
    margin-bottom: 20px;
}

.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
    max-width: 100%;
    margin: 0px auto;
}
section#rooms {
    max-width: 1050px;
    margin-bottom: 20px;
    margin-top: 20px;
}
/* 表示された時に追加されるクラス */
.section.active {
    opacity: 1;
    transform: translateY(0);
}
.section h2{
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/*===============================================
    Title Section start
================================================*/

.title-text {
    color: #FFF;
    font-size: 34px;
    letter-spacing: 10px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url(../img/main-top.png) no-repeat center center;
    background-size: cover;
    margin-bottom: 80px;
    position: relative;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 40px 20px;
}

.title-content {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    transform: translateX(-100%);
    opacity: 0;
    animation: slideInFromLeft 1s ease-out forwards;
}

.title-icon {
    width: 100px;
    height: 100px;
}

.title-text .main-text {
    font-size: 36px;
    margin: 0;
    letter-spacing: 10px;
}

.title-text small {
    font-size: 14px;
    margin-top: 10px;
    letter-spacing: 2px;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInFromRight 1s ease-out forwards;
    animation-delay: 0.5s; /* 少し遅れて動くと自然です */
}

/* 左から */
@keyframes slideInFromLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 右から */
@keyframes slideInFromRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
   .title-text {
        flex: none;
        height: 150px;
        margin: 0px 0px 0px 0px;
        width: 100%;
        max-width: 100%;
    }
    .title-icon {
    width: 50px;
    height: 50px;
    }
.title-text .main-text {
    font-size: 20px;
}

}

@media screen and (max-width: 480px) {
    .title-text {
        height: 100px;
    }
    .title-text .main-text {
        font-size: 18px;
    }
    .title-text small {
        font-size: 12px;
    }
    .title-icon {
        width: 40px;
        height: 40px;
    }
   
}

/*================================================
    Title Section end
================================================*/

/*================================================
    Rooms Form Styles start
================================================*/


.room-gallery {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
    background: linear-gradient(145deg, #f4f8f7, #e6f0ec);
    padding: 50px 15vw;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 2px;
}

.main-image-container {
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.thumbnail-container {
    display: block;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 6px;
    transition: opacity 0.3s, transform 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid #4caf50;
}

.room-description {
    margin-top: 20px;
    font-size: 16px;
    color: #f9f9f9;
    line-height: 1.6;
    background: #2a7365;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/*=========================================================
  contact button start
=========================================================*/

.contact-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #1d3557, #457b9d);
  border: none;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(69, 123, 157, 0.4);
  position: relative;
  overflow: hidden;
}

.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-button:hover::before {
  left: 100%;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(69, 123, 157, 0.6);
}
/*=========================================================
  contact button end
=========================================================*/

/* 共通設定 */
.section {
    padding: 60px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1e90ff, #00bcd4);
    border-radius: 2px;
}

.room-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 付随資料 --- */
.facility-info {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.facility-address,
.facility-tel {
    font-size: 1rem;
    margin-bottom: 8px;
}

.facility-download p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e90ff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.download-link:hover {
    color: #007acc;
}

.icon {
    width: 60px;
    height: 60px;
}

.download-btn {
    padding: 8px 15px;
    background: linear-gradient(90deg, #1e90ff, #00bcd4);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.download-btn:hover {
    background: linear-gradient(90deg, #007acc, #0097a7);
}

.more-link {
    margin-top: 15px;
}

.more-link a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 8px 15px;
    background: linear-gradient(90deg, #1e90ff, #00bcd4);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.more-link a:hover {
    color: black;
}

/* --- アクセス --- */
.facility-access {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.access-desc {
    margin-bottom: 20px;
    line-height: 1.6;
}

.access-map-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.map-outer {
    flex: 1 1 500px;
}

.map-frame {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

.map-info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-tel a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.map-tel a:hover {
    color: #007acc;
}

.contact-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #1e90ff, #00bcd4);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.contact-button:hover {
    background: linear-gradient(90deg, #007acc, #0097a7);
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .access-map-wrapper {
        flex-direction: column;
    }
    .map-info {
        padding-top: 10px;
    }
     .map-outer {
    flex: 1 1 1px;
}
}
