@charset "UTF-8";
/* ==========================================================================
   麩太の沿革（history/index.html）専用スタイル
   共通デザイントークン（配色・書体等）は common/css/style.css の :root を
   継承して使用します。このファイルは本ページ固有のコンポーネントのみ。
   構成:
     1. パンくず / ページヒーロー
     2. 章ジャンプナビ（目次）
     3. 章（chapter）共通レイアウト
     4. 資料ギャラリー / PDFリンク
     5. ライトボックス（画像拡大表示）
     6. 動画埋め込み
   ========================================================================== */

/* ---------------------------------------------------------------------
   1. パンくず / ページヒーロー
   ------------------------------------------------------------------- */
.breadcrumb{
  margin-top: var(--header-h);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-line);
}
.breadcrumb ol{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  padding: 0.9rem 0;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}
.breadcrumb a{ color: var(--color-ink-soft); }
.breadcrumb a:hover{ color: var(--color-green); }
.breadcrumb li + li::before{
  content: "/";
  margin-right: 0.5em;
  color: var(--color-line);
}
.breadcrumb li[aria-current] { color: var(--color-ink); }

.page-hero{
  position: relative;
  background: var(--color-ink);
  color: #FBF8F0;
  overflow: hidden;
}
.page-hero .inner{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,200px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.4rem, 6vw, 3.6rem);
}
.page-hero__text .section-head__eyebrow{ color: var(--color-gold-soft); }
.page-hero h1{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #FBF8F0;
}
.page-hero__lead{
  margin-top: 0.9em;
  max-width: 42em;
  color: #D8DFD8;
  font-size: 0.95rem;
}
.page-hero__facts{
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.2rem;
  margin-top: 1.6em;
}
.page-hero__facts div dt{
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-gold-soft);
}
.page-hero__facts div dd{
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #C9C2AE;
  margin-top: 0.15em;
}
.page-hero__media{
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.page-hero__media img{ width: 100%; height: 100%; object-fit: contain; aspect-ratio: 9/16; }

/* ---------------------------------------------------------------------
   2. 章ジャンプナビ（目次）
   ------------------------------------------------------------------- */
.chapter-nav{
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: rgba(245, 241, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.chapter-nav__list{
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  scrollbar-width: thin;
}
.chapter-nav__list::-webkit-scrollbar{ height: 4px; }
.chapter-nav__list::-webkit-scrollbar-thumb{ background: var(--color-line); border-radius: 4px; }
.chapter-nav a{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-ink-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.chapter-nav a .num{
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 0.78rem;
}
.chapter-nav a:hover{
  border-color: var(--color-green);
  color: var(--color-green);
}

/* ---------------------------------------------------------------------
   3. 章（chapter）共通レイアウト
   ------------------------------------------------------------------- */
.chapter{
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--color-line);
}
.chapter:last-of-type{ border-bottom: none; }
.chapter:nth-of-type(even){ background: var(--color-bg-soft); }

.chapter-head{
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6em;
}
.chapter-head .num{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--color-gold-soft);
  line-height: 1;
}
.chapter-head h2{
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--color-ink);
}

.chapter-note{
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  margin-bottom: 1.6em;
}

.chapter-body{
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.chapter-body.with-figure{
  grid-template-columns: minmax(0,1fr) minmax(0,320px);
  align-items: start;
}
.chapter-body.with-figure.tousyu{
  grid-template-columns: minmax(0,1fr) minmax(0,180px);
  align-items: start;
}
.chapter-body.with-figure.figure-left{
  grid-template-columns: minmax(0,170px) minmax(0,1fr);
}
.chapter-body.with-figure.figure-left.syoujou{
  grid-template-columns: minmax(0,300px) minmax(0,1fr);
}
.chapter-body.with-figure.figure-left .chapter-figure{ order: -1; }

.chapter-text p{
  color: var(--color-ink-soft);
  margin-bottom: 1.2em;
}
.chapter-text p:last-child{ margin-bottom: 0; }
.chapter-text strong{ color: var(--color-ink); font-weight: 700; }

.chapter-figure{
  background: var(--color-surface);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  align-self: center;
}
.chapter-figure img{ width: 100%; display: block; aspect-ratio: auto;}

.chapter-figure--portrait{
  aspect-ratio: 9/16;
}
.chapter-figure--portrait img{ width: 100%; height: 100%; display: block; object-fit: cover;}

.chapter-figure figcaption{
  padding: 0.8em 1em;
  font-size: 0.74rem;
  color: var(--color-ink-soft);
  text-align: center;
  border-top: 1px solid var(--color-line);
}
.chapter-figure a{ display: block; position: relative; }
.chapter-figure a::after{
  content: "";
  position: absolute; inset: 0;
  background: rgba(43,36,32,0);
  transition: background 0.25s ease;
}
.chapter-figure a:hover::after{ background: rgba(43,36,32,0.12); }
.chapter-figure a.no-zoom::after{ display: none; }

/* ---------------------------------------------------------------------
   4. 資料ギャラリー / PDFリンク
   ------------------------------------------------------------------- */
.doc-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.8em;
}
.doc-card{
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.doc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.doc-card__media{display: block; width: 100%; aspect-ratio: 4/3; background: var(--color-bg-soft); overflow: hidden; }
.doc-card__media img{display: block; width: 100%; height: 100%; object-fit: contain; }
.doc-card__label{
  display: block;
  padding: 0.7em 0.9em;
  font-size: 0.76rem;
  color: var(--color-ink-soft);
  border-top: 1px solid var(--color-line);
}
.doc-card__badge{
  position: absolute;
  top: 0.6em; right: 0.6em;
  background: rgba(43,36,32,0.78);
  color: #F5F1E6;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
}

.pdf-links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6em;
}
.pdf-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--color-green);
  color: var(--color-green);
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.pdf-link:hover{ background: var(--color-green); color: #F5F1E6; }
.pdf-link .ico{ width: 15px; height: 15px; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   5. ライトボックス（画像拡大表示）
   ------------------------------------------------------------------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(20, 17, 13, 0.88);
}
.lightbox.is-open{ display: flex; }
.lightbox__figure{
  max-width: min(92vw, 900px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__figure img{
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__caption{
  margin-top: 1em;
  color: #F0ECDF;
  font-size: 0.82rem;
  text-align: center;
}
.lightbox__close{
  position: absolute;
  top: clamp(0.8rem, 3vw, 1.8rem);
  right: clamp(0.8rem, 3vw, 1.8rem);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(245,241,230,0.12);
  color: #F5F1E6;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close:hover{ background: rgba(245,241,230,0.22); }

/* ---------------------------------------------------------------------
   6. 動画埋め込み
   ------------------------------------------------------------------- */
.video-card{
  margin-top: 2.4em;
  background: var(--color-surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  max-width: 560px;
}
.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #000;
}
.video-frame iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.video-card figcaption{
  margin-top: 0.8em;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  text-align: center;
}

/* ---------------------------------------------------------------------
   レスポンシブ（history専用の最小限の上書き。主要な折返しは
   common/css/responsive.css 側の共通ブレイクポイントに準拠）
   ------------------------------------------------------------------- */
@media (max-width: 860px){
  .page-hero .inner{ grid-template-columns: 1fr; }
  .page-hero__media{ order: -1; max-width: 320px; }
  .chapter-body.with-figure,
  .chapter-body.with-figure.figure-left{
    grid-template-columns: 1fr;
  }
  .chapter-body.with-figure .chapter-figure{ order: -1; max-width: 320px; }
}
