@charset "UTF-8";

/**----SEO画面表示無し　--------------------**/
.site-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/**----共通　--------------------**/
html{
  scroll-behavior: smooth;
}
:root {
    --main-text-color: #333;
    --base-color: #726658;/*#9a8268薄い#ddd0c6*/
    --contact-color: #3f6a9c;/*#3f6a9c/#5c7faa/##187fb1*/
    /*追尾ボタン#3f6a9c*/
    /*ホバー色#f2f2f2*/
    /*#726658の薄いバージョン#ddd0c6*/
    /*紫#8e5a7a*/
}

a {
    transition: 0.4s;
}

@media (hover: hover) {
    a:hover {
        opacity: 0.4;
    }

}

body {
    font-family: "Noto Serif JP", serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: var(--main-text-color);
    box-sizing: border-box;
    position: relative;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(8px, 5vw, 42px);
  box-sizing: border-box;
}

.footer-inner {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  width: clamp(300px, 90vw, 1000px);
}

section{
    margin: 48px 0;
}


@media(max-width:767px) {
    body::before {
        background-size: cover;
        background-position: center;
    }

}

h1{
  font-size: 40px;
  font-weight: 700;
}

h2{
  font-size: 28px;
  padding-bottom: 8px;
  color: #726658;
  font-weight: 700;
}

h3{
  font-size: 24px;
  font-weight: 600;
}

h4{
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 4px;
}

h5{
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 2px;
  color: #726658;
}

span{
  display: inline-block;
}

.line-text {
  text-align: center;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  display: block;
  width: fit-content;
  padding: 8px 24px;
  margin: 0 auto 32px;
}

.text-center{
  text-align: center;
}

/**----共通終了　-----------------------------------------**/




/**----共通ヘッダー全体コード　--------------------------------**/

/**----PC表示・非表示　-----------------------------------**/
/* PCナビ */
.pc-menu {
  display: block;
}
.sp-menu {
  display: none;
}

.site-header {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}
/* 最上部--豊中市・淀川区・西淀川区で6つの斎場で眞心込めたお葬式を-- */
/* .header_maxtop{
    background-color: #e4f4fc;
    text-align: center;
    font-size: 14px;
} */
/* 上部 */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0px;
}

/* 左-- ロゴ・キャッチ -- */
.header-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.text-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 42px;
  display: block;
}

.syamei {
  font-size: 32px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translateY(3px);
}
.catch {
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 600;
  padding-left: 32px;
  text-align: center;
  transform: translateY(3px);
}

.header-logo-link{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
  gap: 8px;
}

.header-logo-link:hover{
  opacity:1; /* 必要なら */
}






/*右-- 電話・問い合わせ --*/
.header-contact {
    border: 2px solid #9a8268;
    line-height: 1.2;
  display: flex;
  align-items: stretch;
}

.header-contact:hover {
  opacity: 0.4;
  transition: 0.4s;
}

.tel-wrap {
  display: flex;
  align-items: stretch;
}

/* 電話ボックス */
.tel-box {
  background: #fff;
  padding: 3px 6px 0px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tel-text {
  font-size: 12px;
  color: #333;
}

.btn-detail{
    font-size: 12px;
    font-weight: 800;
}

.tel-number {
  font-size: 24px;
  font-weight: 800;
  padding-top: 1px;
}

/* お問い合わせボタン */
.contact-btn {
  background: #9a8268;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4px 8px;
  white-space: nowrap;
  align-content: center;
  font-size: 14px;
}
.tel-box,
.contact-btn {
  height: 100%;
}


/**----ナビ　--------------------**/
.header {
  background-color: #fff;
}
.header-list {
  display: flex;
  justify-content: center;
}
.header-item {
  transition: background-color .3s;
}
.header-item:hover {
  background-color: #f2f2f2;
}
.header-item a {
  color: #333;
  display: block;
  padding: 20px;
}
.megaMenu {
    z-index: 1000;
  background-color: #fff;
  left: 0;
  opacity: 0;
  position: absolute;
  text-align: center;
  visibility: hidden;
  width: 100%;
  transition: opacity .3s, visibility .3s;
}
.megaMenu-list {
  padding-bottom: 30px;
  padding-top: 30px;
}
.megaMenu-item {
  display: inline-block;
}

/* メニューをhoverした時のスタイル */
.header-item:hover .megaMenu {
  opacity: 1;
  visibility: visible;
}

.header-nav {
  font-weight: 600;
}

.header-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav > ul > li {
  border-left: 1px solid #ccc;
}



.header-nav a {
  display: block;
  padding: 15px 25px;
  text-decoration: none;
  font-size: 14px;
}

/* ホバー */
.header-nav a:hover {
  background: #f5f5f5;
}

.place-photo{
  display: block;
  width: 200px;
  height: auto;
}



/* hamburger-menu */
/* =========================
 ハンバーガー
========================= */
.hamburger {
  display: none;
  width: 30px;
  height: 32px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #333;
  left: 0;
  transition: 0.3s;
}
.hamburger-text{
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 1px;
  color: #333;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* 開いた時（×） */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}



/**----下固定ボタン　--------------------**/

/* 全体 */
.cta-header {
  background: linear-gradient(90deg, #0d2a52, #0a1f3d);
  color: #fff;
  padding: 10px 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* 中身 */
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 850px;
  margin: 0 auto;
}

/* 左バッジ */
.cta-badge {
  width: 60px;
  height: 60px;
  background: #fff;
  color: #d33;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  margin-right: 20px;
}

/* 中央 */
.cta-center {
  flex: 1;
}

.cta-text {
  font-size: 10px;
}

.cta-tel {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center; /* ← 縦中央 */
  gap: 8px;            /* ← アイコンと文字の間 */
}

.cta-tel a {
  color: #fff;
  text-decoration: none;
}

.tel-icon {
  margin-right: 8px;
}

/* .tel-icon-img {
  display: block;
  width: 32px;
  height: auto;
} */

.cta-sub {
  font-size: 11px;
  margin-right: 10px;
  padding: 6px;
  border: solid 2px #ccc;
}

/* ボタン */
.cta-tell-btn {
  background: linear-gradient(90deg, #ff8c00, #ff6a00);
  color: #fff;
  padding: 12px 100px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
  display: flex;
  align-items: center; /* ← これも必須 */
  justify-content: center;
  gap: 8px; /* アイコンと文字の間 */
}

.cta-tell-btn:hover {
  opacity: 0.85;
}

/* 電話番号アイコン */
.tel-icon-img {
  width: 26px;
  height: auto;
  vertical-align: middle;
  margin-right: 4px;
}

/* ボタン内アイコン */
.btn-icon-img {
  width: 24px;
  height: auto;
  vertical-align: middle;
  margin-right: 4px;
}





/**----お急ぎの方追尾ボタン　--------------------**/
.floating-btn {
  position: fixed;
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  width: 45px;
  padding: 25px 8px;
  background: #3f6a9c;
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 999;
}

/* アイコン画像 */
.floating-btn .icon img {
  width: 40px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

/* 縦文字 */
.floating-btn .text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 18px;
  letter-spacing: 2px;
}

/* ホバー */
.floating-btn:hover {
  background: #1f5f78;
}











/**----スクロールアニメーション　--------------------**/
.scroll_down {
  position: absolute;
  right: 5px;
  bottom: 0px;
  z-index: 10;

  width: auto;
  height: auto;
}

.scroll_down:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(180deg,
  rgba(51, 51, 51, 0) 0,
  rgba(51, 51, 51, 0.8) 80%,
  rgba(51, 51, 51, 0.8) 100%);
  }

.scroll_down p {
  display: inline-block;
  position: absolute;
  right: 5px;
  bottom: 0;
  z-index: 2;
  width: 15px;
  padding: 10px 15px 110px;
  color: #333;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 0.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  transition: .2s;
  overflow: hidden;
  margin: auto;
}

.scroll_down p:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 100px;
  background: #ddd;
}

.scroll_down p:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 100px;
  background: #333;
}

.scroll_down p:hover {
  opacity: .5;
}

#type01 p:after {
  animation: sdl01 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes sdl01 {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}






/**----ページ内ボタン　--------------------**/
.hall-all-menu {
  width: 100%;
  background: #ddd0c6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 24px 16px;
  flex-wrap: wrap;
}

.hall-all-item {
  position: relative;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  background: #726658;
  text-decoration: none;
  align-items: center;
  cursor: pointer;
  padding: 16px 32px;
}

.hall-all-icon {
  font-size: 16px;
  margin-right: 4px;
}

.hall-area-text{
  background-color: #726658;
  color: #fff;
  text-align: center;
  padding: 8px;
  margin-bottom: 16px;
}








/**----以下共通ではないメインビジュアル　-------------------------------------**/


/**----TOPのみメインビジュアル　-------------------------------------**/

/* =========================
TOPファーストビュー
========================= */
#mv {
  position: relative;
  width: 100%;
  height: min(70svh, 720px);
  overflow: hidden;
  transform: translateZ(0);
}

#mv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* =========================
各ページ共通ファーストビュー
========================= */
.sub-mv {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  /* margin-bottom: 32px; */
}

/* 画像 */
.sub-mv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* タイトル中央配置 */
.sub-mv-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  z-index: 2;
  white-space: nowrap;
}

/* 暗いフィルター */
.sub-mv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}
.sub-mv.color-white::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  z-index: 1;
}

/* =========================
ファーストビュー直下導入文章
========================= */
.first-text{
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 24px;
}
.first-text p{
  line-height: 1.8;
}

/**----メインビジュアル終了　-------------------------------**/






/**----共通footer　------------------------------------------------------------**/

/**----プラン背景　----------**/
.common-plan {
  position: relative;
  padding: 240px 0 24px 0;
  overflow: hidden;
  margin: 0;
}

.common-plan::before {
  content: "";
  position: absolute;

  inset: 0; /* ←これが重要 */
  background: url("../image/footer-back.png") center / cover no-repeat;
  z-index: -1;
}
.common-plan::before {
  background-position: center 0%;
}

/**----プラン　----------**/
.os-plan-wrap{
  margin-bottom: 8px;
}

.os-plan-main {
  display: flex;
  /* align-items: center; */
  align-items: stretch;
  background: #f5f5f5;
  border-bottom: 2px solid #3f6a9c;
  border-top: 2px solid #3f6a9c;
}

.common-plan .os-plan-main:last-of-type {
  margin-bottom: 0;
}

/* 画像 */
.os-plan-img{
  width: 140px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
  line-height: 0;
}

.os-plan-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイトル部分 */
.os-plan-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  width: 200px;
  text-align: center;
  flex-shrink: 0;
}

.os-plan-title {
  font-size: 28px;
}

.os-plan-people {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  color: #555;
}

/* アイコンサイズ */
.os-plan-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 価格 */
.os-plan-pricebox {
  text-align: center;
  width: 220px;
  background-color: #fff;
  flex-shrink: 0;
}

.os-plan-label {
  background: #3f6a9c;
  color: #fff;
  padding: 6px 0;
  font-size: 18px;
  margin-bottom: 10px;
}

.os-plan-price {
  font-size: 32px;
  font-weight: bold;
}

/* 流れ */
.os-plan-flowbox {
  flex: 1;
  padding: 0 16px;
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.os-plan-flowimg {
  width: 100%;
  display: block;
}

.os-plan-note {
  font-size: 8px;
  margin-top: 4px;
  color: #666;
}

/* ===== 葬儀プランの詳細はこちらボタン ===== */
.cta-wrap{
  text-align: center;
  padding: 8px 0px 0px 0px;
}

.funeral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 100px;
  border: solid 2px #4a74a9;
  color: #4a74a9;
  text-decoration: none;

  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;

  border-radius: 9999px;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.funeral-btn .arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* ホバー */
.funeral-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

.funeral-btn:hover .arrow {
  transform: translateX(4px);
}

/**----緊急相談ダイヤルバナー　----------**/
.top-emergency-banner{
  padding-top: 8px;
    width: 100%;
}
.emergency-call{
    display: block;
    width: clamp(300px, 90vw, 1000px);
    margin: 0 auto;
}

/**----ご希望に合った葬儀プラン　----------**/
section.hall-support{
  margin-top: 0;
}

.common-plan-text{
  text-align: center;
  padding-bottom: 12px;
}


.top-menber-banner{
  margin: 0 auto;
}
.tomonokai-banner{
    display: block;
    width: clamp(300px, 90vw, 1000px);
    margin: 0 auto;
}
/* =========================
6つの式場
========================= */
.hall-support {
  position: relative;
  z-index: 2;
  margin-bottom: -80px; /* ←これで重なる */
}

.hall-inner {
  display: flex;
  gap: 40px;
  align-items: stretch;
  background: #fff;
  padding: 20px 16px;
  border: solid 1px #ddd0c6;
}

/* 左 */
.hall-left {
  width: 40%;
}
.hall-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* ←位置調整 */
}

/* 右 */
.hall-right {
  width: 60%;
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hall-item {
  position: relative;
  aspect-ratio: 293/196;
  overflow: hidden;
  background: #eee;
}

.hall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* 共通ヘッダー */
.header-item {
  transition: background-color .3s;
}

.header-item:hover {
  background-color: #f2f2f2;
}

.header-item:hover .megaMenu {
  opacity: 1;
  visibility: visible;
}

/* 地域会館のご案内の megaMenu も hover 背景と同じグレーに揃える */
.header-item.has-sub:hover .megaMenu {
  background-color: #f2f2f2;
}

/* プラン・費用だけ hover 無効にしたい場合 */
.header-item.plan-disabled:hover,
.header-item.plan-disabled .pc-menu:hover {
  background-color: transparent !important;
}

.header-item.plan-disabled:hover .megaMenu,
.header-item.plan-disabled .pc-menu:hover .megaMenu {
  opacity: 1 !important;
  visibility: visible !important;
}

.header-item.plan-disabled a.none-click {
  cursor: default;
  pointer-events: none;
}

/* =========================
スマホ
========================= */
@media (max-width: 767px) {

  .hall-inner {
    flex-direction: column;
  }

  .hall-left,
  .hall-right {
    width: 100%;
  }

  .hall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .hall-item {
  position: relative;
  aspect-ratio: 293/196;
}

  .hall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

  }
}


/**----最下段footer　----------**/
.footer {
  padding: 5em 0 2em;
  font-size: 14px;
  color: #fff;
  background: #726658;
  position: relative;
  z-index: 1;
  padding-top: 120px; /* ←被り分の余白を確保 */
}

hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 48px;
}

address {
  font-style: normal;
}

/* デフォルト（PC） */
/* 横並び */
.lg-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* ← 上揃えが重要 */
  gap: 30px;
}

/* 左カラム */
.lg-flex > div:first-child {
  max-width: 380px;
}

/* 右ナビ全体 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-self: flex-start; /* ← これで上に固定 */
}

/* 左のテキストを縦にきれいに */
.footer__address,
.contact-banner,
.footer p {
  margin-bottom: 10px;
}

.footer__navi-heading {
  font-weight: 600;
  line-height: 2em;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}
.footer__logo__sub{
  padding-left: 8px;
}
.footer__navi li {
  margin-bottom: 0.75rem;
}

.font-check{
  font-weight: 600;
}
.footer__detail{
  font-size: 13px;
}
.footer__address {
  margin: 0.5rem 0;
}

.footer__address a {
  text-decoration: none;
  pointer-events: none;
}
.with-bar {
  position: relative;
  padding-left: 12px;
}

.with-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1em;
  background-color: #fff;
}
/**/
.contact-banner {
  padding: 8px 0px;
  display: inline-block;
}

/* 上のテキスト */
.contact-top {
  font-size: 14px;
  margin-bottom: 4px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.contact-top span{
  font-size: 16px;
  font-weight: 600;
}
/* 電話 */
.contact-phone {
  display: flex;
  align-items: center;
  justify-content:center;
  gap: 8px;
  font-size: 24px;
  font-weight: bold;
}

/* アイコン */
.phone-icon {
  width: 32px;
  height: auto;
}

.copyright{
  font-size: 12px;
}

/**----以下レスポンシブ　---------------------------------------------------------------**/

/* =========================
   1024px以下（タブレット）
========================= */
@media (max-width: 1024px) {
  #mv {
    height: clamp(420px, 70svh, 600px);
  }

  #mv img {
    /* 少し上寄せして重要部分守る */
    object-position: 28% center;

  }
/*共通-----------------------*/
.inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(8px, 5vw, 42px);
}

section{
    margin: 40px 0;
}

.line-text {
  margin: 0 auto 24px;
}

h1{
  font-size: 32px;
  font-weight: 700;
}

h2{
  font-size: 22px;
  padding-bottom: 8px;
  color: #726658;
  font-weight: 700;
}

h3{
  font-size: 20px;
  font-weight: 600;
}

h4{
  font-size: 18px;

}

/*----------header----------*/
.header-nav a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 14px;
}
.syamei {
  font-size: 32px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translateY(3px);
}
.catch {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 600;
  padding-left: 8px;
  text-align: center;
  transform: translateY(3px);
}
/* 左-- ロゴ・キャッチ -- */
.header-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/**----下固定CTA　-----------------**/
/* ボタン */
.cta-tell-btn {
  background: linear-gradient(90deg, #ff8c00, #ff6a00);
  color: #fff;
  padding: 12px 68px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
  display: flex;
  align-items: center; /* ← これも必須 */
  justify-content: center;
  gap: 8px; /* アイコンと文字の間 */
}

  /*--- ページ内ボタン ---*/
.hall-all-menu {
  width: 100%;
  background: #ddd0c6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  flex-wrap: wrap;
}

.hall-all-item {
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  background: #726658;
  text-decoration: none;
  align-items: center;
  cursor: pointer;
  padding: 12px 18px;
}

.hall-all-icon {
  font-size: 16px;
  margin-right: 4px;
}

.hall-area-text{
  background-color: #726658;
  color: #fff;
  text-align: center;
  padding: 8px;
  margin-bottom: 16px;
}
/* ===== 葬儀プランの詳細はこちらボタン ===== */

.funeral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 100px;
  border: solid 2px #4a74a9;
  color: #4a74a9;
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;

  border-radius: 9999px;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}



/**----footer　------------------------------------------------------------**/
/**----プラン背景　----------**/
.common-plan {
  position: relative;
  padding: 160px 0 16px;
}
.common-plan::before {
  background-position: center 0%;
}
/**----プラン　----------**/

.os-plan-main {
    gap: 6px;
  }

  .os-plan-img {
    width: 130px;
  }

  .os-plan-body {
    max-width: 160px;
    padding: 6px;
  }

  .os-plan-title {
    font-size: 22px;
  }

  .os-plan-people {
    font-size: 14px;
  }

  .os-plan-pricebox {
    width: 160px;
  }

  .os-plan-label {
    font-size: 16px;
  }

  .os-plan-price {
    font-size: 24px;
  }

  .os-plan-flowbox {
    padding: 6px 0px;
  }

  .os-plan-note {
    font-size: 8px;
  }

/**----緊急相談ダイヤルバナー　----------**/
.top-emergency-banner{
    padding: 0px;
    width: 100%;
}

/* =========================
6つの式場
========================= */
.hall-support {
  position: relative;
  z-index: 2;
  margin-bottom: -15px; /* ←これで重なる */
}

/**----最下段footer　----------**/
.footer {
  padding: 2em 1.5em;
  font-size: 14px;
}
 .lg-flex {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr); /* ← 1列 → 3列に変更 */
    gap: 40px;
  }


}


/* =========================
   767px以下（スマホ）
========================= */

@media (max-width: 767px) {
/*----------共通----------*/
body {
    font-size: 14px;
    line-height: 1.4;
}
h1{
  font-size: 22px;
  font-weight: 700;
}

h2{
  font-size: 20px;
  padding-bottom: 8px;
  color: #726658;
  font-weight: 700;
}

h3{
  font-size: 18px;
  font-weight: 600;
}

h4{
  font-size: 15px;

}

.line-text {
  margin: 0 auto 24px;
}
section{
    margin: 30px 0;
}

/*----------表示・非表示----------*/
  .pc-menu {
    display: none;
  }
  .sp-menu {
    display: block;
  }
  .header-contact {
    display: none;
  }
  /* 線を消す */
.has-sub .accordion-content li {
  border-bottom: none;
}
.accordion-content li:last-child a {
  border-bottom: none;
}
.header-nav li {
    border-left: none;
    border-right: none;
  }
.header-nav li:last-child {
    border-right: none;
  }
  /*----------表示・非表示終了----------*/

  /*----------CTA固定----------*/
  .cta-inner {
    flex-direction: row;        /* ← 横並び維持 */
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    max-width: 650px;
  }

  /* バッジは非表示（これやらないと崩れる） */
  .cta-badge {
    display: none;
  }

  /* 中央エリアを圧縮 */
  .cta-center {
    flex: 1;
    min-width: 0; /* ← これ重要（はみ出し防止） */
  }

  .cta-text {
    display: none; /* ← スマホでは削る */
  }

  .cta-tel {
    font-size: 18px;
    gap: 4px;
  }

  .tel-icon-img {
    width: 18px;
  }

  /* サブ情報も最小化 */
  .cta-sub {
    font-size: 10px;
    padding: 2px 4px;
    border: none;
    white-space: nowrap;
    margin-right: 6px;
    border: solid 2px #ccc;
  }

  /* ボタンを優先表示 */
  .cta-tell-btn {
    font-size: 14px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .btn-icon-img {
    width: 16px;
  }

  /* 下固定分の余白 */
  body {
    padding-bottom: 90px;
  }






  /* 最上部--豊中市・淀川区・西淀川区で6つの斎場で眞心込めたお葬式を-- */
/* .header_maxtop{
    background-color: #e4f4fc;
    text-align: center;
    font-size: 12px;
} */

/**----ヘッダー　--------------------**/
  /* 上部 */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
}

/* 左-- ロゴ・キャッチ -- */
.header-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.text-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 32px;
  display: block;
}

.syamei {
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translateY(3px);
}
.catch {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  padding-left: 10px;
  text-align: center;
  transform: translateY(3px);
}


/* =========================
 ハンバーガーメニュー
========================= */
.header-top {
    position: relative;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    padding-top: 80px;
    transition: 0.3s;
    z-index: 1000;
  }

  .header-nav.active {
    right: 0;
  }

  .header-nav ul {
    flex-direction: column;
  }

  .header-nav li {
    text-align: left;
    width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .header-nav a {
    padding: 15px;
    font-size: 14px;
  }

  .menu-banner{
  max-width: 300px;
  margin: 0 auto;
  }

  .header-nav a:has(.menu-banner) {
    padding: 16px 10 0 0;
  }

  /* メガメニュー無効化（スマホ） */
  .megaMenu {
    display: none !important;
  }


/* =========================
  アコーディオン（スマホ）
========================= */

  .accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    /* border-bottom: 1px solid #ddd; */
  }

  .accordion-icon {
    font-size: 18px;
    transition: 0.3s;
  }

  /* 中身（閉じた状態） */
  .has-sub .accordion-content {
    background: #fff;
    max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;

  }

  .accordion-content li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px dashed #ccc;
    font-size: 14px;
  }

  /* 開いた状態 */
  .has-sub.active .accordion-content {
    /* display: block; */
    max-height: 500px;
  }

.header-list,
  .header-nav ul {
    display: block;
  }

  .header-item {
    display: block;
  }

  .accordion-link{
  cursor:pointer;
}

/* =========================
TOPファーストビュー
========================= */
#mv {
    height: auto;
  }

  #mv img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

/* =========================
共通ファーストビュー
========================= */
.sub-mv {
    height: 180px;
    margin-bottom: 20px;
  }

  .sub-mv-title {
    letter-spacing: 1px;
  }

  /**----お急ぎの方追尾ボタン　--------------------**/
.floating-btn {
  position: fixed;
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  width: 40px;
  padding: 20px 8px;
  background: #3f6a9c;
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 999;
}

/* アイコン画像 */
.floating-btn .icon img {
  width: 32px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

/* 縦文字 */
.floating-btn .text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ホバー */
.floating-btn:hover {
  background: #1f5f78;
}



/*--- ページ内ボタン -------------------------------------*/
  .hall-all-menu {
    gap: 12px;
    padding: 10px 15px;
    justify-content: space-between;
  }

  .hall-all-item {
    width: 47%;
    font-size: 14px;
    padding: 8px;
  }

  .hall-all-icon {
    font-size: 12px;
    margin-right: 4px;
  }

  .hall-all-item::after {
    width: 100%;
  }




/*------------------------------- footer -------------------------------*/

.common-plan {
  position: relative;
  padding: 160px 0 10px;
}

.common-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100vw;
  height: 100%;

  background: url("../image/top/sp-footer-back.png") center / contain no-repeat;
  z-index: -1;
}
.common-plan::before {
  background-position: center 0%;
}


/*--- プラン ---*/

.os-plan-main {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0px;
}
  /* 上段3カラムを同じ高さにする */
  .os-plan-img,
  .os-plan-body,
  .os-plan-pricebox {
    flex-shrink: 0;
  }

  /* =========================
     画像
  ========================= */
  .os-plan-img {
    flex: 0 0 24%;
  }

  .os-plan-img img {
    width: 100%;
    height: auto;
  }

  /* =========================
     タイトル
  ========================= */
  .os-plan-body {
    flex: 1 1 24%;
    min-width: 0;
    padding: 4px 0;
  }

  .os-plan-title {
    font-size: clamp(14px, 3vw, 18px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .os-plan-people {
    font-size: 12px;
  }

  /* =========================
     価格（高さ揃え＆塗り）
  ========================= */
  .os-plan-pricebox {
    flex: 0 0 34%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .os-plan-label {
    font-size: 12px;
    flex-shrink: 0;
    margin-bottom: 4px;
  }

  .os-plan-price {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: clamp(16px, 4vw ,24px);
  }

  /* =========================
     2段目（流れ）
  ========================= */
  .os-plan-flowbox {
    flex-basis: 100%;
    /* padding: 0px 8px 0 8px; */
  }

  .os-plan-flowimg {
    max-width: 500px;
  }
  .os-plan-note {
    max-width: 100%;
    font-size: 7px;
    line-height: 1.1;
  }

/* ===== 葬儀プランの詳細はこちら ===== */
  .funeral-btn {
    width: 100%;
    font-size: 14px;
    padding: 6px 20px;
    border-radius: 50px;
  }


/**----緊急相談ダイヤルバナー　----------**/
.top-emergency-banner{
    padding: 0px;
    width: 100%;
}
/**----ご希望に合った葬儀プラン　----------**/

.common-plan-text{
  text-align: center;
  padding-bottom: 8px;
}

.hall-support {
    margin-top: 20px;
  }

/* =========================
6つの式場
========================= */
.hall-support {
  position: relative;
  z-index: 2;
  margin-bottom: -10px; /* 重なる */
}

.hall-inner {
  display: flex;
  gap: 16px;
  align-items: stretch;
  background: #fff;
  padding: 16px 8px;
  border: solid 1px #ddd0c6;
}



/**----最下段footer　----------**/
.footer {
  font-size: 12px;
}
  .md-flex {
    display: flex;
  }

  .md-justify-between {
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .footer__address a {
    pointer-events: auto;
  }

.footer__detail{
  font-size: 10px;
}
/* 横並び */
.lg-flex {
  gap: 8px;
}

/* 左のテキストを縦にきれいに */
.footer__address,
.contact-banner,
.footer p {
  margin-bottom: 8px;
}

.with-bar {
  padding-left: 10px;
}

}


/* =========================
   480px以下（スマホ）
========================= */
@media (max-width: 480px) {
 /* 最上部--豊中市・淀川区・西淀川区で6つの斎場で眞心込めたお葬式を-- */
/* .header_maxtop{
    font-size: 10px;
} */

/*---- ヘッダー ----*/
.logo {
  height: 28px;
  display: block;
}

.syamei {
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translateY(3px);
}
.catch {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 600;
  padding-left: 8px;
  text-align: center;
  transform: translateY(3px);
}
.menu-banner{
  max-width: 250px;
  }


/**----下固定ボタン　--------------------**/
/* 全体 */
.cta-header {
  background: linear-gradient(90deg, #0d2a52, #0a1f3d);
  color: #fff;
  padding:4px 0px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.cta-inner {
    flex-direction: row;        /* ← 横並び維持 */
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    max-width: 330px;
  }

 /* サブ情報も最小化 */
  .cta-sub {
    font-size: 8px;
    padding: 2px 2px;
    border: none;
    white-space: nowrap;
    margin-right: 4px;
    border: solid 1px #ccc;
  }

  .cta-tel {
    font-size: 14px;
    gap: 0px;
  }
/* ボタンを優先表示 */
  .cta-tell-btn {
    font-size: 14px;
    padding: 10px 6px;
    white-space: nowrap;
    gap:3px;
  }


/**----スクロールアニメーション　--------------------**/
.scroll_down {
  position: absolute;
  right: 5px;
  bottom: 0px;
  z-index: 10;

  width: auto;
  height: auto;
}

.scroll_down:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(180deg,
  rgba(51, 51, 51, 0) 0,
  rgba(51, 51, 51, 0.8) 80%,
  rgba(51, 51, 51, 0.8) 100%);
  }

.scroll_down p {
  display: inline-block;
  position: absolute;
  right: 5px;
  bottom: 0;
  z-index: 2;
  width: 1px;
  padding: 10px 15px 56px;
  color: #333;
  font-size: 12px;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 0.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  transition: .2s;
  overflow: hidden;
  margin: auto;
}

.scroll_down p:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 45px;
  background: #ddd;
}

.scroll_down p:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 45px;
  background: #333;
}

.scroll_down p:hover {
  opacity: .5;
}

#type01 p:after {
  animation: sdl01 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}



/*------------------------------- footer -------------------------------*/

.common-plan {
  position: relative;
  padding: 100px 0 8px;
}

.hall-support {
    margin-top: 16px;
  }

/**----最下段footer　----------**/

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }


}

/* PageSpeed改善（画面外コンテンツの描画を遅らせる） */
.common-plan,
.hall-support,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}