@charset "UTF-8";
/* ---------- 全画面のメニュー（ドロワー） ----------
 * ヘッダー・メニュー改修の指示書（2026-11-12）の段1。HTML は template-parts/drawer.php、開け閉めは js/nav.js。
 * 上のアイコンの帯（.bg-origin、z-index 2000）と、下の電話の帯（.tapToCall、z-index 2000）の上に重ねて出す。
 * 色はサイトの色のまま（茶 #572304・橙 #f18f32・黄 #f6a724・薄い黄 #fff1c1・地 #fdfbf4）。
 */
.orien-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3000;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: #fdfbf4;
  color: #572304;
  font-size: 1rem;
  opacity: 0;
  /* fade only, no movement (2026-11-12, Mitsu: opening at once felt like the screen shook). 0.3s with ease-out, the same when closing.
   * The time is also in js/nav.js (FADE_MS). */
  transition: opacity .3s ease-out;
}

.orien-drawer[hidden] {
  display: none;
}

.orien-drawer.is-open {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .orien-drawer {
    transition: none;
  }
}

/* 開いているあいだ、後ろの画面を動かさない。
 * パソコンでは overflow: hidden でスクロールバーが消え、後ろのページがスクロールバーの幅だけ横へずれる（フェードのあいだ透けて見える）。
 * js/nav.js が、開くときにスクロールバーが出ていれば <html> に scrollbar-gutter: stable を付け、スクロールバーの場所を空けたままにする
 * （閉じるときは、フェードが終わってから外す）。 */
html.is-drawer-open,
html.is-drawer-open body {
  overflow: hidden;
}

.orien-drawer a {
  color: #572304;
  text-decoration: none;
}

.orien-drawer a:hover {
  color: #572304;
  text-decoration: none;
}

.orien-drawer a:focus-visible,
.orien-drawer button:focus-visible {
  outline: 3px solid #572304;
  outline-offset: 2px;
}

.orien-drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- 上の帯（題と閉じるボタン） ---- */
.orien-drawer__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: .25rem .5rem .25rem 1rem;
  background-color: #fff1c1;
  border-bottom: 4px solid #f6a724;
}

.orien-drawer__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.orien-drawer__close {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  padding: .25rem .5rem;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #572304;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.orien-drawer__close-icon {
  width: 30px;
  height: 30px;
  color: #f8af17;
}

.orien-drawer__close:hover {
  background-color: #fde5a0;
}

/* ---- 中身 ---- */
.orien-drawer__body {
  display: block;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.orien-drawer__sec {
  margin-bottom: 1.5rem;
}

.orien-drawer__heading {
  margin: 0 0 .75rem;
  padding: .4rem .75rem;
  background-color: #f18f32;
  border-radius: 4px;
  color: #fcf9f9;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.orien-drawer__arrow {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  color: #f18f32;
}

/* ---- 3院 ---- */
.orien-drawer__areas {
  display: grid;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .orien-drawer__areas {
    grid-template-columns: 2fr 1fr;
  }
}

/* the two areas sit side by side from 768px: stretch the branch boxes so all three have the same height */
.orien-drawer__area {
  display: flex;
  flex-direction: column;
}

.orien-drawer__area-name {
  margin: 0 0 .5rem;
}

.orien-drawer__area-name a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  min-height: 44px;
  border-bottom: 2px dotted #707070;
  font-weight: 700;
}

.orien-drawer__branches {
  display: grid;
  flex: 1 1 auto;
  gap: .75rem;
}

@media screen and (min-width: 768px) {
  .orien-drawer__area:first-child .orien-drawer__branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.orien-drawer__branch {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .75rem;
  background-color: #fff;
  border: 2px solid #f6a724;
  border-radius: 8px;
}

.orien-drawer__branch-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3em;
  min-height: 44px;
  font-size: 1.15rem;
  font-weight: 700;
}

.orien-drawer a.orien-drawer__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 50px;
  background-color: #f18f32;
  background-clip: padding-box;
  border-top: 0 solid transparent;
  border-bottom: 4px solid #772f06;
  border-radius: 6px;
  color: #fcf9f9;
  font-size: 1.2rem;
  font-weight: 700;
}

/* 押しているあいだ、面が沈んで見える（2026-11-13 Mitsu「せっかく立体的に作っているならクリック（タップ）時にへこむ演出があった方がいい」）。
 * 下のボーダー（厚み）を 4px から 1px にし、上に透明な 3px のボーダーを足して、面を 3px 下げる。高さは min-height の 50px のままなので、
 * ボタンの下の端とまわりの要素は動かない（background-clip: padding-box で、透明な上のボーダーに地の色を出さない）。
 * 沈むのは 0.05 秒。a:hover の「transition: .3s」が効くと沈むのが遅くなるので、hover のときの transition を字の色と厚みだけにする。
 * 動きを減らす設定の人には、沈ませずに面の色を少し濃くするだけにする。同じ形はフッター（footer.css）とボトムシート（tapcall.css）にもある。 */
.orien-drawer a.orien-drawer__tel:hover {
  color: #fff1c1;
  transition: color .3s, border-top-width .05s ease-out, border-bottom-width .05s ease-out;
}

.orien-drawer a.orien-drawer__tel:active {
  border-top-width: 3px;
  border-bottom-width: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .orien-drawer a.orien-drawer__tel:hover {
    transition: color .3s;
  }

  .orien-drawer a.orien-drawer__tel:active {
    border-top-width: 0;
    border-bottom-width: 4px;
    background-color: #d37522;
  }
}

.orien-drawer__tel-icon {
  width: 1.2em;
  height: 1.2em;
}

.orien-drawer__reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 46px;
  background-color: #fff1c1;
  border: 2px solid #f6a724;
  border-radius: 6px;
  font-weight: 700;
}

.orien-drawer__reserve-icon {
  width: 1.2em;
  height: 1.2em;
  color: #f18f32;
}

/* ---- 症状メニュー（スマートフォンは2列、タブレットは3列、パソコンは5列） ---- */
.orien-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

@media screen and (min-width: 768px) {
  .orien-drawer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (min-width: 992px) {
  .orien-drawer__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.orien-drawer__grid a,
.orien-drawer__list a {
  display: flex;
  align-items: center;
  gap: .4em;
  height: 100%;
  min-height: 46px;
  padding: .4rem .6rem;
  background-color: #fff;
  border: 1px solid #f6a724;
  border-radius: 6px;
  font-size: .95rem;
  line-height: 1.3;
}

.orien-drawer__grid a:hover,
.orien-drawer__list a:hover,
.orien-drawer__reserve:hover,
.orien-drawer__branch-name:hover,
.orien-drawer__area-name a:hover {
  background-color: #fff1c1;
}

/* ---- 施術・交通事故・そのほか（タブレットから3列） ---- */
.orien-drawer__cols {
  display: grid;
  gap: 0 1rem;
}

@media screen and (min-width: 768px) {
  .orien-drawer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.orien-drawer__list {
  display: grid;
  gap: .5rem;
}
