@charset "UTF-8";
/* Base styles */
:root {
  --color-green-800: #3f684a;
  --color-green-900: #1e4020; /* 濃い緑色（価格ボディに使用） */
  --color-gray-800: #1f2937;
  --color-beige: #F5F2EA;
  /* フッターの濃い茶色を定義 */
  --color-footer-dark: #583F35; 
  --color-footer-accent: #90766A; /* ブロックタイトルなどのアクセント色 */
  /* 新しいゴールドのアクセント色を追加 */
  --color-gold-accent: #D4AF37;
  /* CTAオレンジ色を定義 */
  --color-cta-orange: #FF9900; 
  
  /* 追加: 価格ヘッダーの濃い茶色を定義 */
  --color-price-header: #442622; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------------------------- */
/* 旧価格表示のスタイルを削除/上書き */
/* -------------------------------------- */
.price-card {
    display: none; 
}


/* -------------------------------------- */
/* 修正後の価格表示カードのスタイル (V3 - 画像に合わせたデザイン) */
/* -------------------------------------- */

/* アニメーション定義: フェードインとわずかな上下移動 */
@keyframes price-pop-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-card-v2 {
    /* 既存のV2を非表示またはリセットし、V3をメインにする */
    display: none; 
}

.price-card-v3 {
    max-width: 700px; 
    width: 100%; 
    margin: 0 auto; 
    border-radius: 0 0 16px 16px; 
    overflow: hidden;
    /* 強調と立体感を出すために影を強める */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); 
    
    /* アニメーション適用 */
    opacity: 0;
    animation: price-pop-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

.price-header-v3 {
    background-color: var(--color-price-header); /* 濃い茶色 */
    color: white;
    font-size: 1.2rem; 
    font-weight: 700;
    text-align: center;
    padding: 0.8rem 1rem 1.8rem; /* 下側に矢印のためのパディングを確保 */
    position: relative;
    letter-spacing: 0.1em;
}

/* 価格ヘッダーの下向き矢印 (添付画像のデザインに合わせる) */
.price-header-v3::after {
    content: '';
    position: absolute;
    bottom: -15px; /* 矢印の先端がボディ部分にかかるように調整 */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 30px;
    height: 30px;
    background-color: var(--color-price-header); /* ヘッダーと同じ濃い茶色 */
    /* 矢印を強調する影 */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); 
    z-index: 1;
}

/* ボディ全体: 価格レンジを中央で並べる (濃い緑色) */
.price-body-v3 {
    background: var(--color-green-900); /* 濃い緑色 */
    color: white; 
    text-align: center;
    padding: 1.5rem 1rem;
    
    display: flex; 
    justify-content: center; 
    align-items: center;
    flex-wrap: nowrap;
    
    font-size: 1.8rem; 
    font-weight: 700;
    line-height: 1; /* 行の高さを統一 */
}


/* 価格の数字 */
.price-main-v3 {
    font-size: 2.2rem; /* PC/モバイルで一律に大きく */
    font-weight: 900; /* 極太 */
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* 白文字に影を付けて目立たせる */
    color: white; 
    line-height: 1.2;
    /* 数字と単位が並ぶように調整 */
    display: inline-block; 
}

/* 区切り記号「〜」- 価格と同じサイズと色 */
.price-separator-v3 {
    font-size: 2.2rem; 
    font-weight: 900; 
    margin: 0 0.8rem; 
    color: white; 
    display: block !important; 
    line-height: 1.2;
}

/* 価格の単位（万円）を囲むラッパー */
.price-range-wrapper {
    /* 単位の絶対配置をやめ、フレックスアイテムとして配置 */
    position: relative; 
    display: flex; 
    align-items: flex-end; /* ★修正: 単位を数字の下端に揃える */
    /* 数字と単位のコンテナの最小幅を確保 */
    min-width: 100px; 
    justify-content: center; /* 中央寄せを維持 */
}

/* 価格の単位（万円）- 小さい文字で数字の右側に配置 */
.price-unit-v3 {
    /* 縦書きのプロパティを全て削除 */
    position: static; 
    top: auto;
    right: auto;
    transform: none;
    writing-mode: unset;
    text-orientation: unset;
    
    /* 単位を数字の右下に寄せて配置 */
    display: inline-block; 
    
    /* フォントサイズはメイン価格より小さく */
    font-size: 1.1rem; 
    font-weight: 700;
    
    /* 数字のベースラインより少し下に配置するために調整 */
    margin-left: 0.2rem; /* 数字との隙間を調整 */
    margin-bottom: 0.1rem; 
    
    color: white; 
    line-height: 1; /* 行の高さを狭く */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 単位の各文字にスタイルを適用 (HTMLの`万円`を想定) */
.price-range-wrapper:last-child .price-unit-v3 {
    display: inline-block; /* 単位が数字の隣に来るように */
}
.price-range-wrapper:last-child .price-unit-v3 span {
    display: inline;
}


/* モバイルでの調整 */
@media (max-width: 767px) {
    .price-main-v3 {
        font-size: 1.8rem; 
    }
    .price-separator-v3 {
        font-size: 1.8rem;
        margin: 0 0.5rem;
    }
    .price-unit-v3 {
        font-size: 0.9rem;
        /* モバイルでの位置調整 */
        margin-left: 0.1rem;
    }
    .price-body-v3 {
        padding: 1.2rem 1rem;
    }
    /* モバイルでは単位の配置を微調整 */
    .price-range-wrapper {
        min-width: 80px;
    }
}
/* -------------------------------------- */


/* -------------------------------------- */
/* ⑥ フローティングボタンのスタイル修正 */
/* -------------------------------------- */

/* 新規: ボタンの白い背景（ラッパー） */
.floating-contact-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  
  /* 白い四角いバックグラウンドのスタイル */
  background-color: white;
  border-radius: 12px;
  padding: 8px; /* ボタンと白い枠の間の余白 */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-out;
}

/* モバイル対応の調整 */
@media (max-width: 767px) {
    .floating-contact-wrapper {
        bottom: 15px;
        right: auto; 
        left: 50%;
        transform: translateX(-50%);
        padding: 6px;
        width: 95%; /* モバイルで幅を調整 */
        max-width: 370px;
    }
}

/* 既存のボタン本体のスタイル調整 */
.floating-contact-button {
  position: relative; /* fixedからrelativeに変更し、ラッパー内に収める */
  bottom: auto;
  right: auto;
  
  /* サイズと形状を大きく目立つように変更 */
  width: 230px; /* PCでの幅をラッパーに合わせて調整 */
  height: 50px; /* 高さを調整 */
  border-radius: 6px; /* 角丸に変更 */
  background-color: var(--color-green-800); /* メインの緑色に変更 */
  
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadowはラッパーに移動 */
  box-shadow: none; 
  z-index: 100; 
  transition: all 0.3s;
  text-decoration: none;
}

/* CTAオレンジ色のスタイルを維持 */
.floating-contact-button.cta-orange {
    background-color: var(--color-cta-orange); 
    box-shadow: none; 
}

.floating-contact-button.cta-orange:hover {
    background-color: #e68a00; 
    transform: scale(1.02); /* ホバー時の動きを少し控えめに */
}

/* ボタンのホバー効果はラッパーに適用 */
.floating-contact-wrapper:hover {
    transform: scale(1.03); /* ラッパー全体を少し拡大 */
}
/* ホバー時の影をより目立つよう調整 */
.floating-contact-wrapper:hover {
    box-shadow: 0 8px 16px rgba(255, 153, 0, 0.4); 
}


.floating-contact-button .phone-icon {
    /* アイコンは非表示を維持 */
    display: none; 
}

/* 📞電話をする テキストのスタイル */
.floating-contact-button .call-text {
    color: white;
    font-size: 1.2rem; /* サイズを調整 */
    font-weight: bold;
    letter-spacing: 0.05em;
    padding: 0 1rem;
}

/* モバイルでの調整: ボタンを画面下部中央に配置 */
@media (max-width: 767px) {
    .floating-contact-button {
        width: 100%; /* ラッパー内の幅いっぱい */
        height: 48px; 
        border-radius: 4px;
    }
    
    .floating-contact-button .call-text {
        font-size: 1.1rem; 
    }
}

/* -------------------------------------- */
/* 新しい統合コンテナのスタイル (access-section) - 変更なし */
/* -------------------------------------- */

.access-section {
    padding-bottom: 6rem; /* セクション全体の最後の余白 */
}

/* PCでの左右分割レイアウト */
.access-info-grid {
    display: flex; 
    flex-direction: column; 
    gap: 0; 
    /* 修正: 見出し下のスペースを確保 (約20px) */
    margin: 0 auto 0; 
    padding-top: 20px; 
    max-width: 1200px; 
}

@media (min-width: 768px) {
    .access-info-grid {
        display: flex;
        flex-direction: row;
        gap: 3rem; 
        align-items: stretch; 
        padding: 4rem 1rem 0; 
    }
    .access-section {
        padding-bottom: 8rem;
    }
}

/* 1. 区画図 + 価格カードのブロック (左側) */
.kuka-price-block {
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px; 
    overflow: hidden;
    margin: 0 auto; 
    max-width: 700px; 
}

@media (min-width: 768px) {
    .kuka-price-block {
        max-width: none;
        flex-basis: 40%; 
    }
}

.kuka-image-wrapper {
    line-height: 0; 
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.kuka-image-wrapper img {
    display: block;
    width: 100%; 
    height: auto;
}

/* 価格カードは親ブロックの子要素として一体化 */
.price-card-v3 {
    border-radius: 0 0 16px 16px; 
    box-shadow: none; 
    margin-bottom: 0; 
}


/* 2. 説明文 + ポイント画像のブロック (右側) - 変更なし */
.info-text-point-block {
    width: 100%;
    padding: 3rem 1rem 0 1rem; 
    margin: 0 auto;
    max-width: 700px; 
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

@media (min-width: 768px) {
    .info-text-point-block {
        padding: 0;
        max-width: none;
        flex-basis: 60%; 
        
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-radius: 16px;
        overflow: hidden;
        background-color: white;
    }
}

.info-description {
  max-width: 50rem;
  margin: 0 auto 2rem; 
  font-family: 'Noto Sans JP', sans-serif; 
  font-weight: 600; 
  font-size: 1.125rem; 
  line-height: 1.7; 
  color: var(--color-gray-800); 
  text-align: left; 
  padding: 2rem 2rem 0; 
}
@media (max-width: 767px) {
    .info-description {
        text-align: left; 
        padding: 0 1rem;
        margin: 0 auto 2rem; 
    }
}

/* -------------------------------------- */
/* ポイントリスト (point.jpgの代替) のスタイル - チェックマークを修正 */
/* -------------------------------------- */

/* アニメーション定義 */
@keyframes point-slide-in {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes check-pop {
    0% {
        transform: scale(0.8) translateY(-50%);
    }
    50% {
        transform: scale(1.1) translateY(-50%);
    }
    100% {
        transform: scale(1) translateY(-50%);
    }
}

.point-image-container {
    max-width: 100%; 
    margin: 0 auto;
    background-color: white; 
    border-radius: 0 0 16px 16px; 
    padding: 2rem; 
    text-align: left; 
}

@media (max-width: 767px) {
    .point-image-container {
        padding: 1rem 1rem 1rem; 
        border-radius: 0;
    }
}

.point-list-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 1.5rem;
}

.point-marker {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--color-green-800); 
    margin-right: 0.8rem;
    transform: translateY(1px);
}

.point-list {
    list-style: none;
    padding: 0;
}

.point-list li {
    /* アニメーション設定 */
    opacity: 0;
    animation: point-slide-in 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    /* 遅延をかける */
    &:nth-child(1) { animation-delay: 0.2s; } 
    &:nth-child(2) { animation-delay: 0.4s; } 
    &:nth-child(3) { animation-delay: 0.6s; } 
    
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 2;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    
    position: relative;
    padding-left: 35px; 
    border-bottom: 1px dashed rgba(63, 104, 74, 0.1); 
}

/* 最後の要素には線を引かない */
.point-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* チェックマークの表現 (CSSで実現) - ここを修正 */
.point-list li::before {
    /* content: '✓'; をユニコードエスケープシーケンスに修正 */
    content: '\2713'; 
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    
    /* 背景色を淡い色、チェックの色を濃い緑色に設定 */
    background-color: var(--color-green-800); 
    color: white; 
    /* フォントサイズを調整し、チェックマークが中央に来るように微調整 */
    font-size: 1.2rem; 
    font-weight: 900;
    
    /* チェックマークのアニメーション */
    animation: check-pop 0.5s ease-out 1 forwards;
}
/* リストアイテムの擬似要素に対する遅延設定を修正 */
.point-list li:nth-child(1)::before { animation-delay: 0.5s; }
.point-list li:nth-child(2)::before { animation-delay: 0.7s; }
.point-list li:nth-child(3)::before { animation-delay: 0.9s; }


@media (max-width: 767px) {
    .point-list-title {
        font-size: 1.3rem;
    }
    .point-list li {
        font-size: 1.05rem;
    }
}
/* -------------------------------------- */


/* 既存のaccess-kuka-price-containerは使用しなくなったため、スタイルをリセット */
.access-kuka-price-container {
    padding: 0; 
}
.access-image-container {
    padding: 0; 
}
.new-info-section {
    display: none; 
}

/* -------------------------------------- */
/* その他の既存のスタイル - 変更なし */
/* -------------------------------------- */


body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-gray-800);
  line-height: 1.5;
  /* 意図しない横スクロールを防止 */
  overflow-x: hidden;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  /* モバイルでコンテンツが画面端につきすぎないように */
  padding: 0 1rem; 
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.5s;
}

.fade-in-delay-2 {
  animation-delay: 1s;
}

/* Utilities */
.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ヒーローセクション */
.hero-start {
  padding-top: 0;
  position: relative;
  /* 修正: 画面の高さに固定するのをやめ、コンテンツ（画像）に合わせて高さを決定 */
  height: auto; 
  /* min-height: 100vh; /* 最低限、画面いっぱいの高さを確保 (モバイルで全画面表示が不要になったため削除) */
  display: flex;
  /* 要素を中央揃えに戻す（コンテンツの調整は hero-content で行う） */
  align-items: center; 
  justify-content: center;
  text-align: center;
  color: white;
  /* 背景画像を消すため、背景色を白に戻すか、設定なしにする */
  background-color: #ffffff; 
  /* 修正: コンテンツが中央に配置されるように調整 */
  padding-top: 0; 
  padding-bottom: 0;
  
  /* 追加: メイン画像が背景として機能するように、hero-startの幅を100%にする */
  width: 100%;
}


.hero-bg {
  /* 背景画像としてではなく、メイン画像としてimgタグを使うため、.hero-bgのスタイルを無効化 */
  position: absolute;
  inset: 0;
  background-image: none !important; 
  background-color: transparent !important;
}

/* PC (768px以上) での画像と調整 */
@media (min-width: 768px) {
  .hero-start {
    /* PCでは画面いっぱいの高さを維持 (調整不要) */
    height: 100vh; 
  }
  
  .hero-bg {
    /* PCでも背景画像は使用しない */
    background-image: none;
    background-color: transparent;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* 画像が背景ではなくコンテンツになったため、オーバーレイは削除するか透明に */
  background-color: rgba(0, 0, 0, 0.0); 
}

.hero-content {
  position: absolute; 
  z-index: 10;
  max-width: 48rem;
  padding: 0 1rem;
  width: 100%;
  height: 100%; 
  display: flex;
  flex-direction: column;
  /* ★修正: テキスト画像を画像の上部中央に配置 */
  align-items: center;
  justify-content: flex-start; /* 上部に寄せる */
  padding-top: 40px; /* 上からの余白調整 */
  
  /* 画像の上にコンテンツが重なるため、位置調整のパディングを削除 */
  padding-bottom: 0;
}

/* ヒーローセクション内の画像 */
.hero-main-content {
    /* 画像を重ねて表示するため、親コンテナをrelativeにして位置制御可能にする */
    position: relative;
    width: 100%;
    /* コンテンツ幅を制御し、メイン画像を中央に配置 */
    max-width: 350px; /* モバイルでのテキスト画像の最大幅を調整 */
}

/* テキスト画像 (top2.png, manu.png) */
.hero-main-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

/* メイン背景画像用のスタイル */
.hero-main-image {
  position: relative; 
  top: auto;
  left: auto;
  width: 100%;
  height: auto; 
  max-height: none; /* 最大高さを解除 */
  object-fit: contain; 
  z-index: 1; 
}

/* モバイルでのメイン画像表示を修正 */
@media (max-width: 767px) {
    .hero-main-image.sp-only {
        width: 100%; /* 画面幅いっぱい */
        height: auto; /* アスペクト比を維持 */
        object-fit: cover; /* 画像をはみ出させずに要素内に収める */
    }
    
    .hero-main-content {
        max-width: 80%; /* モバイルではテキスト画像を画面幅の80%に制限 */
        padding-top: 10px;
    }
}


/* PC用のメイン画像に切り替えるためのクラス */
.hero-main-image.pc-only {
    display: none;
}

@media (min-width: 768px) {
    /* PCでは、PC用画像を表示し、SP用画像とテキスト画像（manu.png）を非表示 */
    .hero-main-content {
        max-width: 600px; 
    }
    .hero-main-image.sp-only {
        display: none;
    }
    .hero-main-image.pc-only {
        display: block;
        /* PCでは画面いっぱいの高さを活用 */
        width: 100%;
        height: 100vh; 
        object-fit: cover; /* PCでは画面全体を覆うようにする */
    }
}

/* Features Section */
.features {
  padding: 6rem 0;
}

/* --- 交互背景色用クラス --- */
.bg-alt-color {
    background-color: #C6A66440 !important; 
}
/* ------------------------ */

.section-title {
  font-size: 2rem; 
  font-weight: bold;
  /* 修正: 全ての見出しを中央揃えにする (既に適用済みだが、確認のため残す) */
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-green-800);
  letter-spacing: 0.1em;
  position: relative;
  /* 中央揃えのため、display: inline-block は不要 */
  display: block; 
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-green-800);
}

.section-description {
  text-align: center;
  color: rgb(75, 85, 99);
  margin-bottom: 6rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease-out;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px rgba(27, 67, 50, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-green-800);
  margin-bottom: 1.5rem;
}

.feature-icon i {
  width: 4rem;
  height: 4rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon i {
  transform: scale(1.1);
  color: var(--color-green-900);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--color-green-800);
  letter-spacing: 0.08em;
}

.feature-description {
  color: rgb(75, 85, 99);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.feature-list {
  text-align: left;
  color: rgb(75, 85, 99);
  list-style: none;
  margin-top: 1.5rem;
  font-size: 1.05rem;}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-green-800);
  border-radius: 50%;
  transform: rotate(45deg);
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Nature Harmony Section */
.nature-harmony {
  position: relative;
  height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nature-bg {
  background-image: url('https://images.pexels.com/photos/2079234/pexels-photo-2079234.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750');
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
  padding: 0 1rem;
}

.content h2 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.content p {
  font-size: 1.25rem;
}

/* Gallery Section */
.gallery {
  padding: 6rem 0;
  background-color: white;
}
/* 修正: 交互背景色に対応するため、galleryに bg-alt-color を追加 */
.gallery.bg-alt-color {
    background-color: #C6A66440 !important;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

/* モバイルフレンドリー: 1カラムに設定 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* モバイルでは全てフル幅 */
  .gallery-item-wrapper:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* デスクトップレイアウト (768px以上) */
@media (min-width: 768px) {
  /* .gallery-grid内の要素が自動的に12カラムを埋めるようにするが、
     個別の要素はscript.jsで `grid-column` を設定する */
  .gallery-item-wrapper.lg {
    grid-column: span 6; 
  }
  .gallery-item-wrapper.sm {
    grid-column: span 3; 
  }
}

/* ギャラリーアイテムのラッパー（画像とタイトルの両方を含む） */
.gallery-item-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden; 
}

/* ギャラリーアイテム（画像本体） */
.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  /* 画像のアスペクト比を維持 */
  aspect-ratio: 16/9; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  margin-bottom: 1rem; 
}


.gallery-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s;
}

.gallery-item-wrapper:hover .gallery-image {
  transform: scale(1.1);
}

/* 変更: タイトルを画像の下に表示するため、オーバレイを削除/リセット */
.gallery-overlay {
  display: none; 
}

.gallery-title {
    /* 画像下のタイトルとして再定義 */
    color: var(--color-gray-800);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0;
    line-height: 1.4;
    display: block;
}

/* Property Info Section */
.property-info {
  padding: 6rem 0;
  background-color: white; 
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}

th {
  font-weight: 500;
  color: var(--color-green-800);
  width: 25%;
}

tr:hover {
  background-color: rgba(27, 67, 50, 0.05);
}

/* Comfortable Life Section */
.comfortable-life {
  position: relative;
  height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.comfortable-life .bg {
  background-image: url('https://images.pexels.com/photos/2079234/pexels-photo-2079234.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750');
}

/* Access Section (修正後のスタイル) */

/* 1. タイトル部分: access-section の内部、外部の両方に対応するように修正 */
.access-title-wrapper {
    background-color: var(--color-green-800);
    color: white; 
    padding: 2rem 0; 
}
/* 修正: access-section の有無に関わらず、h2を中央揃えにする */
.access-title-wrapper h2 { 
    font-size: 1.5rem; 
    font-weight: bold;
    text-align: center; 
    margin-bottom: 0;
}

/* 2. 区画図と価格カードの統合コンテナのスタイル */
.access-kuka-price-container {
    padding: 0; 
}

.access-kuka-price-container .container {
    max-width: 700px; 
    padding: 0; 
    margin: 0 auto;
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.kuka-image-wrapper {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    line-height: 0; 
}

.kuka-image-wrapper img {
    display: block;
    width: 100%; 
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

/* 既存のaccess-image-containerは使用しなくなったため、スタイルをリセット */
.access-image-container {
    padding: 0; 
}

/* モバイル対応 (767px以下) */
@media (max-width: 767px) {
    /* containerの左右1remパディングを無効化 */
    .access-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    .access-kuka-price-container {
        /* モバイルで左右の空白を無くす */
        padding-left: 0;
        padding-right: 0;
    }
    .access-kuka-price-container .container {
        border-radius: 0; /* モバイルでは角丸を外し、画面端まで表示 */
        box-shadow: none;
    }
}


/* --- New Info Section のスタイル修正 --- */
/* new-info-section自体は背景色 white (交互設定を優先) */
.new-info-section {
  background-color: white;
  padding: 3rem 0;
  text-align: center;
}

.new-info-section p {
  max-width: 50rem;
  margin: 0 auto;
  /* 1. フォントスタイル */
  font-family: Inter, 'Noto Sans JP', sans-serif; 
  font-weight: 600; 
  /* 文字サイズを少し大きく */
  font-size: 18px; 
  line-height: 1.5; 
  letter-spacing: normal;
  
  /* 2. 文字色と中央配置の追加/修正 */
  color: #442622; 
  text-align: center; 
}
/* -------------------------------------- */


.access {
  padding: 5rem 0;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.access-image {
  height: 24rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.access-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--color-green-800);
}

.access-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 追加: 教育セクションの下に移動した「便利な生活環境」のスタイル */
.access-content-moved {
    max-width: 80rem;
    margin: 0 auto 3rem; 
    padding: 0 1rem;
    text-align: center;
}
.access-content-moved h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-green-800);
    text-align: center; 
}
.access-description-moved p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
}


/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--color-green-800);
  color: white;
}

.contact .section-title::after {
  background-color: white;
}

.contact .section-title {
  color: white;
}

.contact-info {
  text-align: center;
  font-size: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item i {
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item a {
  color: white;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer (フッターのスタイルを再定義) */
.footer {
  /* 画像ベースのスタイルを解除し、背景色とパディングを設定 */
  background-color: var(--color-footer-dark); 
  color: white; 
  padding: 2rem 0 0; 
  height: auto; 
  position: relative;
  overflow: hidden; 
}

/* フッターコンテンツ内のコンテナレイアウト */
.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 4rem;
    }
}

.footer-block {
    /* モバイルで全体幅を使用 */
    width: 100%; 
    line-height: 1.7;
}

@media (min-width: 768px) {
    /* 「所有者」と「お問い合わせ先」のブロック幅を均等(50%)にする */
    .footer-block.owner-info,
    .footer-block.contact-info {
        width: 50%; 
        max-width: none; 
    }
    /* レイアウトの視認性を高めるための罫線は削除 */
    .footer-block.owner-info {
        padding-right: 2rem;
    }
    .footer-block.contact-info {
        padding-left: 0; 
    }
}

.block-title {
    background-color: var(--color-footer-accent);
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 0.3rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
}

.owner-info p, .contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ① pepsi.jpgのスタイル */
.owner-logo {
    margin-bottom: 1rem;
}
.pepsi-logo {
    width: 80px; 
    height: auto;
    border-radius: 0.3rem;
    object-fit: contain;
    background-color: white;
    padding: 0.5rem;
}

/* ④「西日本かなえ株式会社」を3回り大きくする */
.large-company-name {
    font-size: 1.8rem !important; 
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}


.contact-details {
    /* 担当名と電話番号のグループ化 */
    margin-top: 1rem;
}

/* ⑤ 担当者の名前を最初に共有したファイルと同じような大きさにする */
.large-staff-name {
    font-size: 1.3rem !important; 
    font-weight: 700;
    margin-bottom: 0.8rem !important;
    line-height: 1.5;
}

/* 電話番号のスタイル */
.tel-number-box {
    display: inline-block;
    background-color: white;
    color: var(--color-footer-dark);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.2rem;
    text-decoration: none;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}


/* コピーライト */
.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}
.copyright p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 削除対象のセクションを非表示にする */
.access-deleted {
    display: none;
}
