@charset "utf-8";

/* 共通部分 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* --------------------------------------
   共通部分
   -------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: "Fredoka", "Zen Kaku Gothic New", sans-serif;
  line-height: 1.5;
  color: #412a21;
  /* **ここが横スクロールを防ぐための追加部分** */
  transition: overflow-x 0.4s;
}
/* **【修正点】ハンバーガーメニュー開閉時に横スクロールを無効化** */
body.nav-open {
  overflow-x: hidden;
}

/* --------------------------------------
   ヘッダー
   -------------------------------------- */
.p-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: solid 0.6rem #f29999;
  padding: 1rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

/* スクロールしたときに適用されるクラス */
.p-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.7); /* 半透明の白 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* ほんのり影 */
}


.p-header__logo img {
  width: 180px; /* モバイルで小さく */
}

/* --- ハンバーガーメニューアイコン (モバイル専用) --- */
.p-header__toggle {
  display: block; /* モバイルでは表示 */
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 100;
  position: absolute; /* header内に合わせて位置を調整するため */
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}
.p-header__toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #412a21;
  border-radius: 3px;
  transition: all 0.3s;
}
.p-header__toggle span:nth-child(1) {
  top: 0;
}
.p-header__toggle span:nth-child(2) {
  top: 10px;
}
.p-header__toggle span:nth-child(3) {
  top: 20px;
}

/* アイコンアニメーション（開いた状態） */
.is-open .p-header__toggle span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.is-open .p-header__toggle span:nth-child(2) {
  opacity: 0;
}
.is-open .p-header__toggle span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- ナビゲーション (モバイル時のデフォルト) --- */
.p-header__nav {
  /* モバイルでは非表示で全画面に展開 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateX(100%); /* 画面外へ隠す */
  transition: transform 0.4s ease-in-out;
  z-index: 50;
  /* メニュー開閉中はスクロールを無効化 */
  overflow-y: auto;
}
/* ナビゲーションが開いている状態 */
.is-open .p-header__nav {
  transform: translateX(0);
}

.p-header__nav-list {
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 50px; /* ロゴと重ならないように調整 */
  gap: 2.5rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.p-header__nav-list a:hover {
  color: #4699ca;
  font-weight: 700;
  letter-spacing: 0.1rem;
  transition: all 0.3s ease 0s;
}

/* --------------------------------------
   共通ボタン (.c-button)
   -------------------------------------- */
.c-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #f29999;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}

.c-button:hover {
  background-color: #bf5e3b;
}

.p-section__footer {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 50px;
}

/* --------------------------------------
   ヒーロー画像（スライドショー）
   -------------------------------------- */

main {
  padding-top: 10rem;
}

.p-hero {
  position: relative;
  width: 100%;
  height: 75vh; /* モバイルビューでの高さ */
  overflow: hidden;
}

.p-hero__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
  opacity: 0;
  position: absolute;
  inset: 0;
}

.p-hero__image.is-active {
  opacity: 1;
}

/* --------------------------------------
   セクション共通
   -------------------------------------- */
.p-section {
  padding-top: 80px;
  padding-bottom: 30px;
}

h2 {
  font-size: 2.2rem;
  font-weight: 500;
  font-family: "Poetsen One", sans-serif;
  color: #4699ca;
  text-align: center;
  letter-spacing: 0.1rem;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* 背景色 */
#about-section,
#shop-info {
  background-color: #f8f6f1;
}

/* 見出し */
#about-section h3,
#menu-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 0 20px 0;
}

/* テキストコンテンツの中央寄せと左揃え */
.p-section__text-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  padding: 0 5%; /* 左右のpaddingを5%に調整 */
}

.p-section__text-content p {
  text-align: left; /* pタグの中のテキストは左揃えにする */
}

/* --------------------------------------
   NEWSセクション（リスト化対応）
   -------------------------------------- */

/* NEWSリストのインデント揃え（時間 / 本文） */
.p-news__list {
  max-width: 640px;      /* 全体の横幅を制限して中央に見せる */
  margin: 48px auto 0;   /* 上マージンで h2 との間隔を確保、中央寄せ */
  padding: 0 1rem;       /* 横の余白（モバイルの内側マージン） */
  list-style: none;
}
.p-news__list li {
  display: grid;
  grid-template-columns: 110px 1fr; /* 左列（日付）の固定幅、右列が本文 */
  /* gap: 0.5rem 1rem; */
  align-items: start;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #bf5e3b;
  text-align: left;
}
.p-news__list li:first-child {
  border-top: 1px dashed #bf5e3b;
}
.p-news__list time {
  white-space: nowrap; /* 日付を折り返さない */
  color: #412a21;
  font-size: 0.95rem;
  letter-spacing: 0.05rem;
  font-weight: 500;
}
.p-news__list li span {
  display: block;
  color: #412a21;
  line-height: 1.6;
}

/* モバイルでは日付を上にして縦並びにする（必要なら） */
@media (max-width: 640px) {
  .p-news__list li {
    grid-template-columns: 1fr;
  }
  .p-news__list time {
    white-space: normal;
    margin-bottom: 0.25rem;
  }
}

/* NEWSセクションの背景画像 */
#news-section {
  background-image: url(../images/kurumipan_silhouette.svg);
  background-size: 9rem;
  background-repeat: no-repeat;
  background-position: 50% 14%;
}

#news-section ul {
  font-size: 1rem;
}

/* --------------------------------------
   ABOUTセクション
   -------------------------------------- */

#about-section {
  background-image: url(../images/kurumipan_silhouette_white.svg),
    url(../images/background_about-shopinfo.jpg);
  background-size: 9rem, auto;
  background-repeat: no-repeat, repeat;
  background-position: 50% 3.5rem;
}

#about-section h3 {
  color: #bf5e3b;
}

.p-section__text-content {
  font-size: 1.1rem;
}

.p-about__owner-image {
  display: block;
  max-width: 200px;
  margin: 20px auto 0 auto;
}

/* --------------------------------------
   MENUセクション
   -------------------------------------- */

#menu-section {
  background-image: url(../images/kurumipan_silhouette.svg);
  background-size: 9rem;
  background-repeat: no-repeat;
  background-position: 50% 60px;
}

#menu-section h3 {
  line-height: 1.8;
  color: #bf5e3b;
  margin-top: 15px;
}

/* くるみパンの説明文（追加分） */
.p-menu__kurumi-intro {
  padding-bottom: 20px;
  text-align: left;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1.1rem;
}

.p-menu__container {
  max-width: 900px;
  margin: 0 auto;
  /* padding: 30px 5% 0 5%; */
}

/* くるみパンの画像ホバー切り替えのためのCSS定義 */
/* 画像コンテナ */
.p-menu__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1の正方形を維持 */
    overflow: hidden;
    transition: box-shadow 0.3s;
}

/* .p-menu__image-wrapper:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
} */

/* 画像共通スタイル */
.p-menu__image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease-in-out; /* フェードのトランジション */
    border-radius: 10px;
}

/* 元の画像はデフォルトで表示 */
.p-menu__image--original {
    opacity: 1;
    z-index: 10;
}

/* 断面画像はデフォルトで非表示 */
.p-menu__image--cross {
    opacity: 0;
    z-index: 5;
}

/* ホバー時の切り替え */
.p-menu__image-wrapper:hover .p-menu__image--original {
    opacity: 0;
}

.p-menu__image-wrapper:hover .p-menu__image--cross {
    opacity: 1;
}

/* 1. 大きなベースのくるみパン */
.p-menu__main-item {
    text-align: center;
    margin-bottom: 30px;
}
/* figureタグに最大幅を設定し、wrapperのサイズを制御 */
.p-menu__main-item figure {
    max-width: 350px;
    margin: 0 auto;
}

/* 2. 縦に並べるその他のくるみパン */
.p-menu__sub-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto 30px;
}

/* figureタグに最大幅を設定し、wrapperのサイズを制御 */
.p-menu__sub-item {
    text-align: center;
    width: 100%;
    max-width: 250px;
}

figcaption {
  font-size: 1.1rem;
  font-weight: 500;
  /* margin-top: 15px; */
}

/* 3. その他のパンのリスト */
.p-menu__other-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* --------------------------------------
   SHOP INFOセクション
   -------------------------------------- */

#shop-info {
  background-image: url(../images/kurumipan_silhouette_white.svg), url(../images/background_about-shopinfo.jpg);
  background-size: 9rem, auto;
  background-repeat: no-repeat, repeat;
  background-position: 50% 2.5rem;
}

#shop-info h2 {
  padding-top: 0;
}

.p-shop-info__wrapper {
  text-align: center;
}

#shop-info iframe {
  display: block;
  margin: 40px auto 30px;
  width: 90%;
  max-width: 600px;
  height: 300px; /* モバイルでは少し低く調整 */
  border: 2px solid #f29999;
  /* border-radius: 10px; */
}

.p-shop-info__details {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 5%;
}

.p-shop-info__list {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 10px 20px;
  text-align: left;
  margin-bottom: 10px;
}

.p-shop-info__list dt {
  font-weight: 700;
}

.p-shop-info__note,
.p-shop-info__access-text {
  margin-top: 5px;
  text-align: left;
}

.p-shop-info__heading-access {
  margin-top: 25px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
}

/* --------------------------------------
   フッター
   -------------------------------------- */
footer {
  background-color: #f29999;
  color: #ffffff;
  text-align: center;
  padding: 15px 0;
}

/* ======================================
   メディアクエリ (PC/Tablet以上)
   ====================================== */
@media (min-width: 768px) {
  .p-header {
    padding: 1.5rem 5%;
  }
  .p-header__logo img {
    width: 220px; /* PCで大きく */
  }

  /* --- ナビゲーション (PC) --- */
  .p-header__toggle {
    display: none;
  }
  .p-header__nav {
    position: static;
    height: auto;
    background-color: transparent;
    transform: translateX(0);
    transition: none;
    overflow-y: visible;
  }
  .is-open .p-header__nav {
    /* PCでメニューが開いた状態の制御を無効化 */
    transform: translateX(0);
  }
  .p-header__nav-list {
    flex-direction: row;
    justify-content: flex-end;
    height: auto;
    font-size: 1.1rem;
    gap: 2.5rem;
    padding-top: 0;
  }

  /* ヒーロー画像の高さ調整 */

  main {
  padding-top: 10.5rem;
}

  .p-hero {
    height: 90vh;
  }

  /* NEWSリストの日付幅調整 */
  .p-news__list time {
    width: 120px;
  }

  /* MENUセクションのPCレイアウト（グリッド利用） */
  .p-menu__container {
    display: grid;
    /* 大きなくるみパン(1.5fr)とサブアイテム(1fr)の2カラム構成 */
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    /* padding: 30px 5%; */
    align-items: center;
  }

  /* 1. 大きなベースのくるみパン (PCでは左カラムに配置) */
  .p-menu__main-item {
    grid-column: 1 / 2;
    margin-bottom: 0;
  }

  
  /* 2. 横に並べるその他のくるみパン (PCでは右カラムの上部に配置) */
  .p-menu__sub-items {
    grid-column: 2 / 3;
    /* 横並びにする */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    margin: 0;
    gap: 40px;
  }

  .p-menu__sub-item {
    width: 80%; /* 2列表示 */
    max-width: none;
  }

  /* 3. その他のパンのリスト (PCでは2カラム全体に広げる) */
  .p-menu__other-list {
    grid-column: 1 / 3;
    padding-top: 40px;
    border-top: 1px solid #bf5e3b;
    margin-top: 40px;
  }

  /* SHOP INFOのレイアウト調整 */
  .p-shop-info__wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 40px;
    align-items: flex-start;
  }
  #shop-info iframe {
    width: 50%;
    height: 400px;
    margin: 40px 0;
    max-width: none;
  }
  .p-shop-info__details {
    width: 50%;
    margin: 40px 0;
    padding: 0;
    max-width: none;
  }

  #shop-info {
    background-position: 50% 7.7%;
  }
}

/* .p-menu__image-wrapper のタップ切り替え対策 */
/* @media (hover: none) {
  .p-menu__image--cross {
    opacity: 1;
  }
} */