@charset "UTF-8";

/* ==========================================================================
   岩波映画カメラの物語 専用カスタムスタイル
   ========================================================================== */
body {
  background-color: #e3d4b6; /* 深みのあるセピア調（古書の風合い） */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E");
}

.p-story-layout {
  display: flex;
  flex-direction: row-reverse;
  gap: 40px;
  margin-top: 40px;
  position: relative;
}

.p-story-main {
  flex: 1;
  min-width: 0;
}

/* サイドバー・目次 */
.p-story-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 40px);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 80px);
  overflow-y: auto;
  background-color: #fdfbf7; /* 優しいライトベージュ（明るめ） */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.09'/%3E%3C/svg%3E");
  border: 1px solid #8a7355;
  border-radius: 16px;
  padding: 24px;
}

.p-story-sidebar__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #5c3d2e; /* 温かみのある焦げ茶色 */
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #5c3d2e;
}

.p-story-sidebar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-story-sidebar__link {
  display: flex;
  align-items: center;
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  transition: all var(--transition-speed);
}

.p-story-sidebar__link::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #802020; /* 暗めの赤 */
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.p-story-sidebar__link:hover {
  background: rgba(128, 32, 32, 0.05);
  border-left-color: #802020;
  color: #802020;
  padding-left: 12px;
}

/* 各セクション */
.p-story-section {
  background-color: #fdfbf7; /* 優しいライトベージュ（明るめ） */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.09'/%3E%3C/svg%3E");
  border: 1px solid #8a7355;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}



.p-story-section__header {
  text-align: center;
  margin-bottom: 24px;
}

.p-story-section__header::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #802020;
  border-radius: 1.5px; /* 左右の角を丸める */
  margin-top: 16px;
}

.p-story-section__label {
  font-size: 1.4rem;
  color: var(--color-accent);
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.p-story-section__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #5c3d2e; /* 温かみのある焦げ茶色 */
  line-height: 1.3;
}

.p-story-section__body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-dark);
  margin-bottom: 30px;
}

.p-story-section__body p {
  margin-bottom: 1.25em;
}

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

/* 画像ギャラリー */
.p-story-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.p-story-gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

.p-story-gallery--single {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.p-story-card {
  background: transparent;
  border: none;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
}

.p-story-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 20px 2px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  border: 1px solid rgba(138, 115, 85, 0.35);
}

.p-story-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-speed);
  user-select: none;
  -webkit-user-drag: none;
}

.p-story-card:hover .p-story-card__img {
  transform: scale(1.03);
}

.p-story-card__caption {
  padding: 12px 16px;
  font-size: 0.95rem; /* 0.85rem から大きく */
  line-height: 1.4;
  color: #5c3d2e; /* 焦げ茶色に変更 */
  background: transparent;
  border-top: none;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 個別配置画像のインラインキャプション */
.p-story-card span {
  font-size: 0.95rem !important; /* さらに大きく変更 */
  color: #7a5f43 !important; /* 温かみのある茶色に変更 */
}

/* カメラマンたちのグリッド */
.p-cameramen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.p-cameraman-card {
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-cameraman-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-cameraman-card__img-wrap--placeholder {
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 8px;
}

.p-cameraman-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-cameraman-card__name {
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-primary);
  width: 100%;
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
}

/* メディアクエリ */
@media (max-width: 991px) {
  .p-story-layout {
    flex-direction: column-reverse;
  }

  .p-story-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    margin-bottom: 40px;
  }

  .p-cameramen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .p-story-section {
    padding: 24px 16px;
  }

  .p-story-section__title {
    font-size: 1.4rem;
  }

  .p-story-gallery {
    grid-template-columns: 1fr;
  }

  .p-cameramen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ページ見出しの背景画像設定 */
.c-page-header {
  background-image: linear-gradient(rgba(58, 43, 32, 0.35), rgba(36, 26, 18, 0.55)), url('../iwanami-camera/top-c6-3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 115px 0;
}

/* パンくずリストの視認性調整 */
.c-breadcrumbs,
.c-breadcrumbs a,
.c-breadcrumbs li:not(:last-child)::after {
  color: #4a3525; /* 濃いブラウン */
  font-weight: 500;
}

.c-breadcrumbs a:hover {
  color: #802020; /* ホバー時は暗い赤 */
}

/* 目次のVol表記のスタイル */
.p-story-sidebar__vol {
  color: #c02020; /* 赤色 */
  font-weight: bold;
  margin-right: 6px;
}

/* 参考文献・クレジット表示 */
.p-story-references {
  margin-top: 40px;
  border-top: 2px solid #b8a58d;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #7a5f43;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.p-story-references__text {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.p-story-references__para-spaced {
  margin-top: 10px;
  text-align: left;
  padding-left: 3em;
}

.p-story-references__author {
  margin-top: 10px;
  font-weight: bold;
  text-align: left;
  padding-left: 3em;
}

.p-story-references__cat-wrap {
  flex-shrink: 0;
  margin-bottom: 5px;
  margin-right: 20px;
}

.p-story-references__cat-img {
  width: auto;
  height: auto;
  display: block;
  border: none;
  outline: none;
  background: transparent;
  max-width: 100%;
  filter: drop-shadow(0 0 10px rgba(186, 155, 121, 0.5));
}

/* ページトップに戻るリンク */
.p-story-back-to-top {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 40px;
}

.p-story-back-to-top a {
  font-size: 0.85rem;
  color: #7a5f43;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-speed);
}

.p-story-back-to-top a::after {
  content: "▲";
  font-size: 0.7rem;
}

.p-story-back-to-top a:hover {
  color: #802020;
}

