/*
 * TUTURIGACHI 2026 / 総務部
 * Copyright (C) 2026 Tuturigachi Language Solutions Corp. All Rights Reserved.
 * 一筆箋（文字で書く・ペンで書く）
 * 便箋で手紙（style.css の .t-binsen / .t-harigami）と同じ部品に、書き方のタブ、ペン、二枚重ねの一筆箋を足すもの。
 */

.t-ippitsu .t-btn:disabled {
  cursor: default; color: oklch(0.64 0.006 210); text-shadow: none; border-color: oklch(0.82 0.006 210);
  background: var(--shironezumi-50); box-shadow: none;
}
.t-ippitsu button:focus-visible, .t-ippitsu .t-btn:focus-visible { outline: 2px solid var(--fukagawa-teal-700); outline-offset: 2px; }

/* ---- 書き方のタブ ---- */

.t-ippitsu__modes {
  display: flex; gap: 4px; margin: 16px 0 0; padding: 0 0 0 2px; border-bottom: 1px solid oklch(0.78 0.008 210);
}
.t-ippitsu__mode {
  position: relative; top: 1px; min-height: 34px; padding: 0 16px; cursor: pointer;
  font: bold 12.5px/1.2 var(--font-agency-ja); letter-spacing: 0.04em; color: var(--sumi-sub); text-shadow: 0 1px 0 #fff;
  border: 1px solid oklch(0.78 0.008 210); border-radius: 3px 3px 0 0;
  background: linear-gradient(oklch(0.98 0.002 210), oklch(0.91 0.006 210));
}
.t-ippitsu__mode:hover { color: var(--fukagawa-teal-800); background: linear-gradient(#fff, var(--fukagawa-teal-100)); }
.t-ippitsu__mode[aria-selected="true"] {
  color: var(--fukagawa-teal-800); border-bottom-color: #fff; background: #fff; cursor: default;
  box-shadow: inset 0 2px 0 var(--fukagawa-teal-500);
}
.t-ippitsu__panel { padding: 14px 0 0; }
.t-ippitsu__say { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; }
.t-ippitsu__btns { display: flex; justify-content: center; gap: 8px; margin: 10px 0 0; }
@media (pointer: coarse) { .t-ippitsu__btns .t-btn { min-height: 40px; padding-left: 14px; padding-right: 14px; } }

/* ---- インク ---- */

.t-ippitsu__swatch { display: inline-block; width: 11px; height: 11px; margin: 0 4px 0 2px; vertical-align: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.2); }
.t-ippitsu__swatch--sumi { background: #1d1d1f; }
.t-ippitsu__swatch--ao { background: #25325c; }

/* ---- 一筆箋：紙と文字の下の一枚、ペンの上の一枚 ---- */

.t-ippitsu__sheet {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 82 / 182;
  box-sizing: border-box; background: #fbf8f1;
  border: 1px solid oklch(0.86 0.008 85); box-shadow: 0 1px 3px oklch(0.35 0.02 85 / 0.18), 0 0 0 4px oklch(0.96 0.004 210);
}
.t-ippitsu__base { display: block; width: 100%; height: 100%; }
.t-ippitsu__ink { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: auto; }
.t-ippitsu__ink.is-pen { cursor: crosshair; touch-action: none; }
.t-ippitsu__sheet.is-pen { box-shadow: 0 1px 3px oklch(0.35 0.02 85 / 0.18), 0 0 0 4px var(--fukagawa-teal-100); }
.t-ippitsu__note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--sumi-sub); }

@media (max-width: 760px) {
  .t-ippitsu__sheet { max-width: 360px; }
  .t-ippitsu__mode { flex: 1; padding: 0 8px; }
}

/* ---- 一筆箋の書き方と例文 ---- */

.t-ippitsu__guide { font-size: 12.5px; line-height: 1.85; }
.t-ippitsu__guide p { margin: 0 0 10px; }
.t-ippitsu__dl { margin: 0; padding: 0; }
.t-ippitsu__dl dt { margin: 10px 0 2px; font-weight: bold; color: var(--fukagawa-teal-800); }
.t-ippitsu__dl dt::before { content: "■"; margin-right: 5px; font-size: 9px; vertical-align: 1px; color: var(--kusumi-gold-600); }
.t-ippitsu__dl dd { margin: 0 0 0 15px; }
.t-ippitsu__hint { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--sumi-sub); }
.t-ippitsu__rei {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.t-ippitsu__reiitem {
  display: flex; flex-direction: column; padding: 10px 12px 11px; background: #fff;
  border: 1px solid var(--jimu-gray-300); border-top: 2px solid var(--fukagawa-teal-500); border-radius: 2px;
}
.t-ippitsu__when { margin: 0 0 6px; font-size: 12px; font-weight: bold; line-height: 1.5; color: var(--fukagawa-teal-800); }
.t-ippitsu__text { flex: 1; margin: 0 0 9px; font: 13.5px/1.9 'Hiragino Mincho ProN', 'Yu Mincho', 'MS PMincho', serif; letter-spacing: 0.03em; color: var(--sumi); }
.t-ippitsu__use { align-self: flex-start; }
@media (pointer: coarse) { .t-ippitsu__use { min-height: 40px; } }
