@charset "utf-8";
/* 第27号 錘瀬計量所(架空)— 組版の決め
   見出し=游明朝 / 本文=游ゴシック。主色は計器の指針の「朱」1色だけ。
   地は計量室の白(石膏のような、わずかに温かい灰)。
   直近の地色: 021〜024=生成り / 025=濃紺 / 026=冷たい白+藍 → そのどれとも違う灰に寄せた。
   余白・字送りの刻みは design-system/027-suise-metrology/MASTER.md の spacing を下敷きにしている
   (書体だけは端末内蔵のものへ差し替え。外部フォントは禁止)。 */

:root {
  --sumi: #1a1916;          /* 墨 */
  --usu: #6a6760;           /* 薄墨(補足) */
  --kami: #fbfaf7;          /* 紙 */
  --ji: #eceae4;            /* 地 */
  --ji-fuka: #dfdcd3;       /* 地(濃) */
  --sen: #d2cec4;           /* 罫 */
  --shu: #b0432c;           /* 主色。指針・罫・釦・強調だけに使う */
  --shu-d: #8b3320;
  --shu-usu: #f6ece8;
  --kuro: #14181a;          /* 計器の盤 */
  --dan: clamp(56px, 9vw, 132px);   /* 段の上下の余白 */
  --haba: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ji);
  color: var(--sumi);
  font-family: "游ゴシック体", YuGothic, "Yu Gothic Medium", "Yu Gothic", "Hiragino Sans", "ヒラギノ角ゴシック", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
}

h1, h2, h3, .mincho {
  font-family: "游明朝", YuMincho, "Yu Mincho", "游明朝体", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "MS PMincho", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

a { color: var(--shu-d); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.1em; }

.hako { width: min(100% - 40px, var(--haba)); margin-inline: auto; }
.semai { width: min(100% - 40px, 760px); margin-inline: auto; }

/* 数字は等幅の数字面で出す(桁が揺れると計器に見えない) */
.suchi { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ------------------------------------------------------------ 頭 */
.atama {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 251, 248, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--sen);
}
.atama-naka {
  width: min(100% - 32px, var(--haba)); margin-inline: auto;
  display: flex; align-items: center; gap: 16px; min-height: 60px;
}
.yago { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit; }
.yago b { font-family: "游明朝", YuMincho, "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 19px; letter-spacing: .14em; font-weight: 600; }
.yago span { font-size: 10px; letter-spacing: .26em; color: var(--usu); }
.michi { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.michi a {
  text-decoration: none; color: var(--sumi); font-size: 13.5px; letter-spacing: .12em;
  padding: 8px 12px; border-radius: 2px;
}
.michi a:hover { background: var(--shu-usu); color: var(--shu-d); }
.michi a[aria-current="page"] { color: var(--shu-d); box-shadow: inset 0 -2px 0 var(--shu); }
.moushi {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 8px;
  padding: 8px 15px; border: 1px solid var(--shu); border-radius: 2px;
  color: var(--shu-d) !important; font-size: 13px; white-space: nowrap;
}
.moushi:hover { background: var(--shu); color: #fff !important; }
.hiraku { display: none; }

@media (max-width: 880px) {
  .hiraku {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 68px; height: 40px; background: var(--kami); border: 1px solid var(--sen);
    border-radius: 2px; font-size: 11.5px; letter-spacing: .04em; color: var(--sumi); cursor: pointer;
    white-space: nowrap; font-family: inherit;
  }
  .michi {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--kami); border-bottom: 1px solid var(--sen);
    padding: 6px 16px 16px;
  }
  .michi[hidden] { display: none; }
  .michi a { padding: 13px 4px; border-bottom: 1px dotted var(--sen); }
  .moushi { margin: 12px 0 0; justify-content: center; }
}

/* ------------------------------------------------------------ 表紙(計器の盤) */
.omote { background: var(--kuro); color: #fff; padding: clamp(34px, 6vw, 72px) 0 clamp(30px, 5vw, 60px); }
.omote-naka { width: min(100% - 40px, var(--haba)); margin-inline: auto; display: grid; gap: clamp(26px, 4vw, 52px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .omote-naka { grid-template-columns: 1.02fr .98fr; } }
.omote h1 {
  color: #fff; margin: 0 0 20px;
  font-size: clamp(25px, 4.6vw, 42px); line-height: 1.55; letter-spacing: .05em;
  max-width: 15em;
}
.omote p { color: #cfcbc2; max-width: 30em; font-size: clamp(13.5px, 1.6vw, 15.5px); margin: 0 0 1.1em; }
.omote .mae { color: #c98a76; }
.omote .botan { margin-top: 10px; }

/* 静定計(演出B) */
.keiki { position: relative; }
.keiki svg { width: 100%; height: auto; display: block; }
.yomi-ban {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 7%; text-align: center; pointer-events: none;
}
.yomi-ban b {
  display: block; font-family: "游明朝", YuMincho, serif; font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 5vw, 40px); letter-spacing: .04em; color: #fff; line-height: 1.1;
}
.yomi-ban small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .24em; color: #b9b4aa; }
.yomi-ban .tomatta { color: #e0a08c; }
.keiki-shita { margin-top: 12px; font-size: 11.5px; letter-spacing: .1em; color: #8e8980; text-align: center; line-height: 1.9; }
.ugoki-botan {
  display: none; margin: 12px auto 0; padding: 9px 18px; cursor: pointer;
  background: transparent; color: #e0d9cd; border: 1px solid #4a4a46; border-radius: 2px;
  font-family: inherit; font-size: 12.5px; letter-spacing: .1em;
}
.ugoki-botan:hover { border-color: var(--shu); color: #fff; }

.deru { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.deru.kita { opacity: 1; transform: none; }
.deru:nth-child(2) { transition-delay: .18s; }

/* ------------------------------------------------------------ 段 */
.dan { padding: var(--dan) 0; }
.dan-shiro { background: var(--kami); }
.dan h2 { font-size: clamp(20px, 3.2vw, 30px); margin: 0 0 8px; max-width: 21em; }
.mae { font-size: 11px; letter-spacing: .3em; color: var(--shu-d); margin: 0 0 14px; font-family: system-ui, sans-serif; }
.riido { max-width: 40em; color: #3a382f; }

/* 数字の帯 */
.suuji { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--sen); border: 1px solid var(--sen); }
.suuji div { background: var(--kami); padding: 22px 18px; }
.suuji b { display: block; font-family: "游明朝", YuMincho, "Hiragino Mincho ProN", serif; font-size: 27px; letter-spacing: .02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.suuji small { display: block; margin-top: 7px; font-size: 11.5px; color: var(--usu); letter-spacing: .1em; }

/* 二段組 */
.futatsu { display: grid; gap: clamp(26px, 4vw, 54px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .futatsu { grid-template-columns: 1.05fr 1fr; } .futatsu.gyaku > :first-child { order: 2; } }

figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 12px; color: var(--usu); letter-spacing: .06em; line-height: 1.8; }
.zu { background: var(--kami); border: 1px solid var(--sen); }

.hitokoto {
  border-left: 3px solid var(--shu); padding: 4px 0 4px 20px; margin: 30px 0;
  font-family: "游明朝", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.85; letter-spacing: .05em;
}

/* 釦 */
.botan {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; background: var(--shu); color: #fff; text-decoration: none;
  border: 1px solid var(--shu); border-radius: 2px; font-size: 14px; letter-spacing: .1em; cursor: pointer;
  transition: background .18s ease, color .18s ease; font-family: inherit;
}
.botan:hover { background: var(--shu-d); border-color: var(--shu-d); }
.botan.usu { background: transparent; color: var(--shu-d); }
.botan.usu:hover { background: var(--shu); color: #fff; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; }

/* 表 */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border-bottom: 1px solid var(--sen); padding: 12px 10px; text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--usu); font-size: 12.5px; letter-spacing: .08em; white-space: nowrap; }
td b { font-family: "游明朝", YuMincho, serif; font-size: 16px; }
td.su { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hyou-maki { overflow-x: auto; }

/* ------------------------------------------------------------ 工程(番号つきの列) */
.tejun { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: te; }
.tejun li {
  counter-increment: te; position: relative; padding: 20px 0 20px 62px;
  border-bottom: 1px dotted var(--sen);
}
.tejun li::before {
  content: counter(te, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: "游明朝", YuMincho, serif; font-size: 16px; letter-spacing: .06em;
  color: var(--shu); width: 44px; border-top: 1px solid var(--shu); padding-top: 6px;
}
.tejun h3 { margin: 0 0 6px; font-size: clamp(16px, 2.2vw, 19px); }
.tejun p { margin: 0; font-size: 14px; color: #3d3b34; }
.tejun .fun { float: right; margin-left: 14px; font-size: 12px; color: var(--usu); letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ 札(等級・断りの三つ) */
.fuda-kumi { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.fuda { background: var(--kami); border: 1px solid var(--sen); padding: 24px 22px 22px; display: flex; flex-direction: column; }
.fuda h3 { margin: 0 0 4px; font-size: 19px; }
.fuda .yomi { font-size: 11px; letter-spacing: .24em; color: var(--usu); font-family: system-ui, sans-serif; }
.fuda dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; }
.fuda dt { color: var(--usu); white-space: nowrap; }
.fuda dd { margin: 0; font-variant-numeric: tabular-nums; }
.fuda .setsu { margin: 14px 0 0; font-size: 13.5px; color: #3d3b34; line-height: 1.9; }
.fuda .shirushi { display: inline-block; margin-bottom: 12px; font-size: 11px; letter-spacing: .2em; color: var(--shu-d); border: 1px solid var(--shu); padding: 3px 9px; }

/* ------------------------------------------------------------ 帯(ずれの棒) */
.zure { margin: 26px 0 0; }
.zure .retsu { display: grid; grid-template-columns: 7.5em 1fr 5.5em; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13.5px; }
.zure .bou { height: 16px; background: var(--ji-fuka); position: relative; overflow: hidden; }
.zure .bou i { position: absolute; inset: 0 auto 0 50%; width: 0; background: var(--shu); transition: width 1.1s cubic-bezier(.2,.7,.3,1), left 1.1s cubic-bezier(.2,.7,.3,1); }
.zure .bou::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #a8a396; }
.zure .atai { text-align: right; font-family: "游明朝", YuMincho, serif; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ 申込 */
.chuumon { background: var(--kami); border: 1px solid var(--sen); padding: clamp(20px, 3vw, 34px); }
.kumi { padding: 18px 0; border-bottom: 1px solid var(--sen); }
.kumi:last-of-type { border-bottom: 0; }
.kumi > .na { font-size: 14.5px; }
.kumi > .na small { display: block; color: var(--usu); font-size: 11.5px; letter-spacing: .06em; }
label { font-size: 14.5px; }
input[type="number"], select, input[type="text"] {
  font-family: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid var(--sen);
  background: #fff; color: var(--sumi); border-radius: 2px; width: 100%;
}
input[type="number"] { width: 6em; text-align: right; font-variant-numeric: tabular-nums; }
.erabu { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.erabu button {
  font-family: inherit; font-size: 13.5px; padding: 10px 16px; cursor: pointer;
  background: #fff; border: 1px solid var(--sen); border-radius: 2px; color: var(--sumi);
  text-align: left; line-height: 1.6;
}
.erabu button small { display: block; font-size: 11px; color: var(--usu); letter-spacing: .04em; }
.erabu button[aria-pressed="true"] { background: var(--shu); border-color: var(--shu); color: #fff; }
.erabu button[aria-pressed="true"] small { color: #f3d9d1; }
.hikae {
  margin-top: 26px; padding: 22px 20px; background: var(--shu-usu);
  border: 1px solid #e2c6bc; font-size: 14px; line-height: 2.05;
}
.hikae[hidden] { display: none; }
.hikae b { font-family: "游明朝", YuMincho, serif; font-size: 18px; font-variant-numeric: tabular-nums; }
.hikae dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; margin: 10px 0 0; }
.hikae dt { color: var(--usu); font-size: 12.5px; white-space: nowrap; }
.hikae dd { margin: 0; font-variant-numeric: tabular-nums; }
.kotowari { font-size: 12px; color: var(--usu); line-height: 1.9; margin-top: 14px; }

/* ------------------------------------------------------------ 足 */
.ashi { background: #191d1f; color: #b5b1a8; padding: clamp(40px, 6vw, 64px) 0 34px; font-size: 13px; line-height: 2; }
.ashi a { color: #d6cfc3; }
.ashi .kumi-ashi { display: grid; gap: 26px; grid-template-columns: 1fr; padding: 0; border: 0; }
@media (min-width: 760px) { .ashi .kumi-ashi { grid-template-columns: 1.4fr 1fr 1fr; } }
.ashi h4 { font-size: 12px; letter-spacing: .2em; color: #8b867c; margin: 0 0 10px; font-weight: 600; }
.ashi ul { list-style: none; margin: 0; padding: 0; }
.ashi .kakuu {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid #2c3133;
  font-size: 11.5px; color: #918c82; line-height: 1.95;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .deru { opacity: 1; transform: none; }
  .ugoki-botan { display: block; }
}
