/*
Theme Name: Morita House
Theme URI: https://moritahouse.com/
Author: Morita House
Description: 民泊モリタハウス サイト用シンプル固定ページテーマ（1ページ構成の最低限テーマ）
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moritahouse
*/

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

      body {
        font-family: "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial,
          sans-serif;
        line-height: 1.6;
        color: #222222;
        background-color: #ffffff;
      }

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

      /* ヘッダー */
      .header {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        padding: 16px 0;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid #dddddd;
      }

      .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .logo {
        font-size: 1.75rem;
        font-weight: 600;
        color: #ff385c;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .nav-links {
        display: flex;
        list-style: none;
        gap: 32px;
      }

      .nav-links a {
        text-decoration: none;
        color: #222222;
        font-weight: 500;
        transition: color 0.2s;
        font-size: 14px;
      }

      .nav-links a:hover {
        color: #ff385c;
      }

      /* ヒーローセクション */
      .hero {
        height: 100vh;
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
          url("http://moritahouse.com/app/wp/wp-content/uploads/2025/09/hero-image.jpg");
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
      }

      .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 24px;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      }

      .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 32px;
        max-width: 600px;
        opacity: 0.95;
        font-weight: 400;
      }

      .cta-button {
        display: inline-block;
        background: #ff385c;
        color: white;
        padding: 16px 32px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
      }

      .cta-button:hover {
        background: #e31c5f;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(255, 56, 92, 0.4);
      }

      /* セクション共通 */
      .section {
        padding: 80px 0;
      }

      .section-title {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 16px;
        color: #222222;
        font-weight: 600;
      }

      .section-subtitle {
        text-align: center;
        color: #717171;
        margin-bottom: 48px;
        font-size: 1rem;
        font-weight: 400;
      }

      /* 特徴セクション */
      .features {
        background: #f7f7f7;
      }

      .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 32px;
        margin-top: 48px;
      }

      .feature-card {
        background: white;
        padding: 32px 24px;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s, box-shadow 0.2s;
        border: 1px solid #dddddd;
      }

      .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
      }

      .feature-icon {
        width: 64px;
        height: 64px;
        background: #ff385c;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        color: white;
        font-size: 1.5rem;
      }

      .feature-card h3 {
        font-size: 1.125rem;
        margin-bottom: 12px;
        color: #222222;
        font-weight: 600;
      }

      .feature-card p {
        color: #717171;
        line-height: 1.5;
      }

      /* アメニティセクション */
      .amenities-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
        margin-top: 32px;
      }

      .amenity-item {
        display: flex;
        align-items: center;
        padding: 16px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s;
        border: 1px solid #ebebeb;
      }

      .amenity-item:hover {
        transform: translateX(4px);
      }

      .amenity-icon {
        width: 40px;
        height: 40px;
        background: #00a699;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        margin-right: 12px;
        font-size: 1rem;
      }

      .amenity-item span {
        color: #222222;
        font-weight: 500;
        font-size: 14px;
      }

      /* ギャラリーセクション */
      .gallery {
        background: white;
      }

      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
        margin-top: 32px;
      }

      .gallery-item {
        height: 240px;
        background: #f7f7f7;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        transition: transform 0.2s;
        border: 1px solid #dddddd;
      }

      .gallery-item:hover {
        transform: scale(1.02);
      }

      .gallery-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #717171;
        font-size: 1rem;
      }

      /* ロケーションセクション */
      .location {
        background: #f7f7f7;
      }

      .location-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
        margin-top: 32px;
      }

      .location-info h3 {
        font-size: 1.5rem;
        margin-bottom: 16px;
        color: #222222;
        font-weight: 600;
      }

      .location-info p {
        color: #717171;
        line-height: 1.6;
        margin-bottom: 24px;
      }

      .location-features {
        list-style: none;
      }

      .location-features li {
        padding: 8px 0;
        border-bottom: 1px solid #ebebeb;
        display: flex;
        align-items: center;
        color: #222222;
        font-size: 14px;
      }

      .location-features li:last-child {
        border-bottom: none;
      }

      .location-features i {
        color: #ff385c;
        margin-right: 12px;
        width: 16px;
      }

      .map-placeholder {
        height: 400px;
        background: #ebebeb;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #717171;
        font-size: 1rem;
        border: 1px solid #dddddd;
      }

      /* レビューセクション */
      .reviews {
        background: white;
      }

      .reviews-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
        margin-top: 32px;
      }

      .review-card {
        background: white;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        border: 1px solid #dddddd;
      }

      .review-stars {
        color: #ffc72c;
        font-size: 1rem;
        margin-bottom: 12px;
      }

      .review-text {
        font-style: italic;
        margin-bottom: 16px;
        line-height: 1.6;
        color: #222222;
      }

      .review-author {
        font-weight: 600;
        color: #717171;
        font-size: 14px;
      }

      /* 予約セクション */
      .booking {
        background: #ff385c;
        color: white;
        text-align: center;
      }

      .booking .section-title,
      .booking .section-subtitle {
        color: white;
      }

      .booking-buttons {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 32px;
      }

      .booking-button {
        display: inline-block;
        padding: 14px 32px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.2s;
      }

      .booking-button.primary {
        background: white;
        color: #ff385c;
      }

      .booking-button.primary:hover {
        background: #f7f7f7;
      }

      .booking-button.secondary {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid white;
      }

      .booking-button.secondary:hover {
        background: rgba(255, 255, 255, 0.3);
      }

      /* フッター */
      .footer {
        background: #222222;
        color: white;
        padding: 48px 0 24px;
      }

      .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 32px;
        margin-bottom: 32px;
      }

      .footer-section h3 {
        margin-bottom: 16px;
        color: white;
        font-weight: 600;
        font-size: 1rem;
      }

      .footer-section p,
      .footer-section a {
        color: #b0b0b0;
        text-decoration: none;
        line-height: 1.6;
        font-size: 14px;
      }

      .footer-section a:hover {
        color: #ff385c;
      }

      .social-links {
        display: flex;
        gap: 12px;
        justify-content: center;
      }

      .social-links a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
      }

      .social-links a:hover {
        background: #ff385c;
        transform: translateY(-2px);
      }

      .footer-bottom {
        text-align: center;
        padding-top: 24px;
        border-top: 1px solid #484848;
        color: #b0b0b0;
        font-size: 14px;
      }

      /* レスポンシブ */
      @media (max-width: 768px) {
        .container {
          padding: 0 16px;
        }

        .nav-links {
          display: none;
        }

        .hero-content h1 {
          font-size: 2rem;
        }

        .hero-content p {
          font-size: 1rem;
        }

        .section {
          padding: 48px 0;
        }

        .section-title {
          font-size: 1.5rem;
        }

        .features-grid {
          grid-template-columns: 1fr;
          gap: 24px;
        }

        .location-content {
          grid-template-columns: 1fr;
          gap: 32px;
        }

        .booking-buttons {
          flex-direction: column;
          align-items: center;
        }

        .booking-button {
          width: 100%;
          max-width: 300px;
        }
      }

      /* スクロールアニメーション */
      .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
      }

      .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
      }
.gallery-item {
  aspect-ratio: 3 / 2;   /* または height: 240px; 等の固定高さでもOK */
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;          /* 親に高さ/アスペクト比があるので効く */
  object-fit: contain;   /* 全体表示（余白が出ても良い） */
  object-position: center center; /* 上下左右の中央に配置 */
  display: block;
  cursor: default!important;
}
.gallery-item .img-text {
  position: absolute;
  top: 50%;          /* 上から50% */
  left: 50%;         /* 左から50% */
  transform: translate(-50%, -50%); /* 中央寄せ */
  color: white;      /* 見やすい色 */
  font-size: 1.2rem; /* 調整可 */
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0,0,0,0.6); /* 背景に埋もれないように影 */
  pointer-events: none; /* クリックを透過させたい場合 */
}

