:root {
    --ink: #00053A;
    --paper: #F7F6F5;
    --white: #FFFFFF;
    --line: #DEDCD6;
    --stamp: #A63B2E;
    --stamp-tint: #F3E4E1;
    --ink-soft: #4A4E6E;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "Noto Sans JP", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.75;
    font-size: 15.5px;
    overflow-x: hidden;
  }
  .serif { font-family: "Shippori Mincho", serif; }
  .mono { font-family: "JetBrains Mono", monospace; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

  /* ===== 一筆書きの街並み・森・トラック：ループするシグネチャー帯 ===== */
  .line-scene { width: 100%; display: block; background: var(--white); line-height: 0; }
  .line-scene svg { width: 100%; height: 46px; display: block; }

  /* ===== ヘッダー ===== */
  header {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
  }
  .header-inner { display: flex; justify-content: space-between; align-items: center; }
  .logo { font-family: "Shippori Mincho", serif; font-size: 21px; font-weight: 800; letter-spacing: .02em; }
  .logo span { color: var(--stamp); }
  nav { display: flex; gap: 30px; font-size: 13.5px; margin-left: auto; margin-right: 36px; }
  nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
  .header-cta {
    font-size: 13px;
    padding: 10px 20px;
    background: var(--stamp);
    color: var(--white);
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 700;
  }

  /* ===== ヒーロー：送り状モチーフ ===== */
  .hero-section { padding: 0 0 0; position: relative; }
  .waybill {
    position: relative;
    background: var(--white);
    padding: 76px 88px 64px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }
  .waybill::before {
    content: "";
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 30px;
    background-image: radial-gradient(circle at 15px 0, transparent 8px, var(--white) 8.5px);
    background-size: 30px 30px;
    background-repeat: repeat-y;
    background-position: -15px -15px;
  }
  .waybill-eyebrow {
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--stamp);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 700;
  }
  .waybill-eyebrow::before { content: "///"; letter-spacing: 2px; }
  .hero-headline {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 26px;
    letter-spacing: .01em;
  }
  .hero-headline em {
    font-style: normal;
    color: var(--stamp);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
  }
  .hero-lead {
    font-size: 15.5px;
    color: var(--ink-soft);
    max-width: 460px;
    margin-bottom: 36px;
  }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--ink); color: var(--white);
    padding: 15px 28px; font-size: 14px; text-decoration: none;
    border-radius: 2px; display: inline-block; font-weight: 700;
  }
  .btn-ghost {
    border: 2px solid var(--ink); color: var(--ink);
    padding: 13px 28px; font-size: 14px; text-decoration: none;
    border-radius: 2px; display: inline-block; font-weight: 700;
  }

  /* 右側：写真＋オーバーサイズのスタンプで組み写真のような編集感を出す */
  .hero-media {
    position: relative;
  }
  .hero-media .illus {
    width: 100%; height: 300px; display: block;
    border: 1px solid var(--line); background: var(--paper);
  }
  .hero-media .illus.photo { object-fit: cover; filter: saturate(.82) contrast(1.02); }
  .need-thumb.photo { object-fit: cover; filter: saturate(.82) contrast(1.02); }
  .need-thumb.illus { height: 148px; width: 100%; display: block; background: var(--paper); }
  .stamp-mark {
    position: absolute;
    top: -34px; left: -34px;
    width: 118px; height: 118px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 12px;
    text-align: center;
    line-height: 1.45;
    transform: rotate(-13deg);
    background: var(--stamp);
    font-weight: 700;
    letter-spacing: .06em;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--white);
  }
  .routing-overlay {
    background: var(--ink);
    color: var(--paper);
    margin: -36px 24px 0;
    position: relative;
    padding: 20px 22px;
    z-index: 1;
  }
  .routing-row { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(247,246,245,0.25); font-size: 12.5px; }
  .routing-row:last-child { border-bottom: none; }
  .routing-label { color: #9CA0C4; }
  .routing-value { font-weight: 700; }

  /* ===== お悩みセクション：紺地の反転ブロック ===== */
  section { padding: 84px 0; }
  .section-eyebrow {
    font-size: 12px; letter-spacing: .2em; color: var(--stamp);
    margin-bottom: 16px; font-weight: 700;
  }
  .section-title {
    font-size: 30px; font-weight: 800; margin-bottom: 48px; max-width: 620px;
  }

  .pain-section { background: var(--ink); color: var(--paper); }
  .pain-section .section-eyebrow { color: #E8AFA6; }
  .pain-section .section-title { color: var(--white); }
  .pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(247,246,245,0.14); }
  .pain-card {
    background: var(--ink); padding: 40px 30px; position: relative; overflow: hidden;
  }
  .pain-ghost {
    position: absolute; right: 6px; top: -18px;
    font-family: "Shippori Mincho", serif; font-weight: 800;
    font-size: 118px; color: rgba(247,246,245,0.06); line-height: 1; z-index: 0;
  }
  .pain-icon { width: 42px; height: 42px; color: var(--stamp-tint); margin-bottom: 20px; position: relative; z-index: 1; }
  .pain-icon svg { width: 100%; height: 100%; }
  .pain-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; line-height: 1.6; position: relative; z-index: 1; color: var(--white); }
  .pain-card p { font-size: 13.5px; color: #B8BBD6; position: relative; z-index: 1; }

  /* ===== 発送代行とは ===== */
  .about-block { background: var(--white); border: 1px solid var(--line); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .about-col h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
  .about-col p { font-size: 13.5px; color: var(--ink-soft); }

  .process-flow { display: flex; align-items: center; gap: 0; margin-bottom: 48px; }
  .process-step { flex: 1; text-align: center; }
  .process-step .step-icon {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
  }
  .process-step .step-icon svg { width: 28px; height: 28px; }
  .process-step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
  .process-step p { font-size: 12.5px; color: var(--ink-soft); }
  .process-arrow { color: var(--stamp); font-size: 22px; padding-bottom: 34px; font-weight: 700; }

  /* ===== ニーズ別カード：荷札モチーフ ===== */
  .need-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-top: 6px; }
  .need-card {
    background: var(--white);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    border: 1px solid var(--line);
    padding: 0;
    display: flex; flex-direction: column;
    box-shadow: 6px 6px 0 rgba(0,5,58,0.05);
  }
  .need-card:nth-child(1) { transform: rotate(-1.2deg); }
  .need-card:nth-child(2) { transform: rotate(0.6deg); margin-top: 14px; }
  .need-card:nth-child(3) { transform: rotate(-0.6deg); }
  .tag-hole {
    position: absolute; top: 8px; right: 8px; width: 14px; height: 14px;
    border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); z-index: 2;
  }
  .need-thumb { width: 100%; height: 148px; object-fit: cover; display: block; }
  .need-tag {
    font-size: 11px; letter-spacing: .12em; color: var(--white);
    background: var(--stamp); padding: 8px 26px; display: inline-block; align-self: flex-start;
    font-weight: 700;
  }
  .need-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; border-top: 1px dashed var(--line); }
  .need-card h3 { font-size: 18px; font-weight: 800; margin: 4px 0 12px; }
  .need-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; margin-bottom: 18px; }
  .need-link { font-size: 13px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--stamp); padding-bottom: 2px; align-self: flex-start; font-weight: 700; }

  /* ===== ツールCTA：郵便窓口風 ===== */
  .tools-panel {
    background: var(--ink); color: var(--paper);
    padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
    border: 3px solid var(--stamp);
  }
  .tools-panel .section-eyebrow { color: #E8AFA6; }
  .tools-panel .section-title { color: var(--white); font-size: 26px; }
  .tool-card {
    background: rgba(247,246,245,0.06); border: 1px solid rgba(247,246,245,0.2);
    padding: 28px 24px;
  }
  .tool-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--white); }
  .tool-card p { font-size: 13px; color: #C7C9DC; margin-bottom: 18px; }
  .tool-card a {
    font-size: 13px; color: var(--ink); text-decoration: none; font-weight: 700;
    background: var(--white); padding: 10px 20px; border-radius: 2px; display: inline-block;
  }

  /* ===== 事例・資料DL ===== */
  .split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .split-card {
    background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--stamp); padding: 38px;
  }
  .split-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
  .split-card p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }

  footer {
    padding: 44px 0 0; background: var(--white);
  }
  .footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-soft); padding: 30px 0; }

  @media (max-width: 860px) {
    .waybill { padding: 48px 32px 40px; }
    .waybill, .about-block, .tools-panel, .split-cta { grid-template-columns: 1fr; }
    .pain-grid, .need-grid { grid-template-columns: 1fr; }
    .need-card:nth-child(1), .need-card:nth-child(2), .need-card:nth-child(3) { transform: none; margin-top: 0; }
  }

  /* ===== スマートフォン向け ===== */
  @media (max-width: 600px) {
    .wrap { padding: 0 18px; }
    .hero-headline { font-size: 26px; line-height: 1.5; }

    header { padding: 14px 0; }
    .header-inner { flex-wrap: wrap; row-gap: 10px; }
    .logo { font-size: 17px; }
    nav {
      order: 3;
      width: 100%;
      margin-left: 0;
      margin-right: 0;
      gap: 16px;
      overflow-x: auto;
      white-space: nowrap;
      font-size: 12.5px;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 2px;
    }
    .header-cta { padding: 8px 14px; font-size: 12px; }

    section { padding: 48px 0; }
    .section-title { font-size: 22px; margin-bottom: 30px; }
    .section-eyebrow { font-size: 11px; }

    .waybill { padding: 36px 20px 32px; }
    .waybill::before { display: none; }
    .waybill-eyebrow { font-size: 11px; margin-bottom: 14px; }
    .hero-headline { font-size: 28px; margin-bottom: 16px; }
    .hero-lead { font-size: 14px; margin-bottom: 24px; }
    .hero-ctas { flex-direction: column; }
    .btn-primary, .btn-ghost { text-align: center; width: 100%; }

    .hero-media .illus { height: 200px; }
    .stamp-mark {
      width: 78px; height: 78px; font-size: 10px;
      top: -20px; left: -14px;
    }
    .routing-overlay { margin: -28px 10px 0; padding: 14px 16px; }
    .routing-row { font-size: 11.5px; flex-direction: column; gap: 2px; padding: 10px 0; }

    .pain-card { padding: 28px 22px; }
    .pain-ghost { font-size: 72px; top: -8px; }
    .pain-card h3 { font-size: 16px; }

    .about-block, .tools-panel { padding: 28px 20px; }
    .tools-panel { border-width: 2px; }
    .tools-panel .section-title { font-size: 21px; }

    .process-flow { flex-direction: column; gap: 20px; }
    .process-arrow { transform: rotate(90deg); padding-bottom: 0; }

    .need-card { box-shadow: none; }
    .need-body { padding: 18px 18px 20px; }

    .split-card { padding: 26px 22px; }

    .footer-inner { flex-direction: column; gap: 8px; text-align: center; padding: 22px 0; }
  }

  /* ===== キーワード・ティッカー（流れる貨物のように） ===== */
  .ticker {
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding: 13px 0;
    border-bottom: 3px solid var(--stamp);
  }
  .ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 36s linear infinite;
  }
  .ticker-track span {
    font-family: "Shippori Mincho", serif;
    font-size: 13.5px;
    letter-spacing: .16em;
    white-space: nowrap;
    padding: 0 26px;
    position: relative;
  }
  .ticker-track span::after {
    content: "▸";
    position: absolute; right: -6px;
    color: var(--stamp);
  }
  @keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ===== ヒーロー強化 ===== */
  .hero-headline .quote {
    display: inline-block;
    font-size: .5em;
    vertical-align: .5em;
    color: var(--stamp);
    letter-spacing: 0;
  }
  .hero-headline .big {
    font-size: 1.18em;
    display: inline-block;
  }
  .hero-sub-note {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--stamp-tint);
    color: var(--stamp);
    font-size: 12px; font-weight: 700;
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 18px;
  }

  /* ===== 物流まるわかりマップ ===== */
  .flow-map-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .flow-map {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    counter-reset: flowstep;
    border-left: 1px solid var(--line);
  }
  .flow-step {
    border-right: 1px solid var(--line);
    padding: 26px 16px 24px;
    position: relative;
    counter-increment: flowstep;
    transition: background .2s;
  }
  .flow-step:hover { background: var(--paper); }
  .flow-step::before {
    content: "0" counter(flowstep);
    font-family: "Shippori Mincho", serif;
    font-size: 13px;
    color: var(--stamp);
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
  }
  .flow-step h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 8px; }
  .flow-step p { font-size: 11.5px; color: var(--ink-soft); line-height: 1.65; }
  .flow-map-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 22px; }
  .flow-map-note strong { color: var(--stamp); }

  /* ===== 用語ミニ辞典 ===== */
  .glossary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .glossary-item { background: var(--white); padding: 24px 22px; }
  .glossary-item dt {
    font-family: "Shippori Mincho", serif;
    font-size: 16px; font-weight: 800;
    margin-bottom: 8px;
    display: flex; align-items: baseline; gap: 8px;
  }
  .glossary-item dt::before { content: "▸"; color: var(--stamp); font-size: 12px; }
  .glossary-item dd { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

  /* ===== 最終CTA ===== */
  .final-cta {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 72px 32px;
    position: relative;
    overflow: hidden;
  }
  .final-cta::before {
    content: "相談無料";
    position: absolute;
    font-family: "Shippori Mincho", serif;
    font-size: 190px; font-weight: 800;
    color: rgba(247,246,245,0.04);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
    white-space: nowrap;
    pointer-events: none;
  }
  .final-cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; position: relative; }
  .final-cta p { font-size: 14px; color: #C7C9DC; margin-bottom: 30px; position: relative; }
  .final-cta .btn-primary { background: var(--stamp); position: relative; font-size: 15px; padding: 17px 42px; }

  @media (max-width: 860px) {
    .flow-map { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
    .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .flow-map { grid-template-columns: repeat(2, 1fr); }
    .glossary-grid { grid-template-columns: 1fr; }
    .final-cta { padding: 48px 20px; }
    .final-cta h2 { font-size: 22px; }
    .final-cta::before { font-size: 100px; }
    .ticker-track span { font-size: 12px; padding: 0 18px; }
  }


/* ===== リデザイン追加スタイル ===== */

/* 縦書きアクセント */
.vertical-note {
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho", serif;
  font-size: 12.5px;
  letter-spacing: .28em;
  color: var(--ink-soft);
  position: absolute;
  right: 26px; top: 72px;
  height: auto;
  white-space: nowrap;
}

/* ヒーロー特大タイポ */
.hero-headline.xl {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.35;
  letter-spacing: .01em;
}
.nowrap { display: inline-block; white-space: nowrap; }
.hero-headline .soft { color: var(--ink-soft); }

/* 物流まるわかりマップ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.domain-cell {
  background: var(--white);
  padding: 34px 28px 30px;
  position: relative;
  transition: background .25s;
}
.domain-cell:hover { background: var(--paper); }
.domain-num {
  font-family: "Shippori Mincho", serif;
  font-size: 13px;
  color: var(--stamp);
  letter-spacing: .15em;
  margin-bottom: 14px;
  display: block;
}
.domain-cell h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.domain-cell p { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.domain-cell .domain-en {
  position: absolute; top: 30px; right: 24px;
  font-size: 10px; letter-spacing: .18em; color: var(--line);
  font-weight: 700; text-transform: uppercase;
}

/* 進め方 3ステップ（雑誌の目次風） */
.index-steps { counter-reset: step; }
.index-step {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.index-step:first-child { border-top: 1px solid var(--line); }
.index-num {
  font-family: "Shippori Mincho", serif;
  font-size: 46px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.index-num small { font-size: 12px; color: var(--stamp); display: block; letter-spacing: .2em; margin-bottom: 4px; font-weight: 700; }
.index-step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.index-step p { font-size: 13.5px; color: var(--ink-soft); }
.index-step .need-link { white-space: nowrap; }

/* 巨大数字の実績風ストリップ */
.fact-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.fact-cell { padding: 36px 20px; text-align: center; border-right: 1px solid var(--line); }
.fact-cell:last-child { border-right: none; }
.fact-cell .big {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.1;
  white-space: nowrap;
}
.fact-cell .big span { font-size: 18px; }
.fact-cell .label { font-size: 12px; color: var(--ink-soft); margin-top: 6px; letter-spacing: .08em; }

@media (max-width: 860px) {
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .hero-headline.xl { font-size: 44px; }
  .vertical-note { display: none; }
}
@media (max-width: 600px) {
  .domain-grid { grid-template-columns: 1fr; }
  .hero-headline.xl { font-size: 26px; line-height: 1.5; }
  .index-step { grid-template-columns: 64px 1fr; gap: 16px; }
  .index-step .need-link { grid-column: 2; }
  .index-num { font-size: 32px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .fact-cell:last-child { border-bottom: none; }
}

/* ===== 見出しの泣き別れ（1文字だけの行）防止 ===== */
/* text-wrap: balance が行の文字数を均等化し、1文字孤立を防ぐ。
   word-break: auto-phrase は対応ブラウザ(Chrome系)で日本語を文節単位で折り返す。 */
.hero-headline, .section-title,
.pain-card h3, .domain-cell h3, .need-card h3,
.tool-card h3, .split-card h3, .index-step h3,
.about-col h3, .card h1, .final-cta h2 {
  text-wrap: balance;
  word-break: auto-phrase;
}

/* ===== Edge「Visual Search」アイコンの抑止 ===== */
/* Edgeは画像上のマウスホバーを検知して検索アイコンを重ねるため、
   表示専用画像のマウス反応を無効化して表示させない。
   （本サイトの写真はすべて非クリック要素のため操作性への影響なし） */
.illus, .photo, .need-thumb {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
