/* ===========================
   来法寺 — style.css
   Base: Bulma 1.0.2 CDN
=========================== */

/* --- Global --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  color: #333;
  background: #fff;
}

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

.mt-10{
  margin-top: 10%;
}

.spacer-10{
  margin-top: 10%;
}

.gap-1 { column-gap: 1rem; }
.gap-2 { column-gap: 2rem; }
.gap-3 { column-gap: 3rem; }
.gap-4 { column-gap: 4rem; }

/* ===========================
   Section 1 — Hero
=========================== */
.hero-main {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-main .hero-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: max(200px, 5vw);
}

.hero-btn .btn-temple {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
  background-color: #f2f2f2;
  opacity: 0.8;
  transition: 0.2s;
}
.hero-btn .btn-temple:hover {
  transition: 0.2s;
  opacity: 1;
}

/* ===========================
   Section 2 — Intro
=========================== */
.intro-section {
  position: relative;
  padding: 7rem 1.5rem;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.intro-watermark {
  position: absolute;
  top: -40%;
  left: 50%;
  margin-bottom: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 80vw);
  pointer-events: none;
  z-index: 0;
}

.intro-text {
  position: relative;
  z-index: 1;
  line-height: 3.2;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #444;
}

/* ===========================
   Shared — Section heading (縦書き)
=========================== */
.section-head-col {
  align-items: center;
  padding: 0 1.5rem 0 2rem;
  min-width: 4rem;
}

.section-heading-v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.25rem;
  letter-spacing: 0.4em;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
  margin-top: 20px;
}

.section-vline {
  width: 1px;
  height: 15rem;
  background: #aaa;
  margin-top: 2rem;
  margin-left: 0.8rem;
}

/* ===========================
   Section 3 — 来法寺について
=========================== */
.about-temple {
  position: relative;
  z-index: 0;
}

.about-temple ::before {
  content: "";
  background: #f5f2ec;
  position: absolute;
  padding: 5rem 0 4rem;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  z-index: -1;
}

.about-temple .photo-col img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-temple .desc-wrap {
  position: relative;
  width: 100%;
  padding: 0 2rem;
  line-height: 2.2;
  font-size: 0.95rem;
  color: #444;
}

.event-table{
  height: 100%;
}

.table td {
  padding: 1.84rem 1.84rem;
  font-size: 1rem;
}

.table td:first-child {
  width: 10rem;
}


.table.is-striped tbody tr:nth-child(odd) {
  background-color: #fff;
}

.table.is-striped tbody tr:nth-child(even) {
  background-color: #f5f2ec!important;
}

/* ===========================
   Section 4 — 納骨堂について
=========================== */
.ossuary-top {
  display: flex;
  align-items: flex-start;
}

.photo-full {
  flex: 1;
  overflow: hidden;
  margin-left: -1.2rem;
}


.photo-full img {
  width: 100%;
  object-fit: cover;
}

.ossuary-bottom {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.ossuary-bottom .text-col {
  flex: 1;
  line-height: 2.8;
  font-size: 0.95rem;
  color: #444;
}

.ossuary-bottom .photo-col {
  flex: 1;
}

.ossuary-bottom .photo-col img {
  width: 100%;
  object-fit: cover;
}

.btn-temple {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.85rem 3.5rem;
  border: 1px solid #666;
  background: transparent;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: #444;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-temple:hover {
  background: #f0ede6;
}

/* ===========================
   Section 5 — 来法寺の歴史
=========================== */

.section-line {
  width: 100%;
  height: 1px;
  background: #aaa;
  margin-top: 0;
  margin-bottom: 1rem;
}

.history-section {
  background: #fff;
  padding: 0 0 5rem;
  overflow: hidden;
}

.history-hero-img {
  flex: 1;
  overflow: hidden;
}

.history-hero-img img {
  width: 100%;
  object-fit: cover;
}

.history-head-row {
  display: flex;
  justify-content: flex-start;
  padding: 2.5rem 3rem 2.5rem 0;
}

.history-content {
  gap: 3rem;
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.history-sub {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.history-sub.reverse {
  flex-direction: row-reverse;
}

.history-sub .text-col {
  flex: 1;
}

.history-sub .text-col h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.history-sub .text-col p {
  font-size: 0.9rem;
  line-height: 2.2;
  color: #444;
}

.history-sub .photo-col {
  flex: 1;
}

.history-sub .photo-col img {
  width: 100%;
  object-fit: cover;
}

.history-docs {
  margin-bottom: 4rem;
}

.history-docs h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.history-docs .docs-text {
  font-size: 0.88rem;
  line-height: 2.0;
  color: #444;
  margin-bottom: 2rem;
}

.history-docs .photos-row img {
  width: 100%;
  object-fit: cover;
  margin-left: -5%;
}

/* ===========================
   Section 6 — 交通アクセス
=========================== */
.access-section {
  background: #fff;
  padding: 5rem 0 4rem;
}

.access-top {
  display: flex;
  align-items: flex-start;
}

.access-top .map-col img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.access-middle {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.access-middle .info-col {
  flex: 1;
  font-size: 0.9rem;
  line-height: 2.4;
  color: #444;
  padding-left: 5rem;
}

.access-middle .info-col p { margin-bottom: 0.2rem; }
.access-middle .info-col .info-label { font-weight: 500; margin-top: 1rem; }

.access-middle .diagram-col {
  flex: 1;
}

.access-middle .diagram-col img {
  width: 100%;
}

.access-map-grounds {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.access-map-grounds img {
  width: 100%;
}

.access-parking {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  font-size: 0.9rem;
  line-height: 2.2;
  color: #444;
}

.map-col{
  position: relative;
  width: 150%;
  padding-top: 56.25%; /* 16:9比率 */
}

.map-col iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  border: 0;
}

/* ===========================
   Section 7 — お問い合わせ
=========================== */
.contact-section {
  background: #f5f2ec;
  padding: 6rem 1.5rem;
  text-align: center;
}

.contact-section .contact-lead {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 1.5rem;
}

.contact-section .contact-tel {
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: #333;
  margin-bottom: 2.5rem;
}

/* ===========================
   Section 8 — Footer
=========================== */
.site-footer {
  background: #3a3535;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 6rem;
  width: auto;
}

.footer-icons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer-icons a {
  color: #fff;
  font-size: 1.4rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-icons a:hover { opacity: 1; }

/* ===========================
   contact.html — Page styles
=========================== */

/* ページ見出しエリア */
.contact-page-hero {
  position: relative;
  overflow: hidden;
}

.contact-page-hero .hero-img {
  width: 100%;
  object-fit: cover;
}

.contact-page-hero .hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.contact-page-hero .hero-text-overlay .section-heading-v {
  color: #fff;
}

/* フォームコンテナ */
.contact-form-section {
  background: #fff;
  padding: 5rem 2rem 6rem;
}

.contact-form-wrap {
  max-width: 620px;
  margin: 0 auto;
}

/* フィールド wrapper */
.form-field {
  margin-bottom: 2.8rem;
}

/* ラベル */
.form-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: #666;
  margin-bottom: 0.8rem;
}

.form-label .required {
  color: #8b6548;
  margin-left: 0.4rem;
  font-size: 0.75rem;
}

/* インプット共通（下線のみ） */
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #bbb;
  border-radius: 0;
  padding: 0.5rem 0;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.95rem;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: #8b6548;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: 0.5rem;
}

/* セレクト（矢印カスタム） */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  color: #999;
  pointer-events: none;
  font-size: 0.85rem;
}

/* 送信ボタンエリア */
.form-submit {
  margin-top: 3.5rem;
  text-align: center;
}

.btn-temple[type="submit"] {
  border: 1px solid #666;
  padding: 0.85rem 4rem;
  background: transparent;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #444;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-temple[type="submit"]:hover {
  background: #f0ede6;
}

/* honeypot（スパム対策） */
.form-honeypot {
  display: none;
}

/* ===========================
   ossuary.html — Page styles
=========================== */

/* 1. ヒーロー写真 ＋ 縦書きオーバーレイ */
.ossuary-page-hero {
  position: relative;
  overflow: hidden;
}

.ossuary-page-hero .hero-img {
  width: 100%;
  object-fit: cover;
}

.ossuary-page-hero .hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ossuary-page-hero .hero-text-overlay .section-heading-v {
  color: #fff;
}


/* 2. イントロ（テキスト左・写真右） */
.ossuary-intro {
  background: #f5f2ec;
  padding: 5rem 2rem;
}

.ossuary-intro-inner {
  display: flex;
  gap: 3.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.ossuary-intro-inner .text-col {
  flex: 1;
  line-height: 2.8;
  font-size: 0.95rem;
  color: #444;
}

.ossuary-intro-inner .photo-col {
  flex: 1;
}

.ossuary-intro-inner .photo-col img {
  width: 100%;
  object-fit: cover;
}

/* 3. 背景文（ベージュ・中央揃え） */
.ossuary-reason {
  padding: 5.5rem 2rem;
  text-align: center;
}

.ossuary-reason p {
  line-height: 3.2;
  font-size: 0.93rem;
  color: #444;
  letter-spacing: 0.05em;
}

/* 4. このような方にお勧めします */
.ossuary-recommend {
  background: #fff;
  padding: 6rem 2rem;
  text-align: center;
}

.ossuary-recommend h2 {
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 3.5rem;
  color: #333;
}

.ossuary-recommend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ossuary-recommend li {
  font-size: 0.93rem;
  letter-spacing: 0.06em;
  line-height: 3.2;
  color: #444;
}

/* 5. お申込みについて */
.ossuary-apply {
  background: #f5f2ec;
  padding: 5.5rem 2rem;
  text-align: center;
}

.ossuary-apply .apply-heading {
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: #555;
  margin-bottom: 1.5rem;
}

.ossuary-apply .apply-tel {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: #333;
  margin-bottom: 2rem;
  font-weight: 400;
}

.ossuary-apply .apply-note {
  font-size: 0.88rem;
  line-height: 2.4;
  color: #555;
}

/* 6. 納骨堂タイプ ＋ 合葬墓 */
.ossuary-types-section {
  background: #fff;
  padding: 5rem 0 3rem;
}

.types-block {
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.types-content {
  flex: 1;
}

.type-item {
  margin-bottom: 4rem;
}

.type-item img {
  max-width: 320px;
  height: auto;
}

.type-item .type-label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.type-item .type-dims {
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.05em;
}

.gassou-content img {
  max-width: 340px;
  height: auto;
}

  .contact-text{
    line-height: 2rem;
  }

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }

  .sp-reverse {
    display: flex;
    flex-direction: column-reverse;
  }

  .ossuary-bottom {
    display: flex;
    flex-direction: column;
  }
  .sp-reverse .text-col {
    order: 2;
  }
  .sp-reverse .photo-col {
    order: 1;
  }

  .hero-main {
    height: 80svh;
    max-height: none;
  }


  .hero-main .hero-body {
    min-height: 80svh;
  }

  .hero-logo {
    width: 200px;
  }

  .hero-btn .btn-temple{
    right: 50%;
    transform: translateX(50%);
    padding: 1rem;
  }

  .intro-watermark {
  top: -10%;
  left: 50%;
  margin-bottom: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 80vw);
  pointer-events: none;
  z-index: 0;
 }

  .about-temple .cols-wrap,
  .ossuary-top,
  .ossuary-bottom,
  .history-sub,
  .history-sub.reverse,
  .access-top,
  .access-middle {
    flex-direction: column;
  }

  .section-head-col {
    flex-direction: row;
    padding: 2rem 1.5rem 1rem;
    align-items: center;
    gap: 1rem;
  }


  .section-heading-v {
    writing-mode: horizontal-tb;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 0px;
  }

  .section-vline {
    width: 40px;
    height: 1px;
    margin-top: 0;
  }

  .about-temple .photo-col img,
  .ossuary-top .photo-full img,
  .history-hero-img img {
    height: 260px;
  }

.about-temple {
  position: relative;
  z-index: 0;
}

.about-temple ::before {
  content: "";
  background: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}


.about-temple .desc-wrap {
  position: relative;
  width: 100%;
  padding: 0 2rem;
  line-height: 2.2;
  font-size: 0.95rem;
  color: #444;
}

  .history-head-row {
    justify-content: flex-start;
    padding: 2rem 1.5rem;
  }

  .history-head-row {
    text-align: center;
    width: 100%;
  }
  .section-head-col {
    width: 100%;
  }

  .ossuary-bottom {
    margin-top: 2rem;
    gap: 2rem;
  }

  .history-docs .photos-row {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .history-docs .photos-row img {
    width: 100%;
    height: 200px;
    display: block;
    margin: 0 auto;
  }
  

  .access-middle .info-col {
  flex: 1;
  font-size: 0.9rem;
  line-height: 2.4;
  color: #444;
  padding-left: 0rem;
}

.map-col{
  margin-top: 5rem;
  position: relative;
  width: 100%;
  padding-top: 100%;
}

.map-col iframe {
  position: absolute;
  text-align: center;
  width: 100%;
  height: 100%;
  border: 0;
}

  /* ossuary.html responsive */
  .ossuary-intro-inner {
    flex-direction: column;
  }

  .ossuary-intro-inner .photo-col img {
    height: 260px;
  }

  .types-block {
    flex-direction: column;
  }

  .type-item img,
  .gassou-content img {
    max-width: 100%;
  }

  .site-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .contact-section .contact-tel {
    font-size: 1.8rem;
  }
}
