/*
 * 松原仏光殿 page-specific styles.
 * Load after assets/css/honkan-renewal.css and assets/css/senboku-new.css.
 * Font sizes intentionally inherit from the existing hall pages; the weight
 * settings below match the 泉北仏光殿 page.
 */

/*
 * The standard page template reserves space for the sidebar. This hall page
 * uses the same edge-to-edge layout as the 泉北仏光殿 renewal page.
 */
body.matubara_new main,
body.matubara-new-template main {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

body.matubara_new .sidebar_content,
body.matubara-new-template .sidebar_content {
  display: none;
}

body.matubara_new .honkan-page,
body.matubara-new-template .honkan-page {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.matubara-new-template,
.matubara-new-template button,
.matubara-new-template input,
.matubara-new-template select,
.matubara-new-template textarea {
  color: #063c71;
  /* 本館と同じ明朝体スタック（honkan-renewal.cssで定義）を使用する。 */
  font-family: var(--honkan-serif, "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif);
  font-weight: inherit;
}

.matubara-hero-subtitle {
  display: block;
  margin-top: 0.08em;
  font-size: 0.5em;
  line-height: 1.35;
}

/* 車での経路が続いて見えないよう、経路ごとに適度な間隔を設ける。 */
.matubara-new-template .matubara-access-route {
  display: block;
}

.matubara-new-template .matubara-access-route + .matubara-access-route {
  margin-top: 0.5em;
}

/* ヒーローの縦サイズに合わせ、画面幅が変わっても余白を出さない。 */
.senboku-new-template.matubara-new-template .honkan-hero {
  overflow: hidden;
}

.senboku-new-template.matubara-new-template .honkan-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 761px) {
  .senboku-new-template.matubara-new-template .honkan-hero {
    /* 画像比率に近づけ、横長画面で上下が大きく切れるのを防ぐ。 */
    height: clamp(700px, 41vw, 1050px);
  }

  .senboku-new-template.matubara-new-template .honkan-hero__image {
    /* 必要なトリミングは左側の空へ逃がし、会館全体を優先する。 */
    object-position: right center;
  }
}

/* デザインどおり、PCでは会館名とCTAをヒーロー左側へ配置する。 */
@media (min-width: 761px) {
  .senboku-new-template.matubara-new-template .honkan-hero::before {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.84) 26%,
      rgba(255, 255, 255, 0.58) 34%,
      rgba(255, 255, 255, 0.2) 42%,
      rgba(255, 255, 255, 0) 48%
    );
  }

  .senboku-new-template.matubara-new-template .honkan-hero > .honkan-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .senboku-new-template.matubara-new-template .honkan-hero__body {
    width: clamp(440px, 48vw, 620px);
    margin-right: 0;
    margin-left: clamp(24px, 3vw, 48px);
    text-align: center;
    transform: translateY(18px);
  }

  .senboku-new-template.matubara-new-template .honkan-hero__eyebrow,
  .senboku-new-template.matubara-new-template .honkan-hero h1,
  .senboku-new-template.matubara-new-template .honkan-hero__copy {
    box-sizing: border-box;
    width: 600px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .senboku-new-template.matubara-new-template .honkan-hero__eyebrow {
    white-space: nowrap;
  }

  .senboku-new-template.matubara-new-template .honkan-hero .honkan-cta-row {
    width: 100%;
    gap: 20px;
  }
}

.matubara-feature-list {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.matubara-course-facilities {
  display: grid;
  gap: 18px;
}

.matubara-course-facilities .honkan2-facility-group:first-child .honkan2-facility-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.matubara-course-facilities .honkan2-facility-group:last-child .honkan2-facility-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.matubara-course-facility span:first-child {
  display: block;
}

.matubara-type-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}

/* 親族控室の説明は、注記のみ2行目に送る。 */
@media (min-width: 768px) {
  .matubara-family-room-caption {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .matubara-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matubara-feature-list li:last-child {
    grid-column: 1 / -1;
  }

  .matubara-course-facilities .honkan2-facility-group:first-child .honkan2-facility-grid,
  .matubara-course-facilities .honkan2-facility-group:last-child .honkan2-facility-grid,
  .matubara-type-grid {
    grid-template-columns: 1fr;
  }
}

.senboku-new-template .honkan2-feature-strip .honkan2-feature-list {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  max-width: 1100px !important;
}

@media (max-width: 767px) {
  .senboku-new-template.matubara-new-template .honkan2-feature-strip .matubara-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .senboku-new-template.matubara-new-template .matubara-feature-list li {
    justify-content: flex-start !important;
    padding-right: 8px;
    padding-left: 16px;
  }

  .senboku-new-template.matubara-new-template .matubara-feature-list li:nth-child(even) {
    border-right: 0 !important;
  }

  .senboku-new-template.matubara-new-template .matubara-feature-list li:last-child {
    grid-column: auto !important;
    border-right: 1px solid #a4afc8 !important;
  }
}

.honkan2-area-tags-secondary {
  font-size: 1.7rem !important;
}

@media (max-width: 760px) {
  .honkan-hero__image {
    object-position: 55% 25% !important;
  }
}

@media (max-width: 700px) {
.honkan2-area-tags span {
  font-size: 1.4rem !important;
}
}

.honkan2-reason-lead {
  max-width: 860px !important;
}

.senboku-new-template .honkan2-area-tags-secondary {
  font-size: 1.9rem !important;
}

.honkan2-area-tags span {
  padding: 10px 2px !important;
}

.honkan-voices {
  padding: 28px 47px 34px !important;
}

/* 一日葬の注記を本館と同じ改行・字下げにする。 */
.matubara-new-template .honkan-cost-card--course .honkan2-course-note {
  margin:10px 11px 0 !important;
}

.matubara-new-template .honkan-cost-card--course .honkan2-course-note__second-line {
  display:inline-block;
  margin-left:13px;
}

/* 一般葬のコース名と料金を本館と同じ横並びにする。 */
.matubara-new-template .honkan-cost-card--course .matubara-general-course-price {
  display:flex;
  flex-flow:row nowrap;
  justify-content:center;
  align-items:flex-end;
  gap:4px;
}

.matubara-new-template .matubara-general-course-price .honkan-cost-course-name__label {
  flex:0 0 auto;
  width:auto;
  margin:0 2px 4px 0;
}

/* 料金内訳の「＋」「＝」を各カードの中心線上に揃える。 */
@media (min-width: 701px) {
  .matubara-new-template .honkan-cost-operator {
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 20px;
    margin: 0;
    line-height: 1;
    text-align: center;
  }
}

/* 松原仏光殿ヒーロー：本館と同じ大きさ・余白で左側に配置する。 */
@media (min-width:1400px) {
  .senboku-new-template.matubara-new-template .honkan-hero > .honkan-container {
    display:flex;
    justify-content:flex-start;
    width:100%;
    max-width:none;
    margin-right:0;
    margin-left:0;
  }

  .senboku-new-template.matubara-new-template .honkan-hero__body {
    width:700px;
    margin-right:auto;
    margin-left:clamp(72px, 7.5vw, 132px);
    text-align:center;
    transform:translateY(-60px);
  }

  .senboku-new-template.matubara-new-template .honkan-hero__eyebrow {
    font-size:24px;
    line-height:1.5;
  }

  .senboku-new-template.matubara-new-template .honkan-hero__body h1 {
    font-size:68px;
    line-height:1.2;
  }

  .senboku-new-template.matubara-new-template .honkan-hero__copy {
    box-sizing:border-box;
    width:600px;
    max-width:100%;
    margin-right:auto;
    margin-left:auto;
    font-size:20px;
    line-height:1.75;
    text-align:left;
  }

  .senboku-new-template.matubara-new-template .honkan-hero .honkan-cta-row {
    width:560px;
    margin-top:82px;
    margin-right:auto;
    margin-left:auto;
    gap:20px;
  }

  .senboku-new-template.matubara-new-template .honkan-hero .honkan-cta {
    flex:1 1 0;
    width:auto;
    min-width:0;
  }
}

.honkan2-area-box {
  padding: 42px 23px !important;
}

.senboku-new-template .honkan2-area-tags-secondary {
  font-size: 1.75rem !important;
}

/* 地域タグを見やすくし、長い地域名は枠内に収まるサイズにする。 */
@media (min-width: 701px) {
  .matubara-new-template .honkan2-area-tags-secondary > span {
    font-size: 2.2rem !important;
    white-space: nowrap;
  }

  /* 最も文字数が多い「大阪市東住吉区 葬儀」のみ枠内に収める。 */
  .matubara-new-template .honkan2-area-tags-secondary > span:nth-child(5) {
    font-size: 2rem !important;
  }
}

/* お葬儀費用の導入部分も、本館と同じ明朝体に統一する。 */
.matubara-new-template .honkan-cost-intro {
  font-family: var(--honkan-serif, "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif);
}

/* 本館と同じ書体・文字組み・左右位置に統一する。 */
.matubara-new-template .honkan-cost-details .honkan-container {
  max-width: 985px;
}

.matubara-new-template .honkan-cost-details .honkan-cost-block {
  margin-bottom: 0;
  color: #173576;
  text-align: center;
}

.matubara-new-template .honkan-cost-details .honkan-cost-block h3 {
  margin: 0 0 30px;
  color: #12366f;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.matubara-new-template .honkan-cost-details .honkan-cost-block p {
  margin: 0 auto;
  font-size: 2.1rem;
  line-height: 1.85;
  font-weight: bold !important;
}

.matubara-new-template .honkan-cost-details .honkan-cost-block > p {
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

/* 「葬儀費用3」は見出しを中央、本文を読みやすい幅の左揃えにする。 */
.matubara-new-template .honkan-cost-details .honkan-cost-block_padding > p {
  width: min(100%, 985px);
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.matubara-new-template .honkan-cost-details .honkan2-cremation-rates_margin + p {
  width: auto;
  text-align: center;
}

@media (max-width: 700px) {
  .matubara-new-template .honkan-cost-details .honkan-cost-block {
    margin-bottom: 60px;
  }

  .matubara-new-template .honkan-cost-details .honkan-cost-block h3 {
    font-size: 1.55rem;
  }

  .matubara-new-template .honkan-cost-details .honkan-cost-block p,
  .matubara-new-template .honkan-cost-details .honkan2-cremation-rates {
    font-size: 1.6rem;
  }
}

.matubara-new-template .honkan-cost-support em,
.matubara-new-template .honkan-cost-question em {
  font-size: 2.8rem !important;
  font-weight: bold !important;
}

.matubara-new-template .honkan-bubble ul {
  inset: 17% 17% 23% 14% !important;
  font-size: 2.2rem !important;
  font-weight: bold !important;
}

@media (max-width: 760px) {
  .matubara-new-template .honkan-bubble ul {
    inset: 17% 14% 23% 9% !important;
    font-size: 1.5rem !important;
  }
}

.matubara-new-template .honkan-cost-clarity em {
  font-size: 1.6em !important;
}

.matubara-new-template .honkan-cost-components {
  font-size: 2.6rem !important;
  font-weight: bold !important;
}

.honkan-faq-tel {
  display:grid;
  grid-template-columns:auto auto auto;
  align-items:center;
  justify-content:center;
  gap:8px 24px;
  width:100%;
  max-width:640px;
  margin:4px 0 22px;
  padding:16px 22px;
  border:1px solid #174ea6;
  border-radius:10px;
  background:#eef7ff;
  color:#143a87;
  text-decoration:none;
  box-sizing:border-box;
  transition:background-color .2s ease, transform .2s ease;
}

.honkan-faq-tel:hover {
  background:#e1f0ff;
  transform:translateY(-1px);
}

.honkan-faq-tel__label,
.honkan-faq-tel__hours {
  font-size:1.5rem;
  font-weight:600;
  line-height:1.4;
}

.honkan-faq-tel__number {
  position:relative;
  padding-left:30px;
  font-family:Arial, sans-serif;
  font-size:2.8rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.04em;
  white-space:nowrap;
}

.honkan-faq-tel__number::before {
  content:"\260E";
  position:absolute;
  top:50%;
  left:0;
  font-size:2.2rem;
  transform:translateY(-50%);
}

.honkan-page a.honkan-faq-tel {
  color:#143a87;
}

@media (max-width:520px) {
  .honkan-faq-tel {
    grid-template-columns:1fr;
    gap:2px;
    margin-bottom:18px;
    padding:14px 16px;
    text-align:center;
  }

  .honkan-faq-tel__number {
    padding-left:26px;
    margin:3px auto;
    font-size:2.5rem;
  }

  .honkan-faq-tel__number::before {
    font-size:1.9rem;
  }

  .honkan-faq-tel__label,
  .honkan-faq-tel__hours {
    font-size:1.3rem;
  }
}

.honkan2-reason-lead {
  max-width: 890px !important;
}

.honkan2-reason-note {
  max-width: 890px !important;
}

.honkan2-facility_o img {
  width: 125px !important;
}

.honkan-access__info {
  padding: 28px 20px !important;
}
