/*!
Theme Name: miyaworks-child
Template: miyaworks
Author: miya
Description: Description
Version: 1.0.0
*/


/* ==============================
   カラー・基本設定
============================== */

:root {
  --brand: #80c41c;
  --brand-soft: #f6f9f3;
  --brand-border: #dce6d6;

  --text: #30352d;
  --header-opacity: .88;
  --container: 1200px;

  --cta: #467326;
  --cta-hover: #31551c;
  --bg: #ffffff;
  --line: rgba(70, 115, 38, .16);

  --header-h: 64px;
  --sidebar-w: 360px;
  --radius: 18px;

  --font-sans:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}


/* ==============================
   PC・スマホの表示切り替え
============================== */

@media screen and (min-width: 768px) {
  .sp {
    display: none !important;
  }

  .br-sp {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .pc {
    display: none !important;
  }

  .br-pc {
    display: none;
  }
}


/* ==============================
   共通
============================== */

html,
body {
  height: 100vh;
  overflow-x: hidden;
}

.center {
  text-align: center;
}

.entry-header,
.entry-footer {
  display: none;
}

.kinki-layout {
  color: var(--text);
  font-family: var(--font-sans);
  background: var(--bg);
}


/* ==============================
   ヘッダー
============================== */

.kinki-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, var(--header-opacity));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.kinki-header__inner {
  height: var(--header-h);
  max-width: var(--container);
  margin: 10px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
}


/* ==============================
   ハンバーガーボタン
============================== */

.kinki-burger {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;

  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background-color .12s ease,
    border-color .12s ease;
}

.kinki-burger:hover {
  background: rgba(128, 196, 28, .1);
  border-color: rgba(70, 115, 38, .3);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.kinki-burger:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}


/* ==============================
   ブランド・ロゴ
============================== */

.kinki-brand {
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kinki-brand__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.kinki-brand__logo img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.kinki-brand__tag {
  font-size: 15.5px;
  font-weight: 700;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 959px) {
  .kinki-brand__logo img {
    height: 24px;
    max-width: 200px;
  }
}


/* ========================================
   ヘッダーナビ
======================================== */

.kinki-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.kinki-header__nav a {
  opacity: 1;
  text-decoration: none;
}


/* ========================================
   Instagram・YouTube
======================================== */

.kinki-header__social {
  box-sizing: border-box;
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  padding: 7px;

  border: 1px solid rgba(70, 115, 38, .14);
  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 5px 12px rgba(0, 0, 0, .07);

  transition:
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.kinki-header__social svg {
  display: block;
  width: 24px;
  height: 24px;
}

.kinki-header__social:hover {
  background: #fff;
  transform: translateY(-2px);

  box-shadow:
    0 9px 18px rgba(0, 0, 0, .12);
}

.kinki-header__social--instagram:hover {
  border-color: rgba(255, 1, 105, .4);
}

.kinki-header__social--youtube:hover {
  border-color: rgba(255, 0, 0, .4);
}


/* ========================================
   公式サイトボタン
======================================== */

.kinki-header__official {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 40px;
  margin-left: 5px;
  padding: 0 13px;

  border: 1px solid rgba(70, 115, 38, .38);
  border-radius: 999px;

  background: #fff;
  color: var(--cta);

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  box-shadow:
    0 5px 12px rgba(49, 85, 28, .06);

  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.kinki-header__official:hover {
  border-color: var(--cta);
  background: var(--brand-soft);
  color: var(--cta);

  transform: translateY(-1px);

  box-shadow:
    0 8px 16px rgba(49, 85, 28, .12);
}

.kinki-header__official-icon {
  display: block;
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kinki-header__external {
  display: block;
  width: 13px;
  height: 13px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   お問い合わせボタン
======================================== */

.kinki-header__actions {
  margin-left: 3px;
}

.kinki-header__actions .kinki-btn {
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 16px;
}


/* ========================================
   キーボード操作
======================================== */

.kinki-header__social:focus-visible,
.kinki-header__official:focus-visible {
  outline: 3px solid rgba(128, 196, 28, .4);
  outline-offset: 3px;
}


/* ========================================
   960px以下
======================================== */

@media screen and (max-width: 959px) {
  .kinki-header__nav {
    display: none;
  }
}

/* ==============================
   共通ボタン
============================== */

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

  padding: 10px 14px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: #fff;
  color: var(--text);

  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;

  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);

  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

/* 白いボタン */
.kinki-btn:not(.kinki-btn--primary):hover {
  color: var(--cta);
  border-color: rgba(70, 115, 38, .35);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(49, 85, 28, .1);
}

/* 緑のメインボタン */
.kinki-btn--primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}

.kinki-btn--primary:hover {
  background: var(--cta-hover);
  color: #fff;
  border-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(49, 85, 28, .22);
}

.kinki-btn:active {
  transform: translateY(1px);
}

/* キーボード操作時 */
.kinki-btn:focus-visible,
.kinki-burger:focus-visible {
  outline: 3px solid rgba(128, 196, 28, .4);
  outline-offset: 3px;
}


/* ==============================
   メインレイアウト
============================== */

.kinki-main {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 16px;
  padding: 16px;
  min-height: calc(100vh - var(--header-h));
}

.kinki-mapwrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f7f3;
  min-height: calc(100vh - var(--header-h) - 32px);
}


/* ==============================
   サイドバー
============================== */

.kinki-sidebar {
  position: relative;
}

.kinki-sidebar__inner {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow: auto;
  padding-right: 6px;
}

.kinki-sidebar__block {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 15px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .05);
}

/* 成約実績ブロック */
.kinki-sidebar__block--hero {
  border-color: rgba(70, 115, 38, .28);
  background: var(--brand-soft);
}

.kinki-sidebar__title {
  font-size: 15px;
  margin: 0 0 10px;
  letter-spacing: .02em;
}

.kinki-sidebar__lead {
  font-size: 13px;
  line-height: 1.7;
  margin: 10px 0 10px;
  opacity: .92;
}


/* ==============================
   成約件数・対応エリア
============================== */

.kinki-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.kinki-kpi__item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  border-radius: 14px;
  padding: 10px;
}

.kinki-kpi__label {
  font-size: 11px;
  opacity: .75;
}

.kinki-kpi__value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 3px;
}

.kinki-kpi__value span {
  font-size: 12px;
  margin-left: 3px;
  opacity: .85;
}

.kinki-kpi__value--sm {
  font-size: 13px;
  font-weight: 700;
}


/* ==============================
   CTAボタンエリア
============================== */

.kinki-cta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ===== 神戸市・西宮市の物件ボタン ===== */

.kinki-cta--area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.kinki-cta--area .kinki-btn--area {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;

  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;

  border: 1px solid var(--cta);
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  text-align: left;

  box-shadow: 0 8px 18px rgba(70, 115, 38, .2);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.kinki-cta--area .kinki-btn--area::after {
  content: none;
}

/* ビルアイコン */
.kinki-btn__building {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  background: #fff;
  color: var(--cta);
  box-shadow: 0 3px 8px rgba(49, 85, 28, .16);
}

.kinki-btn__building svg {
  display: block;
  width: 25px;
  height: 25px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ボタン文字 */
.kinki-btn__label {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* 右側の矢印 */
.kinki-btn__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--cta);
  transition: transform .2s ease;
}

.kinki-btn__arrow::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-2px) rotate(-45deg);
}

.kinki-cta--area .kinki-btn--area:hover .kinki-btn__arrow {
  transform: translateX(2px);
}
/* ホバー */
.kinki-cta--area .kinki-btn--area:hover {
  border-color: var(--cta-hover);
  background: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(49, 85, 28, .25);
}

.kinki-cta--area .kinki-btn--area:hover .kinki-btn__arrow {
  transform: translateX(2px);
}

.kinki-cta--area .kinki-btn--area:active {
  transform: translateY(0);
}

/* 特に画面幅が狭いスマートフォン */
@media screen and (max-width: 400px) {
  .kinki-cta--area .kinki-btn--area {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px;
  }

  .kinki-btn__building {
    width: 36px;
    height: 36px;
  }

  .kinki-btn__building svg {
    width: 22px;
    height: 22px;
  }

  .kinki-btn__label {
    font-size: 12px;
  }

  .kinki-btn__arrow {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
}

/* ==============================
   リスト
============================== */

.kinki-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
}

.kinki-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
}

.kinki-list a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}

.kinki-list a:hover {
  color: var(--cta);
  text-decoration: underline;
}


/* ==============================
   「もっと見る」リンク
============================== */

.kinki-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--cta);
  text-decoration: none;
}

.kinki-more:hover {
  color: var(--cta-hover);
  text-decoration: underline;
}


/* ==============================
   公式リンク
============================== */

.kinki-links {
  display: grid;
  gap: 8px;
}

.kinki-link {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  text-decoration: none;
  color: var(--text);

  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

.kinki-link:hover {
  color: var(--cta);
  border-color: rgba(70, 115, 38, .38);
  background: var(--brand-soft);
}


/* ==============================
   スマホ用ドロワー
============================== */

.kinki-overlay {
  display: none;
}

/* 960px以下：サイドバーをドロワー化 */
@media screen and (max-width: 959px) {
  .kinki-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  /* スマホではヘッダーナビを非表示 */
  .kinki-header__nav {
    display: none;
  }

  .kinki-main {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .kinki-mapwrap {
    min-height: calc(100vh - var(--header-h) - 24px);
  }

  /* サイドバー本体 */
  .kinki-sidebar {
    position: fixed;
    z-index: 1200;
    top: var(--header-h);
    left: 0;
    width: min(92vw, 420px);
    height: calc(100vh - var(--header-h));
    background: rgba(255, 255, 255, .98);
    border-right: 1px solid var(--line);
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  }

  .kinki-sidebar__inner {
    position: static;
    max-height: 100%;
    overflow-y: auto;
    padding: 12px;
  }

  /* サイドバー外側の暗い背景 */
  .kinki-overlay {
    display: block;
    position: fixed;
    z-index: 1100;
    inset: var(--header-h) 0 0;
    background: rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .22s ease,
      visibility .22s ease;
  }

  /* メニューを開いた状態 */
  .kinki-layout.is-drawer-open .kinki-sidebar {
    transform: translateX(0);
  }

  .kinki-layout.is-drawer-open .kinki-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


/* ==============================
   Leafletズームボタン
============================== */

.leaflet-control-zoom a {
  border-radius: 10px !important;
  overflow: hidden;
}


/* ==============================
   Leafletポップアップの色
============================== */

#kinki-map .kinki-popup__label {
  background: var(--cta);
}

#kinki-map .leaflet-popup-content-wrapper {
  border-color: rgba(70, 115, 38, .18);
}

#kinki-map .leaflet-popup-close-button:hover {
  color: var(--cta);
}


/* ==============================
   公式リンクのアイコン
============================== */

.kinki-link {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 12px;
}

.kinki-link__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--cta);
}

.kinki-link__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kinki-link__label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

/* 右側の矢印 */
.kinki-link__arrow {
  display: grid;
  place-items: center;
  color: var(--cta);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}

.kinki-link:hover .kinki-link__icon {
  background: var(--cta);
  color: #fff;
}

.kinki-link:hover .kinki-link__arrow {
  transform: translateX(3px);
}

/* ========================================
   成約実績マップ・タイトルビジュアル
======================================== */

.kinki-map-title {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;

  min-height: 132px;
  margin: -4px -4px 14px;
  padding: 17px 108px 16px 17px;

  overflow: hidden;
  border: 1px solid rgba(70, 115, 38, .16);
  border-radius: 16px;

  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(128, 196, 28, .2) 0,
      rgba(128, 196, 28, 0) 42%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f6f9f3 48%,
      #e8f2e1 100%
    );
}

/* 背景の地図・等高線風装飾 */
.kinki-map-title::before,
.kinki-map-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(70, 115, 38, .1);
  border-radius: 50%;
  pointer-events: none;
}

.kinki-map-title::before {
  width: 170px;
  height: 74px;
  top: -32px;
  right: 66px;
  transform: rotate(-10deg);
}

.kinki-map-title::after {
  width: 210px;
  height: 92px;
  right: -54px;
  bottom: -50px;
  transform: rotate(8deg);
}

.kinki-map-title__content {
  position: relative;
  z-index: 2;
}

.kinki-map-title__en {
  margin: 0 0 7px;
  color: var(--cta);

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
}

.kinki-map-title__heading {
  margin: 0;
  color: var(--text);

  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: .01em;
}

.kinki-map-title__heading span {
  display: block;
	white-space: nowrap;
}

.kinki-map-title__sub {
  margin: 8px 0 0;
  color: rgba(48, 53, 45, .76);

  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

/* ビル群の透過画像 */
.kinki-sidebar__block--hero
.kinki-map-title
img.kinki-map-title__image {
  position: absolute;
  z-index: 1;
  right: 1px;
  bottom: 0;

  display: block;
  width: 108px !important;
  max-width: 108px !important;
  height: 108px !important;

  object-fit: contain;
  object-position: center bottom;

  filter: drop-shadow(
    0 8px 10px rgba(49, 85, 28, .14)
  );

  pointer-events: none;
  user-select: none;
}

/* タイトル直後のKPI */
.kinki-map-title + .kinki-kpi {
  margin-top: 0;
}


/* ========================================
   狭いスマートフォン
======================================== */

@media screen and (max-width: 400px) {
  .kinki-map-title {
    min-height: 124px;
    padding: 15px 100px 14px 14px;
  }

  .kinki-map-title__heading {
    font-size: 17px;
  }

  .kinki-map-title__en {
    font-size: 8px;
  }

  .kinki-map-title__sub {
    max-width: 145px;
    font-size: 9px;
  }

  .kinki-sidebar__block--hero
  .kinki-map-title
  img.kinki-map-title__image {
    right: -2px;
    bottom: 0;
    width: 104px !important;
    max-width: 104px !important;
    height: 104px !important;
  }
}

/* ========================================
   エリアから成約実績を見る
======================================== */

.kinki-area-nav__title {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 800;
}

.kinki-area-nav__lead {
  margin: 0 0 13px;
  color: rgba(48, 53, 45, .76);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}

.kinki-area-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kinki-area-nav__button {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;

  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 9px 9px;

  border: 1px solid rgba(70, 115, 38, .24);
  border-radius: 13px;

  background: #fff;
  color: var(--text);

  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(49, 85, 28, .04);

  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

/* 全体表示だけ薄い緑 */
.kinki-area-nav__button--all {
  background: var(--brand-soft);
}

.kinki-area-nav__icon {
  display: grid;
  place-items: center;
  color: var(--cta);
}

.kinki-area-nav__icon svg {
  display: block;
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kinki-area-nav__label {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.kinki-area-nav__arrow {
  color: var(--cta);
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;

  transition: transform .2s ease;
}

.kinki-area-nav__button:hover {
  border-color: var(--cta);
  background: var(--brand-soft);
  color: var(--cta);

  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(49, 85, 28, .1);
}

.kinki-area-nav__button:hover .kinki-area-nav__arrow {
  transform: translateX(2px);
}

.kinki-area-nav__button:active {
  transform: translateY(1px);
}

.kinki-area-nav__button:focus-visible {
  outline: 3px solid rgba(128, 196, 28, .4);
  outline-offset: 2px;
}


/* ========================================
   狭いスマートフォン
======================================== */

@media screen and (max-width: 360px) {
  .kinki-area-nav__button {
    grid-template-columns: 21px minmax(0, 1fr) 10px;
    gap: 5px;
    min-height: 54px;
    padding: 8px 7px;
  }

  .kinki-area-nav__icon svg {
    width: 21px;
    height: 21px;
  }

  .kinki-area-nav__label {
    font-size: 12px;
  }

  .kinki-area-nav__arrow {
    font-size: 19px;
  }
}

/* ==============================
   スマホ：メニュー下部の見切れ対策
============================== */

@media screen and (max-width: 959px) {
  .kinki-sidebar {
    /* 100vhは古いSafari用の予備 */
    height: calc(100vh - var(--header-h));

    /* Safariのアドレスバーを考慮した高さ */
    height: calc(100dvh - var(--header-h));
  }

  .kinki-sidebar__inner {
    height: 100%;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* 最後のボタンをブラウザバーより上までスクロールできるようにする */
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }
}

/* ==============================
   フッター
============================== */
.kinki-footer__legal {
  padding: 20px 16px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.kinki-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kinki-footer__legal a:hover {
  color: var(--cta);
}

.kinki-footer__legal p {
  margin: 8px 0 0;
}

/* ==============================
   プライバシーポリシー簡易ヘッダー
============================== */

.privacy-page-header {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(73, 120, 43, 0.18);
}

.privacy-page-header__logo {
  display: block;
}

.privacy-page-header__logo img {
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
}

.privacy-page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #49782b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.privacy-page-header__back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media screen and (max-width: 767px) {
  .privacy-page-header {
    margin-bottom: 30px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .privacy-page-header__logo img {
    height: 28px;
    max-width: 240px;
  }
}

/* ==============================
   プライバシーポリシー本文
============================== */

/* 簡易ヘッダー以外の本文を中央に収める */
body.privacy-policy .entry-content > :not(.privacy-page-header) {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 本文全体の下余白 */
body.privacy-policy .entry-content {
  padding-bottom: 80px;
}

/* 文章を読みやすくする */
body.privacy-policy .entry-content p,
body.privacy-policy .entry-content li {
  line-height: 1.9;
}

/* 見出しの間隔 */
body.privacy-policy .entry-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  body.privacy-policy .entry-content > :not(.privacy-page-header) {
    width: calc(100% - 36px);
  }

  body.privacy-policy .entry-content {
    padding-bottom: 60px;
  }

  body.privacy-policy .entry-content h2 {
    margin-top: 36px;
  }
}

/* =========================================
   スマホ用 お問い合わせCTA
========================================= */

.kinki-mobile-contact {
  display: none;
}

@media screen and (max-width: 767px) {
  .kinki-mobile-contact {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;

    width: calc(100% - 36px);
    min-height: 88px;
    margin: 16px 18px 14px;
    padding: 13px 14px;

    color: #fff;
    text-decoration: none;
    background: linear-gradient(
      135deg,
      #e77b33 0%,
      #d96b2f 55%,
      #c95725 100%
    );
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(173, 73, 28, 0.2);

    box-sizing: border-box;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .kinki-mobile-contact:visited {
    color: #fff;
  }

  .kinki-mobile-contact:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(173, 73, 28, 0.18);
  }

  .kinki-mobile-contact__icon,
  .kinki-mobile-contact__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #d96b2f;
    background: #fff;
    border-radius: 50%;
  }

  .kinki-mobile-contact__icon {
    width: 52px;
    height: 52px;
  }

  .kinki-mobile-contact__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .kinki-mobile-contact__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.35;
  }

  .kinki-mobile-contact__text strong {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .kinki-mobile-contact__text small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
  }

  .kinki-mobile-contact__arrow {
    width: 42px;
    height: 42px;
  }

  .kinki-mobile-contact__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .kinki-mobile-contact:focus-visible {
    outline: 3px solid #273b20;
    outline-offset: 3px;
  }
}

@media screen and (max-width: 370px) {
  .kinki-mobile-contact {
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    gap: 9px;
    padding-inline: 11px;
  }

  .kinki-mobile-contact__icon {
    width: 46px;
    height: 46px;
  }

  .kinki-mobile-contact__arrow {
    width: 38px;
    height: 38px;
  }

  .kinki-mobile-contact__text strong {
    font-size: 14px;
  }

  .kinki-mobile-contact__text small {
    font-size: 12px;
  }
}