/* ==========================================================================
   common.css — shared reset / base styles for both PC and SP layouts
   ========================================================================== */
/* ロゴ「遺品整理のベンケイ」用のフォント。
   'sicellemin'  … Adobe Fonts(Typekit kit: owa7jjf)で配信。読み込みは header.php の埋め込みスクリプト。
                   このキットに入っているのは weight:700 の1書体のみなので、
                   ロゴ側の font-weight も 700 に揃えている(900を指定すると疑似ボールドになる)。
   'SicElleminB' … 端末にデスクトップ版が入っている場合のフォールバック。
   'Zen Old Mincho' … 上記が使えない場合の最終フォールバック(従来の書体)。 */
:root { --font-logo: 'sicellemin', 'SicElleminB', 'Zen Old Mincho', serif; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: none; }
button, input, textarea { font: inherit; }

/* ==========================================================================
   Responsive breakpoint switch
   PC layout shows at >=768px, SP layout shows below that.
   ========================================================================== */
.sp-page { display: block; }
.pc-page { display: none; }

@media (min-width: 768px) {
  .sp-page { display: none; }
  .pc-page { display: block; }
}

/* ==========================================================================
   ハンバーガーメニュー(右からスライドインするドロワー)

   .pc-page / .sp-page は main.js の zoom で拡縮されるため、その中に
   position:fixed を置くと座標がズレる。ドロワーは両コンテナの外側に
   配置しているので、ここではデザイン幅ではなく実寸(px/vw)で組む。
   ========================================================================== */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}
.nav-drawer.is-open {
  visibility: visible;
  transition-delay: 0s;
}
.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav-drawer.is-open .nav-drawer-overlay {
  opacity: 1;
}
.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 82vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.nav-drawer.is-open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e0d5;
}
.nav-drawer-logo {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.4px;
  color: #252c51;
  white-space: nowrap;
}
.nav-drawer-logo .nav-drawer-no {
  letter-spacing: 1.2px;
}
.nav-drawer-close {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  background: #f2f0e8;
  border-radius: 50%;
  cursor: pointer;
}
.nav-drawer-close span {
  position: absolute;
  inset: 0;
}
.nav-drawer-close i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: #252c51;
  border-radius: 2px;
}
.nav-drawer-close i:nth-child(1) { transform: rotate(45deg); }
.nav-drawer-close i:nth-child(2) { transform: rotate(-45deg); }
.nav-drawer-close:hover {
  background: #e5e0d5;
}

.nav-drawer-nav {
  flex: 1 0 auto;
  padding: 8px 0;
}
.nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-drawer-list a {
  position: relative;
  display: block;
  padding: 16px 20px 16px 34px;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: #252c51;
  text-decoration: none;
  border-bottom: 1px solid #f0eee6;
}
.nav-drawer-list a::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #da5e27;
}
.nav-drawer-list a:hover {
  background: #faf9f5;
}

.nav-drawer-cta {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.nav-drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 8px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}
.nav-drawer-btn img {
  width: 36px;
  height: 36px;
  display: block;
}
.nav-drawer-btn span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}
.nav-drawer-btn--line { background: #99be49; }
.nav-drawer-btn--phone { background: #f18a5c; }

body.nav-drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   プライバシーポリシー モーダル
   ========================================================================== */
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.privacy-modal.is-open {
  display: flex;
}
.privacy-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.privacy-modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(720px, 85vh);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  flex: none;
}
.privacy-modal-title {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 20px;
  color: #222843;
}
.privacy-modal-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f2ef;
  border-radius: 50%;
  color: #333;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy-modal-close:hover {
  background: #e5e0d5;
}
.privacy-modal-body {
  overflow-y: auto;
  padding: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  -webkit-overflow-scrolling: touch;
}
.privacy-modal-body p {
  margin: 0 0 16px;
}
.privacy-modal-body h3 {
  margin: 24px 0 10px;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 16px;
  color: #222843;
}
.privacy-modal-body h3:first-child {
  margin-top: 0;
}
.privacy-modal-body ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.privacy-modal-body li {
  margin-bottom: 8px;
}
body.privacy-modal-open {
  overflow: hidden;
}
