 :root {
  --wij-blue: #376ab3;
  --wij-dark-blue: #1f4e85;
  --wij-light-blue: #cfe0f4;
  --wij-bg-blue: #d9e6f4;
  --wij-green: #8bc641;
  --wij-text: #333333;
  --header-height: 110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: "Meiryo UI", Meiryo, "Yu Gothic", YuGothic, sans-serif;
  color: var(--wij-text);
  background: #ffffff;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; }

.site-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #ffffff;
  min-height: 100vh;
  box-shadow: none;
}

.site-header,
.image-header,
.header-design,
.page-body,
.site-footer {
  width: 100%;
  max-width: none;
}

@supports (width: 100dvw) {
  .site-shell,
  .site-header,
  .image-header,
  .header-design,
  .page-body,
  .site-footer {
    width: 100dvw;
  }
}

.top-accent { height: 6px; background: var(--wij-green); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 3px solid var(--wij-blue);
}
.header-main {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "brand menu"
    "phone menu";
  align-items: center;
  column-gap: 8px;
  padding: 7px 0 7px 10px;
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}
.brand-logo {
  width: clamp(120px, 44vw, 255px);
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(2px 3px 3px rgba(0,0,0,.25));
}
.brand-copy {
  color: var(--wij-dark-blue);
  font-size: clamp(11px, 2.8vw, 17px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.06em;
  white-space: nowrap;
  text-shadow: 0 1px 0 #fff, 1px 2px 3px rgba(0,0,0,.25);
  margin-left: -2px;
}
.header-phone {
  grid-area: phone;
  display: block;
  width: clamp(148px, 50vw, 270px);
  margin-left: clamp(108px, 31vw, 250px);
  margin-top: -2px;
  line-height: 0;
}
.header-phone img {
  width: 100%;
  height: auto;
  display: block;
}
.menu-button {
  grid-area: menu;
  width: 80px;
  height: 86px;
  border: 0;
  background: var(--wij-blue);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  cursor: pointer;
  align-self: stretch;
}
.menu-line {
  display: block;
  width: 46px;
  height: 6px;
  background: #ffffff;
}
.menu-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .03em;
}

.page-body { background: #fff; }
.blank-section {
  min-height: 80vh;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.blank-section:nth-child(even) { background: #fbfdff; }

.site-footer { background: var(--wij-bg-blue); }
.footer-info {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  padding: 10px 28px 9px;
  align-items: start;
  background: var(--wij-bg-blue);
}
.footer-block { min-width: 0; }
.footer-block p,
.footer-block h2 {
  margin: 0;
  color: #2f2f2f;
  line-height: 1.22;
  letter-spacing: -.04em;
  font-size: clamp(12px, 3.2vw, 17px);
  font-weight: 500;
}
.footer-block h2 {
  margin-bottom: 8px;
  font-weight: 900;
}
.footer-company a { text-decoration: none; }
.footer-map-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wij-blue);
  font-size: clamp(12px, 3.2vw, 17px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.04em;
  cursor: pointer;
  white-space: nowrap;
}
.footer-lower {
  min-height: 45px;
  padding: 7px 10px 6px;
  background: var(--wij-blue);
  color: #ffffff;
  text-align: center;
  display: grid;
  gap: 2px;
  place-items: center;
}
.footer-lower a,
.footer-lower p {
  margin: 0;
  font-size: clamp(12px, 3.4vw, 16px);
  line-height: 1.18;
  text-decoration: none;
  letter-spacing: -.02em;
}

.menu-backdrop,
.popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.42);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 101;
  width: min(82vw, 420px);
  height: 100dvh;
  padding: 28px 28px 42px;
  background: #ffffff;
  transform: translateX(105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  overflow-y: auto;
  box-shadow: -6px 0 24px rgba(0,0,0,.20);
}
.mobile-menu.is-open { transform: translateX(0); }
.menu-close {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--wij-blue);
  color: #fff;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu a {
  width: min(100%, 280px);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--wij-light-blue);
  color: var(--wij-blue);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  position: relative;
}
.mobile-menu a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -60px;
  right: -60px;
  bottom: -12px;
  height: 2px;
  background: var(--wij-blue);
  opacity: .85;
}

.popover-backdrop {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.popover-backdrop.is-open { display: flex; }
.map-popover {
  width: min(100%, 620px);
  max-height: min(86dvh, 720px);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.map-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--wij-blue);
  color: #ffffff;
}
.map-popover-header h2 { margin: 0; font-size: 22px; }
.map-popover-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--wij-blue);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.map-popover-body {
  padding: 18px;
  overflow-y: auto;
  max-height: calc(86dvh - 74px);
}
.map-address {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
}
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(55,106,179,.25);
  border-radius: 12px;
  overflow: hidden;
  background: #eef4fb;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-app-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--wij-green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
body.menu-open,
body.popover-open { overflow: hidden; }

@media (max-width: 390px) {
  :root { --header-height: 95px; }
  .header-main {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) 72px;
    padding-left: 8px;
    column-gap: 6px;
  }
  .brand-logo { width: 116px; }
  .brand-copy { font-size: 11px; }
  .header-phone { width: 146px; margin-left: 126px; }
  .menu-button { width: 72px; height: 82px; }
  .menu-line { width: 42px; height: 6px; }
  .menu-text { font-size: 17px; }
  .footer-info { padding-inline: 28px 16px; gap: 14px; }
  .footer-block p, .footer-block h2, .footer-map-link { font-size: 13px; }
  .footer-lower a, .footer-lower p { font-size: 13px; }
}

@media (min-width: 560px) {
  .header-main {
    min-height: 108px;
    grid-template-columns: minmax(0, 1fr) 116px;
    padding-left: 18px;
  }
  .menu-button { width: 116px; height: 108px; }
  .menu-line { width: 64px; height: 8px; }
  .menu-text { font-size: 26px; }
  .footer-info { padding-inline: 66px 42px; }
}


/* 画像ヘッダー版：デザイン画像をそのまま表示し、画像内の範囲をクリック可能にする */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 0;
}
.image-header {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #ffffff;
}
.header-design {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.header-hotspot {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(55, 106, 179, .22);
  touch-action: manipulation;
  transition: background-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.header-hotspot:active,
.header-hotspot.is-pressed {
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 999px rgba(55, 106, 179, .12);
  transform: scale(.985);
}
.header-logo-hotspot {
  left: 0%;
  top: 0%;
  width: 39.3%;
  height: 87.0%;
}
.header-phone-hotspot {
  left: 39.3%;
  top: 46.5%;
  width: 37.0%;
  height: 28.5%;
  border-radius: 999px;
}
.header-menu-hotspot {
  left: 78.45%;
  top: 0%;
  width: 21.55%;
  height: 100%;
}
.header-menu-hotspot:active,
.header-menu-hotspot.is-pressed {
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .08);
  transform: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.image-header .menu-button {
  display: block;
  min-height: 0;
  min-width: 0;
  width: 21.55%;
  height: 100%;
  color: transparent;
}
.image-header .menu-line,
.image-header .menu-text { display: none !important; }


/* アクセスマップ画像版：popover内で画像をスワイプスクロール */
.map-image-scroll {
  height: min(52dvh, 430px);
  aspect-ratio: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.map-image-scroll:active {
  cursor: grabbing;
}

.access-map-image {
  display: block;
  width: 920px;
  max-width: none;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 600px) {
  .map-image-scroll {
    height: min(48dvh, 360px);
  }

  .access-map-image {
    width: 760px;
  }
}


/* 追従ボタン：少しスクロールしたら画面下に buttonkeep.png を表示 */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 90;
  width: 100%;
  max-width: none;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  pointer-events: none;
}

.fixed-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fixed-cta-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.fixed-cta-hotspot {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  -webkit-tap-highlight-color: rgba(55, 106, 179, .22);
  touch-action: manipulation;
}

.fixed-cta-hotspot:active,
.fixed-cta-hotspot.is-pressed {
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 999px rgba(0,0,0,.06);
}

/* 画像内クリック範囲：左＝フォーム、右＝電話、右上＝ページ上部へ */
.fixed-cta-form {
  left: 0%;
  top: 49%;
  width: 48.8%;
  height: 27%;
  border-radius: 12px;
}

.fixed-cta-phone {
  left: 51.3%;
  top: 49%;
  width: 48.7%;
  height: 27%;
  border-radius: 12px;
}

.fixed-cta-top {
  left: 84.6%;
  top: 0%;
  width: 15.4%;
  height: 45.5%;
  border-radius: 999px;
}

/* 追従ボタンがフッターの文字を隠しすぎないよう、下部に余白を確保 */
.site-footer {
  padding-bottom: clamp(118px, 31.7vw, 210px);
}

/* v7調整：スクロール時にヘッダー上部が欠けないよう、固定表示に変更 */
:root {
  --fixed-header-height: calc(100vw * 389 / 2042);
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  overflow: visible !important;
  transform: none !important;
  background: #ffffff !important;
}

.page-body {
  padding-top: var(--fixed-header-height);
}

.blank-section {
  scroll-margin-top: calc(var(--fixed-header-height) + 14px) !important;
}

/* v7調整：追従ボタン用にフッター下へ大きな余白を作らない */
.site-footer {
  padding-bottom: 0 !important;
}

/* v7調整：追従ボタンは画面に重ねるだけにして、ページの高さを増やさない */
.fixed-cta {
  bottom: 0 !important;
  z-index: 950 !important;
}


/* v8: buttonkeep.png 表示制御（JSが is-visible / is-hidden を切替） */
.fixed-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
}

.fixed-cta.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.fixed-cta.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(18px) !important;
}


/* ============================================================
   画像セクション位置調整

   section003_box.png は「絶対配置」に変更しました。
   下の --section003-box-* を変えるだけで反映されます。
   ※ @media 内で上書きしないようにしているため、スマホでも同じ変数が効きます。

   よく使う調整：
   - 横幅：--section003-box-width
   - 上下：--section003-box-top
   - 左右：--section003-box-left
   - 中央寄せ：--section003-box-translate-x: -50%;
   - 重なり順：--section003-box-z-index
   ============================================================ */
:root {
  --section001-margin-top: -3px;
  --section001-margin-bottom: 0px;
  --section001-z-index: 1;

  --section003-margin-top: -20.36vw;
  --section003-margin-bottom: 0px;
  --section003-z-index: 10;

  --section014-margin-top: 0px;
  --section014-margin-bottom: 0px;
  --section014-z-index: 10;

  --section025-margin-top: 0px;
  --section025-margin-bottom: 0px;
  --section025-z-index: 10;

  --section046-margin-top: 0px;
  --section046-margin-bottom: 0px;
  --section046-z-index: 10;

  --section077-margin-top: 0px;
  --section077-margin-bottom: 0px;
  --section077-z-index: 10;

  --section088-margin-top: -1px;
  --section088-margin-bottom: 0px;
  --section088-z-index: 10;

  --section003-box-width: 75%;
  --section003-box-max-width: 843px;
  --section003-box-top: -5%;
  --section003-box-left: 50%;
  --section003-box-translate-x: -50%;
  --section003-box-translate-y: 0%;
  --section003-box-z-index: 999;

  --section003-scroll_box-window-width: 100%;
  --section003-scroll_box-width: 210%;
  --section003-scroll_box-max-width: none;
  --section003-scroll_box-top: 40%;
  --section003-scroll_box-left: 0%;
  --section003-scroll_box-translate-x: 0%;
  --section003-scroll_box-translate-y: 0%;
  --section003-scroll_box-z-index: 998;

  --section003-smalltext-window-width: 100%;
  --section003-smalltext-width: 90%;
  --section003-smalltext-max-width: none;
  --section003-smalltext-top: 94%;
  --section003-smalltext-left: 50%;
  --section003-smalltext-translate-x: -50%;
  --section003-smalltext-translate-y: 0%;
  --section003-smalltext-z-index: 980;

  --section003-part2-window-width: 100%;
  --section003-part2-width: 100%;
  --section003-part2-max-width: none;
  --section003-part2-top: 100%;
  --section003-part2-left: 50%;
  --section003-part2-translate-x: -50%;
  --section003-part2-translate-y: 0%;
  --section003-part2-z-index: 980;
  --section003-part2-margin-top: -1px;

  --section025-scroll_box-window-width: 120%;
  --section025-scroll_box-width: 120%;
  --section025-scroll_box-max-width: none;
  --section025-scroll_box-top: 32%;
  --section025-scroll_box-left: 0%;
  --section025-scroll_box-translate-x: 0%;
  --section025-scroll_box-translate-y: 0%;
  --section025-scroll_box-z-index: 998;
}

.section-image-section {
  padding: 0;
  line-height: 0;
  background: transparent;
  scroll-margin-top: calc(var(--fixed-header-height) + 14px);
  overflow: visible;
}

.section001-section {
  position: relative;
  z-index: var(--section001-z-index);
  margin-top: var(--section001-margin-top);
  margin-bottom: var(--section001-margin-bottom);
}

.section003-section {
  position: relative;
  z-index: var(--section003-z-index);
  margin-top: var(--section003-margin-top);
  margin-bottom: var(--section003-margin-bottom);
}

/* section003.png と section003_part2.png を端末差なく接続するため、
   上半分だけを相対配置コンテナにします。
   box / scroll_box / smalltext はこの中で絶対配置されます。 */
.section003-main {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.section014-section {
  position: relative;
  z-index: var(--section014-z-index);
  margin-top: var(--section014-margin-top);
  margin-bottom: var(--section014-margin-bottom);
}

.section025-section {
  position: relative;
  z-index: var(--section025-z-index);
  margin-top: var(--section025-margin-top);
  margin-bottom: var(--section025-margin-bottom);
}

.section046-section {
  position: relative;
  z-index: var(--section046-z-index);
  margin-top: var(--section046-margin-top);
  margin-bottom: var(--section046-margin-bottom);
}

.section077-section {
  position: relative;
  z-index: var(--section077-z-index);
  margin-top: var(--section077-margin-top);
  margin-bottom: var(--section077-margin-bottom);
}

.section088-section {
  position: relative;
  z-index: var(--section088-z-index);
  margin-top: var(--section088-margin-top);
  margin-bottom: var(--section088-margin-bottom);
}

.section-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.section003-box-image,
.section003_box-image {
  position: absolute !important;
  z-index: var(--section003-box-z-index);
  top: var(--section003-box-top);
  left: var(--section003-box-left);
  width: var(--section003-box-width) !important;
  max-width: var(--section003-box-max-width) !important;
  height: auto;
  margin: 0 !important;
  transform: translate(
    var(--section003-box-translate-x),
    var(--section003-box-translate-y)
  );
  display: block;
}

.section003-smalltext,
.section003_smalltext {
  position: absolute !important;
  z-index: var(--section003-smalltext-z-index);
  top: var(--section003-smalltext-top);
  left: var(--section003-smalltext-left);
  width: var(--section003-smalltext-width) !important;
  max-width: var(--section003-smalltext-max-width) !important;
  height: auto;
  margin: 0 !important;
  transform: translate(
    var(--section003-smalltext-translate-x),
    var(--section003-smalltext-translate-y)
  );
  display: block;
}

.section003-part2,
.section003_part2 {
  /* section003_part2.png は絶対配置にせず、通常フローで section003.png の直後に置きます。
     これにより端末幅が変わっても、高さ計算が自動になりギャップが出ません。 */
  position: relative !important;
  z-index: var(--section003-part2-z-index);
  display: block;
  width: var(--section003-part2-width) !important;
  max-width: var(--section003-part2-max-width) !important;
  height: auto;
  margin: var(--section003-part2-margin-top) 0 0 0 !important;
  padding: 0;
  transform: none !important;
}

.section003-scroll-box-window {
  position: absolute !important;
  z-index: var(--section003-scroll_box-z-index);
  top: var(--section003-scroll_box-top);
  left: var(--section003-scroll_box-left);
  width: var(--section003-scroll_box-window-width);
  max-width: 100%;
  margin: 0 !important;
  transform: translate(
    var(--section003-scroll_box-translate-x),
    var(--section003-scroll_box-translate-y)
  );
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
  scrollbar-width: none;
}

.section003-scroll-box-window::-webkit-scrollbar {
  display: none;
}

.section003-scroll-box-window:active {
  cursor: grabbing;
}

.section003-scroll-box-track,
.section003-scroll_box-image,
.section003_scroll_box-image {
  display: block;
  width: var(--section003-scroll_box-width) !important;
  max-width: var(--section003-scroll_box-max-width) !important;
  height: auto;
  margin: 0 !important;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}



.section025-scroll-box-window {
  position: absolute !important;
  z-index: var(--section025-scroll_box-z-index);
  top: var(--section025-scroll_box-top);
  left: var(--section025-scroll_box-left);
  width: var(--section025-scroll_box-window-width);
  max-width: 100%;
  margin: 0 !important;
  transform: translate(
    var(--section025-scroll_box-translate-x),
    var(--section025-scroll_box-translate-y)
  );
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
  scrollbar-width: none;
}

.section025-scroll-box-window::-webkit-scrollbar {
  display: none;
}

.section025-scroll-box-window:active {
  cursor: grabbing;
}

.section025-scroll-box-track,
.section025-scroll_box-image,
.section025_scroll_box-image {
  display: block;
  width: var(--section025-scroll_box-width) !important;
  max-width: var(--section025-scroll_box-max-width) !important;
  height: auto;
  margin: 0 !important;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* スマホだけ別数値にしたい場合は、下のコメントを外して調整してください。
@media (max-width: 600px) {
  :root {
    --section003-box-width: 92%;
    --section003-box-top: 72%;
    --section003-box-left: 50%;
  }
}
*/

/* v10: 初回表示時の横スクロール対策。100dvw/100vwではなく親幅100%に統一 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-shell,
.site-header,
.image-header,
.header-design,
.page-body,
.site-footer,
.fixed-cta {
  width: 100% !important;
  max-width: 100% !important;
}

/* ============================================================
   モバイル版 CONTACT 入力フォーム
   - section077.png の上に実入力フォームを重ねる
   - プライバシーポリシーリンクは後付け想定のため、同意文言はテキストのみ
   - 位置調整は下の --mobile-contact-* を変更
   ============================================================ */
:root {
  --mobile-contact-blue: #1f4e85;
  --mobile-contact-red: #d83333;
  --mobile-contact-border: #c8d6e8;
  --mobile-contact-placeholder: #9aa6b3;

  --mobile-contact-row-top: 32.0%;
  --mobile-contact-row-gap: 6.45%;
  --mobile-contact-label-left: 10.5%;
  --mobile-contact-label-width: 23%;
  --mobile-contact-field-left: 40%;
  --mobile-contact-field-width: 47%;
  --mobile-contact-field-height: 5.0%;
  --mobile-contact-field-font-size: clamp(10.5px, 2.85vw, 13px);
  --mobile-contact-label-font-size: clamp(10.5px, 2.85vw, 13px);
  --mobile-contact-textarea-height: 10.6%;

  --mobile-contact-agree-box-left: 25%;
  --mobile-contact-agree-box-top: 78.0%;
  --mobile-contact-agree-box-size: clamp(11px, 2.75vw, 14px);
  --mobile-contact-agree-left: 31%;
  --mobile-contact-agree-top: 77.25%;
  --mobile-contact-agree-font-size: clamp(10px, 2.6vw, 12px);

  --mobile-contact-submit-left: 31%;
  --mobile-contact-submit-top: 83.2%;
  --mobile-contact-submit-width: 38%;
  --mobile-contact-submit-height: 7.0%;
  --mobile-contact-submit-font-size: clamp(16px, 4.6vw, 22px);
}

.section077-section {
  position: relative;
  line-height: 0;
}

.mobile-contact-form {
  position: absolute;
  inset: 0;
  z-index: 20;
  font-family: "Meiryo UI", Meiryo, "Yu Gothic", YuGothic, sans-serif;
  line-height: 1.35;
  pointer-events: none;
}

.mobile-contact-row {
  position: absolute;
  left: 0;
  top: calc(var(--mobile-contact-row-top) + (var(--row-index) * var(--mobile-contact-row-gap)));
  width: 100%;
  height: var(--mobile-contact-field-height);
  pointer-events: none;
}

.mobile-contact-label {
  position: absolute;
  left: var(--mobile-contact-label-left);
  top: 0;
  width: var(--mobile-contact-label-width);
  color: var(--mobile-contact-blue);
  font-size: var(--mobile-contact-label-font-size);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}

.mobile-contact-required {
  color: var(--mobile-contact-red);
  font-weight: 700;
}

.mobile-contact-input,
.mobile-contact-textarea {
  position: absolute;
  left: var(--mobile-contact-field-left);
  top: -2%;
  width: var(--mobile-contact-field-width);
  height: 100%;
  border: 1px solid var(--mobile-contact-border);
  border-radius: 3px;
  background: rgba(255,255,255,0.78);
  color: #333333;
  font-family: "Meiryo UI", Meiryo, "Yu Gothic", YuGothic, sans-serif;
  font-size: var(--mobile-contact-field-font-size);
  line-height: 1.45;
  letter-spacing: -0.04em;
  padding: 2px 6px;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.03);
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
}

.mobile-contact-input::placeholder,
.mobile-contact-textarea::placeholder {
  color: var(--mobile-contact-placeholder);
  opacity: 1;
}

.mobile-contact-input:focus,
.mobile-contact-textarea:focus {
  border-color: #376ab3;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 1px rgba(55,106,179,0.18);
}

.mobile-contact-textarea {
  height: var(--mobile-contact-textarea-height);
  min-height: 42px;
  resize: none;
  overflow: auto;
  line-height: 1.45;
}

.mobile-contact-agree-checkbox {
  position: absolute;
  left: var(--mobile-contact-agree-box-left);
  top: var(--mobile-contact-agree-box-top);
  width: var(--mobile-contact-agree-box-size);
  height: var(--mobile-contact-agree-box-size);
  z-index: 22;
  margin: 0;
  padding: 0;
  accent-color: #376ab3;
  cursor: pointer;
  pointer-events: auto;
}

.mobile-contact-agree-label {
  position: absolute;
  left: var(--mobile-contact-agree-left);
  top: var(--mobile-contact-agree-top);
  z-index: 21;
  color: var(--mobile-contact-blue);
  font-size: var(--mobile-contact-agree-font-size);
  font-weight: 400;
  letter-spacing: -0.05em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.mobile-contact-submit {
  position: absolute;
  left: var(--mobile-contact-submit-left);
  top: var(--mobile-contact-submit-top);
  width: var(--mobile-contact-submit-width);
  height: var(--mobile-contact-submit-height);
  z-index: 21;
  border: 0;
  border-radius: 4px;
  background: #145aae;
  color: #ffffff;
  font-family: "Meiryo UI", Meiryo, "Yu Gothic", YuGothic, sans-serif;
  font-size: var(--mobile-contact-submit-font-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.mobile-contact-submit:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

@media (min-width: 560px) {
  :root {
    --mobile-contact-field-font-size: 14px;
    --mobile-contact-label-font-size: 14px;
    --mobile-contact-agree-font-size: 13px;
    --mobile-contact-submit-font-size: 24px;
  }
}



/* v12調整：お問い合わせ内容欄を通常の複数行サイズに戻し、各行を読みやすく調整 */
.mobile-contact-message-row {
  height: var(--mobile-contact-textarea-height) !important;
}

.mobile-contact-message-row .mobile-contact-textarea {
  height: 100% !important;
  min-height: 38px;
}


/* v13調整：背景画像変更後のUX改善。行間と文字サイズを上げ、問い合わせ内容は1行分短くして全体を拡大 */
:root {
  --mobile-contact-row-top: 32.0%;
  --mobile-contact-row-gap: 6.45%;
  --mobile-contact-field-height: 5.0%;
  --mobile-contact-field-font-size: clamp(10.5px, 2.85vw, 13px);
  --mobile-contact-label-font-size: clamp(13px, 2.85vw, 15px);
  --mobile-contact-textarea-height: 10.6%;
  --mobile-contact-agree-box-top: 78.0%;
  --mobile-contact-agree-box-size: clamp(11px, 2.75vw, 14px);
  --mobile-contact-agree-top: 77.25%;
  --mobile-contact-agree-font-size: clamp(13px, 2.6vw, 16px);
  --mobile-contact-submit-left: 31%;
  --mobile-contact-submit-top: 83.2%;
  --mobile-contact-submit-width: 38%;
  --mobile-contact-submit-height: 7.0%;
  --mobile-contact-submit-font-size: clamp(16px, 4.6vw, 22px);
}

.mobile-contact-form {
  line-height: 1.35;
}

.mobile-contact-label {
  line-height: 1.35;
}

.mobile-contact-input,
.mobile-contact-textarea {
  top: -2%;
  line-height: 1.45;
  padding: 2px 6px;
}

.mobile-contact-textarea {
  min-height: 38px;
}


/* ============================================================
   section003_box.png クリック範囲
   - 電話番号エリア：tel:0368630133
   - 「相談フォームはこちら」：#contact
   位置は section003_box.png の比率に合わせています。
   ============================================================ */
.section003-box-link-wrap {
  line-height: 0;
  overflow: hidden;
}

.section003-box-link-wrap .section003-box-visual {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.section003-box-hotspot {
  position: absolute;
  display: block;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(55, 106, 179, .22);
  touch-action: manipulation;
}

.section003-box-hotspot:active,
.section003-box-hotspot.is-pressed {
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 999px rgba(55, 106, 179, .10);
}

/* 電話番号・電話アイコン部分 */
.section003-box-phone-link {
  left: 10.5%;
  top: 21.5%;
  width: 79%;
  height: 33%;
  border-radius: 999px;
}

/* 緑の「相談フォームはこちら」ボタン部分 */
.section003-box-form-link {
  left: 5.8%;
  top: 58.2%;
  width: 88.4%;
  height: 32.8%;
  border-radius: 10px;
}

/* ============================================================
   v14: モバイルメニューUX調整
   - 端末幅/高さに応じてメニューサイズを自動調整
   - 現在より小さく、縦に収まりやすいサイズ
   - ヘッダー下から表示し、ハンバーガー再タップで閉じるJSに対応
   ============================================================ */
:root {
  --mobile-menu-top: var(--fixed-header-height);
  --mobile-menu-width: min(72vw, 320px);
  --mobile-menu-min-width: 238px;
  --mobile-menu-padding-x: clamp(14px, 4vw, 22px);
  --mobile-menu-padding-y: clamp(14px, 3.6vw, 22px);
  --mobile-menu-gap: clamp(8px, 2.2vh, 14px);
  --mobile-menu-item-height: clamp(42px, 8.6vh, 58px);
  --mobile-menu-item-font-size: clamp(17px, 5.2vw, 24px);
  --mobile-menu-item-radius: 999px;
  --mobile-menu-line-offset: clamp(5px, 1.4vh, 9px);
}

.mobile-menu {
  top: var(--mobile-menu-top) !important;
  right: 0 !important;
  width: max(var(--mobile-menu-min-width), var(--mobile-menu-width)) !important;
  height: calc(100dvh - var(--mobile-menu-top)) !important;
  max-height: calc(100dvh - var(--mobile-menu-top)) !important;
  padding: var(--mobile-menu-padding-y) var(--mobile-menu-padding-x) calc(var(--mobile-menu-padding-y) + env(safe-area-inset-bottom, 0px)) !important;
  gap: var(--mobile-menu-gap) !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  z-index: 990 !important;
  box-shadow: -5px 0 18px rgba(0,0,0,.18) !important;
}

.mobile-menu a {
  width: min(100%, 240px) !important;
  min-height: var(--mobile-menu-item-height) !important;
  height: var(--mobile-menu-item-height) !important;
  font-size: var(--mobile-menu-item-font-size) !important;
  line-height: 1.1 !important;
  border-radius: var(--mobile-menu-item-radius) !important;
  flex: 0 0 auto !important;
}

.mobile-menu a:not(:last-child)::after {
  left: calc(var(--mobile-menu-padding-x) * -1) !important;
  right: calc(var(--mobile-menu-padding-x) * -1) !important;
  bottom: calc(var(--mobile-menu-line-offset) * -1) !important;
  height: 1px !important;
}

.menu-close {
  width: clamp(38px, 10vw, 48px) !important;
  height: clamp(38px, 10vw, 48px) !important;
  font-size: clamp(28px, 8vw, 38px) !important;
  flex: 0 0 auto !important;
}

/* ヘッダー下のみ暗くする */
.menu-backdrop {
  top: var(--mobile-menu-top) !important;
  z-index: 980 !important;
}

/* 高さが低い端末ではさらに詰める */
@media (max-height: 640px) {
  :root {
    --mobile-menu-width: min(68vw, 300px);
    --mobile-menu-padding-x: 14px;
    --mobile-menu-padding-y: 10px;
    --mobile-menu-gap: 6px;
    --mobile-menu-item-height: clamp(36px, 7.6vh, 46px);
    --mobile-menu-item-font-size: clamp(15px, 4.7vw, 20px);
    --mobile-menu-line-offset: 5px;
  }

  .menu-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 28px !important;
  }
}

/* 横幅が狭い端末ではパネル幅も抑える */
@media (max-width: 390px) {
  :root {
    --mobile-menu-width: 70vw;
    --mobile-menu-min-width: 220px;
    --mobile-menu-item-font-size: clamp(16px, 5vw, 21px);
  }

  .mobile-menu a {
    width: min(100%, 220px) !important;
  }
}

/* かなり小さい端末向け */
@media (max-width: 340px) {
  :root {
    --mobile-menu-width: 68vw;
    --mobile-menu-min-width: 204px;
    --mobile-menu-item-height: 38px;
    --mobile-menu-item-font-size: 15px;
    --mobile-menu-gap: 5px;
  }
}


/* ============================================================
   v15: モバイルメニュー行の上下センター調整
   - 各メニューボタンが上下の横罫線の中央に来るよう調整
   - 罫線位置はボタン間の余白のちょうど中央に配置
   ============================================================ */
:root {
  --mobile-menu-gap: clamp(12px, 2.7vh, 18px);
  --mobile-menu-line-offset: calc(var(--mobile-menu-gap) / 2);
}

.mobile-menu {
  gap: var(--mobile-menu-gap) !important;
}

.mobile-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mobile-menu a:not(:last-child)::after {
  bottom: calc(var(--mobile-menu-gap) / -2) !important;
}

@media (max-height: 640px) {
  :root {
    --mobile-menu-gap: 10px;
    --mobile-menu-line-offset: 5px;
  }

  .mobile-menu a:not(:last-child)::after {
    bottom: -5px !important;
  }
}

@media (max-width: 340px) {
  :root {
    --mobile-menu-gap: 8px;
    --mobile-menu-line-offset: 4px;
  }

  .mobile-menu a:not(:last-child)::after {
    bottom: -4px !important;
  }
}


/* ============================================================
   v17: 事業紹介メニューの到達位置をMISSIONにする
   - #mission へ直接アクセスした場合も、固定ヘッダーに隠れないよう調整
   ============================================================ */
#mission {
  scroll-margin-top: calc(var(--fixed-header-height) + 4px);
}


/* v20: お問い合わせフォームの個人情報リンク */
.mobile-contact-agree-label .privacy-policy-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  pointer-events: auto;
}

.mobile-contact-agree-label .privacy-policy-inline-link:active {
  opacity: 0.75;
}

/* ============================================================
   v23: 実機スマホ用 buttonkeep / footer 最下部クッション調整
   - buttonkeep を画面下端から上へ持ち上げる
   - Copyright の下に安全クッションスペースを作る
   ============================================================ */

:root {
  --fixed-cta-lift: 72px;
  --footer-bottom-cushion: 55px;
}

@media (max-width: 760px) {
  .fixed-cta {
    bottom: var(--fixed-cta-lift) !important;
    z-index: 950 !important;
  }

  .site-footer {
    padding-bottom: var(--footer-bottom-cushion) !important;
  }
}
