/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Version:      0.1
*/
/* 共通：固定ナビの中央・最大幅 */
.custom-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  width: 100%;
 margin: 0 auto;          /* PCで中央揃え */
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  right: 0;
  left: 0;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}


.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: #fafafa;
  border-radius: 12px;
  margin: 0 6px 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-decoration: none;
  font-weight: bold;
  transition: box-shadow .18s;
  flex: 1 1 0;  /* ← これで均等割り振り */
}

.nav-btn.nav-quarter {
  flex: 0 0 25%;
  max-width: 25%;
}
.nav-btn.nav-half {
  flex: 0 0 50%;
  max-width: 50%;
}
/* --- 電話ボタン アイコン中央寄せ 専用CSS --- */
.nav-btn.tel .tel-iconbox {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 22px;
  flex-shrink: 0;
}

.nav-btn.tel .tel-iconbox svg {
  width: 120px !important;
  height: 120px !important;
  display: block;
}

.nav-btn.tel .tel-iconbox svg {
  width: 44px;
  height: 44px;
  display: block;
}
/* スマホ時は幅100%、中央揃え解除 */
@media (max-width: 900px) {
  .custom-header-nav {
    max-width: 100%;
    margin: 0;
    left: 0;
    right: 0;
  }
}

/* --- padding-topで下のコンテンツの隠れ防止 --- */
body {
  padding-top: 120px;  /* .custom-header-navの高さ＋余白 */
}
@media (max-width: 900px) {
  body {
    padding-top: 100px; /* スマホ時は高さに合わせて */
  }
}
/* --- ヘッダーのボタン横並び制御 --- */
.custom-header-nav {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 24px auto;
  gap: 0;
}

/* 各ボタン幅指定 */
.nav-btn.nav-quarter {
  flex: 0 0 25%;
  max-width: 25%;
}
.nav-btn.nav-half,
.nav-btn.tel {
  flex: 0 0 50%;
  max-width: 50%;
}

/* 基本デザイン */
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: #fafafa;
  border-radius: 12px;
  margin: 0 6px 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-decoration: none;
  font-weight: bold;
  transition: box-shadow .18s;
}
.nav-btn:last-child { margin-right: 0; }

/* HOMEとアクセスのラベル＆アイコン */
.nav-btn .nav-label {
  font-size: 2rem;
  color: #222;
  margin-top: 12px;
  text-align: center;
}
.nav-btn i {
  font-size: 4rem;
  color: #222;
  margin-bottom: 0;
}

/* --- 電話ボタンだけデザイン変更 --- */
.nav-btn.tel {
  background: linear-gradient(90deg, #ff9800 0%, #ff6d00 100%);
  color: #fff;
  border-radius: 0 13px 13px 0;
  border: none;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 38px;
  text-align: left;
}
.nav-btn.tel .tel-iconbox {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 22px;
}
.nav-btn.tel .tel-iconbox i {
  color: #ff9100;
  font-size: 3.5rem;
}
.nav-btn.tel .nav-label {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  margin-top: 0;
}
.nav-btn.tel .nav-sub {
  font-size: 1.1rem;
  margin-top: 10px;
  display: block;
}

/* ★★★ メディアクエリ内で縦並びにする指定があれば必ず削除！★★★ */
@media (max-width: 700px) {
  .custom-header-nav {
    flex-direction: row !important;
  }
  .nav-btn, .nav-btn.nav-quarter, .nav-btn.nav-half, .nav-btn.tel {
    flex-direction: column !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 4px 0 0;
    border-radius: 10px !important;
    padding: 8px 3px !important;
    text-align: center;
  }
  .nav-btn.tel {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 8px !important;
    text-align: left !important;
  }
  .nav-btn .nav-label,
  .nav-btn.tel .nav-label {
    font-size: 1.07rem !important;
    margin-top: 5px;
  }
  .nav-btn.tel .nav-label {
    font-size: 1.16rem !important;
  }
}
@media (max-width: 700px) {
  .nav-btn.tel .nav-label {
    font-size: 1.8rem !important;
  }
}

/* スマホ以外（PC/タブレット）は従来どおり */
body,
.site,
.site-main,
.site-content,
.site-container,
#page {
  background: #fff !important;
}
.custom-header2 {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 38px 0 12px 0;
  align-items: center;  /* ★追加：左右カラムの高さを揃えて中央に配置！ */
}

.custom-header2__col {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* ★中央寄せ（上下） */
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  height: 100%;
}

/* 左カラム内も中央寄せ */
.custom-header2__col--left {
  align-items: center;
  text-align: center;
  padding-left: 0;
  min-width: 350px;
  max-width: 700px;
  flex: 1 1 0;
}

/* テキスト中央寄せ */
.custom-header2__top,
.custom-header2__recommend,
.custom-header2__title {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  width: 100%;
  display: block;
}
	.custom-header2__top,{
		  font-size: 3rem;
	}

.custom-header2__recommend {
  background: #000;
  padding: 3px 18px 3px 18px;
  border-radius: 3px;
  margin-bottom: 10px;
  margin-top: 4px;
}

.custom-header2__recommend .recommend-main {
  color: #ff0;
  font-weight: bold;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  display: inline-block;
}

.custom-header2__recommend .recommend-sub {
  color: #fff;
  font-size: 2rem;
  margin: 0 4px;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
}

.custom-header2__title {
  font-size: 3rem;
  font-weight: bold;
  margin-top: 8px;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  letter-spacing: 0.04em;
}

/* 右カラムはそのまま左寄せ or お好みで調整 */
.custom-header2__col--right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;   /* ★上下中央揃え */
  padding-left: 60px;
  gap: 21px;
}

/* 右カラム中身 */
.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  justify-content: flex-start;
  width: 100%;
}

.info-label {
  background: #ccc;
  color: #111;
  font-weight: bold;
  font-size: 2rem;
  padding: 2px 14px 2px 10px;
  border-radius: 2px;
  margin-right: 9px;
  display: inline-block;
}

.info-value {
  color: #111;
  font-size: 1.6rem;
  font-weight: normal;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .custom-header2 {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 10px 0;
  }
  .custom-header2__col {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding-left: 15px !important;
  }
  .custom-header2__col--left {
    align-items: flex-start;
    text-align: left;
  }
  .custom-header2__col--right {
    gap: 7px;
    padding-left: 15px;
  }
  .custom-header2__recommend .recommend-main {
    font-size: 1.2rem;
  }
  .custom-header2__title {
    font-size: 2.1em;
  }
  .info-label {
    font-size: 1.02rem;
    padding: 2px 9px 2px 7px;
    margin-right: 7px;
  }
  .info-value {
    font-size: 0.97rem;
  }
}
	
/* 1. 「上野原市の腰痛専門整体院」上に余白を追加 */
.custom-header2__top {
  margin-top: 24px; /* お好みでpx調整OK */
}

/* 2. スマホ時：住所・交通行を中央寄せ（ラベルは左揃えのまま） */
@media (max-width: 900px) {
  .custom-header2__col--right {
    align-items: center;
    padding-left: 0;
  }
  .info-row {
    width: 100%;
    display: flex;
    justify-content: center;   /* 全体を中央寄せ */
    align-items: center;
    margin-bottom: 8px;
  }
  .info-label {
    display: inline-block;
    min-width: 48px;         /* ラベル幅を統一（お好みで調整OK） */
    text-align: left;
    margin-right: 7px;
    font-size: 1.02rem;
    /* ↓コレを消す！ margin-left: ... は不要！ */
  }
  .info-value {
    display: inline-block;
    text-align: left;
    font-size: 0.97rem;
  }
}
@media (max-width: 900px) {
  .custom-header2 {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 10px 0;
  }
  .custom-header2__col {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding-left: 15px !important;
  }
  .custom-header2__col--left {
    align-items: flex-start;
    text-align: left;
  }
  .custom-header2__col--right {
    gap: 7px;
    padding-left: 15px;
  }
  .custom-header2__recommend .recommend-main {
    font-size: 1.6rem;
  }
  .custom-header2__recommend .recommend-sub {
    font-size: 1.2rem; /* ←これで「も」も小さくなります！ */
  }
  .custom-header2__title {
    font-size: 1.8rem;  /* ←タイトルも少し大きめに */
  }
  .info-label {
    font-size: 1.02rem;
    padding: 2px 9px 2px 7px;
    margin-right: 7px;
  }
  .info-value {
    font-size: 0.97rem;
  }
}
	.footer .copyright a {
  display: none !important;
}

@media (max-width: 900px) {
  .custom-header2__col--right {
    align-items: center;
    padding-left: 0;
    margin-top: 30px;  /* ← 上に余白追加！お好みで増減OK */
  }
}
@media (max-width: 900px) {
  .custom-header2__top {
    margin-top: 35px;   /* お好みで増減OK（例：24px） */
  }
}
	
.triangle-wrap {
  display: flex;
  justify-content: center;  /* ←ココをcenterに */
  gap: 30px;                    /* 三角の間隔 */
  margin-top: 20px;
}

.triangle {
  width: 120px;         /* 三角の横幅（お好みで） */
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-top: 60px solid #ebe4d8; /* ←三角の色・高さ */
}

.section-nav {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 24px auto;
  text-align: center;
}
.section-nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;  /* ← ここを小さく */
  padding: 0;
  margin: 0;
  list-style: none;
}
.section-nav li {
  position: relative;
  font-size: 1.35rem;    /* ← 少し下げてバランスアップ */
  font-weight: 500;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  padding: 0 6px;        /* ← ここもやや詰める */
  white-space: nowrap;
}
.section-nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;       /* ← 仕切り線の位置を中央寄りに */
  top: 52%;
  transform: translateY(-50%);
  height: 1.4em;      /* ← 仕切り線を短くして控えめに */
  border-right: 1.3px solid #d1dde1;  /* 色も淡く */
  opacity: 0.5;
}
.section-nav a {
  color: #1a160a;
  text-decoration: none;
  transition: color .18s;
  display: block;
  padding: 2px 0;
}
.section-nav a:hover {
  color: #ff6d00;
}
@media (max-width: 900px) {
  .section-nav {
    max-width: 98vw;
  }
  .section-nav ul {
    gap: 7px;
  }
  .section-nav li {
    font-size: 1.03rem;
    padding: 0 2.5px;
  }
}
@media (max-width: 700px) {
  .section-nav ul {
    display: flex;
    flex-wrap: wrap;       /* ← これで折り返しOK */
    justify-content: center;
    gap: 10px;             /* 項目間の余白 */
  }

  .section-nav li {
    flex: 0 1 auto;        /* 項目の幅を可変にする */
  }
}

}
	
	.video-section {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #f3e4ce;
  border-radius: 6px;
  padding: 32px 32px 20px 32px;
  box-shadow: 0 6px 24px rgba(200,180,130,0.09);
  text-align: center;
}

.video-title {
  background: #f8a960;
  color: #fff;
  font-size: 2.3rem;
  font-weight: bold;
  padding: 18px 0 14px 0;
  border-radius: 4px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.video-subtitle {
  color: #f8a960;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.5;
}

.video-name {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 18px;
  line-height: 1.5;
}

.video-youtube {
  margin: 0 auto 20px auto;
  max-width: 480px;
}
.video-youtube iframe {
  width: 100%;
  height: 270px;
  border-radius: 6px;
}

.video-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  text-align: right;
}

@media (max-width: 600px) {
  .video-section {
    padding: 14px 5px 8px 5px;
  }
  .video-title {
    font-size: 1.3rem;
    padding: 10px 0 8px 0;
  }
  .video-subtitle {
    font-size: 1.05rem;
  }
  .video-youtube iframe {
    height: 170px;
  }
}
	.menu-toggle, 
.main-navigation .mobile-bar-toggle {
  display: none !important;
}

//* 空のヘッダーが余白を作っている場合に強制的に詰める */
.site-header.grid-container,
.inside-header.grid-container {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

/* 必要ならbody.page限定にしてもOK */
body.page .site-header.grid-container,
body.page .inside-header.grid-container {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

.price-box2 {
  background: #fff;
  padding: 32px 12px 24px 12px;
  border-radius: 13px;
  /* box-shadow: none; ← シャドウ消すので不要 */
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  border: 2px solid #fff; /* (デザイン枠)お好みで消してOK */
  position: relative;
}

.price-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2px;
}

.stamp {
  background: #d00;
  color: #fff;
  font-weight: bold;
  font-size: 2.1rem;
  display: inline-block;
  padding: 5px 25px 3px 25px;
  border-radius: 2px;
  margin-bottom: 1px;
  letter-spacing: 0.12em;
  /* 擬似的なハンコ感 少しフォント揺らす */
  font-family: "Yuji Boku", "Meiryo", sans-serif;
  /* フォントを太めに、お好みで調整 */
}

.special {
  color: #a70000;
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 0.11em;
}

.price-main {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.price-big {
  font-size: 6.1rem;
  color: #ff3300;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 1;
}
.price-yen {
  font-size: 2.6rem;
  color: #ff3300;
  font-weight: bold;
  margin-left: 5px;
  margin-bottom: 0.35em;
}
.tax-in {
  font-size: 1.25rem;
  color: #a70000;
  margin-left: 8px;
  align-self: flex-end;
  font-weight: bold;
}

.price-campaign-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.deadline {
  font-size: 1.25rem;
  color: #222;
  text-align: left;
  font-weight: bold;
  line-height: 1.3;
}
.arrow {
  font-size: 1.7rem;
  margin: 0 5px;
}
.stock {
  font-size: 2.3rem;
  color: #e53900;
  font-weight: bold;
}
.stock .left {
  color: #e53900;
  font-size: 1.1rem;
}
.stock .num {
  color: #111;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0 3px;
}

@media (max-width: 600px) {
  .price-box2 {
    padding: 14px 2vw 14px 2vw;
    max-width: 98vw;
  }
  .stamp, .special { font-size: 1.2rem; }
  .price-big { font-size: 2.7rem; }
  .price-yen { font-size: 1.15rem; }
  .tax-in { font-size: 0.8rem; }
  .stock { font-size: 1.2rem; }
  .stock .left { font-size: 0.7rem; }
  .stock .num { font-size: 1.1rem; }
}
.tel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ff9800 0%, #ff6d00 100%);
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  border-radius: 18px;
  padding: 30px 40px;
  text-decoration: none;
  margin: 20px auto;
  width: 80%;
  max-width: 900px;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tel-icon {
  display: flex;
  align-items: center;
  margin-right: 32px;
}
.tel-icon svg {
  width: 55px;
  height: 55px;
  display: block;
  fill: #fff;  /* 電話アイコンの色 */
}
.tel-text {
  font-size: 2.6rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  .tel-btn {
    font-size: 1.2rem;
    padding: 16px 8px;
  }
  .tel-icon svg {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }
  .tel-text {
    font-size: 1.25rem;
  }
}

/* === SPヘッダーナビ：画像と同じレイアウト・サイズ感 === */
@media (max-width: 700px){

  /* ヘッダー固定＆本文押し下げ */
  .custom-header-nav{
    position: fixed; top:0; left:0; right:0;
    z-index: 9999;
    display: grid !important;
    grid-template-columns: 1fr 1fr 2fr; /* 25% / 25% / 50% */
    gap: 6px;
    padding: 6px;              /* 外枠の余白 */
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    max-width: 100% !important;
    margin: 0 !important;
  }
  body{ padding-top: 84px !important; } /* ↑の高さに合わせて */

  /* 全ボタン共通：高さ揃え・角丸・影 */
  .nav-btn,
  .nav-btn.nav-quarter,
  .nav-btn.nav-half,
  .nav-btn.tel{
    min-height: 72px !important;         /* ←画像の縦感 */
    height: 72px !important;
    border-radius: 10px !important;
    margin: 0 !important;
    padding: 6px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    text-decoration: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* HOME / アクセス：縦並び（アイコン上・ラベル下） */
  .nav-btn{
    background: #f5f5f5 !important;
    color: #222 !important;
    flex-direction: column !important;
  }
  .nav-btn i{
    font-size: 18px !important;          /* アイコンサイズ */
    line-height: 1;
    margin: 2px 0 0 !important;
  }
  .nav-btn .nav-label{
    font-size: 11px !important;          /* ラベル小さめ */
    margin-top: 4px !important;
    font-weight: 700;
    letter-spacing: .02em;
  }

  /* 電話ボタン：横並び（左に白い角丸アイコン枠＋テキスト2段） */
  .nav-btn.tel{
    grid-column: auto / span 1;          /* 50%列のまま */
    background: linear-gradient(90deg,#ff9800 0%,#ff6d00 100%) !important;
    color:#fff !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 10px !important;
    border: none !important;
  }
  .nav-btn.tel .tel-iconbox{
    width: 44px !important;
    height: 44px !important;
    background:#fff !important;
    border-radius: 10px !important;
    margin-right: 10px !important;
    display:flex; align-items:center; justify-content:center;
    flex-shrink: 0;
  }
  .nav-btn.tel .tel-iconbox i,
  .nav-btn.tel .tel-iconbox svg{
    width: 30px !important; height: 30px !important; color:#ff9100 !important;
    display:block;
  }
  .nav-btn.tel .nav-text{
    line-height: 1.15;
  }
  .nav-btn.tel .nav-label{               /* 1行目：太字大きめ */
    font-size: 22px !important;
    font-weight: 800;
    margin: 0 !important;
    color:#fff !important;
  }
  .nav-btn.tel .nav-sub{                 /* 2行目：小さめ */
    display:block;
    font-size: 14px !important;
    opacity: .95;
    margin-top: 4px;
  }

  /* 既存の縦長化・幅固定系を打ち消し */
  .nav-btn{ max-width:none !important; flex:0 0 auto !important; }
}
@media (max-width: 700px){
  /* HOME・アクセスのアイコンを小さく */
  .nav-btn:not(.tel) i,
  .nav-btn:not(.tel) svg {
    width: 35px !important;   /* アイコンの幅 */
    height: 35px !important;  /* アイコンの高さ */
  }

  /* アイコンとラベルの間隔も少し詰める */
  .nav-btn:not(.tel) .nav-label {
    margin-top: 2px !important;
    font-size: 11px !important;
  }
}
@media (max-width: 700px){

  /* HOMEとアクセスを正方形に */
  .nav-btn:not(.tel) {
    width: 72px !important;     /* 横幅固定 */
    min-width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;    /* 高さ固定 */
    min-height: 72px !important;
    padding: 6px !important;
    flex: 0 0 auto !important;  /* 自動拡大しない */
  }

  /* 電話ボタンは残り幅を全部使う */
  .nav-btn.tel {
    flex: 1 1 auto !important;  /* 余白分広がる */
    height: 72px !important;    /* 高さは合わせる */
    min-height: 72px !important;
  }

  /* 全体の並びを横並び3つに */
  .custom-header-nav {
    display: flex !important;
    justify-content: flex-start;
    gap: 6px; /* ボタン間隔 */
    padding: 6px;
  }
}
@media (max-width: 700px){
  .nav-btn .nav-label {
    white-space: nowrap !important; /* 改行禁止 */
  }
}
@media (max-width: 700px) {
  .nav-btn.tel .nav-sub {
    display: flex;
    flex-direction: column; /* 縦並びに */
    line-height: 1.2; /* 行間調整 */
  }

  /* 1行目と2行目を分ける */
  .nav-btn.tel .nav-sub span {
    display: block;
  }
}
@media (max-width: 700px){
  /* アイコンボックスを大きく */
  .nav-btn.tel .tel-iconbox {
    width: 50px !important;    /* ←お好みで調整（元は44px） */
    height: 50px !important;
  }

  /* アイコン自体も拡大 */
  .nav-btn.tel .tel-iconbox svg,
  .nav-btn.tel .tel-iconbox i {
    width: 60px !important;    /* ←元より少し大きく */
    height: 60px !important;
  }
}
.nav-btn.tel .nav-sub {
  line-height: 1 !important; /* ←フォントサイズの1.1倍 */
}
@media (max-width: 700px) {
  .nav-btn.tel .nav-sub {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.1 !important; /* 詰める */
    margin-top: 2px !important;  /* 上の余白も少なめに */
  }

  .nav-btn.tel .nav-sub span {
    display: block !important;
    margin: 0 !important; /* 各行の下余白なし */
  }
}


@media screen and (max-width: 700px) {
  p {
    margin: 10px !important;
  }
}

@media screen and (max-width: 700px) {
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 10px !important;
  }
}

/* 横ブレ防止：基本はみ出しを無効化 */
html, body {
  overflow-x: hidden;
}

/* SPヘッダーは box-sizing を border-box にして、padding を幅に含める */
@media (max-width:700px){
  .custom-header-nav{
    box-sizing: border-box;     /* ← これが決め手 */
    width: 100%;
    overflow-x: hidden;         /* 念のため */
  }

  /* アイコンが入れ物をはみ出さないように */
  .nav-btn.tel .tel-iconbox{
    box-sizing: border-box;
  }
  .nav-btn.tel .tel-iconbox svg,
  .nav-btn.tel .tel-iconbox i{
    max-width: 100%;
    max-height: 100%;
    width: 100% !important;     /* 50pxの箱なら50px内に収める */
    height: 100% !important;
  }
}

/* ===== 安全版：本文の器だけをメニュー幅に揃える ===== */

/* PCだけ最大幅を揃える（スマホは全幅のまま） */
@media (min-width: 901px){
  .entry-content{
    max-width: 1200px;          /* ← メニューと同じ上限 */
    margin: 0 auto;             /* 中央寄せ */
    padding: 0 32px;            /* 端にくっつかない余白 */
    box-sizing: border-box;
  }
  .entry-content > *{
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}
.video-section {
  text-align: center; /* テキスト・インライン要素を中央寄せ */
}

.video-section .video-subtitle,
.video-section .video-desc,
.video-section .video-note {
  display: inline-block; /* ブロック要素もtext-alignの影響を受けるように */
  text-align: center;
}

.video-youtube {
  display: flex;
  justify-content: center; /* iframeを中央寄せ */
}
/* スマホ時：2行固定・途中で折り返さない */
@media (max-width:700px){
  .nav-btn.tel .nav-sub{
    display:flex !important;
    flex-direction:column !important;
    gap:1px;                /* 行間 */
    line-height:1.1 !important;
    margin-top:2px !important;
  }
  .nav-btn.tel .nav-sub .nav-row{
    display:block !important;
    white-space:nowrap !important;   /* 行内を折り返さない */
  }
}
/* 0) まず全体の箱計算を安定化 */
*,*::before,*::after{ box-sizing: border-box; }

/* 1) 横ブレ完全停止（はみ出しを“切る”） */
html,body{ overflow-x: clip; }  /* hidden より clip が再描画少なく安定 */

/* 2) SPヘッダーは1通りのレイアウトだけにする（flex） */
@media (max-width:700px){
  .custom-header-nav{
    display:flex !important;
    align-items:center;
    gap:6px;
    padding:6px;
    width:100%;
    left:0; right:0;
    box-sizing:border-box;
    /* 固定ヘッダーのチラつき対策 */
    transform: translateZ(0);
    will-change: transform;
  }
  /* HOME/アクセスは固定サイズ、TELは残り幅すべて */
  .nav-btn:not(.tel){
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
    height:72px !important;
    margin:0 !important;            /* 余白は gap で管理 */
    padding:6px !important;
    flex:0 0 auto !important;
  }
  .nav-btn.tel{
    flex:1 1 auto !important;
    height:72px !important;
    min-height:72px !important;
    margin:0 !important;
    padding:10px !important;
    border:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }

  /* 3) アイコン箱からはみ出さない（これ超重要） */
  .nav-btn.tel .tel-iconbox{
    width:44px !important;
    height:44px !important;
    margin-right:10px !important;
    flex-shrink:0;
  }
  .nav-btn.tel .tel-iconbox svg,
  .nav-btn.tel .tel-iconbox i{
    width:100% !important;
    height:100% !important;
    max-width:100%;
    max-height:100%;
  }

  /* ラベル系は折り返し制御だけに専念 */
  .nav-btn .nav-label{ white-space:nowrap !important; }
  .nav-btn.tel .nav-sub{
    display:flex !important;
    flex-direction:column !important;
    gap:2px;
    line-height:1.15 !important;
    margin-top:2px !important;
  }
  .nav-btn.tel .nav-sub .nav-row{ white-space:nowrap !important; }
}

/* 4) 画像・iframeは親幅を超えないように（念のため） */
img,iframe,video{ max-width:100%; height:auto; display:block; }

/* 5) 余計な横幅を作る margin/padding を打ち消す（ナビだけ） */
@media (max-width:700px){
  .nav-btn{ margin:0 !important; }
}
@media (max-width: 700px) {
  .custom-header-nav {
    gap: 0 !important;
  }
}