@charset "UTF-8";

/* ===========================
大應真教について /about/
=========================== */
.about-hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
}

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

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

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

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

/* ===========================
スマホ対応
=========================== */
@media screen and (max-width: 768px) {
  .about-menu {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .about-hero-title h1 {
    font-size: 20px;
  }
}

.about-fullwidth-bg {
  width: 100%;
  height: 930px;
  background-image: url(../../about/img/about_daiohshinkyo.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px;
  /* position: relative; */
}

.shinnogi47Wrap {
  display: flex;
  /* margin-top: 150px; */
  justify-content: center;
  flex-direction: row-reverse;
  margin-bottom: 50px;
}

/* 大應真教とはテキスト */
.daiou-text {
  writing-mode: vertical-rl;
  /* position: absolute; */
  /* top: 25%;
  left: 50%;
  transform: translate(-50%, -50%); */
  font-size: 40px;
  color: #000;
  padding: 6px 4px;
  border-radius: 4px;
}

/* 真の義四七五項テキスト */
.shinnogi-text {
  writing-mode: vertical-rl;
  /* position: absolute; */
  /* top: 29%;
  left: 18%;
  transform: translate(-50%, -50%); */
  font-size: 24px;
  color: #000;
  padding: 6px 4px;
  border-radius: 4px;
}

/* 内容テキスト */
.date-text {
  /* position: absolute; */
  /* top: 70%;
  left: 50%; */
  /* transform: translate(-50%, -50%); */
  font-size: 18px;
  color: #48525b;
  padding: 6px 4px;
  border-radius: 4px;
  line-height: 2.5;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .about-fullwidth-bg {
    background-image: url(../../about/img/about_daiohshinkyo.webp);
    /* height: 650px; */
  }

  .daiou-text {
    /* top: 25%;
    left: 50%;
    transform: translate(-50%, -50%); */
    font-size: 25px;
  }

  .shinnogi-text {
    writing-mode: vertical-rl;
    /* position: absolute; */
    /* top: 28%;
    left: 18%;
    transform: translate(-50%, -50%); */
    font-size: 15px;
    color: #000;
    padding: 6px 4px;
    border-radius: 4px;
  }

  .date-text {
    /* position: absolute; */
    /* top: 65%;
    left: 50%;
    transform: translate(-50%, -50%); */
    font-size: 13px;
    color: #000;
    padding: 6px 4px;
    border-radius: 4px;
    width: 100%;
  }
}

/* ===========================
大應真教の歩み
=========================== */
.timeline-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- タイムライン全体 ---------- */
.daioh-timeline {
  vertical-align: middle;
  width: 100%;
  padding: 150px 0px;
  text-align: center;
}

/* timeline-line（縦線）スタイル */
.timeline-line {
  position: absolute;
  left: 60px;
  width: 2px;
  z-index: 1;
}

/* ---------- wrapper を flex に戻す（PC は 4カラム） ---------- */
.timeline-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 100px;
  position: relative;
  align-items: flex-start;
  box-sizing: border-box;
}

/* 各アイテム（PC・横並び） */
.timeline-item {
  width: calc(25% - 22.5px);
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

/* 年号（画像中央上） */
.timeline-year {
  width: 102px;
  height: 23px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 14px;
  padding: 5px 14px;
  white-space: nowrap;
  z-index: 4;
}

/* 年号が空のときは完全に非表示にする */
.timeline-year:empty {
  display: none;
}

/* ドット */
.timeline-dot {
  background-image: url("../../about/img/dot.png");
  width: 44px;
  height: 50px;
  margin: 40px auto 12px;
  position: relative;
  z-index: 5;
}

/* 画像 */
.timeline-item img {
  display: block;
  margin-bottom: 10px;
}

/* 説明文 */
.timeline-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  text-align: left;
}

/* ---------- PC：1本の横破線を wrapper 全体に引く ---------- */
@media screen and (min-width: 769px) {
  .timeline-dot::after {
    display: none !important;
  }

  /* wrapper の左端（＝1枚目画像左端）〜右端（＝4枚目画像右端）を貫く */
  .timeline-wrapper::before {
    content: "";
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    border-top: 1px dashed #bdbdbd;
    z-index: 1;
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .timeline-section {
    padding: 0 20px;
  }

  /* ---------- 1本の縦線を全体に描く ---------- */
  .daioh-timeline {
    margin: 0 auto;
    position: relative;
  }

  /* ---------- wrapper 内の線は削除 ---------- */
  .timeline-wrapper::before {
    display: none !important;
  }

  /* ---------- アイテム ---------- */
  .timeline-wrapper {
    display: block;
    margin-bottom: 20px;
    position: relative;
  }

  .timeline-item {
    width: 100%;
    position: relative;
    margin-bottom: 70px;
  }

  /* ドット位置調整（線と重ねる） */
  .timeline-dot {
    background-image: url("../../about/img/dot2.png");
    width: 50px;
    height: 30px;
    position: absolute;
    left: 35px;
    z-index: 2;
    top: 0;
  }

  .timeline-dot::after {
    display: none;
  }

  .timeline-item img {
    width: 60%;
    margin-left: 85px;
  }

  .timeline-desc {
    max-width: 100%;
    width: auto;
    font-size: 13px;
    padding: 0 50px 0 80px;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.7;
  }
}

/* ===========================
交通案内
=========================== */
.access-section {
  width: 100%;
  text-align: center;
  padding: 100px 0 1px;
  background-color: #fefae9;
}

.access-date {
  max-width: 1200px;
  margin: 40px auto;
}

.access-date h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.access-date .access-divider {
  border: none;
  border-top: 2px solid #3f3f3f;
  margin: 15px 0 20px;
}

.access-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.access-map {
  flex: 1 1 300px;
  /* 地図の縦横比など調整したい場合はここで設定 */
}

.access-map img,
.access-map iframe {
  width: 100%;
  height: auto;
  border: none;
}

.access-info {
  flex: 1 1 300px;
}

.access-info dl {
  margin: 0px 110px;
}

.access-info dt {
  font-weight: bold;
  margin-top: 10px;
}

.access-info dd {
  text-align: left;
  font-size: 20px;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.baypass {
  font-size: 20px;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.access-img {
  display: flex;
  justify-content: center;
}

.access-img img {
  max-width: 100%;
  height: auto;
}

/* スマホ */
@media (max-width: 768px) {
  .access-info dl {
    margin: 0 auto;
    /* ← これが重要 */
    max-width: 320px;
    /* 任意：横幅制御 */
  }

  .access-info {
    text-align: center;
    /* 見た目を中央に */
  }

  .access-info dd {
    width: auto;
    /* 固定幅を解除 */
    font-size: 15px;
    text-align: left;
    /* テキストは左揃え */
  }

  .access-date {
    padding: 0 20px;
  }

  .baypass {
    font-size: 14px;
    margin: 0 15px 20px 0;
  }

  .access-content {
    gap: 50px;
  }
}
