/* ============================================================
   発送デスク — 「宅配伝票・郵便局のカウンター」
   docs/layout-style-guide.md の確定値に従う。ヒーローは小さく作る。
   ============================================================ */

:root {
  --paper: #f3ecdc;        /* クラフト紙の地色 */
  --paper-deep: #e7dcc2;   /* 段差・セクション区切り */
  --panel: #fbf7ec;        /* カード・パネルの地色（紙より僅かに明るい） */
  --ink: #22283a;          /* 本文の文字色（藍墨） */
  --ink-2: #545a70;        /* 補助文字 */
  --navy: #1c2f4d;         /* 見出し帯・ヘッダー・表ヘッダー（藍） */
  --navy-deep: #142238;    /* ヘッダーの濃い方 */
  --stamp: #b3392c;        /* 朱色（受付印・速達スタンプ） */
  --stamp-soft: #f3e1d8;   /* 朱の淡色面 */
  --line: #cabb95;         /* クラフト色の罫線 */
  --line-soft: #ded1ab;
  --gold: #a9812f;         /* 控えめな金（縁取り用） */
  --h2-bg: #e6d9ba;        /* h2の帯（薄いクラフト色。濃色地は使わない） */
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 3px 3px, rgba(34, 40, 58, 0.05) 1px, transparent 1.6px) 0 0/22px 22px,
    var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

h1, h2, h3 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@supports (word-break: auto-phrase) {
  h1, h2, h3 { word-break: auto-phrase; }
}

a { color: var(--stamp); }
a:hover { text-decoration-thickness: 2px; }

/* ---------- ヘッダー：スクロールに追従（site-layout-regulation.md §1-10） ---------- */
.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--stamp);
  padding: 12px 16px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.site-name {
  color: #f7f1e0;
  text-decoration: none;
  font-family: "Shippori Mincho", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.site-name::before {
  content: "〒";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #f7f1e0;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
}
.site nav a:not(.site-name) {
  color: #d9cfa8;
  text-decoration: none;
  font-size: 16px;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  white-space: nowrap;
}
.site nav a:not(.site-name):hover,
.site nav a:not(.site-name)[aria-current="page"] {
  color: #f7f1e0;
  border-bottom-color: var(--stamp);
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 56px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}
main.wide {
  max-width: 1000px;
}

/* ---------- ヒーロー：1440px幅で260px以下、390px幅で380px以下（§1-9b） ---------- */
.hero {
  padding: 28px 0 22px;
  border-bottom: 3px double var(--line);
  margin-bottom: 24px;
  position: relative;
}
.hero::before {
  content: "受付";
  position: absolute;
  top: 22px;
  right: 0;
  width: 64px;
  height: 64px;
  border: 3px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  opacity: 0.85;
}
.hero h1 {
  font-size: 27px;
  line-height: 1.45;
  margin: 0 8px 10px 0;
  color: var(--navy);
  max-width: calc(100% - 84px);
}
.hero p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  max-width: calc(100% - 84px);
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  padding: 9px 14px;
  background: var(--h2-bg);
  color: var(--navy);
  border-left: 6px solid var(--stamp);
  position: relative;
}
h2::after {
  /* ミシン目風のアクセント */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1.4px);
  background-size: 8px 2px;
  opacity: 0.55;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--navy);
}

p { margin: 0 0 12px; }

.breadcrumb {
  margin: 18px 0 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: var(--ink-2);
}
.breadcrumb li:not(:last-child)::after {
  content: "\203A";
  margin: 0 6px;
  color: var(--gold);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- 比較表（伝票の罫線イメージ） ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(28, 47, 77, 0.06);
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--panel);
  table-layout: fixed;
}
th, td {
  border: 1px solid var(--line-soft);
  padding: 9px 11px;
  text-align: left;
  overflow-wrap: break-word;
}
/* 比較表（7列）だけ列幅を指定して、サービス名列が伸びすぎないようにする */
#compare-table th:nth-child(1), #compare-table td:nth-child(1) { width: 17%; }
#compare-table th:nth-child(2), #compare-table td:nth-child(2) { width: 11%; }
#compare-table th:nth-child(3), #compare-table td:nth-child(3) { width: 24%; }
#compare-table th:nth-child(4), #compare-table td:nth-child(4) { width: 20%; }
#compare-table th:nth-child(5), #compare-table td:nth-child(5) { width: 12%; }
#compare-table th:nth-child(6), #compare-table td:nth-child(6) { width: 8%; }
#compare-table th:nth-child(7), #compare-table td:nth-child(7) { width: 8%; }
thead th {
  background: var(--navy);
  color: #f7f1e0;
  font-family: "Shippori Mincho", serif;
  border-color: rgba(247, 241, 224, 0.2);
  position: sticky;
  top: 0;
}
tbody tr:nth-child(even) {
  background: var(--paper-deep);
}
tbody tr:hover {
  background: var(--stamp-soft);
}

/* ---------- callout（注記・出典・改定情報） ---------- */
.source-note, .status-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--stamp);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink-2);
  margin: 18px 0;
  position: relative;
}
.status-box {
  border-left-color: var(--navy);
  background: var(--stamp-soft);
}
.status-box strong { color: var(--stamp); }
.source-note a, .status-box a { color: var(--navy); font-weight: 700; }

/* ---------- 項目：値 の一覧（運営者情報・サービス詳細の基本情報など） ---------- */
.info-list {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(28, 47, 77, 0.06);
}
.info-list > div {
  display: flex;
  border-bottom: 1px dashed var(--line);
}
.info-list > div:last-child { border-bottom: none; }
.info-list dt {
  flex: 0 0 140px;
  background: var(--navy);
  color: #f7f1e0;
  padding: 11px 12px;
  font-size: 16px;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
}
.info-list dd {
  flex: 1;
  margin: 0;
  padding: 11px 12px;
  font-size: 16px;
  background: var(--panel);
}
@media (max-width: 480px) {
  .info-list > div { flex-direction: column; }
  .info-list dt { flex: none; }
}

/* ---------- サービス一覧カード（荷札風） ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px 14px 18px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 2px 2px 0 rgba(28, 47, 77, 0.05);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--gold);
}
.service-list a {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 17px;
  color: var(--navy);
}
.service-list a:hover { text-decoration: underline; }
.service-list .desc {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 4px;
}

/* ---------- FAQ ---------- */
.faq-item { margin: 18px 0; }
.faq-q {
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.faq-q::before {
  content: "問";
  background: var(--navy);
  color: #f7f1e0;
  border-radius: 3px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: "Shippori Mincho", serif;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-a {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  align-items: flex-start;
}
.faq-a::before {
  content: "答";
  background: var(--stamp-soft);
  color: var(--stamp);
  border: 1px solid var(--stamp);
  border-radius: 3px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: "Shippori Mincho", serif;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- フッター：切り取り線（ミシン目）イメージ ---------- */
footer {
  background: var(--navy-deep);
  color: #cfc6a4;
  padding: 22px 16px 24px;
  text-align: center;
  font-size: 16px;
  position: relative;
}
footer::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto 20px;
  max-width: 1000px;
  background-image: radial-gradient(circle, rgba(247, 241, 224, 0.35) 1.5px, transparent 1.5px);
  background-size: 10px 1px;
}
footer a { color: #e7dcc2; }
footer a:hover { color: #fff; }

@media (max-width: 480px) {
  .hero { padding-top: 54px; }
  .hero h1 { font-size: 23px; max-width: 100%; }
  .hero p { max-width: 100%; }
  .hero::before { width: 46px; height: 46px; font-size: 16px; top: 4px; right: 0; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
}
