/* =========================================================
   モトハウス LINE買取査定ページ
   PC: コンテンツ幅 1000px / SP: ~768px でバーガーメニュー
   ========================================================= */
:root {
  --yellow: #ffe500;
  --yellow-dark: #f2c200;
  --black: #1a1a1a;
  --gray: #f4f4f2;
  --border: #ddd;
  --line: #06c755;
  --line-dark: #05a647;
  --text: #333;
  --inner: 1000px;
  --header-h: 70px;
  --u: min(1vw, 4.5px);
  --nav-blue: #4b86c6;
  --nav-red: #c8161d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: opacity .2s, background-color .2s, color .2s; }
a:hover { opacity: .75; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.inner { width: 100%; max-width: var(--inner); margin: 0 auto; padding: 0 20px; }
.sp-br { display: none; }

/* ---------------- Header (PC) :  ---------------- */
body { padding-top: var(--header-h); }
:where(#header, #h_nav_smp) :where(dl, dt, dd) { margin: 0; padding: 0; }
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  width: 100%; background: #000; transition: box-shadow .3s;
}
#header.active { box-shadow: rgba(0,0,0,.33) 0 0 5px 2px; }
#header > dl {
  display: table; table-layout: fixed;
  width: 100%; max-width: 1000px; height: var(--header-h); margin: 0 auto;
}
#header > dl > dt { display: table-cell; vertical-align: middle; width: 220px; text-align: center; }
#header > dl > dt img { height: 46px; width: auto; }
#header > dl > dd { display: table-cell; vertical-align: middle; text-align: right; }

.h_nav { display: flex; justify-content: flex-end; align-items: stretch; }
.h_nav > li {
  display: flex; align-items: center; height: var(--header-h);
  margin-left: 50px; font-size: 14px; line-height: 1em; color: #fff;
}
.h_nav > li > a { display: block; color: #fff; }
.h_nav > li > a:hover { opacity: 1; }
.h_nav > li > a strong { display: inline-block; font-weight: bold; position: relative; }
.h_nav > li > a strong::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; margin: auto;
  width: 0; height: 2px; background: var(--nav-blue); transition: .3s;
}
.h_nav > li:hover > a strong::after,
.h_nav > li:focus-within > a strong::after { width: 100%; }

/* メガメニュー(店舗情報) */
.h_nav_in {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 99;
  background: #e6e6e6; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transition: .3s;
  box-shadow: 0 6px 8px rgba(0,0,0,.12);
}
.h_nav > li:hover .h_nav_in,
.h_nav > li:focus-within .h_nav_in { opacity: 1; visibility: visible; pointer-events: auto; }
.h_nav_in > dl { display: flex; align-items: flex-start; width: 100%; max-width: 1000px; margin: 0 auto; padding: 30px 0 30px; }
.h_nav_in > dl > dt { flex: 0 0 160px; width: 160px; padding-top: 20px; color: #353535; position: relative; }
.h_nav_in > dl > dt span { display: block; font-size: 20px; line-height: 1.4; }
.h_nav_in > dl > dt svg { position: absolute; right: 0; top: 42px; width: 27px; height: 27px; fill: #000; }
.h_nav_in > dl > dd { flex: 1; min-width: 0; padding-left: 20px; }
.h_nav_in > dl > dd > ul { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; margin-left: -30px; }
.h_nav_in > dl > dd > ul > li {
  display: block; height: auto; margin: 0 0 20px 30px; padding: 0;
  width: calc(33.333% - 30px); font-size: 14px;
}
.h_nav_in > dl > dd > ul > li > a {
  display: block; height: 100%; padding: 16px 14px; background: #fff;
  border: 2px solid #686868; border-radius: 8px; color: #000;
}
.h_nav_in > dl > dd > ul > li > a:hover { opacity: 1; background: var(--yellow); }
.h_nav_in p { position: relative; margin: 0; padding-left: 20px; font-weight: bold; line-height: 1.3; text-align: left; }
.h_nav_in p::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px;
  background: var(--nav-blue); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.h_nav_in p span { display: block; margin-top: .5em; font-size: 12px; font-weight: normal; color: #666; }

@media (max-width: 1060px) {
  #header > dl > dt { width: 180px; }
  .h_nav > li { margin-left: 26px; }

}
@media (max-width: 900px) {
  #header > dl > dt { width: 150px; }
  .h_nav > li { margin-left: 18px; font-size: 13px; }
}

/* スマホ用要素はPCでは非表示 */
#smp_nav_btn, #smp_nav_toggle { display: none; }

/* ---------------- Page title ---------------- */
.page-title {
background: #00a644;
  color: #fff; padding: 56px 0 50px; text-align: center;
  border-bottom: 6px solid var(--yellow);
}
.page-title-en { color: var(--yellow); font-weight: 700; letter-spacing: .25em; font-size: 14px; }
.page-title h1 { font-size: 40px; line-height: 1.4; letter-spacing: .1em; }

.breadcrumb { display: flex; flex-wrap: wrap; padding: 14px 0; font-size: 13px; color: #777; }
.breadcrumb li + li::before { content: ">"; margin: 0 10px; color: #aaa; }
.breadcrumb a:hover { text-decoration: underline; opacity: 1; }

/* ---------------- Contents ---------------- */
.contents { padding-top: 20px; padding-bottom: 90px; }
.contents > section { margin-bottom: 80px; }

.lead-title {
  display: table; margin: 0 auto 22px; padding: 4px 28px;
  font-size: 32px; line-height: 1.5; text-align: center; color: var(--black);
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}
.lead-text { text-align: center; font-size: 18px; margin-bottom: 36px; }
.hero-figure { max-width: 720px; margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.hero-figure img { width: 100%; }

.sec-title { text-align: center; margin-bottom: 34px; font-size: 28px; color: var(--black); line-height: 1.4; }
.sec-title span { position: relative; display: inline-block; padding-bottom: 14px; }
.sec-title span::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 60px; height: 5px; background: var(--yellow); transform: translateX(-50%);
}
.sec-lead { text-align: center; margin-bottom: 30px; font-size: 18px; }

/* add friend */
.add-friend-box {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  background: var(--gray); border-radius: 12px; padding: 40px 48px;
}
.qr { flex: 0 0 240px; background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.qr img { width: 100%; }
.add-friend-lead { font-size: 22px; font-weight: 700; color: var(--black); margin-bottom: 12px; }
.add-friend-text strong { background: linear-gradient(transparent 60%, rgba(255,229,0,.7) 60%); }
.add-friend-text .note-sp { display: none; }

.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 22px; padding: 16px 36px; min-width: 300px;
  background: var(--line); color: #fff; border-radius: 50px;
  font-size: 18px; font-weight: 700; box-shadow: 0 4px 0 var(--line-dark);
  transition: transform .15s, box-shadow .15s;
}
.btn-line:hover { opacity: 1; background: #07d65d; }
.btn-line:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-dark); }
.btn-line-icon {
  background: #fff; color: var(--line); border-radius: 50%;
  font-size: 10px; font-weight: 900; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0;
}

/* steps */
.step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step-list li {
  position: relative; text-align: center;
  background: #fff; border: 2px solid var(--black); border-radius: 12px; padding: 34px 12px 24px;
}
.step-list li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -27px; margin-top: -10px;
  border: 10px solid transparent; border-left: 14px solid var(--line);
}
.step-no {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--line); color: #fff; font-weight: 700; font-size: 20px; line-height: 38px;
}
.step-icon { font-size: 44px; line-height: 1.2; margin-bottom: 8px; }
.step-text { font-weight: 700; color: var(--black); line-height: 1.6; }

/* points */
.point-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.point-list li {
  background: var(--gray); border-top: 6px solid var(--yellow);
  border-radius: 0 0 10px 10px; padding: 28px 24px; text-align: center;
}
.point-icon { font-size: 30px; }
.point-list h3 { font-size: 20px; margin: 6px 0 10px; color: var(--black); }
.point-list p { font-size: 15px; text-align: left; }
.notes { margin-top: 26px; font-size: 14px; color: #666; text-align: center; }

/* CTA */
.cta {
  background: var(--black); color: #fff; text-align: center;
  border-radius: 12px; padding: 48px 20px; border-bottom: 8px solid var(--yellow);
}
.cta-lead { font-size: 24px; font-weight: 700; line-height: 1.6; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta .btn-line { margin-top: 28px; }
.btn-tel {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 28px; padding: 16px 36px; min-width: 300px;
  background: var(--yellow); color: var(--black); border-radius: 50px;
  font-size: 18px; font-weight: 700; box-shadow: 0 4px 0 var(--yellow-dark);
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--black); color: #fff; padding-top: 56px; border-top: 6px solid var(--yellow); }
.footer-group-title { text-align: center; color: var(--yellow); font-weight: 700; letter-spacing: .25em; margin-bottom: 30px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
.shop { background: rgba(255,255,255,.06); border-radius: 8px; padding: 24px; }
.shop-logo { height: 36px; width: auto; margin-bottom: 8px;  border-radius: 4px; padding: 4px 8px; }
.shop-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.shop-addr { font-size: 14px; line-height: 1.7; color: #ddd; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sns img { width: 32px; height: 32px; object-fit: contain; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  margin: 44px 0 0; padding: 26px 0; border-top: 1px solid #444;
}
.footer-nav a { font-size: 14px; color: #fff; }
.footer-nav a:hover { color: var(--yellow); opacity: 1; }
.copyright { text-align: center; font-size: 12px; color: #aaa; padding: 18px 10px 22px; background: #000; }

.page-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); color: var(--black); text-align: center; line-height: 46px; font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.page-top.show { opacity: 1; visibility: visible; }

/* scroll animation */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Tablet (~1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .add-friend-box { gap: 32px; padding: 32px; }
}

/* =========================================================
   Smartphone / Burger menu (~768px)
   ========================================================= */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .sp-br { display: inline; }
  .pc-br { display: none; }

  /* ---- Header (SP) ---- */
  :root { --header-h: calc(var(--u) * 15); }
  #header > dl {
    display: flex; align-items: center; justify-content: flex-start;
    height: var(--header-h); padding: 0 calc(var(--u) * 3.75);
  }
  #header > dl > dt { display: block; width: 100%; }
        #header > dl > dt img { height: 56px; width: auto; }

  #header > dl > dt img { height: calc(var(--u) * 7.5); }
  #header > dl > dd { display: none; }

  /* メニューボタン */
  #smp_nav_btn {
    display: block; position: fixed; top: 0; right: calc(var(--u) * 3.75); z-index: 9999;
    width: calc(var(--u) * 8.75); height: calc(var(--u) * 12.5); padding: 0;
    background: none; border: 0; cursor: pointer; transition: .3s;
  }
  #smp_nav_btn strong {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
    font-size: calc(var(--u) * 2.5); line-height: 1em; text-align: center; color: #000; white-space: nowrap;
  }
  #smp_nav_btn strong.open { display: block; }
  #smp_nav_btn strong.close { display: none; }
  #smp_nav_btn.active strong.open { display: none; }
  #smp_nav_btn.active strong.close { display: block; }
  #smp_nav_btn span,
  #smp_nav_btn span::before,
  #smp_nav_btn span::after {
    display: block; height: var(--u); width: 100%; background: #777;
    border-radius: var(--u); transition: .3s;
  }
  #smp_nav_btn span { position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); margin: auto; }
  #smp_nav_btn span::before { content: ""; position: absolute; bottom: calc(var(--u) * 2); }
  #smp_nav_btn span::after { content: ""; position: absolute; top: calc(var(--u) * 2); }
  #smp_nav_btn.active span { background: rgba(255,255,255,0); }
  #smp_nav_btn.active span::before { bottom: 0; transform: rotate(45deg); }
  #smp_nav_btn.active span::after { top: 0; transform: rotate(-45deg); }

  /* メニュー本体 */
  #smp_nav_toggle {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 998;
    width: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #bdd1d6;
  }
  #smp_nav_toggle.open { display: block; animation: smpFade .3s; }
  @keyframes smpFade { from { opacity: 0; } to { opacity: 1; } }
  body.nav-open { overflow: hidden; }

  #h_nav_smp { background: #bdd1d6; color: #4f4f4f; letter-spacing: 0; line-height: 1em; padding-bottom: calc(var(--u) * 10); }
  #h_nav_smp > dl { border-top: 1px solid #fff; }
  #h_nav_smp > dl:nth-last-child(2) { border-bottom: 1px solid #d9d9d9; }
  #h_nav_smp dl > dt {
    position: relative; padding: calc(var(--u) * 4.5) calc(var(--u) * 6);
    font-weight: bold; font-size: 16px; cursor: pointer;
  }
  #h_nav_smp dt.smp-link { padding: 0; }
  #h_nav_smp dt.smp-link a { display: block; position: relative; padding: calc(var(--u) * 4.5) calc(var(--u) * 6); color: inherit; }
  #h_nav_smp dt.smp-link a::after,
  #h_nav_smp dd ul li a::after {
    content: ""; position: absolute; right: calc(var(--u) * 6); top: 50%;
    width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2);
    border-top: 2px solid var(--nav-red); border-right: 2px solid var(--nav-red);
    transform: translateY(-50%) rotate(45deg);
  }
  #h_nav_smp .smp-acc > dt::after {
    content: ""; position: absolute; right: calc(var(--u) * 5); top: 50%;
    width: calc(var(--u) * 3.4); height: calc(var(--u) * 3.4);
    background:
      linear-gradient(var(--nav-red), var(--nav-red)) center / 100% 2px no-repeat,
      linear-gradient(var(--nav-red), var(--nav-red)) center / 2px 100% no-repeat;
    transform: translateY(-50%); transition: .3s;
  }
  #h_nav_smp .smp-acc > dt.active::after { transform: translateY(-50%) rotate(45deg); }
  #h_nav_smp .smp-acc > dd { display: none; }
  #h_nav_smp dd ul li { border-top: 1px solid #d9d9d9; }
  #h_nav_smp dd ul li a {
    display: block; position: relative; padding: calc(var(--u) * 4.5) calc(var(--u) * 9);
    background: #fff; color: #4f4f4f; font-size: 15px;
  }
  #h_nav_smp dd ul li a:hover { opacity: 1; background: #f3f8f9; }

  .smp-tel { display: grid; gap: 12px; padding: calc(var(--u) * 6) calc(var(--u) * 5) 0; }
  .smp-tel a {
    display: block; text-align: center; padding: 14px 8px; border-radius: 8px;
    background: #fff; color: #000; font-weight: bold; font-size: 16px;
  }

  /* title */
  .page-title { padding: 38px 0 34px; }
  .page-title h1 { font-size: 28px; }

  /* contents */
  .contents { padding-bottom: 56px; }
  .contents > section { margin-bottom: 56px; }
  .lead-title { font-size: 23px; padding: 2px 10px; }
  .lead-text { font-size: 15px; margin-bottom: 26px; }
  .sec-title { font-size: 22px; margin-bottom: 26px; }
  .sec-lead { font-size: 15px; }

  .add-friend-box { flex-direction: column; text-align: center; gap: 24px; padding: 28px 18px; }
  .qr { flex-basis: auto; width: 200px; }
  .add-friend-lead { font-size: 18px; }
  .add-friend-text .note-sp { display: block; margin-top: 12px; font-size: 12px; color: #777; }
  .btn-line, .btn-tel { width: 100%; min-width: 0; font-size: 16px; padding: 15px 20px; }

  .step-list { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .step-list li:not(:last-child)::after { display: none; }
  .step-list li:nth-child(odd)::after {
    display: block; right: -19px; border-width: 8px; border-left-width: 11px; margin-top: -8px;
  }
  .step-icon { font-size: 36px; }
  .step-text { font-size: 14px; }

  .point-list { grid-template-columns: 1fr; gap: 18px; }
  .point-list li { padding: 22px 18px; }
  .point-list h3 { font-size: 18px; }
  .notes { text-align: left; font-size: 12px; }

  .cta { padding: 34px 18px; }
  .cta-lead { font-size: 18px; }
  .cta-buttons { flex-direction: column; gap: 0; }
  .cta .btn-line, .btn-tel { margin-top: 18px; }

  /* footer */
  .site-footer { padding-top: 40px; }
  .shop-grid { grid-template-columns: 1fr; gap: 16px; }
  .shop { padding: 20px 18px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 30px; padding: 0; border-top: 1px solid #444; }
  .footer-nav li { border-bottom: 1px solid #333; }
  .footer-nav li:nth-child(odd) { border-right: 1px solid #333; }
  .footer-nav a { display: block; padding: 14px 8px; text-align: center; }
  .page-top { right: 12px; bottom: 12px; }
}

@media (max-width: 380px) {
  .step-list { gap: 30px 16px; }
  .lead-title { font-size: 20px; }
}
