@charset "UTF-8";

/* ───────────────────────
   アドベントカレンダー設定
─────────────────────── */

.hidden {
  display: none;
}

.pending {
  max-width: 1160px;
  margin: 100px auto;
  text-align: right;
  font-size: 20px;
  color: #aaa;
  font-weight: 300;
}

@media (max-width: 768px) {
  .pending {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .pending {
    font-size: 18px;
  }
}

/* ───────────────────────
   全体設定
─────────────────────── */

/* ヘッダーとタイトルのあいだの余白 */
main {
  margin-top: 200px;
}

@media (max-width: 768px) {
  main {
    margin-top: 194px;
  }
}

@media (max-width: 480px) {
  main {
    margin-top: 154px;
  }
}

/* 見出しフォントサイズ */
h2 {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.05rem;
  margin-bottom: 8px;
}

h3 {
  font-weight: 300;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.05rem;
}

h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

h5 {
  font-weight: 500;
  text-align: right;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.28rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.08rem;
  }
}

/* ───── br-for-mobile
（小タブレット・モバイルだけ改行）───── */
.br-for-mobile {
  display: none;
}

@media (max-width: 768px) {
  .br-for-mobile {
    display: inline;
  }
}

/* ──────────────────────────────
   全要素ボックスサイズ border-box
────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ──────────────────────────────
   タブ周り
────────────────────────────── */

.tab-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3カラム */
  background: #f7f7f7;
  margin-top: 100px;
}

.tab {
  position: relative;
  text-align: center;
  padding: 12px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
}

/* セパレーター（2つ目、3つ目の左に1px線） */
.tab:nth-child(2)::after,
.tab:nth-child(3)::after {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 0;
  width: 1px;
  background: #ddd;
}

/* アクティブタブ */
.tab.active {
  background: #fff;
  color: #333;
}

/* タブ内容エリア */
.tab-content {
  display: none;
  margin-top: 100px;
  text-align: center;
  background: #fff;
  width: 100%;
}

.tab-content.active {
  display: block;
}

/* ─── レスポンシブ ─── */
@media (max-width: 768px) {
  .tabs {
    margin-top: 70px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "tab1 tab1"
      "tab2 tab3";
  }

  .tab:nth-child(1) {
    grid-area: tab1;
  }

  .tab:nth-child(2) {
    grid-area: tab2;
  }

  .tab:nth-child(3) {
    grid-area: tab3;
  }

  .tab-content {
    margin-top: 70px;
  }

  .tab:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .tabs {
    margin-top: 60px;
  }

  .tab {
    font-size: 14px;
  }

  .tab-content {
    margin-top: 60px;
  }
}

/* ──────────────────────────────
  外部リンク装飾（↗）
────────────────────────────── */
a.ext-link {
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: border-color 0.2s, opacity 0.2s;
}

a.ext-link:hover {
  border-bottom-color: #707f89;
  opacity: 0.7;
}

a.ext-link::after {
  content: "↗";
  font-size: 0.85em;
  margin-left: 4px;
  vertical-align: baseline;
}

/* ──────────────────────────────
インタビュースクロール
────────────────────────────── */
.scroll-section {
  position: relative;
  max-width: 1160px;
  margin: 0px auto 0 auto;
  padding-top: 9px;
}

@media (max-width: 768px) {
  .scroll-section {
    margin: 0px auto 0 auto;
    padding-top: 9px;
  }
}

@media (max-width: 480px) {
  .scroll-section {
    margin: 0px auto 0 auto;
    padding-top: 8px;
  }
}

.yazirusi {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 8px;
  z-index: 1;
}

.line01 {
  width: 100px;
  height: 0.8px;
  background: #333;
  position: relative;
}

.line02 {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 0.8px;
  background: #333;
  transform: rotate(45deg);
  transform-origin: right bottom;
}

.interview-windows-wrapper {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-x: auto;
}

.interview-windows-wrapper::-webkit-scrollbar {
  display: none;
}

.interview-windows {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
}

.interview-window {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s;
}

.interview-window:hover {
  opacity: 0.7;
}

.interview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .interview-window {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .interview-window {
    width: 180px;
    height: 180px;
  }
}

/* ──────────────────────────────
  キャプション
────────────────────────────── */
.caption-section {
  margin: 120px auto 120px auto;
}

@media (max-width: 768px) {
  .caption-section {
    margin: 100px auto 100px auto;
  }
}

@media (max-width: 480px) {
  .caption-section {
    margin: 80px auto 80px auto;
  }
}

/* ──────────────────────────────
  インタビュー詳細
────────────────────────────── */
#interview-details {
  display: grid;
  margin: 0px auto 0px auto;
  max-width: 1100px;
  width: 100%;
  background: #fff;
}

.interview-detail {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: center;
  border-bottom: 0.3px solid #707f89;
  padding: 50px 0;
}

.interview-detail:first-child {
  border-top: 0.3px solid #707f89;
}

.interview-detail-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.interview-detail p {
  margin: 0;
  text-align: left;
}

.interview-detail h4,
.interview-detail h5 {
  margin: 0;
  text-align: right;
}

/* 詳細：レスポンシブ */
@media (max-width: 1000px) {
  .interview-detail {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .interview-detail {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .interview-detail {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0;
  }
}

.end-caption {
  text-align: right;
  max-width: 1100px;
  margin: 6px auto 0 auto;
}

/* ──────────────────────────────
  季のたより
  ────────────────────────────── */
#tokinotayori_view {
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

.tokinotayori-detail {
  display: flex;
  justify-content: space-between;
  /* 左右並び */
  align-items: center;
  /* 上下中央揃え */
  max-width: 1100px;
  margin: 100px auto 0 auto;
  gap: 20px;
}

@media (max-width: 768px) {
  .tokinotayori-detail {
    margin: 70px auto 0 auto;
  }
}

@media (max-width: 480px) {
  .tokinotayori-detail {
    margin: 50px auto 0 auto;
  }
}

.tokinotayori-main-image-area {
  width: 768px;
  max-width: 768px;
  min-width: 768px;
  flex: 0 0 768px;
}

.tokinotayori-main-image-slider {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  position: relative;
}

/* スライド画像（重ねて1枚だけ見せる） */
.main-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: contain;
  display: none;
}

.main-slide[style*="display:block"],
.main-slide[style*="display: block"] {
  display: block !important;
}

.slider-controls {
  position: static;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 9px 0 0 0;
}

/* カテゴリラベル（左上に重ねる） */
.category-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: inline-block;
  padding: 10px 20px 6px 20px;
  border-radius: 0 0 15px 15px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}

.category-label.spring {
  color: #e86b79;
  background: #feeeed;
}

.category-label.summer {
  color: #007bbb;
  background: #a0d8ef;
}

.category-label.autumn {
  color: #e2421f;
  background: #f7bd8f;
}

.category-label.winter {
  color: #335719;
  background: #d5c752;
}

/* 矢印ボタン */
.slider-arrow {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #bbb;
  font-weight: 100;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  transition: color 0.2s;
}

.slider-arrow:disabled {
  color: #ededed;
  cursor: default;
}

/* ドットインジケータ */
.slider-dots {
  display: flex;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 15px;
  border: none;
}

.slider-dots .dot.active {
  background: #bbb;
  border: 2px solid #707f89;
}

/* 説明エリア */
.tokinotayori-info-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 上下中央揃え */
  height: 100%;
}

.tokinotayori-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tokinotayori-summary p {
  text-align: justify;
  /* 両端揃え */
  margin-left: auto;
  margin-right: auto;
  margin: 30px auto;
}

.tokinotayori-description {
  background: #eee;
  border-radius: 0;
  padding: 6px;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 auto 30px auto;
  width: 300px;
  grid-column: 1;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}

/* 外部リンクボタン */
.external-article-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 10px auto 0 auto;
  padding: 9px 0;
  background: #fff;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 0.5px solid #CBCDD1;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  letter-spacing: 0.05em;
  outline: none;
  border-radius: 2px;
}

.external-article-btn:hover,
.external-article-btn:focus {
  background: #f7f8fa;
  color: #333;
  border-color: #707f89;
  opacity: 0.95;
}

/* レスポンシブ対応 */
@media (max-width: 1100px) {
  .tokinotayori-detail {
    flex-direction: column;
    max-width: 100%;
    align-items: center;
  }

  .tokinotayori-main-image-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .tokinotayori-info-zone {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    justify-content: center;
  }

  .tokinotayori-description {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .tokinotayori-info-zone {
    gap: 0px;
  }
}

@media (max-width: 768px) {
  .slider-arrow {
    font-size: 1.2rem;
  }

  .slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  .category-label {
    font-size: 1.0rem;
    padding: 7px 15px 4px 15px;
    border-radius: 0 0 10px 10px;
  }
}

@media (max-width: 480px) {
  .category-label {
    font-size: 1.0rem;
    padding: 5px 10px 3px 10px;
    border-radius: 0 0 7.5px 7.5px;
  }

  .tokinotayori-description {
    width: 90vw;
    max-width: 300px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 6px;
    box-sizing: border-box;
  }

  .external-article-btn {
    padding: 7px 0;
    font-size: 16px;
  }

  .tokinotayori-info-zone {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
  }
}

/* ──────────────────────────────
  文化財のまもり
  ────────────────────────────── */
#bunkazainomamori_view {
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

/* ────────────────
  flipbook：共通
──────────────── */
#umakko_turn {
  width: 100%;
  max-width: 900px;
  height: 636px;
  margin: 0 auto;
  overflow: visible;
  box-sizing: border-box;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 2px rgba(0, 0, 0, 0.04);
  /* StPageFlipの見栄え調整 */
  display: block;
}

@media (max-width: 900px) {
  #umakko_turn {
    width: calc(100vw - 40px);
    height: auto !important;
    max-height: 100vh;
    aspect-ratio: 1 / 1.414;
  }
}

/* ページ送りボタンエリア */
ul.paginator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin: 20px auto 40px;
  padding: 0;
  list-style: none;
}

ul.paginator li {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

#prevpage,
#nextpage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 30px;
  background: #eee;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity 0.2s;
  border-radius: 6px;
}

#prevpage:hover,
#nextpage:hover {
  opacity: 0.7;
}


/* ──────────────────────────────
  横スクロール防止
────────────────────────────── */
html,
body {
  overflow-x: hidden !important;
}