/*
Theme Name: Film Camera Encyclopedia
Theme URI: https://museum.papiocamera.com/
Author: film camera museum
Author URI: https://museum.papiocamera.com/
Description: フィルムカメラ図鑑専用のAstra子テーマです。
Version: 1.0
Template: astra
*/


/* ========= 共通スタイル ========= */
* {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul, ol, li, figure {
  margin: 0;
  padding: 0;
}


body {
  font-family: "Noto Sans JP", Meiryo, sans-serif;
  background-color: #fffdf8;
  color: #3e3a32;
  line-height: 1.8;
}

html {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* カメラ図鑑ページ専用のスタイル */

.camera-page {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 2rem 1rem;
  background-color: #fffdf8; /* 背景を全幅にするため（必要なら） */
}



.camera-page p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.camera-page ul,
.camera-page ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.camera-page li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.camera-page h2,
.camera-page h3,
.camera-page h4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: bold;
  color: #B85C38;
  margin: 2rem 0 2rem;
}

.camera-page a {
  color: #B85C38;
  text-decoration: none;
  transition: color 0.2s ease;
}
.camera-page a:hover {
  color: #8C3D22;
}


/* ========= パンくずリスト ========= */
.breadcrumb {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ========= タイトルセクション ========= */
/* タイトルセクション全体を画面幅いっぱいに */
.camera-title-section {
  width: 100vw;
  position: relative;
  background-color: #ffffff;
  padding: 4rem 1rem 3rem;
  margin: 0 calc(-50vw + 50%);
}

/* 中の2カラム化 */
.camera-title-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
  align-items: center;
}

.camera-image {
  flex: 1 1 300px;
  text-align: center;
}

.camera-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border: none;
  padding: 0;
  box-shadow: none;
  background: none;
  border-radius: 0;
  animation: fadeSlideIn 1.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.camera-text {
  flex: 1 1 300px;
}

.camera-title-inner h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #B85C38;
}

.catchcopy {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: #6a5c4f;
  margin-top: 1rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .camera-content {
    display: block !important; /* flexやgridの影響を消す */
  }

  .camera-text {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important; /* 高さを自然に戻す */
    text-align: center !important;
  }

  .camera-text p {
    margin-bottom: 0.5rem;
  }
}



@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ========= ラベル ========= */
.camera-encyclopedia-label {
  text-align: center;
  color: #B85C38;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.7rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  margin: 2rem auto;
  letter-spacing: 0.05em;
}
.camera-encyclopedia-label p {
  font-size: 1.7rem; /* 文字をしっかり大きく */
  margin: 0;       /* 上下バランス調整 */
}

/* ========= 目次 ========= */
/* フル幅背景のラッパー */
/* 背景色を全幅にするための調整 */
.toc-wrapper {
  width: 100vw; /* ビューポート全体に広げる */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  background: #f3f3f3;
  padding: 1.5rem 0;
  z-index: 0;
}


/* 目次本体 */
.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.toc a {
  color: #333;
  text-decoration: none;
  position: relative;
  padding: 0 0.5rem;
}

/* 区切り線 | を追加（最後の要素以外） */
.toc a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -0.8rem;
  color: #ccc;
}
/* ========= 目次以下のインナー（余白） ========= */
.section-inner {
  padding-left: 10%;
  padding-right: 10%;
  max-width: 1200px;
  margin: 0 auto;
}

/* スマホサイズのとき（幅768px以下）だけ余白を減らす */
@media screen and (max-width: 768px) {
  .section-inner {
    padding-left: 5%;
    padding-right: 5%;
  }
}
/* ========= セクション見出し ========= */
.section-title {
  color: #B85C38;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  margin: 2rem 0 2rem;
}

/* ========= スペック表 ========= */
.camera-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: #fff;
}

.camera-specs th,
.camera-specs td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}

.camera-specs tbody tr:nth-child(odd) {
  background: #ffffff;
}
.camera-specs tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* ========= サブタイプタグ ========= */
.subtype-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.subtype-list li {
  background: #f2f2f2;
  padding: 0.4em 0.8em;
  border-radius: 1em;
  font-size: 0.9em;
  border: 1px solid #ccc;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.subtype-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* ========= 情報ボックス（初心者向けなど） ========= */

.info-box {
  list-style: none;
  background: #ffffff;
  border-radius :8px;
  box-shadow :0px 0px 5px silver;
  padding: 0.5em 0.5em 0.5em 2em;

}

.info-box li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}


/* ========= 館長コメント：吹き出し ========= */

.comment .l-fukidashi,
.comment .r-fukidashi {
  position: relative;
  width: calc(100% - 82px);
  box-sizing: border-box;
  padding: 20px;
  border-radius: 6px;
  border: 2px solid #ddd;
  box-shadow: 0 3px 8px -2px rgba(0,0,0,.16);
  background-color: #fff;
  z-index: 1;
}

.comment .l-fuki {
  margin: 20px auto 36px 0;
}

.comment .r-fuki {
  margin: 20px 0 36px auto;
}

.comment .l-fukidashi::before,
.comment .r-fukidashi::before {
  position: absolute;
  content: "";
  top: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  background-color: #fff;
  z-index: 2;
}

.comment .l-fukidashi::before {
  right: -7px;
  transform: rotate(-45deg);
}

.comment .r-fukidashi::before {
  left: -7px;
  transform: rotate(135deg);
}

.comment .l-fukidashi::after,
.comment .r-fukidashi::after {
  position: absolute;
  content: "";
  width: 60px;
  height: 60px;
  top: -6px;
  border-radius: 50%;
  border: 3px solid #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 1px 1px 5px #aaa;
  box-sizing: border-box;
}

.comment .l-fukidashi::after {
  right: -82px;
}

.comment .r-fukidashi::after {
  left: -82px;
}
.avatar::after {background-image:url(/wp-content/uploads/2025/04/fukidashi-icon001.png);}


@media screen and (min-width: 478px) {
  .comment .l-fukidashi::after,
  .comment .r-fukidashi::after {
    width: 80px;
    height: 80px;
  }
  .comment .l-fukidashi,
  .comment .r-fukidashi {
    width: calc(100% - 106px);
  }
  .comment .l-fukidashi::after {
    right: -106px;
  }
  .comment .r-fukidashi::after {
    left: -106px;
  }
}

.gallery-section,
.video-section {
  margin-bottom: 2rem;
}


/* ========= 関連ポスト ========= */
.related-posts {
  list-style: disc inside;
  padding-left: 1rem;
}


/* ========= スムーススクロール ========= */
html {
  scroll-behavior: smooth;
}


/* ========= レスポンシブ調整 ========= */
@media screen and (max-width: 600px) {
  .camera-title-section h1 {
    font-size: 1.8rem;
  }
  .camera-catchcopy {
    font-size: 0.95rem;
  }
}



/* --- シャドウの色調をやや「アンティーク風」に寄せる --- */
box-shadow: 0 8px 16px rgba(120, 90, 50, 0.2);

/* --- 使い方リンクボタン --- */
.btn-manual {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 0.4em;
  transition: background 0.3s;
}
.btn-manual:hover {
  background-color: #555;
}

/* --- カメラ外観画像 --- */
.camera-images-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.camera-images-list img {
  width: 100%;
  height: auto;
  border-radius: 0.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.camera-images-list figcaption {
  text-align: center;
  font-size: 0.85em;
  margin-top: 0.5em;
  color: #444;
}


/* camera-specs テーブル内のリンク（ボタン除く） */
table.camera-specs a:not(.button):not(.wp-block-button__link) {
  color: #B85C38;
  text-decoration: none; /* 下線を消す */
  transition: color 0.3s ease;
}

/* ホバー時の色変更 */
table.camera-specs a:not(.button):not(.wp-block-button__link):hover {
  color: #3E3A32;
}

/* ========= 難易度バッジ ========= */

.difficulty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.difficulty-list li {
  margin: 0;
}

.difficulty-label {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  font-size: 0.95em;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.difficulty-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.difficulty-label .stars {
  font-family: sans-serif;
  letter-spacing: 0.1em;
}

.difficulty-label .stars::before {
  content: attr(data-stars);
}

/* 色分け：★は黄色、☆はグレー */
.difficulty-label .stars {
  color: #FFD700; /* 黄色 */
}

.difficulty-label .stars::after {
  content: '';
  display: inline-block;
}


/* ==== 共通付箋スタイル ==== */
.tag-label {
  display: inline-flex;
  align-items: center;
  background: #fffdf6;
  border-left: 6px solid #B4BC4E; /* デフォルト：雰囲気カラー */
  padding: 6px 12px;
  margin: 4px 6px 4px 0;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: 'Georgia', serif;
  color: #5c5c5c;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tag-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;         /* 任意。タグの間の余白 */
  list-style: none;   /* ulの●消す */
  padding: 0;
  margin: 0;
}

.tag-label i {
  margin-right: 0.5em;
  color: #999;
}

.tag-label:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.15);
  background-color: #fefbe9;
}

.tag-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tag-category-list li {
  margin-bottom: 0em;
}


/* ==== カテゴリ別のライン色変更 ==== */
.tag-section.scene .tag-label { border-left-color: #c1a77b; } /* おすすめシーン */
.tag-section.image-style .tag-label { border-left-color: #d4b483; } /* 写りの特徴 */
.tag-section.vibe .tag-label { border-left-color: #B4BC4E; } /* 雰囲気・世界観 */
.tag-section.design-style .tag-label { border-left-color: #999; } /* カメラデザイン */
.tag-section.style-fit .tag-label { border-left-color: #B4BC4E; } /* ファッション */



/* カメラの色用 */
.color-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.color-tag {
  display: flex;
  align-items: center;
  background: #fffdf5;
  border: 1px solid #ddd;
  padding: 5px 10px 5px 8px;
  border-radius: 20px;
  font-size: 0.9em;
  color: #444;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.color-tag:hover {
  transform: translateY(-2px);
  box-shadow: 2px 4px 8px rgba(0,0,0,0.15);
}

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1px solid #ccc;
}


/* ==== カラム ==== */
/* デスクトップ（横並び） */
.camera-meta-sections {
  display: flex;
  gap: 2rem; /* セクション間のスペース */
  justify-content: space-between;
  flex-wrap: wrap;
}

.camera-meta-sections section {
  flex: 1;
  min-width: 250px; /* 縮みすぎ防止 */
}

/* スマホ・タブレット対応（縦並び） */
@media (max-width: 768px) {
  .camera-meta-sections {
    flex-direction: column;
  }
}
/* ==== セクション共通（区切り線） ==== */
.section-box {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}


