/* Kairos の画面のスタイル（デザインは「ログイン画面のデザイン案」の案E2）
   ビルドの要らない素のCSSを1枚だけ。外部の読み込みはしない。
   ログインの段階（IDとパスワード → 二段階認証）を、画面の端から端まで続く時の線の一区間として引き、
   今いる段階を青銅の大きな印で示す。二段階認証の先は、点線のまま画面の端へ続く。
   前半はモックから移したもの。末尾の「allauth の画面・ログインしたあとの画面」は、実装で足したもの。 */

/* ---------- 色・文字・寸法 ---------- */
:root {
  /* 基本の6色 */
  --ground: #C4D5CC;  /* 緑青の粉：地 */
  --paper: #FFFFFF;   /* 白：面（カード）と欄 */
  --ink: #14302A;     /* 墨：文字・主なボタン・これまでの線・済んだ段階 */
  --moss: #455B55;    /* 苔：補足の文字・欄の枠（白の上で7.3:1、地の上で4.8:1） */
  --bronze: #C9944A;  /* 青銅：今の段階の印だけ */
  --enji: #9E2B37;    /* 臙脂：まちがい・ロックの止め（白の上で7.4:1、地の上で4.8:1） */

  /* 基本の色から作る色 */
  --ink-hover: #24473F;    /* 主なボタンに乗ったとき */
  --focus: #87580F;        /* フォーカスの輪：深い青銅（白の上で6.1:1、地の上で4.0:1） */
  --future: #4E645E;       /* これからの線と段階（地の上で4.2:1） */
  --halo: rgb(201 148 74 / 0.42); /* 今の段階の印のまわりの光 */
  --card-edge: #8FA69B;    /* カードの縁 */
  --hair: #D6E0DB;         /* カードの中の細い区切り */
  --tint: #EEF3F0;         /* カードの中の小さな面（決まり・パスキーを使えないときの入れ方） */
  --enji-tint: #F8EAEB;    /* まちがい・ロックの時間の地 */
  --mark-off: #DCE5E0;     /* 止まっているときの今の段階の印 */

  --font: "BIZ UDPGothic", "BIZ UDPゴシック", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Yu Gothic UI", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  /* 数字：桁のそろう書体（コードの欄・ロックの時間。ランキングの価格と差額にもそのまま使う） */
  --font-num: Bahnschrift, "DIN Alternate", Roboto, var(--font);

  /* 文字の大きさの段階（px：14 / 16 / 18 / 24、ロックの時間だけ48） */
  --text-s: 0.875rem;  /* 段階の名前・ロックの止めの時間 */
  --text-m: 1rem;      /* 本文・欄の見出し・補足・ボタン */
  --text-l: 1.125rem;  /* 欄に入れる文字・パスキーのボタン */
  --text-xl: 1.5rem;   /* 見出し */
  --text-num: 3rem;    /* ロックの時間の数字 */

  /* 寸法 */
  --col: 31rem;        /* カードの幅。ログインの段階の区間もこの幅 */
  --pad: 2rem;         /* カードの内側の余白。段階とロゴもこの線にそろえる */
  --gutter: 1.5rem;    /* 画面の端との間 */
  --logo-h: 28px;      /* ロゴを置く枠の高さ。横幅はロゴに任せる */
  --radius: 6px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-m);
  line-height: 1.75;
  letter-spacing: 0.02em;
  line-break: strict;
}

p,
h1,
h2,
ul,
ol {
  margin: 0;
}

h1,
h2,
p,
li,
label {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 途中で折り返させない語句（「同じ記号（!など）」） */
.keep {
  white-space: nowrap;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 入口の画面の骨組み（allauth/layouts/entrance.html） ---------- */
.entrance {
  padding: clamp(1.5rem, 7vh, 4.5rem) 0 4rem;
  overflow-x: hidden;
  overflow-x: clip; /* 画面の端まで引いた時の線で、横にスクロールさせない */
}

/* ロゴ・段階・カードを、同じ幅の列に置く */
.frame {
  width: min(var(--col), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.brand {
  height: var(--logo-h);
  padding-inline: var(--pad);
  margin-bottom: 2.5rem;
}

.brand img {
  display: block;
  height: 100%;
  width: auto;
}

/* ---------- ログインの段階（時の線） ---------- */
/* .band は画面の幅いっぱい。中の .band__inner をカードと同じ列に置く */
.band__inner {
  padding-inline: var(--pad);
}

/* 段階は2つ。左の端に「IDとパスワード」、右の端に「二段階認証」。
   その外は時の線のまま：左はこれまで（実線）、右はこれから（点線）で、画面の端まで続く */
.route {
  --r: 18px;                            /* 段階の印を置く枠の半径 */
  --above: 0px;                         /* 線より上に要る高さ（枝や止めがあるとき） */
  --y: calc(var(--above) + var(--r));   /* 線の高さ */
  --now-x: var(--r);                    /* 今いる段階の横の位置 */
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--above) 0 0;
  list-style: none;
  container-type: inline-size;
}

.route[data-now="end"] {
  --now-x: calc(100% - var(--r));
}

.route::before,
.route::after {
  content: "";
  position: absolute;
}

/* これからの線：点線で、画面の右の端まで */
.route::before {
  top: calc(var(--y) - 1.5px);
  height: 3px;
  left: -100vw;
  right: -100vw;
  background: repeating-linear-gradient(to right, var(--future) 0 8px, transparent 8px 14px);
}

/* これまでの線：太い実線で、画面の左の端から今いる段階まで */
.route::after {
  top: calc(var(--y) - 2.5px);
  height: 5px;
  left: -100vw;
  right: calc(100% - var(--now-x));
  background: var(--ink);
}

.route__stop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.route__stop--end {
  align-items: flex-end;
  text-align: right;
}

.route__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(2 * var(--r));
  height: calc(2 * var(--r));
}

.route__mark::before,
.route__mark::after {
  grid-area: 1 / 1;
}

/* これからの段階：中の抜けた小さな丸 */
.route__mark::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid var(--future);
  border-radius: 50%;
  background: var(--ground);
}

/* 済んだ段階：墨の丸に、白いチェック */
.route__stop.is-done .route__mark::before {
  width: 22px;
  height: 22px;
  border: 0;
  background: var(--ink);
}

.route__stop.is-done .route__mark::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid #FFFFFF;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* 今いる段階：大きな青銅の丸に墨の縁と、まわりの淡い光。文字は付けない */
.route__stop[aria-current="step"] .route__mark::before {
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink);
  background: var(--bronze);
  box-shadow: 0 0 0 5px var(--halo);
}

.route__name {
  max-width: calc(100% - 0.75rem);
  margin-top: 0.375rem;
  font-size: var(--text-s);
  line-height: 1.5;
  color: var(--moss);
  word-break: keep-all;     /* 折り返すのは <wbr> の所だけ（「IDと／パスワード」） */
  overflow-wrap: anywhere;
}

.route__stop.is-done .route__name {
  color: var(--ink);
}

.route__stop[aria-current="step"] .route__name {
  color: var(--ink);
  font-weight: 700;
}

/* 段階の外 1：パスワードを決めるときは、本線の上の枝にいる。枝は「IDとパスワード」へ降りる */
.route--branch {
  --above: 3.5rem;
}

.route--branch::after {
  top: calc(var(--r) - 2.5px); /* これまでの線は、枝の上を通って今の印まで */
}

.route__stop--branch {
  position: absolute;
  top: 0;
  left: 0;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.route__stop--branch .route__name {
  max-width: none;
  margin-top: 0;
}

.route__stop--branch::after {
  content: "";
  position: absolute;
  left: calc(var(--r) - 1.5px);
  top: calc(var(--r) + 19px);
  width: 3px;
  height: calc(var(--above) - 19px - 8px);
  background: repeating-linear-gradient(to bottom, var(--future) 0 5px, transparent 5px 9px);
}

/* 段階の外 2：ロックしたときは、線が止まる。今の印は青銅と光を失い、次の段階との間に臙脂の止めが立つ */
.route--stopped {
  --above: 1.75rem;
}

.route--stopped .route__stop[aria-current="step"] .route__mark::before {
  background: var(--mark-off);
  box-shadow: none;
}

.route__gate {
  position: absolute;
  left: 50%;
  top: calc(var(--y) - 15px - 1.5rem);
  transform: translateX(-50%);
  color: var(--enji);
  font-size: var(--text-s);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.route--stopped .route__stop--start::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(50% - 2px);
  top: calc(var(--y) - 15px);
  width: 4px;
  height: 30px;
  border-radius: 2px;
  background: var(--enji);
}

/* 段階の外 3：使えないリンクのときは、枝から降りる道に臙脂の止めが横に立つ。今の印は青銅と光を失う */
.route--blocked .route__stop--branch .route__mark::before {
  background: var(--mark-off);
  box-shadow: none;
}

.route--blocked .route__stop--branch::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--r) - 15px);
  top: calc(var(--r) + 19px + (var(--above) - 27px) / 2 - 2px);
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: var(--enji);
}

/* 動きは1か所だけ：二段階認証に進んだとき、今の印が前の段階から滑ってきて、線が実線になる */
@media (prefers-reduced-motion: no-preference) {
  .route--advance .route__stop[aria-current="step"] .route__mark {
    animation: kairos-advance 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s both;
  }

  .route--advance::after {
    animation: kairos-advance-line 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s both;
  }
}

@keyframes kairos-advance {
  from { transform: translateX(calc(2 * var(--r) - 100cqw)); }
}

@keyframes kairos-advance-line {
  from { right: calc(100% - var(--r)); }
}

/* ---------- カード（面） ---------- */
.card {
  margin-top: 1.5rem;
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 2px 0 rgb(20 48 42 / 0.14);
}

.card__head {
  padding: 1.5rem var(--pad) 1rem;
  border-bottom: 3px solid var(--ink);
}

.card__body {
  padding: 1.75rem var(--pad) 2rem;
}

.card__foot {
  padding: 1rem var(--pad) 1.25rem;
  border-top: 1px solid var(--hair);
  color: var(--moss);
}

h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.text + .text {
  margin-top: 0.75rem;
}

.card__body > .text + .actions {
  margin-top: 1.5rem;
}

.card__body > .actions + .text {
  margin-top: 1.25rem;
}

/* 補足の文（ロックは再設定で解けない、申し込めないときは管理者へ） */
.text--sub {
  color: var(--moss);
}

/* 小さな面にまとめた補足（メールが届かないとき） */
.box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem 1.125rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.box__title {
  margin-bottom: 0.25rem;
  font-size: var(--text-m);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- ロックの時間（案Cの札から）：数字を大きく、止めと同じ臙脂の縁で ---------- */
.wait {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 1.25rem 0;
  padding: 0.5rem 1.25rem 0.875rem;
  border-left: 4px solid var(--enji);
  border-radius: 4px;
  background: var(--enji-tint);
  font-weight: 700;
}

.wait__time {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.wait__num {
  font-family: var(--font-num);
  font-size: var(--text-num);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
}

.wait__unit {
  font-size: var(--text-xl);
  line-height: 1;
}

/* ---------- フォーム（allauth/elements/form.html・fields.html・field.html） ---------- */
.form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field__label {
  font-weight: 700;
  line-height: 1.5;
}

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--moss);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-l);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.input:hover {
  border-color: var(--ink);
}

.input:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

/* 読むだけの欄（パスワードの設定のID）：枠を消して、決まった値として読ませる */
.input[readonly] {
  min-height: 0;
  padding: 0.125rem 0 0;
  border-color: transparent;
  background: transparent;
}

/* 欄ごとのまちがい（パスワードの決まりに合わないときなど。モックには出していない） */
.input[aria-invalid="true"] {
  border-color: var(--enji);
  box-shadow: inset 4px 0 0 var(--enji);
}

.field__error {
  color: var(--enji);
  font-weight: 700;
  line-height: 1.6;
}

/* 欄の下の補足（登録しているアドレスが分からないとき） */
.field__hint {
  color: var(--moss);
  line-height: 1.6;
}

/* 認証アプリのコード（6桁）・回復コード（8桁）：桁のそろう数字の書体 */
.input--code {
  max-width: 14rem;
  font-family: var(--font-num);
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

/* パスワードを表示する */
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  justify-self: start;
  min-height: 2.75rem;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.hint {
  margin-top: -0.75rem;
  color: var(--moss);
}

/* まちがいの知らせ（allauth/elements/alert.html と、フォーム全体のまちがい） */
.alert {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--enji);
  border-radius: 4px;
  background: var(--enji-tint);
  color: var(--enji);
  font-weight: 700;
}

/* パスワードの決まり */
.rules {
  padding: 1rem 1.25rem 1.125rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.rules__title {
  font-size: var(--text-m);
  font-weight: 700;
  line-height: 1.5;
}

.rules__list {
  margin-top: 0.5rem;
  padding: 0;
  list-style: none;
}

.rules__list li {
  position: relative;
  padding-left: 1.25rem;
}

.rules__list li + li {
  margin-top: 0.25rem;
}

/* 印は短い横線（順番のない並びなので番号は付けない） */
.rules__list li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: calc(0.875em - 1px);
  width: 0.625rem;
  height: 2px;
  background: var(--ink);
}

.rules + .text {
  margin-top: -0.25rem;
}

/* パスキーを使えないときの入れ方：小さな面にまとめて、主な操作と分ける */
.fallback {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.fallback .form {
  gap: 1rem;
}

/* ---------- ボタン（allauth/elements/button.html） ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.625rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  width: 100%;
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}

.button--primary:hover {
  border-color: var(--ink-hover);
  background: var(--ink-hover);
}

.button--large {
  min-height: 3.75rem;
  font-size: var(--text-l);
}

.button--secondary {
  min-width: 9rem;
  min-height: 3rem;
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--tint);
}

.button--text {
  min-height: 2.75rem;
  padding: 0.25rem 0;
  border: 0;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.button--text:hover {
  text-decoration-thickness: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.form > .button--primary {
  margin-top: 0.25rem;
}

/* ---------- フォーカス：深い青銅の輪（キーボードの「今」） ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 30rem) {
  :root {
    --pad: 1.25rem;
    --gutter: 0.75rem;
    --logo-h: 24px;
  }

  .brand {
    margin-bottom: 2rem;
  }

  .card__head {
    padding-top: 1.25rem;
  }

  .card__body {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .fallback {
    padding: 1rem;
  }

  .wait {
    padding-inline: 1rem;
  }
}

/* 背の低いPCの画面（1366×768のノートPCなど）：上の余白を詰め、ログインのボタンを最初の画面に収める（案Dから） */
@media (min-width: 48rem) and (max-height: 50rem) {
  .entrance {
    padding-top: 1.5rem;
  }

  .brand {
    margin-bottom: 1.75rem;
  }

  .card {
    margin-top: 1.25rem;
  }
}

/* 広い画面では、時の線を画面の端に向かって薄れさせる（時は前にも後ろにも続いている） */
@media (min-width: 48rem) {
  .band {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 calc(50% - 30rem), #000 calc(50% + 30rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 calc(50% - 30rem), #000 calc(50% + 30rem), transparent 100%);
  }
}

/* ---------- 強制カラー（Windowsのハイコントラスト） ---------- */
@media (forced-colors: active) {
  .route::after,
  .route--stopped .route__stop--start::after {
    background: CanvasText;
  }

  .route::before {
    background: repeating-linear-gradient(to right, GrayText 0 8px, transparent 8px 14px);
  }

  .route__mark::before {
    border-color: GrayText;
  }

  .route__stop.is-done .route__mark::before {
    background: CanvasText;
  }

  .route__stop.is-done .route__mark::after {
    border-color: Canvas;
  }

  .route__stop[aria-current="step"] .route__mark::before {
    border-color: Highlight;
    background: Highlight;
  }

  .card,
  .rules,
  .fallback,
  .box,
  .alert,
  .wait {
    border: 1px solid CanvasText;
  }

  .route--blocked .route__stop--branch::before {
    background: CanvasText;
  }
}


/* ===================================================================
   allauth の画面・ログインしたあとの画面（実装で足したもの）
   =================================================================== */

/* allauth の部品（要素のテンプレート）で組む画面：見出しの帯と中身を1つの流れで並べる */
.card__flow {
  padding-bottom: 2rem;
}

.card__flow > * {
  margin-inline: var(--pad);
}

.card__flow > .card__head {
  margin: 0 0 1.75rem;
}

.card__flow > * + * {
  margin-top: 1.25rem;
}

.card__flow > .card__head + * {
  margin-top: 0;
}

.section-title {
  font-size: var(--text-l);
  font-weight: 700;
  line-height: 1.5;
}

.divider {
  height: 0;
  border: 0;
  border-top: 1px solid var(--hair);
}

/* 欄が縦に長いとき（回復コードの一覧など） */
textarea.input {
  min-height: 9rem;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.field__hint ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

/* 知らせ（Django のメッセージ・パスワードの期限）。まちがいの知らせ（.alert）と分ける */
.messages {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.card__flow > .messages {
  margin-bottom: 0;
}

.notice {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--ink);
  border-radius: 4px;
  background: var(--tint);
}

.notice--error {
  border-left-color: var(--enji);
  background: var(--enji-tint);
  color: var(--enji);
  font-weight: 700;
}

/* 表（allauth のパスキーの一覧など） */
.card table {
  width: 100%;
  border-collapse: collapse;
}

.card th,
.card td {
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

/* ---------- ログインしたあとの画面：上の帯と中身の列 ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(64rem, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem 0 0.5rem;
}

.topbar__logo {
  display: block;
  height: var(--logo-h);
}

.topbar__logo img {
  display: block;
  height: 100%;
  width: auto;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__user {
  color: var(--moss);
}

.topbar__nav .button--text {
  min-height: 2.5rem;
}

.page {
  width: min(var(--col), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.page--wide {
  width: min(64rem, 100% - 2 * var(--gutter));
}

.page > .notice {
  margin-top: 1rem;
}

/* 小さな面を並べる（二段階認証の登録の案内：パスキーと認証アプリ） */
.card__body > .text + .box,
.box + .box {
  margin-top: 1rem;
}

.box .actions,
.actions--after-text {
  margin-top: 1rem;
}

.box .button--primary {
  width: auto;
}

.setup-note {
  margin-top: 1.25rem;
}

/* ---------- パスワードの欄の目のボタン（kairos/password_toggle.html） ---------- */
.password {
  position: relative;
}

.password .input {
  padding-right: 3.5rem;
}

.password__toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: none;
  color: var(--moss);
  cursor: pointer;
}

.password__toggle:hover {
  color: var(--ink);
}

.password__toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.password__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.password__toggle[aria-pressed="true"] .password__icon--show,
.password__toggle:not([aria-pressed="true"]) .password__icon--hide {
  display: none;
}

/* Edge が自分で出す目のボタンは隠す（二重にならないように） */
.password input::-ms-reveal,
.password input::-ms-clear {
  display: none;
}
