@charset "utf-8";
/* =========================================================
   配車エリア コンテンツ部分
   ========================================================= */

/* ---- tokens --------------------------------------------- */
:root {
  --c-text: #333;
  --c-text-sub: #666;
  --c-green: #3c7a51;        /* アクティブカード */
  --c-green-dark: #1e5a32;   /* 見出し線・アイコン */
  --c-green-deep: #123d22;   /* 県境・県名 */
  --c-green-border: #5e9871; /* カード枠線 */
  --c-green-pale: #eef6f0;   /* 凡例ホバー・案内 */
  --c-beige: #f5efe2;        /* セクション背景 */
  --c-map-bg: #fcfaf3;       /* 地図背景 */
  --c-line: #e6dfcc;         /* 区切り線 */
  --c-red: #d63a3a;          /* 選択中の市区町村 */
  --c-inquiry: #ddd6c6;      /* お問い合わせエリア */
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

/* ---- base（このページの中だけに適用） ------------------ */
.p-delivery-map :where(h2, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
.p-delivery-map :where(ul, ol) { list-style: none; }
.p-delivery-map :where(img, svg) { display: block; max-width: 100%; height: auto; }
.p-delivery-map { color: var(--c-text); font-family: var(--font); }

/* ---- utility -------------------------------------------- */
@media (max-width: 767px) { .u-pc { display: none !important; } }
@media (min-width: 768px) { .u-sp { display: none !important; } }

/* ---- layout --------------------------------------------- */
.l-inner {
  width: min(1000px, 100% - 40px);
  margin-inline: auto;
}

/* =========================================================
   section
   ========================================================= */
.p-delivery-map {
  padding: 62px 0 98px;
  background: var(--c-beige);
}

.p-delivery-map__lead {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .04em;
  text-align: center;
}

.p-delivery-map__body {
  margin-top: 42px;
}

.p-delivery-map__note {
  margin-top: 20px;
  color: var(--c-text-sub);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.p-delivery-map__flow {
  margin-top: 46px;
}

/* ---- heading ---- */
.c-heading {
  display: grid;
  justify-items: center;
  color: var(--c-text);
}

.c-heading__text {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.c-heading__line {
  width: 568px;
  max-width: 100%;
  height: 22px;
  margin-top: 14px;
  color: var(--c-green-dark);
}

/* =========================================================
   fare map（料金マップ）
   .js-area 内の .c-fare-map__svg に area.js が地図を描画
     市区町村クリック → 料金を .c-fare-map__result に表示
     距離帯クリック   → 地図に固定表示（×で解除）
   ========================================================= */
.c-fare-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  column-gap: 24px;
  align-items: start;
}

.c-fare-map__main,
.c-fare-map__side {
  display: grid;
  row-gap: 14px;
}

/* ---- map ---- */
.c-fare-map__canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-green-border);
  border-radius: 10px;
  background: var(--c-map-bg);
}

.c-fare-map__svg {
  width: 100%;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.c-fare-map__svg.is-zoomed { touch-action: none; }
.c-fare-map__svg.is-dragging { cursor: grabbing; }

/* 市区町村（色は距離帯ごとに JS で --c を設定） */
.c-fare-map__area {
  fill: var(--c, #eef2f1);
  stroke: #fff;
  stroke-width: .6px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: opacity .15s;
}

.c-fare-map__area.is-inquiry {
  fill: var(--c-inquiry);
}

.c-fare-map__area.is-selected {
  fill: var(--c-red);
  stroke-width: 2.2px;
}

.c-fare-map__svg.is-filtering .c-fare-map__area:not(.is-highlight) {
  opacity: .2;
}

@media (hover: hover) {
  .c-fare-map__area:hover { filter: brightness(.86); }
}

/* 県境・県名・拠点 */
.c-fare-map__pref-line {
  fill: none;
  stroke: var(--c-green-deep);
  stroke-width: 1.2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.c-fare-map__pref-label {
  font-weight: 700;
  font-size: 20px;
  fill: var(--c-green-deep);
  fill-opacity: .9;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-opacity: .9;
  stroke-width: 3.5px;
  pointer-events: none;
}

.c-fare-map__pin-label {
  font-weight: 700;
  font-size: 13px;
  fill: var(--c-green-deep);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3.5px;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ズームボタン */
.c-fare-map__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  row-gap: 6px;
}

.c-fare-map__zoom-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--c-green-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s;
}

.c-fare-map__zoom-btn--reset {
  font-size: 15px;
}

.c-fare-map__zoom-btn:hover {
  background: var(--c-green);
}

/* 操作ヒント */
.c-fare-map__hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(30, 90, 50, .85);
  color: #fff;
  font-size: 10px;
  line-height: 1.6;
  pointer-events: none;
}

/* 距離帯の固定表示（×で解除） */
.c-fare-map__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: none;
  align-items: center;
  column-gap: 8px;
  padding: 5px 6px 5px 12px;
  border-radius: 99px;
  background: var(--c-green-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.c-fare-map__chip.is-active {
  display: flex;
}

.c-fare-map__chip-close {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--c-green-dark);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, color .25s;
}

.c-fare-map__chip-close:hover {
  background: var(--c-red);
  color: #fff;
}

/* ホバー時の市区町村名（JS で body 直下に生成） */
.c-fare-map__tip {
  position: fixed;
  z-index: 100;
  display: none;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--c-green-deep);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(12px, 12px);
}

/* ---- side cards ---- */
.c-fare-map__card {
  padding: 18px 20px;
  border: 1px solid var(--c-green-border);
  border-radius: 10px;
  background: #fff;
}

.c-fare-map__card-title {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
}

/* エリア選択 */
.c-fare-map__step + .c-fare-map__step {
  margin-top: 10px;
}

.c-fare-map__label {
  display: flex;
  align-items: center;
  column-gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
}

.c-fare-map__num {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-green-dark);
  color: #fff;
  font-size: 11px;
}

.c-fare-map__select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-green-border);
  border-radius: 8px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.c-fare-map__select:disabled {
  border-color: var(--c-line);
  background: #f5f7f6;
  color: #999;
  cursor: not-allowed;
}

/* 料金表示 */
.c-fare-map__empty {
  color: var(--c-text-sub);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.c-fare-map__pref-name {
  color: var(--c-text-sub);
  font-size: 12px;
}

.c-fare-map__name {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}

.c-fare-map__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--c-line);
}

.c-fare-map__row--total {
  display: block;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 2px solid var(--c-green-dark);
}

.c-fare-map__row-label {
  display: block;
  color: var(--c-text-sub);
  font-size: 12px;
}

.c-fare-map__dist {
  font-weight: 700;
  font-size: 15px;
}

.c-fare-map__price {
  color: var(--c-green-dark);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: .01em;
}

.c-fare-map__price--range {
  font-size: 28px;
}

.c-fare-map__price-unit {
  margin-left: 2px;
  font-size: 14px;
}

.c-fare-map__price-sep {
  margin: 0 4px;
  font-size: 20px;
}

.c-fare-map__tax {
  margin-left: 6px;
  color: var(--c-text-sub);
  font-weight: 400;
  font-size: 11px;
}

.c-fare-map__sub {
  margin-top: 4px;
  color: var(--c-text-sub);
  font-size: 12px;
}

.c-fare-map__next {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--c-green-pale);
  color: var(--c-green-dark);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.c-fare-map__inquiry {
  margin: 6px 0 12px;
  font-weight: 700;
  font-size: 15px;
}

.c-fare-map__btn {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--c-green-dark);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  transition: background .25s;
}

.c-fare-map__btn:hover {
  background: var(--c-green);
}

.c-fare-map__btn small {
  display: block;
  font-weight: 400;
  font-size: 11px;
}

/* 距離別の料金（凡例） */
.c-fare-map__legend-item {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.c-fare-map__legend-item:hover {
  background: var(--c-green-pale);
}

.c-fare-map__legend-item.is-current {
  background: var(--c-green-pale);
  outline: 1px solid var(--c-green-border);
}

.c-fare-map__legend-item.is-pinned {
  background: #d6ebdc;
  outline: 2px solid var(--c-green-dark);
  outline-offset: -2px;
}

.c-fare-map__swatch {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 4px;
}

.c-fare-map__fee {
  color: var(--c-green-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.c-fare-map__fee--inquiry {
  font-size: 12px;
}

.c-fare-map__unpin {
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--c-green-dark);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s;
}

.c-fare-map__legend-item.is-pinned .c-fare-map__unpin {
  display: inline-grid;
}

.c-fare-map__unpin:hover {
  background: var(--c-red);
}

.c-fare-map__legend-note {
  margin-top: 8px;
  color: var(--c-text-sub);
  font-size: 11px;
  text-align: center;
}

/* フォーカス表示 */
.c-fare-map__zoom-btn:focus-visible,
.c-fare-map__chip-close:focus-visible,
.c-fare-map__select:focus-visible,
.c-fare-map__btn:focus-visible,
.c-fare-map__legend-item:focus-visible {
  outline: 2px solid var(--c-green-dark);
  outline-offset: 2px;
}

/* ---- shop card ---- */
.c-shop {
  padding: 13px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.c-shop__name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}

.c-shop__address {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
}

.c-shop__link {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
}

.c-shop__link:hover {
  text-decoration: none;
}

/* =========================================================
   flow
   ========================================================= */
.c-flow {
  display: grid;
  grid-template-columns: 390px 390px;
  justify-content: center;
  column-gap: 60px;
  counter-reset: flow;
}

.c-flow__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 103px;
  padding: 0 18px 0 30px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .12);
  counter-increment: flow;
}

.c-flow__item:nth-child(2) {
  padding-left: 18px;
}

.c-flow__item + .c-flow__item::before { /* 間の三角矢印 */
  content: "";
  position: absolute;
  top: 50%;
  left: -38px;
  border-style: solid;
  border-width: 18px 0 18px 18px;
  border-color: transparent transparent transparent var(--c-green-dark);
  transform: translateY(-50%);
}

.c-flow__icon {
  flex: none;
  width: 94px;
  color: var(--c-green-dark);
}

.c-flow__icon--front {
  width: 58px;
}

.c-flow__text {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.7;
}

.c-flow__text::before {
  content: counter(flow) ". ";
}

/* =========================================================
   tablet
   ========================================================= */
@media (min-width: 768px) and (max-width: 1039px) {
  .c-fare-map {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
    row-gap: 20px;
  }

  .c-flow {
    grid-template-columns: minmax(0, 420px);
    row-gap: 50px;
  }

  .c-flow__item + .c-flow__item::before {
    top: -38px;
    left: 50%;
    border-width: 18px 18px 0;
    border-color: var(--c-green-dark) transparent transparent;
    transform: translateX(-50%);
  }
}

/* =========================================================
   SP
   ========================================================= */
@media (max-width: 767px) {
  .p-delivery-map {
    padding: 40px 0 60px;
  }

  .c-heading__text {
    font-size: 20px;
  }

  .c-heading__line {
    width: 100%;
    height: 16px;
    margin-top: 10px;
  }

  .p-delivery-map__lead {
    margin-top: 18px;
    text-align: left;
  }

  .p-delivery-map__body {
    margin-top: 24px;
  }

  .p-delivery-map__note {
    text-align: left;
  }

  .c-fare-map {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }

  .c-fare-map__zoom {
    top: 8px;
    right: 8px;
  }

  .c-fare-map__zoom-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .c-fare-map__chip {
    top: 8px;
    left: 8px;
  }

  .c-fare-map__card {
    padding: 16px;
  }

  .c-fare-map__name {
    font-size: 20px;
  }

  .c-fare-map__price {
    font-size: 30px;
  }

  .c-fare-map__price--range {
    font-size: 24px;
  }

  .c-shop {
    padding: 12px 14px;
  }

  .c-flow {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 46px;
  }

  .c-flow__item,
  .c-flow__item:nth-child(2) {
    height: auto;
    min-height: 96px;
    padding: 18px 16px;
  }

  .c-flow__icon { width: 72px; }
  .c-flow__icon--front { width: 48px; }

  .c-flow__text {
    font-size: 12px;
  }

  .c-flow__text br { display: none; }

  .c-flow__item + .c-flow__item::before {
    top: -34px;
    left: 50%;
    border-width: 16px 16px 0;
    border-color: var(--c-green-dark) transparent transparent;
    transform: translateX(-50%);
  }
}