/*
Theme Name: Nozomi
Theme URI: 
Author: Nozomi Theme Developer
Author URI: 
Description: モダンでおしゃれな温泉旅館のためのカスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nozomi
Tags: responsive, blue, modern, onsen, ryokan
*/

:root {
  /* メインカラー（青系） */
  --primary-color: #1a73e8;
  --primary-light: #4e95f4;
  --primary-dark: #0d47a1;
  
  /* サブカラー */
  --secondary-color: #34a853;
  --accent-color: #fbbc05;
  
  /* テキストカラー */
  --text-dark: #202124;
  --text-light: #f8f9fa;
  --text-gray: #5f6368;
  
  /* 背景色 */
  --bg-light: #ffffff;
  --bg-gray: #f1f3f4;
  --bg-dark: #202124;
  
  /* その他 */
  --border-color: #dadce0;
  --error-color: #ea4335;
  --success-color: #34a853;
  
  /* フォントファミリー */
  --font-sans: 'Shippori Mincho', serif;
  --font-serif: 'Shippori Mincho', serif;
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  font-size: 16px; /* ベースフォントサイズ */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}


img {
  max-width: 100%;
  height: auto;
}

/* コンテナ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ボタン */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #2d8e47;
}

/* セクション */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-family: var(--font-serif);
  color: var(--primary-dark);
}

/* 装飾線を削除 */
.section-title::after {
  display: none;
}

/* 波線セクション区切り */
.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider.top {
  top: 0;
}

.wave-divider.bottom {
  bottom: 0;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.wave-divider .shape-fill {
  fill: var(--bg-light);
}

/* レスポンシブ */
@media (max-width: 768px) {
  /* スマホ時の全体的なフォントサイズを小さく */
  body {
    font-size: 14px;
  }
  
  /* 見出しのフォントサイズ調整 */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  .section {
    padding: 50px 0;
  }
  
  .main-navigation {
    flex-direction: column;
  }
  
  .main-navigation ul {
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  .main-navigation li {
    margin: 0 10px 10px 0;
  }
}


/* カード */
.card {
  background-color: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

/* グリッドレイアウト */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}



.news-date {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-right: 10px;
}

/* 予約フォーム */
.reservation-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 0px;
  background-color: var(--bg-gray);
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* アクセスマップ */
.access-map {
  height: 400px;
  margin-bottom: 30px;
}

/* Q&A */
.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: 500;
  cursor: pointer;
  padding: 15px;
  background-color: var(--bg-gray);
  border-radius: 4px;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 15px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 15px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 施設紹介のグリッドレイアウト */
.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: 1200px) {
  .facility-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .facility-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .facility-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .facility-grid {
    grid-template-columns: minmax(250px, 1fr);
    gap: 1rem;
  }

  .facility-image {
    height: 200px;
  }
}

/* 強調テキスト */
.highlight-text {
  color: var(--error-color);
  font-weight: 600;
}

@media (max-width: 768px) {
  .highlight-text {
    font-weight: 500;
  }
}

.wavy-underline {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #ea4335;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ヒーローセクションのスタイル */
.info-hero {
  position: relative;
  margin: 0;
  padding: 0;
}

.info-hero-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.info-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  margin: 0;
  padding: 0;
}

.info-hero-title {
  font-size: 2.5rem;
  margin: 0;
  padding: 0;
}

.info-hero-subtitle {
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
}

/* 泉質セクションのレイアウト */
.info-section {
  padding: 0;
  margin: 0;
  position: relative;
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.info-content {
  width: 100%;
  margin: 0;
  padding: 0;
}


@media (max-width: 768px) {
  .info-section {
    padding: 30px 0;
  }
}

/* 泉質画像のスタイル */
.quality-image-container {
  width: 100%;
  margin: 0;
  text-align: center;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  top: 0;
}

.quality-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}

@media (max-width: 768px) {
  .quality-image-container {
    width: 100%;
    height: 150px;
    margin: 0 auto;
  }
}

/* 泉質レイアウトのスタイル */
.quality-layout {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 150vh;
  width: 100%;
}

.quality-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 50vh;
}

.quality-row:last-child {
  margin-bottom: 0;
}

.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;
}

/* 濃い温泉セクションの説明文を右にずらす */
.quality-row:first-child .quality-text-side p {
  margin: 0 auto 0 110px;  /* 120pxから110pxに変更 */
}

/* よく温まるセクションの説明文を左にずらす */
.quality-row:nth-child(2) .quality-text-side p {
  margin: 0 auto 0 90px;  /* 100pxから90pxに変更 */
}

.quality-row.reverse {
  flex-direction: row-reverse;
}

/* タイトルと横棒のスタイル */
.title-with-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.title-with-lines .line {
  height: 1px;
  background-color: #333;
  flex-grow: 1;
  max-width: 100px;
}

.title-with-lines .info-item-title {
  margin: 0 15px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .title-with-lines .line {
    max-width: 60px;
  }
  
  .title-with-lines .info-item-title {
    margin: 0 10px;
    font-size: 1.2rem;
  }
}

/* 情報アイテムのスタイル */
.info-item {
  margin: 0;
  padding: 0;
}

.info-item-text {
  margin: 0;
  padding: 0;
}

/* 情報アイテムのスタイル */
.info-item {
  margin: 0;
  padding: 0;
}

.info-item-text {
  margin: 0;
  padding: 0;
}

/* 特徴画像のスタイル */
.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;
}

/* 画像の配置を調整 */
.quality-row.reverse .quality-image-side {
  order: 2;
}

.quality-row.reverse .quality-text-side {
  order: 1;
}

@media (max-width: 768px) {
  .quality-layout {
    min-height: auto;
  }

  .quality-row {
    flex-direction: column;
    min-height: auto;
  }

  .quality-row.reverse {
    flex-direction: column;
  }

  .quality-image-side {
    width: 100%;
    height: 40vh;
  }

  .quality-text-side {
    width: 100%;
    padding: 20px 30px;
  }

  .quality-text-side .info-item {
    max-width: 500px;
    margin: 0 auto;
    padding-top: 50px;
  }

  .quality-text-side h3 {
    font-size: 20px;
    margin-bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
  }

  .quality-text-side h3:before,
  .quality-text-side h3:after {
    width: 80px;
    margin: 0 10px;
  }

  .quality-text-side p {
    font-size: 14px;
    margin: 0 auto;
    max-width: 450px;
  }
  
  /* モバイル表示時の濃い温泉セクションの説明文 */
  .quality-row:first-child .quality-text-side p {
    margin: 0 auto 0 70px;  /* 80pxから70pxに変更 */
  }
  
  /* モバイル表示時のよく温まるセクションの説明文 */
  .quality-row:nth-child(2) .quality-text-side p {
    margin: 0 auto 0 50px;  /* 60pxから50pxに変更 */
  }

  .quality-image-side {
    width: 100%;
    height: 40vh;
  }
  
  .feature-image-container {
    height: 100%;
  }
  
  .feature-image {
    height: 100%;
  }
}


/* WordPressのデフォルト余白を上書き */
html, 
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
    body.page-template-onsen-quality .info-section {
        padding: 0;
        margin: 0;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        overflow-x: hidden;
    }

    body.page-template-onsen-quality .quality-row {
        margin: 0;
        padding: 0;
    }

    body.page-template-onsen-quality .quality-image-side {
        margin: 0;
        padding: 0;
        width: 100%;
    }
}

.access-link,
.tourism-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.access-link:hover,
.tourism-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.full-width-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 以前のホバーエフェクトを上書き */
.onsen-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important; /* ホバー時の拡大を無効化 */
    transition: none !important; /* アニメーションも無効化 */
}

.onsen-image-area:hover img {
    transform: none !important; /* ホバー時の拡大を無効化 */
}

.onsen-title-area {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

@media (min-width: 769px) {
    #onsen .onsen-title-area .section-title {
        writing-mode: vertical-rl !important;
        text-orientation: upright !important;
        margin: 0 auto;
        height: 75vh;
        line-height: 1.5;
        letter-spacing: 0.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
}

/* スマートフォンサイズ */
@media (max-width: 768px) {
    #onsen .onsen-title-area .section-title {
        writing-mode: horizontal-tb;
        height: auto;
        margin-bottom: 20px;
    }
}

.info-box .section-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    margin: 0;
    padding: 2rem;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-family: 'Shippori Mincho', serif;
    z-index: 10;
    text-shadow: 
        3px 3px 5px rgba(0, 0, 0, 0.9),
        -3px -3px 5px rgba(0, 0, 0, 0.9),
        3px -3px 5px rgba(0, 0, 0, 0.9),
        -3px 3px 5px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.info-box .section-title .en {
    font-size: clamp(0.8rem, 1.2vw, 1.35rem);
    margin-top: 0.8em;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -2px -2px 4px rgba(0, 0, 0, 0.9),
        2px -2px 4px rgba(0, 0, 0, 0.9),
        -2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.9);
}

.info-box .section-title .description {
    font-size: clamp(0.65rem, 0.9vw, 1.05rem);
    margin-top: 1em;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -2px -2px 4px rgba(0, 0, 0, 0.9),
        2px -2px 4px rgba(0, 0, 0, 0.9),
        -2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.9);
}

/* アクセスと観光情報のセクションタイトル */
#info-section .section-title,
#info-section .section-title .en,
#info-section .section-title .description {
    color: #ffffff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -2px -2px 4px rgba(0, 0, 0, 0.9),
        2px -2px 4px rgba(0, 0, 0, 0.9),
        -2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.9);
}

/* スクロールアニメーション */
.scroll-animation {
    opacity: 0;
    transform: translateY(100px);
    background-color: #f8f9fa;  /* 背景色を追加 */
}

.scroll-animation.animated {
    animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(100px);
        background-color: #f8f9fa;  /* アニメーション開始時の背景色 */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background-color: #f8f9fa;  /* アニメーション終了時も同じ背景色 */
    }
}

/* アニメーション時のちらつき防止 */
.onsen-image-area {
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;  /* コンテナ自体にも背景色を設定 */
}

/* お知らせ一覧のリンクのフォントサイズ調整 */
.news-list .news-title {
    font-size: 0.9rem;
}

/* 見出しのnews-titleクラスは上書きして元のサイズを維持 */
h2.news-title {
    font-size: 2rem;
}
