/* ===== 全体 ===== */
body {
  margin: 0;
  font-family: 'Lora', serif;
  background-color: #f3ede6; /* ベージュ背景 */
  color: #4a403a; /* 落ち着いたブラウン */
  line-height: 1.8;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== ヘッダー ===== */
header {
  background-color: #fdf7f2;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #4a403a;
  margin: 0;
}

/* PC版のナビゲーションスタイル */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #4a403a;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  width: 0;
  height: 2px;
  background: #b48c6c;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ===== ヒーロー ===== */
.hero {
  height: 100vh;
  background: url('img/index_bg.png') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 12px;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ===== セクション ===== */
.section {
  padding: 5rem 0;
  text-align: center;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  max-width: 700px;
  margin: 0 auto;
}

/* ===== カード ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: #4a403a;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  background: linear-gradient(45deg, #b48c6c, #d1b597);
  color: #fff;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: linear-gradient(45deg, #d1b597, #b48c6c);
  transform: translateY(-3px);
}

/* ====画像サイズ==== */

.ponon-image {
  display: block;
  max-width: 50%;   /* 横幅を半分に */
  height: auto;     /* アスペクト比維持 */
  margin: 1rem auto; /* 中央寄せ */
}

/* スマホ用調整 */
/* ================================================= */
/* スマートフォン表示 (幅767px以下) の調整 */
/* ================================================= */
@media screen and (max-width: 767px) {

    /* ヒーローセクション全体の上下の余白を減らす */
    .hero {
        padding: 40px 0; /* PC用の設定があれば上書き。必要に応じて値を調整してください */
    }

    /* ヒーローコンテンツ（タイトルとサブテキスト）の調整 */
    .hero-content {
        /* 上下のパディングを小さくして、タイトルの背景を縮小 */
        padding: 50px 20px; /* PC用の設定があれば上書き。値を調整してください */
    }

    /* タイトル文字（日常に、上質な美しさを。）のサイズ調整 */
    .hero-content h2 {
        /* 文字サイズをビューポート幅の相対サイズ(vw)で設定 */
        font-size: 8vw; 
        /* 例: 画面幅375pxの場合、375 * 0.08 = 30px となります */
        line-height: 1.4; /* 行間も必要に応じて調整 */
    }
}

/* ===== フッター ===== */
footer {
  background-color: #fdf7f2;
  color: #7a6f68;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ===== レスポンシブ対応 ===== */
/* PC版のハンバーガーメニューは非表示 */
.nav-toggle, .nav-toggle-label {
    display: none;
}

/* メディアクエリ：画面幅が768px以下の時に適用 */
@media (max-width: 768px) {
  /* PCのナビゲーションを非表示に */
  .nav-links {
    display: none;
  }
  
  /* ハンバーガーメニューを表示 */
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a403a;
    transition: all .25s ease;
  }
  
  /* ハンバーガーの3本線を配置 */
  .nav-toggle-label span { top: 50%; transform: translateY(-50%); }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after  { top: 8px; }


  /* navをドロップダウンメニューとして設定 */
  nav {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    /* 初期状態では非表示 */
    visibility: hidden;
    opacity: 0;
    transition: all .3s ease-in-out;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 10px;
  }

  /* ハンバーガーメニューがチェックされた時のスタイル */
  #nav-toggle:checked ~ nav {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
  .nav-toggle-label:has(~#nav-toggle:checked) span { opacity: 0; }
  .nav-toggle-label:has(~#nav-toggle:checked) span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle-label:has(~#nav-toggle:checked) span::after { transform: translateY(-8px) rotate(-45deg); }

  /* スマホ表示の背景画像設定 */
  .hero {
    background-position: left;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 1.5rem; }
  .hero-content { padding: 1.5rem 1rem; }
  .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
  footer { font-size: 0.8rem; }
}