/* onsen-quality.php用のスタイル */

/* 共通スタイル */
.info-section {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヒーローセクション */
.info-hero {
    position: relative;
    height: 30vh;
    overflow: hidden;
}

.info-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.info-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.info-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
}

/* 泉質セクション */
.quality-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 温泉紹介セクション */
.onsen-layout {
    display: flex;
    flex-direction: column;
    min-height: 150vh;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff;
    overflow-x: hidden;
}

.quality-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 50vh;
}

.quality-image-side {
    width: 50%;
    margin: 0;
    padding: 0;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.quality-text-side {
    width: 50%;
    margin: 0;
    padding: 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    position: relative;
}

.quality-text-side .info-item {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-top: 60px;
}

.quality-text-side h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-dark);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: auto;
    text-align: center;
    white-space: nowrap;
}

/* タイトルの横線装飾 */
.quality-text-side h3:before,
.quality-text-side h3:after {
    content: "";
    height: 1px;
    width: 150px;
    background-color: var(--primary-dark);
    margin: 0 15px;
}

.quality-text-side p {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    padding: 0;
    margin: 0 auto;
    max-width: 500px;
}

/* 大きな画面用のスタイル調整（泉質セクションのみ） */
@media (min-width: 1440px) {
    .quality-text-side h3 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .quality-text-side h3:before,
    .quality-text-side h3:after {
        width: 170px;
        margin: 0 18px;
    }
    
    .quality-text-side p {
        font-size: 18px;
        line-height: 1.8;
        max-width: 580px;
    }
    
    .quality-text-side .info-item {
        padding-top: 70px;
    }
}

@media (min-width: 1920px) {
    .quality-text-side h3 {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    .quality-text-side h3:before,
    .quality-text-side h3:after {
        width: 200px;
        margin: 0 22px;
    }
    
    .quality-text-side p {
        font-size: 20px;
        line-height: 1.9;
        max-width: 620px;
    }
    
    .quality-text-side .info-item {
        padding-top: 80px;
    }
}

/* 濃い温泉セクションの説明文を右にずらす */
.quality-row:first-child .quality-text-side p {
    margin: 0 auto 0 60px;
}

/* よく温まるセクションの説明文を左にずらす */
.quality-row:nth-child(2) .quality-text-side p {
    margin: 0 auto 0 60px;
}

/* 温泉紹介セクションのテキスト位置調整 */
/* 内風呂セクションの説明文を右にずらす */
.onsen-layout .quality-row:nth-child(1) .quality-text-side p {
    margin: 0 auto 0 60px;
}

/* 露天風呂セクションの説明文を左にずらす */
.onsen-layout .quality-row:nth-child(2) .quality-text-side p {
    margin: 0 auto 0 60px;
}

/* 家族風呂セクションの説明文を右にずらす */
.onsen-layout .quality-row:nth-child(3) .quality-text-side p {
    margin: 0 auto 0 60px;
}

/* 予約ボタンのスタイル */
.reservation-button {
    display: inline-block;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    border: 2px solid transparent;
    margin: 20px auto 0;
}

.reservation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #1e4080 0%, #2c5aa0 100%);
    color: white;
    text-decoration: none;
}

.reservation-button .button-text {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 家族風呂セクションのボタンを中央寄せ */
.onsen-layout .quality-row:nth-child(3) .quality-text-side .info-item {
    text-align: center;
}

/* サウナセクション */
.sauna-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* サウナセクションのテキスト位置調整 */
/* 高温サウナセクションの説明文を右にずらす */
.sauna-layout .quality-row:nth-child(1) .quality-text-side p {
    margin: 0 auto 0 60px;
}

/* 水風呂セクションの説明文を左にずらす */
.sauna-layout .quality-row:nth-child(2) .quality-text-side p {
    margin: 0 auto 0 60px;
}

/* 特徴画像のスタイル */
.feature-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

/* 強調テキスト */
.highlight-text {
    color: var(--error-color);
    font-weight: 600;
}

/* 施設紹介セクション */
.facility-section {
    background-color: #fff;
    padding-bottom: 30px;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.facility-item {
    background: var(--bg-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.facility-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-item:hover .facility-image img {
    transform: scale(1.05);
}

.facility-item .info-item-title {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.facility-item .info-item-text {
    padding: 0 1rem 1rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .facility-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .facility-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .facility-grid {
        grid-template-columns: minmax(250px, 1fr);
        gap: 1rem;
    }
}

/* WordPressのデフォルト余白を上書き */
body.page-template-onsen-quality {
    overflow-x: hidden;
    width: 100%;
    background-color: #ffffff;
}

body.page-template-onsen-quality .info-section {
    background-color: #FFF;
}

/* 情報カード */
.info-card-content{
    background-color: #fff;
    padding-bottom: 30px;
}

.info-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.info-item {
    margin-bottom: 1rem;
}

.info-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.info-item-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-note {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #d32f2f;
    font-weight: 700;
    position: relative;
    padding-left: 1.5rem;
}

.info-note p {
    position: relative;
    margin-bottom: 0.5rem;
}

.info-note p:before {
    content: "!";
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 1.2rem;
    height: 1.2rem;
    background-color: #d32f2f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card-title {
        font-size: 1.5rem;
    }
    
    .info-item-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 1rem;
    }
    
    .info-card-title {
        font-size: 1.3rem;
    }
}

/* レスポンシブ対応を追加 */
@media (max-width: 768px) {
    .quality-row {
        flex-direction: column;
        min-height: auto;
    }

    .quality-text-side,
    .quality-image-side {
        width: 100%;
    }

    .quality-text-side {
        padding: 40px 40px;
        order: 1;
    }

    .quality-text-side p {
        margin: 0 auto !important;
    }

    .quality-image-side {
        height: 300px;
        order: 2;
    }
}

/* さらに小さい画面での余白調整 */
@media (max-width: 480px) {
    .quality-text-side {
        padding: 30px 30px;
    }
    
    .quality-text-side h3 {
        font-size: 20px;
    }
    
    .quality-text-side p {
        font-size: 14px;
    }
}

/* フロアマップセクション */
.floormap-section {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #F8F9FA;
    padding: 60px 0;
    overflow-x: hidden;
}

.floormap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.floormap-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

/* タイトルの横線装飾 */
.floormap-title:before,
.floormap-title:after {
    content: "";
    height: 2px;
    width: 100px;
    background-color: var(--primary-dark);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.floormap-title:before {
    left: -120px;
}

.floormap-title:after {
    right: -120px;
}

.floormap-image-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.floormap-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .floormap-section {
        padding: 40px 0;
    }
    
    .floormap-container {
        padding: 0 1rem;
    }
    
    .floormap-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .floormap-title:before,
    .floormap-title:after {
        width: 60px;
    }
    
    .floormap-title:before {
        left: -80px;
    }
    
    .floormap-title:after {
        right: -80px;
    }
    
    .floormap-image-container {
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .floormap-section {
        padding: 30px 0;
    }
    
    .floormap-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .floormap-title:before,
    .floormap-title:after {
        display: none;
    }
    
    .floormap-image-container {
        border-radius: 8px;
    }
}
