/* 配送Navi — haiso.smart-navi.jp */
:root {
  --navy: #0E1A26;
  --navy2: #16283A;
  --ink: #16202B;
  --ink2: #46525E;
  --line: #E4E8EC;
  --mist: #F2F5F7;
  --org: #ED8000;
  --org-ink: #0B1622;
  --teal: #75C4C1;      /* 線だけ。文字には使わない */
  --org-text: #A85600;  /* 明るい地の上の英字ラベル（白・mist で 4.8:1 以上） */
  --en: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --wrap: 1200px;
  --gut: 48px;
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100% }
body { margin: 0; font-family: var(--ja); font-size: 16px; line-height: 1.9; color: var(--ink); background: #fff; font-feature-settings: "palt" 1 }
img { max-width: 100%; height: auto; display: block }
a { color: inherit }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 900; letter-spacing: .02em }
p { margin: 0 }
.nw { display: inline-block }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; background: #fff; color: var(--ink) }
.skip:focus { top: 16px }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px }
.header :focus-visible, .hero :focus-visible, .sec-dark :focus-visible, .contact :focus-visible { outline-color: var(--teal) }
.btn:focus-visible { outline: 3px solid var(--org-ink); outline-offset: -7px }

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto }
.en { font-family: var(--en); font-style: italic; font-weight: 700; font-size: 20px; letter-spacing: .04em; line-height: 1; color: var(--org-text); margin-bottom: 14px }
.hero .en, .sec-dark .en, .contact .en { color: var(--org) }
.pc { display: inline }

/* ボタン */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; background: var(--org); color: var(--org-ink); font-weight: 700; text-decoration: none; line-height: 1.4; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%) }
.btn:hover { background: #FF9418 }
.btn-sm { padding: 10px 22px; font-size: 14px }

/* ヘッダー */
.header { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff }
.header-in { position: relative; display: flex; align-items: center; justify-content: space-between; height: 84px; padding-inline: var(--gut) }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none }
.brand img { width: 40px; height: 40px; background: #fff; border-radius: 8px; padding: 3px }
.brand-text { display: flex; flex-direction: column; line-height: 1.25 }
.brand-name { font-weight: 900; font-size: 19px; letter-spacing: .04em }
.brand-co { font-size: 11px; opacity: .8 }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500 }
.nav a { text-decoration: none }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 6px }
.nav-tel { font-family: var(--en); font-style: italic; font-weight: 700; font-size: 20px; letter-spacing: .03em }
.menu { display: none }

/* ヒーロー */
.hero { position: relative; min-height: 760px; background: var(--navy); color: #fff; overflow: hidden; display: flex; align-items: center }
.hero-photo { position: absolute; inset: 0 0 0 38%; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%) }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60% }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,38,.55), rgba(14,26,38,0) 45%) }
.hero-in { position: relative; z-index: 2; width: min(var(--wrap), 100% - var(--gut) * 2); margin: 0 auto; padding: 140px 0 176px }
.hero h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.3; max-width: 11.5em; text-wrap: balance }
.hero-lead { margin-top: 28px; max-width: 30em; font-size: 17px; color: rgba(255,255,255,.86) }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; margin-top: 44px }
.hero-tel { display: flex; flex-direction: column; text-decoration: none; font-family: var(--en); font-style: italic; font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: .02em }
.hero-tel span { font-family: var(--ja); font-style: normal; font-size: 12px; font-weight: 500; opacity: .75; letter-spacing: .08em }

/* 速度の線（ページ読込時に1回だけ走る） */
.speed { position: absolute; left: 0; bottom: 72px; width: 62%; height: 64px; z-index: 1; pointer-events: none }
.speed i { position: absolute; left: 0; height: 6px; background: var(--org); transform-origin: left; transform: skewX(-24deg) }
.speed i:nth-child(1) { top: 0; width: 72% }
.speed i:nth-child(2) { top: 18px; width: 54%; background: var(--teal) }
.speed i:nth-child(3) { top: 36px; width: 88%; height: 3px }
.speed i:nth-child(4) { top: 52px; width: 36%; height: 3px; background: var(--teal) }
@media (prefers-reduced-motion: no-preference) {
  .speed i { animation: dash .9s cubic-bezier(.2,.8,.2,1) both }
  .speed i:nth-child(2) { animation-delay: .08s }
  .speed i:nth-child(3) { animation-delay: .16s }
  .speed i:nth-child(4) { animation-delay: .24s }
  @keyframes dash { from { transform: skewX(-24deg) translateX(-105%) } to { transform: skewX(-24deg) translateX(0) } }
}

/* 要点の帯 */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--org); color: var(--org-ink) }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 26px var(--gut) 24px; border-left: 1px solid rgba(11,22,34,.18) }
.facts li:first-child { border-left: 0 }
.fact-k { font-size: 12px; font-weight: 700; letter-spacing: .08em }
.fact-v { font-size: 20px; font-weight: 900; line-height: 1.4 }
.fact-v small { display: block; font-size: 13px; font-weight: 500 }

/* セクション共通 */
.sec { padding: 120px 0 }
.sec h2 { font-size: clamp(28px, 3.2vw, 40px) }
.sec h2 + p, .sec-lead { margin-top: 20px; color: var(--ink2) }
.sec-mist { background: var(--mist) }
.sec-dark { background: var(--navy); color: #fff }
.sec-dark p:not(.en), .sec-dark h2 + p { color: rgba(255,255,255,.8) }
.narrow { max-width: 860px }

/* サービス */
.services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 3px solid var(--ink) }
.svc { position: relative; padding: 36px 32px 40px 0; border-right: 1px solid var(--line) }
.svc + .svc { padding-left: 32px }
.svc:last-child { border-right: 0; padding-right: 0 }
.svc::before { content: ""; position: absolute; top: -3px; left: 0; width: 64px; height: 3px; background: var(--org) }
.svc + .svc::before { left: 32px }
.svc-tag { font-size: 12px; font-weight: 700; color: var(--ink2); letter-spacing: .06em }
.svc h3 { margin: 10px 0 16px; font-size: 24px }
.svc > p:not(.svc-tag) { color: var(--ink2); font-size: 15px }
.svc-points { list-style: none; margin: 20px 0 0; padding: 0; font-size: 14px; font-weight: 500 }
.svc-points li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line) }
.svc-points li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 3px; background: var(--teal); transform: skewX(-24deg) }

/* 見積もり */
.quote { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start }
.quote-head p:last-child { margin-top: 20px }
.quote-list { list-style: none; margin: 0; padding: 0; counter-reset: q }
.quote-list li { counter-increment: q; display: grid; grid-template-columns: 56px 88px 1fr; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 16px }
.quote-list li:first-child { border-top: 1px solid rgba(255,255,255,.16) }
.quote-list li::before { content: counter(q); font-family: var(--en); font-style: italic; font-weight: 700; font-size: 36px; line-height: 1; color: var(--org) }
.q-k { font-weight: 900; font-size: 18px }

/* 2列（エリア・許可） */
.two { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start }
.table { margin: 0; border-top: 3px solid var(--ink) }
.table div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line) }
.table dt { font-weight: 700; font-size: 14px }
.table dd { margin: 0; color: var(--ink2); font-size: 15px }
.sec-mist .table div { border-color: #DCE3E8 }
.items { margin: 0; padding: 0; list-style: none }
.items li { position: relative; padding-left: 18px }
.items li + li { margin-top: 4px }
.items li::before { content: ""; position: absolute; left: 0; top: .9em; width: 10px; height: 3px; background: var(--teal); transform: skewX(-24deg) }

/* FAQ */
.faq { margin-top: 40px; border-top: 3px solid var(--ink) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 700 }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 3px solid var(--org); border-bottom: 3px solid var(--org); transform: rotate(45deg) }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px }
.faq details p { padding: 0 0 24px; color: var(--ink2); font-size: 15px }

/* 問い合わせ */
.contact { position: relative; overflow: hidden; padding: 120px 0; background: var(--navy); color: #fff }
.contact h2 { font-size: clamp(28px, 3.2vw, 40px) }
.contact p:not(.en) { margin-top: 16px; color: rgba(255,255,255,.8) }
.contact-in { position: relative; z-index: 2; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center }
.speed-sm { top: 48px; bottom: auto; left: auto; right: 0; width: 40%; transform: scaleX(-1) }
.contact-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.way { display: flex; flex-direction: column; gap: 6px; padding: 28px 28px 26px; text-decoration: none; border: 1px solid rgba(255,255,255,.22) }
.way:hover { border-color: var(--teal) }
.way-form { background: var(--org); color: var(--org-ink); border-color: var(--org) }
.way-form:hover { background: #FF9418; border-color: #FF9418 }
.way-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .8 }
.way-v { font-size: 22px; font-weight: 900; line-height: 1.35 }
.way-tel .way-v { font-family: var(--en); font-style: italic; font-weight: 700; font-size: 34px; line-height: 1.1 }
.way-s { font-size: 13px; opacity: .85 }

/* フッター */
.footer { padding: 48px 0 40px; background: #fff; border-top: 1px solid var(--line); font-size: 14px }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center }
.footer-brand { font-weight: 900; font-size: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px }
.footer-brand span { font-weight: 400; font-size: 13px; color: var(--ink2) }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px }
.footer-links a { color: var(--ink2); text-decoration: none }
.footer-links a:hover { color: var(--ink); text-decoration: underline }
.copy { grid-column: 1 / -1; color: var(--ink2) }

/* ナビが入りきらない幅はハンバーガーにする */
@media (max-width: 1080px) {
  .menu { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer }
  .menu-bar, .menu-bar::before, .menu-bar::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s }
  .menu-bar { position: relative }
  .menu-bar::before, .menu-bar::after { content: ""; position: absolute; left: 0 }
  .menu-bar::before { top: -7px }
  .menu-bar::after { top: 7px }
  .menu[aria-expanded="true"] .menu-bar { background: transparent }
  .menu[aria-expanded="true"] .menu-bar::before { transform: translateY(7px) rotate(45deg) }
  .menu[aria-expanded="true"] .menu-bar::after { transform: translateY(-7px) rotate(-45deg) }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 24px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); font-size: 16px }
  .nav.open { display: flex }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12) }
  .nav .btn { margin-top: 20px; justify-content: center; padding: 14px 24px; font-size: 16px }
}

/* 写真と見出しが重ならないよう、中間の幅は写真を右へ寄せ、影を濃くする */
@media (min-width: 861px) and (max-width: 1180px) {
  .hero-photo { inset: 0 0 0 48% }
  .hero-photo::after { background: linear-gradient(90deg, rgba(14,26,38,.85), rgba(14,26,38,0) 60%) }
  .hero h1 { max-width: 9.5em }
  .hero-lead { max-width: 24em }
}

/* スマホ */
@media (max-width: 860px) {
  :root { --gut: 20px }
  html { scroll-padding-top: 72px }
  .pc { display: none }
  .header-in { height: 68px }
  .brand img { width: 34px; height: 34px }
  .brand-name { font-size: 17px }

  .hero { min-height: 0; flex-direction: column; align-items: stretch }
  .hero-photo { position: relative; inset: auto; height: 300px; margin-top: 68px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%) }
  .hero-photo::after { display: none }
  .hero-in { padding: 36px 0 112px }
  .hero h1 { font-size: clamp(32px, 9vw, 40px) }
  .hero-lead { font-size: 15px; margin-top: 20px }
  .hero-cta { margin-top: 32px; gap: 20px 28px }
  .speed { width: 80%; bottom: 28px; height: 40px }
  .speed i:nth-child(2) { top: 12px }
  .speed i:nth-child(3) { top: 24px }
  .speed i:nth-child(4) { top: 34px }

  .facts { grid-template-columns: 1fr }
  .facts li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px var(--gut); border-left: 0; border-top: 1px solid rgba(11,22,34,.18) }
  .facts li:first-child { border-top: 0 }
  .fact-v { font-size: 16px; text-align: right }
  .fact-v small { font-size: 12px }

  .sec, .contact { padding: 80px 0 }
  .services { grid-template-columns: 1fr; margin-top: 40px }
  .svc, .svc + .svc { padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--line) }
  .svc + .svc::before { left: 0; top: -1px }
  .svc:last-child { border-bottom: 0 }
  .svc h3 { font-size: 21px }

  .quote, .two, .contact-in { grid-template-columns: 1fr; gap: 36px }
  .quote-list li { grid-template-columns: 40px 64px 1fr; font-size: 15px; padding: 18px 0 }
  .quote-list li::before { font-size: 28px }
  .q-k { font-size: 16px }
  .table div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0 }
  .contact-ways { grid-template-columns: 1fr }
  .speed-sm { width: 60%; top: 24px }
  .footer-in { grid-template-columns: 1fr }
}
