/* 30秒確認（C案）
   本文幅 640px 未満でスマホ表示 */

body { margin: 0; background: #F2F3EC; }
a { color: inherit; }
a:hover { opacity: .8; }
[hidden] { display: none !important; }

.ck {
  container: ck / inline-size;
  min-height: 100vh;
  box-sizing: border-box;
  background: #F2F3EC;
  color: #24291F;
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
.ck p { margin: 0; }
.ib { display: inline-block; }
.bold { font-weight: 700; }
.measure-30 { max-width: 30em; }
.measure-32 { max-width: 32em; }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }

/* ヘッダー */
.ck-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #F2F3EC;
  border-bottom: 1px solid #24291F;
  padding: 0 clamp(16px, 5cqi, 72px);
}
.ck-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px clamp(8px, 2cqi, 24px);
  min-height: clamp(52px, 6cqi, 68px);
}
.ck-header__name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(13px, 1.4cqi, 16px);
  letter-spacing: .02em;
  white-space: nowrap;
}
.ck-header__back { font-size: 15px; color: #3E463A; white-space: nowrap; }

.ck-main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6cqi, 72px) clamp(20px, 5cqi, 40px) clamp(64px, 9cqi, 112px);
}
.view { display: flex; flex-direction: column; gap: 32px; }
.view--result { gap: clamp(32px, 5cqi, 44px); }

.ck-h1 {
  scroll-margin-top: 84px;
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(28px, 4.4cqi, 40px);
  line-height: 1.5;
}
.ck-h1--sm { font-size: clamp(26px, 4.2cqi, 36px); }
.ck-h1:focus,
.result-domain:focus { outline: none; }
.ck-h2 {
  scroll-margin-top: 84px;
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(22px, 3.2cqi, 28px);
  line-height: 1.5;
}
.ck-h2--table { font-size: 22px; line-height: inherit; }
.sub-note { font-size: 16px; line-height: 1.85; color: #3E463A; max-width: 30em; }
.sub-note--32 { max-width: 32em; }
.err { font-weight: 700; color: #B3302A; }

/* ボタン */
.ck-btn {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #F2F3EC;
  background: #24291F;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.ck-btn:hover { background: #C8342C; }
.ck-btn:focus-visible { outline: 2px solid #24291F; outline-offset: 3px; }
.ck-btn:disabled { cursor: progress; opacity: .7; }
.ck-btn--check { flex: 0 1 auto; min-width: 160px; height: 64px; padding: 0 32px; font-size: 20px; }
.ck-btn--mail { align-self: flex-start; min-height: 60px; padding: 0 32px; font-size: 19px; white-space: nowrap; }
.ck-btn--wide { padding: 0 36px; }
.text-btn {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 8px 0;
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 17px;
  color: #24291F;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* 入力 */
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-weight: 700; font-size: 19px; }
.field__hint { font-size: 16px; color: #3E463A; }
.field__row { display: flex; flex-wrap: wrap; gap: 12px; }
.domain-input {
  flex: 1 1 300px;
  min-width: 0;
  height: 64px;
  box-sizing: border-box;
  padding: 0 18px;
  font-family: 'BIZ UDGothic', monospace;
  font-size: 22px;
  color: #24291F;
  background: #FFFFFF;
  border: 2px solid #24291F;
  border-radius: 0;
  outline-offset: 3px;
}
.domain-input[aria-invalid="true"] { border-color: #B3302A; }

/* 確認中 */
.loading-domain { font-family: 'BIZ UDGothic', monospace; font-size: 20px; overflow-wrap: anywhere; }
.progress { height: 6px; background: #C9CFC0; overflow: hidden; }
.progress__bar { height: 100%; width: 17%; background: #24291F; transition: width .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .progress__bar { transition: none; }
}
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #24291F; }
.step { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid #24291F; color: #3E463A; }
.step__mark {
  flex: none;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  background: transparent;
  color: #F2F3EC;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.step__label { flex: 1; min-width: 0; }
.step__state { flex: none; font-size: 15px; }
.step.is-current,
.step.is-done { color: #24291F; }
.step .step__mark { border-color: #3E463A; }
.step.is-current .step__mark,
.step.is-done .step__mark { border-color: #24291F; }
.step.is-done .step__mark { background: #24291F; }

/* 失敗 */
.error-domain { font-family: 'BIZ UDGothic', monospace; font-size: 18px; color: #3E463A; overflow-wrap: anywhere; }
.error-text { display: flex; flex-direction: column; gap: 12px; max-width: 32em; }

/* メール受付 */
.mail-box {
  border: 2px solid #24291F;
  background: #FFFFFF;
  padding: clamp(22px, 4cqi, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mail-box--sent { gap: 8px; }
.mail-line {
  border-top: 2px solid #24291F;
  padding-top: clamp(28px, 4cqi, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mail-line--sent { gap: 8px; }
.sent-title { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: clamp(22px, 3.2cqi, 28px); line-height: 1.5; }
.sent-title--box { font-size: clamp(22px, 3.2cqi, 26px); }
.mail-row { display: flex; flex-wrap: wrap; gap: 20px; }
.mail-label { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.req { font-weight: 400; color: #3E463A; margin-left: 6px; }
.email-input {
  height: 60px;
  box-sizing: border-box;
  padding: 0 16px;
  font-family: 'BIZ UDGothic', monospace;
  font-size: 19px;
  color: #24291F;
  background: #FFFFFF;
  border: 2px solid #24291F;
  border-radius: 0;
}
.email-input--on-surface { background: #F2F3EC; }
.email-input[aria-invalid="true"] { border-color: #B3302A; }
.privacy { font-size: 14px; line-height: 1.8; color: #3E463A; }
.privacy a { color: #24291F; text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 結果 */
.as-of { font-size: 16px; color: #3E463A; }
.result-domain {
  scroll-margin-top: 84px;
  margin: 0;
  font-family: 'BIZ UDGothic', monospace;
  font-weight: 700;
  font-size: clamp(26px, 4.2cqi, 36px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.judge {
  --judge: #B3302A;
  border: 2px solid var(--judge);
  border-top-width: 8px;
  background: #FFFFFF;
  padding: clamp(22px, 4cqi, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.judge--auto { --judge: #2E6B4F; }
.judge--manual { --judge: #B3302A; }
.judge--mixed { --judge: #94600F; }
.judge--none { --judge: #24291F; }
.judge__label { font-size: 15px; color: #3E463A; }
.judge__title { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: clamp(24px, 3.6cqi, 32px); line-height: 1.45; color: var(--judge); }
.judge__comments { display: contents; }
.judge__comments p { max-width: 32em; }

.tbl {
  margin: 0;
  background: #FFFFFF;
  color: #1B2620;
  border: 1.5px solid #1B2620;
  padding: 4px clamp(18px, 3cqi, 28px);
}
.summary__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 24px;
  padding: 18px 0;
  border-bottom: 1px solid #738479;
}
.summary__row:last-child { border-bottom: none; }
.summary__row dt { color: #3E4F44; font-size: 18px; font-weight: 700; }
.summary__row dd { margin: 0; font-weight: 700; color: #1B2620; }
.summary__issuer { font-family: 'BIZ UDPGothic', sans-serif; font-size: 18px; }
.summary__expiry { font-family: 'BIZ UDGothic', monospace; font-size: 19px; }
.summary__days { font-family: 'Noto Serif JP', serif; font-size: 26px; }
.summary__days.is-calm { color: #2F5D46; }
.summary__days.is-hi { color: #B3342C; }

.subs__head {
  display: flex;
  gap: 20px;
  padding: 14px 0 10px;
  font-size: 14px;
  color: #3E4F44;
  border-bottom: 1px solid #738479;
}
.subs__h-name { flex: 1 1 0; }
.subs__h-issuer { flex: 0 0 14em; }
.subs__h-left { flex: 0 0 16em; }
.sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 20px;
  padding: 16px 0;
  border-bottom: 1px solid #738479;
}
.sub-row:last-child { border-bottom: none; }
.sub-row__name { flex: 1 1 220px; min-width: 0; font-family: 'BIZ UDGothic', monospace; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.sub-row__issuer { flex: 0 0 14em; min-width: 0; font-size: 15px; color: #3E4F44; }
.sub-row__left { flex: 0 0 16em; min-width: 0; font-family: 'BIZ UDGothic', monospace; font-size: 16px; color: #1B2620; }
.sub-row--empty { color: #3E4F44; font-size: 16px; }
.disclaimer { font-size: 16px; line-height: 1.9; color: #3E463A; max-width: 34em; }

@container ck (max-width: 639.98px) {
  .subs__head { display: none; }
  .sub-row__issuer,
  .sub-row__left { flex: 1 1 100%; }
}
