/* ===============================
   つまみ細工講座とキャンディ生地に関するCSS記述
================================ */


/* ===============================
   ベース設定（全体の文字・余白）
================================ */
.custom-section {
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #333;
  max-width: 960px;
  margin: auto;
  padding: 10px;
  margin-top: 0px;
}

/* ===============================
   見出し（h1, h2）
================================ */
.custom-section h1,
.custom-section h2 {
  font-size: 1.6em;
  color: #b9003e;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
  margin-top: 1.5em;
}

/* ===============================
   リスト（ul, li）
================================ */
.custom-section ul {
  padding-left: 20px;
  margin-bottom: 1.2em;
}

.custom-section li {
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.custom-section ul ul {
  margin: 0.4em 0 0.4em 1em;
}

.pinset-list li {
  margin-bottom: 1em;
  line-height: 1.6;
}

.pinset-list strong {
  color: #d94c7f;
}

.guide-index-box {
  background-color: #fffafc; /* やさしいピンク系 */
  border: 1px solid #f3d7e5;
  padding: 16px;
  border-radius: 8px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.guide-index-box h2 {
  margin-top: 0;
}


.info-box01 {
  background-color: #fff8f2; /* やさしいピンクベージュ系 */
  border-left: 4px solid #f2b8b8; /* アクセントライン（ブランドのやさしいピンクに合わせて） */
  padding: 1em 1.2em;
  margin: 1.5em 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  border-radius: 4px;
}
.info-box01 ul {
  padding-left: 1.2em;
  margin-top: 0.5em;
}
.info-box01 li {
  margin-bottom: 0.4em;
}

/* パターン①：画像＋テキスト横並び */
.cut-link {
  display: flex;
  align-items: center;
  gap: 1em; /* 少し広めに調整 */
  text-decoration: none;
  color: inherit;
}
.cut-thumb {
  width: 150px; /* 80px → 150pxに拡大 */
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

/* パターン②：画像上・テキスト下（商品紹介風） */
.cut-item {
  text-align: center;
  margin-bottom: 1.5em;
}
.cut-thumb-large {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 0.5em;
}
.cut-item p {
  font-size: 0.95rem;
  margin: 0;
}

/* パターン③：画像右・テキスト左（変化スタイル） */
.cut-link-reverse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  text-decoration: none;
  color: inherit;
}
.cut-text {
  flex: 1;
  font-size: 1rem;
}


/* ===============================
   強調スタイル（素材・技法・注釈）
================================ */
.material {
  font-weight: bold;
  color: #e27c7c;
}

.technique {
  font-weight: bold;
  color: #d94c7f;
}

/* ===============================
   note系共通スタイル（note / note-guide）
================================ */
.note,
.note-guide {
  line-height: 1.8;
  font-family: 'Yu Gothic', sans-serif;
  background-color: #ffeef0;
  border-left: 5px solid #d94c7f;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  color: #444;
  margin: 1.5em 0;
}

/* ===============================
   fabric-note（生地関連の補足）
================================ */

.fabric-note {
  line-height: 1.8;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background-color: #fdfaf5;
  border: 1px solid #d8cfc0;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  color: #222; /* 濃くしてくっきり */
  font-size: 1rem;
  font-weight: 500; /* 少し太くして安定感アップ */
  margin-top: 1.5em;
}




.fabric-note h2 {
  font-size: 1.2em;
  margin: 0 0 0.5em;
}

.fabric-note p {
  margin-bottom: 1em;
}

/* ===============================
   黄色マーカー
================================ */
.mark-yellow {
  /* 透明から黄色へのグラデーションを最優先で適用 */
  background: linear-gradient(transparent 60%, #fff2cc 60%) !important;
  /* もし元のCSSで背景色が指定されていても、それを打ち消すために transparent を混ぜるのがコツです */
  background-color: transparent !important;
  font-weight: bold !important;
}
/* ===============================
   note-guide-fubric（生地関連のガイド補足）
================================ */
.note-guide-fubric {
  margin-top: 0.5em;
  line-height: 1.6;
  font-size: 1em;
  color: #444;
  background-color: #fff9e8;
  padding: 0.8em;
  border-radius: 6px;
}

.note-guide-fubric a {
  color: #d8a85c;
  font-weight: bold;
  text-decoration: underline dotted;
}

.note-guide-fubric a:hover {
  color: #c48c3c;
}


/* ===============================
   リンク（通常・ホバー）
================================ */
.custom-section a {
  color: #d94c7f;
  text-decoration: underline;
  font-weight: bold;
}

.custom-section a:hover {
  color: #536103;
}

/* ===============================
   ボタン（通常）
================================ */
.nav-button {
  background-color: #cc3366;
  color: #fff !important;
  padding: 0.4em 1em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background-color 0.3s, color 0.3s;
  border: 2px solid #cc3366;
}

.nav-button:hover {
  background-color: #b9003e;
  color: #fff !important;
}

.nav-button-group {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 0.5em 0;
}

.custom-section .nav-button-row:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-bottom: 0;
  padding-bottom: 0;
}

.nav-button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 1.5em 0;
}


/* ===============================
   レイアウト補助（動画・画像・言語切替）
================================ */
.video-frame {
  width: 100%;
  height: 815px;
  margin: 2em 0;
  border-radius: 6px;
}

figure {
  width: 100%;
  max-width: 100vw;
  margin: 1em 0;
}

figure img {
  margin: 0.5em auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.recipe-block,
.product-link-box {
  margin: 1.5em 0;
  padding: 1em;
  border: 1px solid #d8cfc0;
  border-radius: 8px;
  background-color: #fdfaf5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.recipe-block figure {
  margin: 0;
}

.recipe-block .nav-button {
  margin-top: 0.5em;
}

.language-button-group {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin: 1em 0;
}

.gif-block {
  text-align: center;
  margin-bottom: 32px;
}

.gif-block img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

.gif-caption {
  font-size: 0.9em;
  color: #555;
  margin-top: 8px;
}


/* 動画リンク一覧専用：他のスタイルに影響なし */
.video-link-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5em;
}

.video-link-list li {
  margin-bottom: 1em;
  line-height: 1.6;
}

.video-link-list a {
  font-weight: bold;
  text-decoration: underline;
  color: #d94c7f; /* 既存リンク色と統一 */
}

.video-link-list a:hover {
  color: #536103; /* 既存ホバー色と統一 */
}

.label-short,
.label-normal {
  display: inline-block;
  font-size: 0.8em;
  padding: 2px 6px;
  margin-right: 8px;
  border-radius: 4px;
  font-weight: bold;
  vertical-align: middle;
  white-space: nowrap;
}

.label-short {
  background-color: #fff4f8;
  color: #cc3366;
  border: 1px solid #f3d7e5;
}

.label-normal {
  background-color: #fdfaf5;
  color: #a67c52;
  border: 1px solid #d8cfc0;
}
.video-embed {
  margin: 2em auto;
  text-align: center;
}

.video-embed iframe {
  width: 100%;
  max-width: 720px;
  height: 405px;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9比率 */
  height: 0;
  overflow: hidden;
  margin: 2em 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===============================
   ）
================================ */
.page-video-links .video-link-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.page-video-links .video-link-list li {
  margin-bottom: 1.2em;
  line-height: 1.6;
}
.page-video-links .label-normal,
.page-video-links .label-short {
  display: inline-block;
  margin-right: 0.5em;
  vertical-align: middle;
}

.page-video-links .note-guide-fubric {
  display: block;
  margin-top: 0.3em;
  font-size: 0.9em;
  color: #555;
}








/* ===============================
   スマホ表示用（600px以下）
================================ */
@media screen and (max-width: 600px) {
  .custom-section {
    font-size: 16px;
    line-height: 1.7;
    padding: 16px;
    max-width: 100%;
  }

  .custom-section h1,
  .custom-section h2 {
    font-size: 1.3em;
  }

  .custom-section li {
    margin-bottom: 0.8em;
  }
}


/* ===============================
   スライダーの設定
================================ */
/* === BeerSlider 表示調整（スマホ対応） === */
.beer-slider {
  position: relative;
  overflow: hidden;
}

.beer-slider img {
  display: block;
  width: 100%;
  height: auto;
}

.beer-reveal {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.beer-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  z-index: 10;
  cursor: ew-resize;
}


/* ===============================
   自動目次（auto-toc）
================================ */
/* --- 自動目次（auto-toc） --- */

/* 目次全体の余白と背景（必要に応じて調整） */
#auto-toc {
  background: #fff8f8; /* やさしいピンク系背景 */
  border: 2px solid #f8b5c1; /* ← これが枠線 */
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 2em;
}

/* 目次リストの基本スタイル */
#auto-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* 親項目（h2）リンクのスタイル */
.toc-parent > a {
  font-weight: bold;
  color: #c05a6b; /* ブランドピンク */
  text-decoration: none;
}

/* 子項目（h3）リンクのスタイル */
.toc-child > a {
  padding-left: 1.5em;
  color: #555;
  font-size: 0.95em;
  text-decoration: none;
}
/* トグル記号（＋／−）のスタイル */
.toc-toggle {
  font-weight: bold;
  color: #888;
  font-size: 1em;
  user-select: none;
}

/* 子リストの余白（開いたとき） */
.toc-parent ul {
  margin-top: 0.5em;
  margin-left: 1.2em;
}

/* リスト項目の間隔 */
#auto-toc li {
  margin: 0.4em 0;
}
/* --- 自動目次：折りたたみトグル記号（▶ / ▼）をUnicodeで表示 --- */

/* 初期状態（閉じているとき）：▶（U+25B6） */
.toc-toggle::before {
  content: "\25B6"; /* ▶ */
  display: inline-block;
  color: #888;
  font-weight: bold;
  margin-right: 0.3em;
}

/* 開いている状態：▼（U+25BC） */
.toc-toggle[data-state="open"]::before {
  content: "\25BC"; /* ▼ */
}



/* ===============================
   目次内で .toc-label だけを表示するスタイル
================================ */
#auto-toc .toc-child > a *:not(.toc-label) {
  display: none;
}

#auto-toc .toc-child > a .toc-label {
  display: inline;
}

/* ===============================
   【新】ギャラリー設定（作品集用）
   !importantを使わずに、構造を整理しました
================================ */

/* 1. 全体のコンテナ */
.works-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 2列の間に隙間を作る */
    gap: 10px;                     /* 必要に応じて隙間を調整 */
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

/* 2. 各アイテム（写真＋文字）の枠 */
.works-gallery figure {
    /* ここがポイント：固定の300pxを削除し、パーセント指定にします */
    width: calc(50% - 10px); /* 2列表示（隙間分を引く） */
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
}

/* 3. 画像の設定（正方形・カットなし） */
.works-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;    /* 正方形の枠を維持 */
    object-fit: contain;    /* 写真をカットせず全体を収める */
    background-color: #fff; /* 余白を白に */
    border: 1px solid #eee;
    box-sizing: border-box;
    vertical-align: bottom;
}

/* 4. PCなど広い画面では3列にする（メディアクエリ） */
@media screen and (min-width: 769px) {
    .works-gallery figure {
        width: calc(33.33% - 10px); /* 3列表示 */
    }
}

/* PCなど画面が広い時は3列にしたい場合はここを有効に（任意） */
@media screen and (min-width: 769px) {
    .works-gallery figure {
        width: 31%; /* 画面が広ければ3列にする */
    }
}

/* ===============================
   簡易ライトボックス（拡大表示）
================================ */
/* 拡大時の背景（黒いカーテン） */
.zoom-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* 拡大された画像 */
.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s;
}

/* 表示中の状態 */
.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.zoom-overlay.active img {
  transform: scale(1);
}

/* ギャラリーの画像に「クリックできるよ」というマウスにする */
.works-gallery img {
  cursor: zoom-in;
}

