/* ==========================================================
   AKANUKELAB 垢抜けストーリー発表アプリ
   上品で垢抜けたテイスト（ベージュ×ボルドー×ゴールド）
   ========================================================== */

:root{
  /* カラー：上品×柔らか＝"垢抜け"の象徴色 */
  --bg: #faf7f2;
  --bg-soft: #f3ede3;
  --ink: #2b2420;
  --ink-soft: #6b5f57;
  --ink-mute: #9a8e85;
  --line: #e6dccf;
  --line-strong: #d9ccb9;
  --white: #ffffff;

  --accent: #8b2e3f;          /* ボルドー */
  --accent-dark: #6a2230;
  --accent-soft: #f4e3e6;
  --gold: #b99360;            /* シャンパンゴールド */
  --gold-soft: #f0e5d3;

  --shadow-sm: 0 2px 8px rgba(43,36,32,.06);
  --shadow-md: 0 8px 24px rgba(43,36,32,.08);
  --shadow-lg: 0 20px 60px rgba(43,36,32,.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --f-serif: "Noto Serif JP", "Cormorant Garamond", serif;
  --f-sans:  "Noto Sans JP", system-ui, sans-serif;

  --maxw: 780px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, #f7ece0 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 20%, #efe3d4 0%, transparent 60%);
}
button{font-family: inherit;}

/* ========== ヘッダー ========== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(250,247,242,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: 1100px; margin: 0 auto;
  padding: 14px 22px;
  display:flex; align-items:center; justify-content: space-between;
}
.logo{display:flex; align-items:center; gap:12px; text-decoration:none; color: var(--ink);}
.logo-mark{
  width:40px;height:40px;border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  display:grid; place-items:center;
  font-family: var(--f-serif); font-weight:700; font-size:20px;
  box-shadow: var(--shadow-sm);
}
.logo-text{display:flex; flex-direction: column; line-height:1.1;}
.logo-brand{font-family: var(--f-serif); font-weight:700; font-size:18px; letter-spacing:.08em;}
.logo-sub{font-size:11px; color: var(--ink-mute); margin-top:2px;}

.header-nav{display:flex; gap:6px;}
.nav-link{
  background: transparent; border:1px solid transparent;
  padding: 8px 12px; border-radius: 999px; cursor:pointer;
  color: var(--ink-soft); font-size: 13px;
  display:inline-flex; align-items:center; gap:6px;
  transition: all .2s;
}
.nav-link:hover{background: var(--bg-soft); color: var(--accent); border-color: var(--line);}
@media (max-width: 520px){
  .nav-link span{display:none;}
  .logo-sub{display:none;}
}

/* ========== メイン／ステップ ========== */
main#app{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 22px 120px;
}
.step{
  animation: fadeUp .45s ease both;
}
.step[hidden]{display:none;}
@keyframes fadeUp{
  from{opacity:0; transform: translateY(12px);}
  to{opacity:1; transform: translateY(0);}
}

/* ========== イントロ ========== */
.step-intro{padding-top: 32px;}
.intro-wrap{text-align:center;}
.eyebrow{
  font-family: var(--f-serif);
  letter-spacing: .3em;
  color: var(--gold);
  font-size: 12px; margin: 0 0 18px;
}
.intro-title{
  font-family: var(--f-serif);
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700; line-height: 1.35;
  margin: 0 0 24px;
  letter-spacing: .04em;
}
.intro-title em{font-style: normal; color: var(--accent);}
.intro-title .accent{
  position: relative;
  background: linear-gradient(180deg, transparent 60%, var(--gold-soft) 60%);
  padding: 0 4px;
}
.intro-lead{
  color: var(--ink-soft); font-size: 15px;
  margin: 0 auto 36px; max-width: 560px;
}
.intro-meta{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px; margin: 0 auto 36px;
}
.meta-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  box-shadow: var(--shadow-sm);
}
.meta-card i{color: var(--accent); font-size: 18px;}
.meta-label{font-size: 11px; color: var(--ink-mute); margin:0; letter-spacing:.1em;}
.meta-value{font-size: 13px; font-weight: 600; margin:0;}
@media (max-width: 520px){
  .intro-meta{grid-template-columns: 1fr; max-width: 320px;}
  .meta-card{flex-direction: row; justify-content: center; padding: 12px 16px;}
}
.intro-note{
  margin-top: 32px;
  font-size: 12px; color: var(--ink-mute);
}
.intro-note i{color: var(--gold); margin-right:4px;}
.pc-only{display:inline;}
@media (max-width: 640px){.pc-only{display:none;}}

/* ========== ステッパー ========== */
.stepper{
  max-width: var(--maxw);
  margin: 0 auto 28px;
  padding: 0 22px;
}
.stepper-list{
  list-style:none; padding:0; margin:0 0 12px;
  display:flex; justify-content: space-between; gap: 4px;
  overflow-x: auto;
}
.stepper-list li{
  flex: 1 1 0; min-width: 42px;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  color: var(--ink-mute);
  font-size: 10px;
  transition: color .3s;
}
.stepper-list .num{
  width:28px;height:28px;border-radius:50%;
  background: var(--white); border:1px solid var(--line-strong);
  display:grid; place-items:center; font-size:12px; font-weight:600;
  transition: all .3s;
}
.stepper-list li.done .num{background: var(--gold); color: var(--white); border-color: var(--gold);}
.stepper-list li.done{color: var(--gold);}
.stepper-list li.current .num{
  background: var(--accent); color: var(--white); border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.stepper-list li.current{color: var(--accent); font-weight:600;}
.stepper-list .label{white-space: nowrap; letter-spacing:.05em;}
@media (max-width: 520px){
  .stepper-list .label{display:none;}
}
.stepper-bar{
  height: 3px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.stepper-bar-fill{
  height:100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width .5s ease;
}

/* ========== フォーム ========== */
.story-form{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.step-form, .step-output{padding: 0;}

.step-head{margin-bottom: 28px; border-bottom: 1px dashed var(--line); padding-bottom: 22px;}
.step-badge{
  display:inline-block;
  font-family: var(--f-serif);
  letter-spacing: .2em;
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  margin: 0 0 8px;
}
.step-title{
  font-family: var(--f-serif);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700; margin: 0 0 8px;
  letter-spacing: .03em;
}
.step-desc{color: var(--ink-soft); margin:0; font-size: 14px;}

.field{margin-bottom: 22px;}
.field-row{display:grid; grid-template-columns: 1fr 1fr; gap:16px;}
@media (max-width: 520px){.field-row{grid-template-columns: 1fr;}}

.field-label{
  display:block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
}
.req{
  display:inline-block;
  font-size: 10px; font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px; border-radius: 999px;
  margin-left: 6px; letter-spacing:.05em;
}
.field-hint{
  margin: 6px 0 0;
  font-size: 12px; color: var(--ink-mute);
}
.field-hint i{color: var(--gold); margin-right:4px;}

.input, .textarea{
  width:100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 15px; font-family: inherit;
  color: var(--ink);
  transition: all .2s;
  line-height: 1.7;
}
.textarea{resize: vertical; min-height: 96px;}
.input:focus, .textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input.error, .textarea.error{
  border-color: #c0392b; background: #fdf3f2;
}
select.input{appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238b2e3f' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.counter{
  text-align: right;
  font-size: 11px; color: var(--ink-mute);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.counter.over span{color: #c0392b; font-weight: 700;}

/* チップ群 */
.chip-group{display:flex; flex-wrap:wrap; gap:8px; padding: 4px; border-radius: var(--radius-md); transition: background .2s;}
.chip-group.error-group{
  background: #fdf3f2;
  outline: 2px solid #c0392b;
  outline-offset: 2px;
  animation: shake .3s;
}
@keyframes shake{
  0%,100%{transform: translateX(0);}
  25%{transform: translateX(-4px);}
  75%{transform: translateX(4px);}
}
.chip{
  position: relative; cursor: pointer;
  display:inline-flex; align-items:center;
  padding: 9px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  transition: all .18s;
  user-select: none;
}
.chip input{position: absolute; opacity: 0; pointer-events: none;}
.chip:hover{border-color: var(--gold); color: var(--accent);}
.chip:has(input:checked){
  background: var(--accent); color: var(--white); border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(139,46,63,.25);
}

/* ========== 「その他」入力欄 ========== */
.chip-other span i{margin-right:6px; font-size:11px;}
.other-input-wrap{
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent);
  animation: fadeUp .25s ease;
}
.other-input-wrap[hidden]{display:none;}
.other-input-wrap .input{background: var(--white);}

/* ========== 小チップ（年数選択など） ========== */
.chip-group-sm{margin-bottom: 14px;}
.chip-sm{padding: 7px 14px; font-size: 12px;}

/* ========== はい/いいえ チップ ========== */
.chip-yesno{
  flex: 1 1 0;
  min-width: 140px;
  padding: 14px 20px;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.chip-yesno span{display:inline-flex; align-items:center; gap:8px;}
.chip-yesno span i{font-size: 16px; color: var(--ink-mute); transition: color .18s;}
.chip-yesno:has(input:checked) span i{color: var(--white);}
.chip-yesno:hover span i{color: var(--accent);}

/* ========== フィールドグループ（01/02番号付き） ========== */
.field-grouped{
  background: linear-gradient(180deg, #fdfaf4 0%, #faf4ea 100%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
}
.field-group-head{
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
}
.group-number{
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--f-serif);
  font-weight: 700; font-size: 14px;
  letter-spacing: .05em;
  box-shadow: var(--shadow-sm);
}

/* ========================================================
   垢抜けレベル スライダー（リデザイン版 v2）
   - :has() を使わず data-variant 属性で分岐
   - シンプルで確実なスタイル
   ======================================================== */

/* カード */
.level-row{
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(43,36,32,.05);
  transition: border-color .2s, box-shadow .2s;
}
.level-row:hover{
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(139,46,63,.08);
}
.level-row[data-variant="after"]{
  background: linear-gradient(180deg, #fffaf3 0%, #fdf4ea 100%);
  border-color: var(--gold-soft);
}

/* ラベル行 */
.level-label{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* タグ（入学前 / 現在） */
.level-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
}
.level-tag-before{
  background: #ece4d8;
  color: #8a7258;
}
.level-tag-after{
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(139,46,63,.25);
}

/* 数値表示 */
.level-value-wrap{
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.level-value{
  font-family: var(--f-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: right;
  color: var(--accent);
  letter-spacing: -.01em;
}
.level-row[data-variant="before"] .level-value{
  color: #8a7258;
}
.level-unit{
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ===== スライダーラッパー ===== */
.level-slider-wrap{
  position: relative;
  padding: 8px 0;
}

/* スライダー本体（共通・透明化） */
.level-slider{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: block;
}

/* ---------- WebKit（Chrome/Safari/Edge） ---------- */
/* トラック（下地） */
.level-slider::-webkit-slider-runnable-track{
  height: 10px;
  border-radius: 999px;
  background: #ece4d8;
  border: 1px solid var(--line);
}
.level-slider[data-variant="after"]::-webkit-slider-runnable-track{
  background: #f4e3e6;
  border-color: var(--accent-soft);
}
/* 進捗バー（linear-gradient で埋めていく） */
.level-slider[data-variant="before"]::-webkit-slider-runnable-track{
  background:
    linear-gradient(90deg, #8a7258 0%, #6b5f57 var(--pct, 0%), transparent var(--pct, 0%)),
    #ece4d8;
}
.level-slider[data-variant="after"]::-webkit-slider-runnable-track{
  background:
    linear-gradient(90deg, #d4a857 0%, var(--accent) var(--pct, 0%), transparent var(--pct, 0%)),
    #f4e3e6;
}
/* サム（つまみ） */
.level-slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(139,46,63,.3);
  transition: transform .15s;
}
.level-slider[data-variant="before"]::-webkit-slider-thumb{
  border-color: #8a7258;
  box-shadow: 0 3px 10px rgba(107,95,87,.3);
}
.level-slider::-webkit-slider-thumb:hover{
  transform: scale(1.15);
}
.level-slider::-webkit-slider-thumb:active{
  transform: scale(1.25);
}

/* ---------- Firefox ---------- */
.level-slider::-moz-range-track{
  height: 10px;
  border-radius: 999px;
  background: #ece4d8;
  border: 1px solid var(--line);
}
.level-slider[data-variant="after"]::-moz-range-track{
  background: #f4e3e6;
  border-color: var(--accent-soft);
}
.level-slider::-moz-range-progress{
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a7258, #6b5f57);
}
.level-slider[data-variant="after"]::-moz-range-progress{
  background: linear-gradient(90deg, #d4a857, var(--accent));
}
.level-slider::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(139,46,63,.3);
}
.level-slider[data-variant="before"]::-moz-range-thumb{
  border-color: #8a7258;
  box-shadow: 0 3px 10px rgba(107,95,87,.3);
}

/* ===== スケール表示 ===== */
.level-scale{
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .15em;
}

/* ===== サマリー（+◯◯◯アップ！） ===== */
.level-summary{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff5e1 0%, #fce4e7 100%);
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 6px;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 2px 8px rgba(139,46,63,.08);
}
.level-summary i{
  color: var(--gold);
  font-size: 18px;
}
.level-summary b{
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 4px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* ボタン */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
  color: var(--ink);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: .05em;
}
.btn-lg{padding: 16px 36px; font-size: 15px;}
.btn-primary{
  background: var(--accent); color: var(--white); border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(139,46,63,.28);
}
.btn-primary:hover{background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(139,46,63,.35);}
.btn-ghost{background: transparent; color: var(--ink-soft); border-color: var(--line-strong);}
.btn-ghost:hover{background: var(--bg-soft); color: var(--accent); border-color: var(--accent);}
.btn-copy{
  background: var(--gold); color: var(--white); border-color: var(--gold);
  padding: 8px 16px; font-size: 13px;
}
.btn-copy:hover{background: #a38252; border-color: #a38252;}
.btn-copy.copied{background: #4caf7a; border-color: #4caf7a;}

/* フォームナビ */
.form-nav{
  display:flex; justify-content: space-between; align-items: center; gap:12px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-nav-progress{
  font-size: 12px; color: var(--ink-mute);
  font-family: var(--f-serif); letter-spacing: .2em;
}

/* ========== 出力セクション ========== */
.step-output .output-head{text-align: center; border-bottom: none;}

/* ========== 公開許可バッジ ========== */
.permission-badge{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1.5px solid;
  animation: fadeUp .4s ease;
}
.permission-badge[hidden]{display:none;}
.permission-badge i{font-size: 16px;}
.permission-yes{
  background: #e8f5ed;
  color: #2d7548;
  border-color: #4caf7a;
}
.permission-yes i{color: #4caf7a;}
.permission-no{
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.permission-no i{color: var(--ink-mute);}

.preview-card{
  background: linear-gradient(180deg, #fffaf3 0%, #faf0e0 100%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  margin: 0 0 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.preview-card::before{
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--gold); border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none; opacity: .5;
}
.preview-header{text-align:center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gold-soft);}
.preview-eyebrow{
  font-family: var(--f-serif); letter-spacing: .4em;
  color: var(--gold); font-size: 11px; margin: 0 0 10px;
}
.preview-title{
  font-family: var(--f-serif);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700; line-height: 1.45;
  margin: 0 0 12px; color: var(--accent);
}
.preview-name{font-size: 13px; color: var(--ink-soft); margin:0;}
.preview-name span{font-weight: 600; color: var(--ink);}

.preview-section{margin-bottom: 20px;}
.preview-section h4{
  font-family: var(--f-serif);
  font-size: 14px; font-weight: 600;
  margin: 0 0 8px;
  display:flex; align-items:center; gap:10px;
  color: var(--accent-dark);
  letter-spacing: .1em;
}
.preview-section h4 span{
  background: var(--accent); color: var(--white);
  font-size: 10px; padding: 3px 8px; border-radius: 4px;
  font-family: var(--f-sans);
}
.preview-section p{
  margin: 0; font-size: 14px; color: var(--ink);
  white-space: pre-wrap; line-height: 1.85;
}
.preview-footer{
  border-top: 1px dashed var(--gold);
  padding-top: 16px; margin-top: 24px;
  text-align: center;
  font-family: var(--f-serif);
  color: var(--gold);
  font-size: 14px; letter-spacing: .15em;
  font-style: italic;
}

/* タブ */
.output-tabs{
  display:flex; gap:4px;
  background: var(--bg-soft); padding:4px;
  border-radius: 999px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.tab{
  flex:1; padding: 10px 12px; border-radius: 999px;
  background: transparent; border: none; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  display:inline-flex; align-items:center; justify-content: center; gap:6px;
  transition: all .2s;
  white-space: nowrap;
}
.tab:hover{color: var(--accent);}
.tab.active{background: var(--white); color: var(--accent); font-weight: 600; box-shadow: var(--shadow-sm);}

.output-panel{animation: fadeUp .3s ease;}
.output-panel[hidden]{display:none;}
.output-panel-head{
  display:flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.panel-desc{font-size: 12px; color: var(--ink-mute); margin:0;}
.panel-desc i{color: var(--gold); margin-right: 4px;}

.output-text{
  width: 100%;
  padding: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fdfbf7;
  font-family: "SF Mono", "Menlo", "Consolas", var(--f-sans);
  font-size: 13px; line-height: 1.8;
  resize: vertical;
  color: var(--ink);
}
.output-text:focus{outline:none; border-color: var(--gold); background: var(--white);}

.output-actions{
  display:flex; justify-content: center; gap: 10px;
  margin-top: 28px; flex-wrap: wrap;
}

/* トースト */
.toast{
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white);
  padding: 12px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display:inline-flex; align-items:center; gap:8px;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: all .3s;
}
.toast i{color: var(--gold);}
.toast[hidden]{display:none;}
.toast.show{opacity:1; transform: translateX(-50%) translateY(0);}

/* フッター */
.site-footer{
  text-align: center;
  padding: 30px 22px 40px;
  font-size: 12px; color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.site-footer p{margin: 4px 0;}
.footer-sub{color: var(--ink-mute); font-size: 11px;}
