@charset "UTF-8";

/* 共通部分
------------------------------- */
html {
  font-size: 100%;
}
body {
  font-family:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
  line-height: 1.7;
  color: #333;
  overflow-x: hidden; /* スマホ時のメニューはみ出しによる横スクロール防止 */
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* レイアウト */
.wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem;
}
.align-center {
  text-align: center;
}

/* 見出し */
.font-heading {
  font-weight: normal;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.heading-home {
  line-height: 1.5;
  text-align: center;
  color: #8b2d24;
}

/* タイトル下の余白や位置の調整例 */
h3.heading-home {
  text-align: center; /* 中央寄せにする場合 */
  margin-top: 40px; /* 上の要素との余白 */
  margin-bottom: 20px; /* 画像一覧（grid_2）との余白 */
}

/* ボタン */
.btn {
  display: inline-block;
  font-size: 20px;
  background-color: #8b2d24;
  color: #fff;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: 0.5s;
  margin-top: 20px;
}
.btn:hover {
  background-color: #0090aa;
}

/* ===================================================
    パンくずリスト全体のスタイルと位置指定
   =================================================== */
.breadcrumb ul {
  list-style: none; /* 箇条書きの点を消す */
  padding: 0;
  display: flex; /* 横並びにする */
  flex-wrap: wrap; /* 画面が狭くなったら折り返す */
  font-size: 13px; /* PCでの文字の大きさ（少し小さめが上品です） */
  color: #666;

  /* 【位置の指定】 */
  margin: 20px auto; /* 上下に20pxの余白、左右は中央寄せの準備 */
  width: 100%; /* 横幅いっぱいに広げる */
  max-width: 1100px; /* ★重要：お使いのサイトの「本文の最大幅」に合わせて数値を変更してください */
  padding-left: 25px; /* 画面の端に文字がくっつかないための左右の余白 */
  padding-right: 20px;
}

/* 各項目のスタイル */
.breadcrumb li {
  display: flex;
  align-items: center;
}

/* 項目と項目の間の「>」 */
.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 8px; /* > の左右の隙間 */
  color: #aaa;
}

/* リンクの装飾 */
.breadcrumb li a {
  color: #333; /* リンクの色（お好みの色に変えてください） */
  text-decoration: none;
}

.breadcrumb li a:hover {
  text-decoration: underline; /* マウスを載せたときに下線を出す */
}

/* ===================================================
  　スマートフォン用の設定（画面幅が768px以下の場合）
   =================================================== */
@media screen and (max-width: 768px) {
  .breadcrumb ul {
    margin: 15px auto; /* スマホ時は上下の余白を少し狭くする */
    font-size: 12px; /* スマホに合わせて文字を少し小さく */
    padding-left: 20px; /* スマホの画面端からの余白（15px〜20pxが一般的） */
    padding-right: 15px;
  }
}

/* ===================================== */
/* 🚀 ヘッダー共通設定 */
/* ===================================== */
.page-header {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}
.header-row-top {
  position: relative;
  z-index: 10;
}
.logo {
  width: 240px;
}
.insta-icon {
  width: 20px;
  vertical-align: middle;
}

/* お問い合わせ（PC・スマホ共通の基本設定）
------------------------------- */
.home-annai {
  max-width: 916px;
  background-color: #fdfbf7; /* 🌟背景色を少し明るく透明感のあるアイボリーに変更しました */
  border: 1px solid #f3ede0; /* 🌟箱がぼやけないよう、ごく薄い輪郭線を足して上品にしました */
  border-radius: 20px;
  padding: 25px 38px 30px; /* 上の余白を少し広げてバランスを整えました */
  text-align: center; /* 🌟1. 箱の中の文字やボタンをすべて「センター合わせ」にします */
}
.heading-home {
  margin: 0 0 20px 0; /* 見出しの下に少し隙間をあけます */
}
.home-annai p {
  margin: 8px 0; /* 行と行の間がギュッと詰まらないよう、適度な隙間をあけます */
}

/* ===================================== */
/* 💻 PC版レイアウトでの追加設定 (769px以上) */
/* ===================================== */
@media (min-width: 769px) {
  .home-annai {
    margin: 30px auto 20px; /* PCでの上下の箱との間隔 */
  }
}

/* ===================================== */
/* 📱 スマホ版レイアウトでの追加設定 (768px以下) */
/* ===================================== */
@media (max-width: 768px) {
  .home-annai {
    margin: 45px 15px; /* 🌟2. スマホの時、枠の外側の上下余白を45pxに増やし、左右にも15pxの隙間を作ります */
    padding: 24px 20px 30px; /* スマホの画面幅に合わせて箱の中の余白をすっきり調整します */
  }
}

/* フッター */
.page-footer {
  background-color: #f1e2be;
  padding: 16px;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  list-style: none;
}
.footer-nav a {
  color: #432;
}
.footer-nav a:hover {
  color: #0bd;
}
.copyright {
  text-align: center;
  margin-top: 12px;
}

/* ===================================== */
/* 🛠️ 検索・プルダウン 共通設定 */
/* ===================================== */
button.gsc-search-button,
.gsc-search-button-v2 {
  background-color: #8b2d24 !important;
  border: 1px solid #8b2d24 !important;
  border-radius: 0 5px 5px 0 !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 15px !important;
}
.gsc-search-button-v2 svg {
  fill: #ffffff !important;
  width: 20px !important;
  height: 20px !important;
}
.gsc-control-cse {
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.gsc-input-box {
  height: 40px !important;
  border: 1px solid #ccc !important;
  border-radius: 5px 0 0 5px !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
}
input.gsc-input {
  height: 40px !important; /* 38px から 40px にして、外枠と高さを完全に一致させます */
  line-height: 40px !important; /* 🌟追加：文字自体の高さを40pxに指定して、真ん中に固定します */
  font-size: 14px !important;
  text-indent: 5px !important;
  background: none !important;
}

/* ===================================== */
/* 💻 PC版レイアウト (769px以上) */
/* ===================================== */
@media (min-width: 769px) {
  .header-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }
  .main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    list-style: none;
    margin: 0;
  }
  .main-nav a {
    color: #432;
  }
  .main-nav a:hover {
    color: #0bd;
  }
  .header-row-bottom {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
  .utility-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 0;
  }
  .link-dropdown-container {
    order: 1;
    width: 240px;
    margin-right: 15px;
  }
  .search-box-container {
    order: 2;
    width: 320px;
  }
  #jumpMenu {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 10px;
  }
  .grid_1 {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
  }
  .grid_2 {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
  }
  .item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    width: 100%;
  }
  .grid_2 .item img {
    border-radius: 0px;
  }
  .item p {
    font-size: 0.875rem;
    margin-top: 2px;
  }
  .menu-btn,
  .header-overlay {
    display: none !important;
  }
}

/* ===================================== */
/* 📱 スマホ版レイアウト (768px以下) */
/* ===================================== */
@media (max-width: 768px) {
  /* 🌟「カテゴリー」はスマホ時も2列のまま維持 */
  .grid_1 {
    display: grid;
    gap: 1.5rem 1rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    margin-bottom: 30px;
  }

  /* 「最近アップした作品」はスマホ時に2列（repeat(2, 1fr)）に変更 */
  .grid_2 {
    display: grid;
    gap: 1rem 0.5rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    margin-bottom: 30px;
  }

  /* 🌟追加：スマホのとき、最近アップした作品の画像と文字の隙間をギリギリまで狭く（2pxに）します */
  .grid_2 .item p {
    margin-top: 2px;
  }

  .item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    width: 100%;
  }
  .grid_2 .item img {
    border-radius: 0px;
  }
  .item p {
    font-size: 0.875rem;
    margin-top: 4px;
  }

  /* 検索・プルダウン */
  .utility-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 15px 0;
  }
  /* 検索窓・プルダウンが入っているコンテナの下部余白を詰める */
  .utility-container {
    margin-bottom: 5px !important; /* お好みで 0px 〜 10px に調整してください */
  }
  .link-dropdown-container,
  .search-box-container {
    width: 100% !important;
    margin-bottom: 12px;
  }
  .link-dropdown-container {
    order: 1;
  }
  .search-box-container {
    order: 2;
  }

  /* Google検索ボックス自体の下部余白も念のため詰める場合 */
  .search-box-container {
    margin-bottom: 0px !important;
  }

  #jumpMenu {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    -webkit-appearance: menulist;
    appearance: menulist;
  }

  /* ==========================================================================
    📱 スマホ版ハンバーガーメニュー＆ドロワーナビゲーション（バグ完全解消版）
   ======================================================================== */

  /* スマホ：メニュー本体を背景より手前に表示 */
  .header-row-top {
    z-index: 999;
  }

  /* ☰ メニューを開くボタン */
  .menu-btn {
    display: block;
    position: fixed;
    top: 23px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #8b2d24; /* 工房カラーの赤茶色 */
    border: none;
    border-radius: 4px;
    z-index: 1000;
    cursor: pointer;
  }

  .menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 6px auto;
    transition: 0.3s;
  }

  /* 📦 ドロワーナビゲーション本体（背景は100%透けない黒） */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #1a1a1a !important; /* 透けない深い黒（炭黒） */
    display: flex;
    flex-direction: column;
    padding: 80px 24px 20px;
    gap: 15px;
    list-style: none;
    transition: 0.4s ease;
    z-index: 999;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.4);
  }

  /* 🔗 メニュー内のリンク文字（font-headingのグレー設定を完全に打ち消す） */
  .main-nav.font-heading li a,
  .main-nav li a,
  .main-nav a {
    color: #ffffff !important; /* 💡【最優先】何がなんでも完全な白（#ffffff）にします */
    opacity: 1 !important; /* 💡【最優先】絶対に透けさせず、不透明度100%にします */
    font-weight: 900 !important; /* 💡【最優先】✖やTOPと同じように、限界まで太くハッキリさせます */
    font-size: 18px !important;
    display: block !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #333333 !important; /* 背景に馴染む境界線 */
    letter-spacing: 0.08em !important; /* 文字の間隔を広げて白を際立たせる */
    transition: color 0.3s ease !important;
    filter: none !important;
  }

  /* メニューの文字をタップした瞬間の色の変化 */
  .main-nav.font-heading li a:active,
  .main-nav a:active {
    color: #ebdcc5 !important; /* 触れた瞬間だけ優しい薄茶色 */
  }

  /* 📸 メニュー内のインスタアイコンだけを真っ白にする */
  .main-nav .insta-icon {
    filter: invert(1) brightness(2) !important; /* 黒い画像を綺麗に白反転 */
    width: 24px !important;
    height: auto !important;
    display: inline-block !important;
  }

  /* メニューが開いた時 */
  body.is-open .main-nav {
    right: 0;
    z-index: 9999;
  }

  body.is-open .header-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  /* ハンバーガーアイコンのアニメーション（×印に変化） */
  body.is-open .menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.is-open .menu-btn span:nth-child(2) {
    opacity: 0;
  }
  body.is-open .menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================================================
    開院祝いページ：案内板（グリッド1）のリンクデザイン（修正版）
   ========================================================================== */

/* 1. リンク全体の見た目と文字色の設定 */
.grid_1 .item a {
  text-decoration: none; /* 文字の下線を消します */
  color: #432 !important; /* 普段の文字色（落ち着いた茶墨色）を最優先にします */
  display: block; /* 画像と文字の全体を押せるようにします */
}

/* 2. 画像そのものの初期設定（動きの仕込み） */
.grid_1 .item a img {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease !important; /* ふわっと動く効果を最優先 */
}

/* 3. マウスをのせた時（hover）と、クリックした瞬間（active）の文字色の変化 */
.grid_1 .item a:hover,
.grid_1 .item a:active {
  color: #8b2d24 !important; /* 文字色をロゴと同じ「赤茶色」に変化させます */
}

/* 4. マウスをのせた時（hover）の画像の変化 */
.grid_1 .item a:hover img {
  opacity: 0.75 !important; /* 画像をほんのり透明にして、パッと明るくなったように見せます */
  transform: translateY(
    -5px
  ) !important; /* 画像を上に5ピクセルだけふわっと浮き上がらせます */
}

/* ==========================================================================
    お祝い特設ページ共通：作品写真（grid_2）の並び数設定（トップページは維持）
   ========================================================================== */

/* 📱 スマホ画面（初期状態）：横に「1枚」大きく見せる設定 */
.grid_2.iwai-grid {
  grid-template-columns: repeat(
    1,
    1fr
  ) !important; /* スマホでは主役の写真を1枚ドーンと配置 */
  gap: 3rem 0; /* 縦に並ぶ写真と写真の隙間を、見やすくゆったりあけます */
}

/* 💻 PC画面（769px以上）：横に「3枚」綺麗に並べる設定 */
@media (min-width: 769px) {
  .grid_2.iwai-grid {
    grid-template-columns: repeat(
      3,
      1fr
    ) !important; /* PCではメリハリをつけて3枚並びに */
    gap: 2.5rem 1.5rem; /* 上下の隙間を調整 */
  }
}

/* ==========================================================================
    開院祝いページ専用：各エリアを美しい「額縁（展示ボックス）」で囲む設定
   ========================================================================== */

/* 🖼️ 各医院のエリアを包む額縁（ボックス）の共通デザイン */
.category-box {
  background-color: #ffffff !important; /* 背景は清潔感のある白のまま */
  border: 1px solid #e0dbd5 !important; /* 🌟上品で細い「薄い木陰グレー」の線でぐるっと囲みます */
  border-radius: 8px; /* 四隅をほんの少しだけ優しく丸めます */
  margin: 0 auto 50px auto; /* ボックスとボックスの間に50pxのゆったりした隙間をあけます */
  padding: 40px 20px 30px 20px; /* 額縁の内側に心地よい余白を作ります */
  max-width: 1100px; /* PC画面で広がりすぎないように制限 */
  width: 92%; /* スマホ画面でも両端に程よい余白を作って収めます */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02); /* 写真を引き立てるため、本当にごく薄い影を敷きます */
}

/* 💻 PC画面（769px以上）での額縁内の微調整 */
@media (min-width: 769px) {
  .category-box {
    padding: 50px 40px 40px 40px; /* PCでは内側の余白をより贅沢に広げます */
    margin-bottom: 70px; /* PCでは次のボックスとの間隔を70pxにします */

    /* 🌟ここを追加：上のカテゴリーリンク画像との間にPC用の余白を作ります */
    margin-top: 70px;
  }
}

/* ==========================================================================
    各医院ボックス内のテキスト・ボタンの共通スタイル（インラインスタイルからの移行 2026/07/14）
   ========================================================================== */

/* 各医院の見出し（h3） */
.category-box .category-heading {
  width: 100% !important;
  margin-left: 0 !important;
  margin-bottom: 20px !important;
}

/* 各医院の説明文（p） */
.category-box .category-info p {
  color: #666 !important;
  font-size: 0.95rem !important;
  margin-bottom: 25px !important;
  line-height: 1.6 !important;
}

/* 各医院のボタン（a） */
.category-box .category-info .btn {
  margin: 0 !important;
}

/* ==========================================================================
    開院祝いページ専用：エリアごとの見出しの差別化
   ========================================================================== */

/* 🌟 開院祝いページ専用の新しい見出し（h3）のデザイン */
.category-heading {
  font-size: 1.35rem; /* 文字の大きさを少し存在感アップ */
  color: #432 !important; /* 落ち着いた茶墨色 */
  margin: 0 auto 30px auto; /* 下の画像との間に隙間をあける */
  padding-left: 15px; /* 左側の縦線と文字の間の隙間 */
  border-left: 6px solid #8b2d24 !important; /* 👈 左側にロゴと同じ「赤茶色」の太い縦線を入れて目立たせます */
  text-align: left !important; /* 左揃えにして縦線を際立たせます */
  max-width: 1100px; /* PC画面で左に寄りすぎないよう枠幅を制限 */
  width: 90%; /* スマホ画面でも両端に程よい余白を作ります */
}

/* ==========================================================================
    究極にすっきりした額縁スタイル用の追加設定
   ========================================================================== */
.category-flex {
  display: flex;
  flex-direction: column; /* 📱スマホでは縦並び */
  gap: 20px;
}

.category-thumb {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.category-thumb img {
  width: 100%;
  max-width: 300px; /* 📷写真が大きくなりすぎないように制限 */
  height: auto;
  border-radius: 6px;
}

.category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 💻 PC画面（769px以上）では左右に綺麗に並べる */
@media (min-width: 769px) {
  .category-flex {
    flex-direction: row; /* 横並びにする */
    gap: 40px; /* 写真と文字の間の隙間 */
  }
  .category-thumb {
    width: 300px; /* 写真の横幅を固定 */
  }
  .category-info {
    text-align: left; /* PCでは文字やボタンを左揃えにしてスッキリ */
  }
}

/* ==========================================================================
    ページトップに戻るボタン（固定表示）
   ========================================================================== */
.pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background-color: #8b2d24 !important; /* 工房カラーの赤茶色 */
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 50px; /* 丸いかわいいボタンにします */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.pagetop:hover {
  background-color: #432 !important; /* マウスを乗せると焦げ茶色に変わります */
  transform: translateY(-3px); /* 少し上にピョコッと浮きます */
}

/* 💻 PC画面では少しだけ右下の位置を広げてゆったりさせます */
@media (min-width: 769px) {
  .pagetop {
    right: 30px;
    bottom: 30px;
    padding: 15px 18px;
  }
}

/* ==========================================================================
    📱 スマホで文字サイズを限界まで大きくし、1行に収める究極の調整
   ========================================================================== */
@media (max-width: 768px) {
  .category-box .btn {
    font-size: 1rem !important; /* 🚀 文字をもう一回り大きく（元の100%の大きさに復活！） */
    letter-spacing: -0.03em !important; /* ✍️ 文字と文字の間隔をほんのわずかに引き締め、1行に収めます */
    padding-left: 2px !important; /* ✂️ 左右の余白をほぼゼロ（2px）にして文字スペースを最大化 */
    padding-right: 2px !important;
    width: 100% !important; /* ボタンの横幅を枠いっぱいに広げます */
    max-width: 320px;
    margin: 0 auto !important;
    display: block;
    text-align: center;
  }
}

/* --- パターン3: すっきり線囲み --- */
.page-title-area {
  text-align: center;
  padding: 35px 20px;
  margin: 20px auto 40px;
  max-width: 900px; /* 線の長さを少し中央に寄せる */
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.page-title-area h2 {
  font-size: 1.7rem;
  color: #432;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-title-area p {
  font-size: 0.95rem;
  color: #666;
}

/* スマートフォン画面での調整 */
@media screen and (max-width: 767px) {
  .page-title-area {
    margin-top: 0px; /* 💡 上の外側余白をゼロにして上に詰めました */
    padding-top: 5px; /* 💡 上の内側余白を25pxから10pxへギュッと狭くしました */
    padding-bottom: 20px; /* 下側の余白バランス */
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
    border-top: none; /* スマホでは上線を消す */
  }
  .page-title-area h2 {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
    📦 全ページ共通：最下部フッター前メニュー（パソコン用の基本設定）
   ========================================================================== */
.footer-guide-area {
  text-align: center;
  margin: 60px auto 10px; /* 上に60px、下に40pxの余白 */
  padding-top: 40px; /* 点線から文字までの余白 */
  border-top: 1px dashed #ccc; /* 区切りの点線 */
  max-width: 600px; /* パソコンで広がりすぎないよう制限 */
}

.footer-guide-area .guide-title {
  font-weight: bold;
  color: #432;
  margin-bottom: 20px;
}

.footer-guide-area .guide-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* このエリア専用のボタン調整（他のページのボタンに悪影響を与えない設定） */
.footer-guide-area .guide-btn {
  margin: 0 !important;
  background-color: #432 !important;
  color: #fff !important;
  font-size: 1rem !important; /* 🚀 文字サイズを少し大きく（0.9remから1remへ） */
  padding: 14px 28px !important; /* 🚀 ボタンの余白を広げて大きく見せる（上下14px、左右28px） */
  width: auto !important;
  max-width: none !important;
  letter-spacing: normal !important;
  border-radius: 6px !important; /* 角丸も少しゆったりさせる場合にお好みで */
}

/* ==========================================================================
    📱 スマホ表示の時の余白調整（画面幅768px以下）
   ========================================================================== */
@media screen and (max-width: 768px) {
  .footer-guide-area {
    margin-top: 35px; /* 1. 点線の上の余白を少し狭くしました（元の60pxから35pxへ） */
    padding-top: 50px; /* 2. ボーダー（点線）と文字の間の余白を少し広くしました（40pxから50pxへ） */
    padding-left: 4%; /* 3. 左右の余白をcategory-boxと同じ（4%）に広げました */
    padding-right: 4%; /* 3. 左右の余白をcategory-boxと同じ（4%）に広げました */
  }

  /* スマホの時は、3つのボタンを縦並び（または綺麗に並ぶよう）幅を少し広めに自動調整 */
  .footer-guide-area .guide-btn {
    flex: 1 1 140px; /* スマホ画面に合わせてボタンが柔軟にフィットします */
    max-width: 280px !important;
  }
}

@media screen and (max-width: 768px) {
  .footer-guide-area .guide-title {
    white-space: nowrap; /* 自動改行を防いで1行に固定する */
    font-size: 0.95rem; /* 🚀 文字サイズを大きくする（0.85remからアップ） */
    letter-spacing: -0.02em; /* ✍️ 文字間隔をほんの少し詰めて、1行に収まる限界まで文字を太く大きくする */
    text-align: center; /* 中央揃えを維持 */
    width: 100%; /* 横幅をめいっぱい使う */
  }
}

/* ==========================================================================
  📱 スマホ画面でのフッターガイドボタンの調整
   ========================================================================== */
@media screen and (max-width: 768px) {
  .footer-guide-area .guide-btn {
    font-size: 0.9rem !important; /* スマホでは文字サイズを少しスッキリさせる */
    padding: 10px 16px !important; /* スマホ用の適切な余白に戻す */
  }
}

/* ===================
    最近アップした作品
   =================== */
h3.heading-recent {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px; /* ← お好みの数値に変更できます */
  margin-bottom: 30px; /* ← お好みの数値に変更できます */
  font-size: 1.4rem;
  color: #5a4033;
}

h3.heading-recent::before,
h3.heading-recent::after {
  content: "";
  flex-grow: 1;
  max-width: 80px;
  height: 2px;
  background-color: #8c6a56;
  margin: 0 15px;
}

/* ==========================================
    個別作品紹介ページ（item-detail）のスタイル 2026/10/05
   ========================================== */

/* パンくずリスト */
.breadcrumb {
  margin: 20px auto 25px;
  max-width: 1000px;
  padding: 0 15px;
  font-size: 0.85rem;
  color: #666;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li + li::before {
  content: ">";
  margin: 0 8px;
  color: #999;
}
.breadcrumb a {
  color: #5a4033;
  text-decoration: underline;
}

/* 全体レイアウト */
.item-detail-container {
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.item-title {
  font-size: 1.6rem;
  color: #3e2723;
  border-bottom: 2px solid #8c6a56;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* 2カラムレイアウト（PC） */
.item-detail-body {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.item-gallery {
  flex: 1 1 400px; /* 左側：画像ブロック */
}

.item-info {
  flex: 1 1 400px; /* 右側：説明ブロック */
}

/* 画像エリア */
.main-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-list {
  display: flex;
  flex-wrap: wrap; /* 7枚並んだ時に自然に折り返す */
  gap: 8px;
  margin-top: 12px;
}

.thumbnail-list .thumb {
  width: calc(25% - 6px); /* 4列並び（スマホ・PCともに綺麗に収まります） */
  aspect-ratio: 1 / 1; /* 正方形に揃える */
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.2s,
    border-color 0.2s;
  border: 2px solid transparent;
}

.thumbnail-list .thumb.active,
.thumbnail-list .thumb:hover {
  opacity: 1;
  border-color: #8c6a56;
}

/* スペック表（定義リスト DL / DT / DD） */
.info-block {
  margin-bottom: 25px;
}

.info-block h2 {
  font-size: 1.15rem;
  color: #5a4033;
  margin-bottom: 12px;
  border-left: 4px solid #8c6a56;
  padding-left: 10px;
}

.spec-list {
  background-color: #faf8f5;
  border: 1px solid #e8e2d9;
  border-radius: 6px;
  padding: 10px 15px;
}

.spec-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed #e8e2d9;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  width: 130px;
  font-weight: bold;
  color: #5a4033;
  flex-shrink: 0;
}

.spec-row dd {
  margin: 0;
  color: #333;
}

.description-block p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 1em;
}

/* お問い合わせアクションエリア */
.action-box {
  background-color: #f4ede4;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
}

.action-lead {
  font-weight: bold;
  color: #4a3525;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.btn-primary {
  display: block;
  background-color: #8c6a56;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #6d503f;
}

.btn-secondary {
  display: block;
  background-color: #fff;
  color: #5a4033;
  border: 1px solid #8c6a56;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* 戻るリンク */
.back-link-box {
  margin-top: 40px;
  text-align: center;
}

.back-link {
  color: #5a4033;
  text-decoration: underline;
}

/* レスポンシブ調整（スマホ表示） */
@media (max-width: 600px) {
  .spec-row {
    flex-direction: column;
  }
  .spec-row dt {
    width: 100%;
    margin-bottom: 3px;
  }
}

/* ========================================
  工房案内ページ
======================================== */

.koubou-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  color: #604b3d;
  box-sizing: border-box;
}

.koubou-page *,
.koubou-page *::before,
.koubou-page *::after {
  box-sizing: border-box;
}

.koubou-intro {
  margin-bottom: 48px;
  text-align: center;
}

.koubou-eyebrow {
  margin: 0 0 10px;
  color: #638064;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.koubou-intro h2 {
  margin: 0;
  color: #49664b;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.koubou-heading-line {
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px auto;
  background: #8b9b70;
}

.koubou-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.koubou-stories {
  display: grid;
  gap: 28px;
}

.koubou-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: #fdfbf7;
  border: 1px solid #e5e0d2;
  border-radius: 6px;
}

.koubou-story-reverse .koubou-photo {
  order: 2;
}

.koubou-story-reverse .koubou-story-text {
  order: 1;
}

.koubou-photo {
  min-width: 0;
  min-height: 240px;
  background: #eeece2;
}

.koubou-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.koubou-story-text {
  align-self: center;
  padding: 32px;
  line-height: 1.9;
}

.koubou-story-text h3 {
  margin: 0 0 18px;
  color: #49664b;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}

.koubou-story-text p {
  margin: 0 0 14px;
  font-size: 15px;
}

.koubou-story-text p:last-child {
  margin-bottom: 0;
}

.koubou-story-text a {
  color: #49664b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.koubou-contact {
  margin-top: 48px;
  padding: 36px 24px;
  text-align: center;
  background: #f0f0d8;
  border-top: 3px solid #638064;
  border-radius: 6px;
}

.koubou-contact h2 {
  margin: 0 0 8px;
  color: #49664b;
  font-size: 23px;
  font-weight: 600;
}

.koubou-contact-lead {
  margin: 0 0 24px;
  font-size: 15px;
}

.koubou-contact-details {
  line-height: 1.9;
}

.koubou-contact-details p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

/* スマートフォン：写真と文章を縦に並べる */
@media screen and (max-width: 768px) {
  .koubou-page {
    padding: 32px 16px 44px;
  }

  .koubou-intro {
    margin-bottom: 30px;
  }

  .koubou-intro h2 {
    font-size: 26px;
  }

  .koubou-lead {
    font-size: 15px;
  }

  .koubou-stories {
    gap: 22px;
  }

  .koubou-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .koubou-story-reverse .koubou-photo,
  .koubou-story-reverse .koubou-story-text {
    order: initial;
  }

  .koubou-photo {
    min-height: 0;
  }

  .koubou-photo img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .koubou-story-text {
    padding: 24px 20px;
  }

  .koubou-story-text h3 {
    margin-bottom: 12px;
    font-size: 19px;
  }

  .koubou-contact {
    margin-top: 32px;
    padding: 28px 16px;
  }

  .koubou-contact h2 {
    font-size: 21px;
  }
}

/* ==========================================================================
  ご注文方法（ステップ）用共通スタイル
   ========================================================================== */
.flow-container {
  margin-top: 20px;
}

/* ページタイトル */
.page-title {
  font-size: 1.6rem;
  color: #3e2723;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8c6a56;
  text-align: center;
}

/* 各ステップのカード */
.flow-card {
  background: #ffffff;
  border: 1px solid #ddd;
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* ステップのタイトル見出し */
.flow-card-title {
  background-color: #f8f8f8;
  padding: 12px 15px;
  margin: -20px -20px 15px -20px;
  font-size: 1.05em;
  border-bottom: 1px solid #ddd;
  color: #333333;
  border-radius: 6px 6px 0 0;
}

/* 補足用カラーボックス（ステップ1など） */
.flow-card-subbox {
  background-color: #fff8f5;
  padding: 15px;
  border-radius: 4px;
  line-height: 1.8;
  margin-top: 15px;
  border-left: 3px solid #a04810;
}

/* 共通の赤文字強調・テキスト配置 */
.text-red {
  color: #ff0000;
}
.text-red-bold {
  color: #ff0000;
  font-weight: bold;
}
.text-center {
  text-align: center;
}
.link-toiawase-large {
  font-size: 1.2em;
  font-weight: bold;
  color: #a04810;
  text-decoration: underline;
}

/* ==========================================================================
  送料・配送ページ用スタイル（youpack_2026）
   ========================================================================== */

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #666;
}
.breadcrumb a {
  color: #432;
  text-decoration: underline;
}

/* ページタイトル */
.page-title {
  font-size: 1.6rem;
  color: #3e2723;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8c6a56;
  text-align: center;
}

/* カード型レイアウト（外枠なし・すっきりしたボックス） */
.card-box {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.card-title {
  font-size: 1.15rem;
  color: #3e2723;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* 取扱サイズカード内のフレックスレイアウト */
.size-info-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.size-info-img {
  flex: 0 0 280px;
  max-width: 100%;
  text-align: center;
}

.size-info-img img {
  max-width: 100%;
  height: auto;
}

.size-info-text {
  flex: 1;
  min-width: 250px;
}

.size-info-lead {
  font-size: 1.1em;
  font-weight: bold;
  color: #a04810;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.5;
}

.size-info-desc {
  margin: 0;
  line-height: 1.8;
  color: #333;
}

/* 運賃表レスポンシブ対応 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 15px;
}
btn .shipping-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

.shipping-table th,
.shipping-table td {
  padding: 10px 8px;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
}

.shipping-table th {
  background-color: #f5f0eb;
  color: #3e2723;
  font-weight: bold;
}

.shipping-table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* 作品例カード（例1〜例3） */
.example-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.example-img {
  flex: 0 0 250px;
  max-width: 100%;
  text-align: center;
}

.example-img img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 4px;
}

.example-content {
  flex: 1;
  min-width: 250px;
}

.example-title {
  font-weight: bold;
  color: #3e2723;
  margin-top: 0;
  margin-bottom: 8px;
}

.example-calc {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.6;
}

.text-red {
  color: #ff0000;
  font-size: 0.9em;
}

.badge-size {
  background-color: #fff0e8;
  padding: 8px 12px;
  font-weight: bold;
  color: #a04810;
  border-radius: 4px;
  display: inline-block;
  margin-top: 8px;
}

.table-scroll-note {
  font-size: 0.88rem;
  color: #666;
  margin-top: 10px;
}

/* レスポンシブ (768px以下) */
@media screen and (max-width: 768px) {
  .size-info-container,
  .example-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .size-info-img,
  .example-img {
    width: 100%;
    flex: 0 0 auto;
  }
  .shipping-table th,
  .shipping-table td {
    padding: 8px 5px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
  特定商取引法に基づく表記ページ用スタイル（houritu）
   ========================================================================== */

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}
.breadcrumb a {
  color: #432;
  text-decoration: underline;
}

/* ページタイトル・セクションタイトル */
.page-title {
  font-size: 1.6rem;
  color: #3e2723;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8c6a56;
  text-align: center;
}

/* 外枠なしのカード型ボックス */
.tokuchu-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 25px;
}

/* 特定商取引法テーブル（dl/dt/dd 形式によるレスポンシブ対応） */
.law-dl {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.law-dl dt {
  width: 25%;
  padding: 14px 12px;
  font-weight: bold;
  background-color: #f8f5f2;
  color: #3e2723;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.law-dl dd {
  width: 75%;
  margin: 0;
  padding: 14px 15px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
  line-height: 1.7;
}

/* 薄い背景の注意書き・補足ボックス */
.law-subbox {
  background-color: #fff8f5;
  border-left: 4px solid #a04810;
  padding: 16px;
  border-radius: 4px;
  margin-top: 15px;
  line-height: 1.8;
}

/* 各種ユーティリティクラス */
.text-red {
  color: #d32f2f;
}
.text-bold {
  font-weight: bold;
}
.text-center {
  text-align: center;
}

/* スマホ表示の調整 (768px以下) */
@media screen and (max-width: 768px) {
  .page-title {
    font-size: 1.3rem;
  }
  .tokuchu-card {
    padding: 16px;
    margin-bottom: 20px;
  }
  /* スマホでは縦並びにして見やすく展開 */
  .law-dl dt,
  .law-dl dd {
    width: 100%;
  }
  .law-dl dt {
    border-bottom: none;
    padding-bottom: 6px;
    background-color: #f5ece5;
  }
  .law-dl dd {
    padding-top: 6px;
    padding-bottom: 16px;
  }
}

/* ==========================================================================
  お支払い方法についてページ用スタイル（osiharai）
   ========================================================================== */

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}
.breadcrumb a {
  color: #432;
  text-decoration: underline;
}

/* ページタイトル */
.page-title {
  font-size: 1.6rem;
  color: #3e2723;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8c6a56;
  text-align: center;
}

/* セクション見出し */
.section-title {
  font-size: 1.25rem;
  color: #3e2723;
  border-left: 4px solid #a04810;
  padding-left: 10px;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* 外枠なしのカード型ボックス */
.card-box {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 25px;
  line-height: 1.8;
  color: #333333;
}

/* 銀行一覧などのバッジ・タグ風スタイル */
.bank-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
}
.bank-badge {
  background-color: #f5f0eb;
  color: #3e2723;
  border: 1px solid #dcd6ce;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
}

/* 代金引換などの詳細ボックス */
.fee-box {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* 補足用ハイライトボックス（先払い等の理由欄） */
.info-subbox {
  background-color: #fff8f5;
  border-left: 4px solid #a04810;
  padding: 18px;
  border-radius: 4px;
  margin-top: 15px;
  line-height: 1.8;
}

/* テキスト装飾クラス */
.text-red {
  color: #d32f2f;
}
.text-bold {
  font-weight: bold;
}
.note-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

/* スマホ表示の調整 (768px以下) */
@media screen and (max-width: 768px) {
  .page-title {
    font-size: 1.3rem;
  }
  .card-box {
    padding: 16px;
    margin-bottom: 20px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .bank-list {
    flex-direction: column;
    gap: 6px;
  }
  .bank-badge {
    text-align: center;
  }
}

/* ==========================================================================
  プライバシーポリシーページ用スタイル（privacy）
   ========================================================================== */

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}
.breadcrumb a {
  color: #432;
  text-decoration: underline;
}

/* ページタイトル */
.page-title {
  font-size: 1.6rem;
  color: #3e2723;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8c6a56;
  text-align: center;
}

/* 外枠なしのカード型ボックス */
.policy-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 25px;
  line-height: 1.8;
  color: #333333;
}

/* プライバシーポリシーの見出し */
.policy-heading {
  font-size: 1.25rem;
  color: #3e2723;
  border-left: 4px solid #a04810;
  padding-left: 10px;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* スマホ表示の調整 (768px以下) */
@media screen and (max-width: 768px) {
  .page-title {
    font-size: 1.3rem;
  }
  .policy-card {
    padding: 16px;
    margin-bottom: 20px;
  }
  .policy-heading {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
  お問い合わせページ用スタイル（toiawase.php 完全版）
   ========================================================================== */

/* ページタイトル */
.page-title {
  font-size: 1.6rem;
  color: #3e2723;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8c6a56;
  text-align: center;
}

/* ご案内・注意点ボックス（カード型） */
.toiawase-notice-card {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.toiawase-notice-header {
  background-color: #fff0e8;
  padding: 12px 15px;
  border-bottom: 1px solid #ebd0c0;
  font-weight: bold;
  color: #333333;
}

.toiawase-notice-body {
  padding: 15px;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #333333;
}

.toiawase-notice-footer {
  background-color: #fff0e8;
  padding: 12px 15px;
  border-top: 1px solid #ebd0c0;
  font-size: 0.95rem;
}

.toiawase-notice-footer a {
  color: #ff3400;
  font-weight: bold;
  text-decoration: underline;
}

/* フォーム全体カード */
.toiawase-form-card {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.toiawase-form-section-title {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #a04810;
  color: #333333;
}

/* フォームグループ */
.toiawase-form-group {
  margin-bottom: 20px;
}

.toiawase-form-group-gray {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
}

.toiawase-form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333333;
}

/* 入力コントロール */
.toiawase-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.toiawase-input-sm {
  max-width: 300px;
}

.toiawase-input-md {
  max-width: 400px;
}

.toiawase-input-postal {
  max-width: 150px;
}

.toiawase-input-budget {
  width: 120px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.toiawase-textarea {
  resize: vertical;
}

.toiawase-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toiawase-select {
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* チェックボックスラベル */
.toiawase-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333333;
}

.toiawase-checkbox-input {
  margin-top: 3px;
  margin-right: 8px;
}

/* スマホ用案内ボックス */
.toiawase-mobile-alert {
  background-color: #fff0e8;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #333333;
}

/* 事前検討事項メモボックス */
.toiawase-memo-box {
  background-color: #fff0e8;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 25px;
  border: 1px solid #ebd0c0;
}

.toiawase-memo-title {
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333333;
}

.toiawase-memo-inner {
  font-size: 0.9em;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 4px;
}

/* 送信ボタンエリア */
.toiawase-submit-area {
  text-align: center;
  margin-top: 30px;
}

.toiawase-btn-container {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.toiawase-submit-btn {
  background-color: #a04810;
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.toiawase-submit-btn:hover {
  background-color: #82380c;
}

.toiawase-reset-btn {
  background-color: #888888;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
}

/* ユーティリティ */
.text-red {
  color: #ff3400;
}

.text-sub {
  font-size: 0.85rem;
  color: #666666;
  display: block;
  margin-top: 3px;
}

/* スマホ対応 (768px以下) */
@media screen and (max-width: 768px) {
  .toiawase-form-card {
    padding: 15px;
  }
  .toiawase-input-sm,
  .toiawase-input-md {
    max-width: 100%;
  }
}

/* ==========================================================================
    ギャラリーセクション（カード風デザイン）
   ========================================================================== */

/* ギャラリーセクション（PC・スマホ問わず常に枠線と背景を確実に表示させる） */
.gallery-section {
  background-color: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 70px; /*　広くした　2026/10/26　*/
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.gallery-heading {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dddddd;
  font-weight: bold;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.gallery-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.gallery-center {
  text-align: center;
}
.gallery-section img {
  max-width: 100%;
  height: auto;
  border: 0;
}
/* ギャラリー内の各アイテムおよびテキストの調整 */
.gallery-item {
  text-align: center;
}
.gallery-item a {
  text-decoration: none;
}
.gallery-item p {
  font-size: 0.875rem; /* 文字サイズをこれまでのページと統一 */
  color: #3e2723; /* サイト全体の統一された文字色に設定 */
  margin-top: 6px;
  margin-bottom: 0;
}
/* ギャラリーの各アイテムを下揃え（ボトム揃え）にする設定 */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* 高さを揃える */
  gap: 15px;
}

.gallery-item {
  display: flex;
  flex-direction: column; /* 縦方向のフレックスボックスにする */
  justify-content: flex-end; /* 🌟【重要】中身を下に寄せる（下揃え） */
  text-align: center;
}

.gallery-item a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* リンク内も下に寄せる */
  height: 100%;
  text-decoration: none;
}

.gallery-item img {
  margin-top: auto; /* 画像を上に押し上げ、余白を下部に逃がすことで綺麗に下揃えにする */
  margin-bottom: 6px;
}

/* 下部案内・ボタンエリア */
.bottom-guide-area {
  text-align: center;
  margin-top: 40px;
}
.order-method-text {
  font-size: 1em;
  margin-bottom: 20px;
}
.order-method-text a {
  color: #ff0000;
  font-weight: bold;
  text-decoration: underline;
}
.inquiry-bottom-text {
  margin-bottom: 30px;
}
.inquiry-bottom-text a,
.page-inquiry-link a {
  color: #ff3333;
  text-decoration: underline;
}
.page-title-area {
  text-align: center;
  margin-bottom: 30px;
}
.page-title-area h2 {
  color: #ff6600;
  font-size: 1.6em;
  margin-bottom: 15px;
}

/* ==========================================================================
    メインコンテンツ用コンテナ
    ギャラリーセクションで囲み枠を画面いっぱいにしない為に追加 
   ========================================================================== */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

/* ==========================================================================
  お問い合わせページ（toiawase.php）専用：検索窓・カテゴリー選択の非表示
   ========================================================================== */
body.page-toiawase .header-row-bottom {
  display: none !important;
}
