@charset "UTF-8";

/* ===========================
、見どころ /highlights/
=========================== */
.highlights-hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
}

.highlights-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../highlights/img/highlights_header.jpg");
  /* ←画像を設定 */
  background-size: cover;
  background-position: center;
  filter: brightness(80%);
}

/* ===========================
タイトル（縦書き）
=========================== */
.highlights-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.highlights-hero-title h1 {
  position: relative;
  writing-mode: vertical-rl;
  font-size: 30px;
  color: white;
  right: -18%;
}

/* ===========================
3つの縦書きメニュー
=========================== */
.highlights-menu {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 60px 0 100px;
}

/* ===============================
参拝順路 SECTION
================================*/
.sanpai-bg {
  background: #fbfbfb;
  width: 100%;
  height: 1293px;
}

.sanpai-section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* コンテナ */
.sanpai-date {
  margin: 180px 0 0 0;
  padding: 0 30px;
}

/* レイアウト本体 */
.sanpai-content {
  display: flex;
  align-items: anchor-center;
  gap: 30px;
  flex-wrap: wrap;
}

.sanpai-heading {
  font-size: 32px;
  margin-bottom: 100px;
  letter-spacing: 2px;
  position: relative;
  top: 130px;
}

/* 地図 */
.sanpai-map {
  flex: 1 1 50%;
}

.sanpai-map img {
  width: 90%;
  height: 850px;
  border-radius: 6px;
}

/* 情報エリア */
.sanpai-info {
  flex: 1 1 42%;
  text-align: left;
}

/* 文章 */
.sanpai-text {
  width: 110%;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 60px;
}

/* ルートリスト */
.sanpai-list dd {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ===============================
SP / タブレット（〜768px）
================================*/
@media (max-width: 768px) {
  .highlights-hero-title h1 {
    font-size: 20px;
  }

  .highlights-hero-title .hero-icon {
    margin-top: -4px;
  }

  .heading {
    font-size: 2.6rem;
    margin-bottom: 30px;
  }

  .sanpai-section {
    padding: 20px 0;
  }

  .sanpai-content {
    flex-direction: column;
  }

  .sanpai-text {
    width: 100%;
    font-size: 14px;
    line-height: 1.9;
  }

  .sanpai-list dd {
    font-size: 15px;
  }

  .sanpai-map img {
    width: 100vw;
    height: 680px;
    object-position: center;
    /* 中央を表示 */
  }
}

/* ===============================
見どころ SECTION
================================*/
.highlights-section {
  max-width: 1400px;
  background: #fff;
  margin: 250px auto;
  position: relative;
}

.highlights_heading {
  font-size: 32px;
  margin-bottom: 100px;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
}

.container {
  margin: 0 auto 130px;
  text-align: center;
}

/* ---- 上部見出し / 説明 ---- */
/* PCでは改行を有効 */
.section-lead br {
  display: inline;
}

.section-lead {
  font-size: 16px;
  line-height: 1.9;
  max-width: 900px;
  margin: 0 auto 60px;
}

/* ---- 画像＋文章ブロック ---- */
.midokoro-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  /* PC時の間隔 */
}

/* 画像 */
.highlights-midokoro img {
  width: 549px;
  display: block;
}

/* テキスト */
.midokoro-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  width: 380px;
}

.midokoro-text {
  margin: 25px;
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
  width: 89%;
}

/* 総社院アイコン画像 */
.honden-image img {
  width: 74.5px;
  height: 274px;
  display: block;
  margin-bottom: 15px;
}

@media (min-width: 769px) {
  .midokoro-content {
    display: flex;
    align-items: center;
    gap: 60px;
    /* 画像と説明の間隔 */
  }

  .highlights-midokoro {
    flex: 0 0 45%;
  }

  .midokoro-info {
    flex: 1;
  }
}

/* ===============================
SP (〜768px)
================================*/
@media (max-width: 768px) {
  .highlights_heading {
    padding: 40px 0 0 0;
    font-size: 2.6rem;
    margin-bottom: 30px;
  }

  .section-lead br {
    display: none;
  }

  .section-lead {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 500;
    padding: 0 16px;
  }

  .midokoro-content {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .midokoro-text {
    text-align: left;
  }

  .midokoro-info {
    width: 345px;
  }

  .highlights-midokoro img,
  .honden-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .midokoro-text {
    width: 100%;
    font-size: 16px;
    line-height: 1.9;
    padding: 0 10px;
  }

  .sanpai-list dl {
    margin: 0 auto;
    max-width: 320px;
  }

  .sanpai-list dd {
    width: auto;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
  }
}

/* ===============================
画像一覧 SECTION
================================*/
.highlights-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 0px 0 45px;
  box-sizing: border-box;
}

.other-heading {
  font-size: 32px;
  margin-bottom: 40px;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
}

.row {
  display: flex;
  justify-content: space-between;
}

.card {
  width: 29%;
  position: relative;
  padding-bottom: 40px;
}

.label {
  position: absolute;
  left: -44px;
  top: -33px;
  writing-mode: vertical-rl;
  background: #000;
  color: #fff;
  padding: 7px 7px;
  font-size: 16px;
  letter-spacing: 2px;
  width: 30px;
  height: 165px;
}

.midokro-box {
  aspect-ratio: 390 / 350;
  align-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.midokro-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img {
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

.imgae-text {
  width: 100%;
  font-size: 16px;
  line-height: 1.8;
}

/* ================================
レスポンシブ対応
================================ */

/* ▼ タブレット（2カラム） */
@media (max-width: 900px) {
  .card {
    width: 48%;
    padding-bottom: 32px;
  }

  .label {
    left: -20px;
    top: 0px;
    transform: none;
  }
}

/* ▼ スマホ（1カラム） */
@media (max-width: 768px) {
  .highlights-section {
    margin-top: 315px;
    margin-bottom: 100px;
  }

  .highlights-container {
    max-width: 100%;
    padding: 30px 0 0;
  }

  /* 1カラム縦並び */
  .row {
    flex-direction: column;
    align-items: center;
    /* ←中央寄せの要 */
    gap: 5px;
  }

  .card {
    width: 80%;
    max-width: 450px;
    text-align: center;
    padding-bottom: 24px;
  }

  /* 画像も中央扱い */
  .midokro-box,
  .img {
    width: 90%;
    margin: 0 auto 20px;
  }

  .imgae-text {
    font-size: 13px;
  }
}
