/* ほかの言語の版(/en/・/zh/・/zh-hans/・/ko/・/es/・/pt/・/fr/・/de/)。.cjk は中国語・韓国語。日本語版の style.css の色と紙の地をそのまま使い、和の印(縦書きの題名・落款・漢字一字)を足す */
.en { --en-serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.lang-zh { --en-serif: "Noto Serif TC", "PingFang TC", "Songti TC", serif; }
.lang-zh-hans { --en-serif: "Noto Serif SC", "PingFang SC", "Songti SC", serif; }
.lang-ko { --en-serif: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", serif; }
.en-main { max-width: 680px; margin: 0 auto; padding: 0 20px 48px; }
.en-bar .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--en-serif); font-size: 1.15rem; letter-spacing: .02em; }
.cjk .en-bar .brand { letter-spacing: .2em; }
.en-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #fff; font-family: var(--display); font-size: 1.05rem; border-radius: 3px; }
.en-bar nav a { font-family: var(--en-serif); font-size: .98rem; min-height: 44px; display: inline-flex; align-items: center; }

/* トップ */
.en-hero { padding: 40px 0 18px; border-bottom: 1px solid var(--line); }
.en-kicker { font-family: var(--en-serif); font-style: italic; color: var(--accent); margin: 0 0 10px; letter-spacing: .02em; }
.cjk .en-kicker { font-style: normal; letter-spacing: .12em; }
.en-h1 { font-family: var(--en-serif); font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.cjk .en-h1 { line-height: 1.45; letter-spacing: .06em; }
.en-lede { font-family: var(--en-serif); font-size: 1.12rem; line-height: 1.7; color: var(--muted); margin: 0; }
.en-today { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 8px; }
@media (max-width: 560px) { .en-today { grid-template-columns: 1fr; } }
.en-season, .en-word { background: var(--paper); border: 1px solid var(--line); padding: 18px 18px 16px; position: relative; overflow: hidden; }
.en-season::after { content: ""; position: absolute; right: -18px; top: -18px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.en-label { font-family: var(--en-serif); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.en-season-k, .en-word-k { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1.1; margin: 0 0 6px; color: var(--ink); letter-spacing: .08em; }
.en-season-n, .en-word-r { font-family: var(--en-serif); font-size: 1.08rem; margin: 0 0 6px; }
.en-season-n span { color: var(--muted); font-style: italic; }
.en-season-t, .en-word-m { font-family: var(--en-serif); font-size: 1.02rem; line-height: 1.6; margin: 0 0 6px; color: var(--ink); }
.en-small { font-family: var(--en-serif); font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.en-sec { font-family: var(--en-serif); font-weight: 600; font-size: 1.3rem; margin: 34px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.en-sec::before { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex: none; position: relative; top: -2px; }
.en-sec small { font-weight: 400; color: var(--muted); font-size: .95rem; }

/* 話のカード:左に漢字一字 */
.en-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.en-card { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.en-card:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.en-kanji { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--cat, var(--accent)); color: var(--cat, var(--accent)); font-family: var(--display); font-weight: 700; font-size: 1.6rem; border-radius: 2px; }
.en-card-b { display: grid; gap: 3px; min-width: 0; }
.en-meta { font-family: var(--en-serif); font-size: .85rem; color: var(--muted); letter-spacing: .03em; }
.en-card b { font-family: var(--en-serif); font-weight: 600; font-size: 1.22rem; line-height: 1.3; }
.en-jt { font-family: var(--display); font-size: .82rem; color: var(--muted); letter-spacing: .12em; }
.en-sum { font-family: var(--en-serif); font-size: 1rem; line-height: 1.55; color: var(--ink); opacity: .85; }

/* 話の本文 */
.en-story { padding-top: 26px; }
.en-story-meta { font-family: var(--en-serif); font-size: .9rem; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; text-align: center; }
.en-title { display: flex; justify-content: center; align-items: flex-start; gap: 18px; margin: 0 0 22px; }
.en-title-ja { writing-mode: vertical-rl; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .25em; color: var(--cat, var(--accent)); border-left: 1px solid var(--line); padding-left: 10px; max-height: 12em; }
.en-title h1 { font-family: var(--en-serif); font-weight: 400; font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1.2; margin: 6px 0 0; max-width: 14em; }
.cjk .en-title h1 { letter-spacing: .08em; line-height: 1.4; }
.en-tools { display: flex; justify-content: center; margin: 0 0 26px; }
.en-tool { font-family: var(--en-serif); font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.en-tool[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.en-tool span[lang="ja"] { font-family: var(--display); }
.en-body p { font-family: var(--en-serif); font-size: 1.2rem; line-height: 1.75; margin: 0 0 1em; color: var(--ink); }
.cjk .en-body p { font-size: 1.12rem; line-height: 2; letter-spacing: .04em; text-align: justify; }
.en-body p.sep { text-align: center; color: var(--muted); }
.en-body .ja { display: none; }
.with-ja .en-body .ja { display: block; margin: .35em 0 0; padding-left: 12px; border-left: 2px solid var(--accent-soft); font-family: var(--serif); font-size: .92rem; line-height: 1.9; color: var(--muted); letter-spacing: .03em; }

/* 押すと説明が出る日本語 */
.gl { font: inherit; font-style: italic; color: inherit; background: none; border: 0; padding: 0; border-bottom: 1px dotted var(--accent); cursor: pointer; position: relative; }
.cjk .gl { font-style: normal; }
.gl-tip { display: none; position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); background: var(--ink); color: var(--paper); font-family: var(--en-serif); font-style: normal; font-size: 1rem; line-height: 1.5; padding: 12px 16px; border-radius: 6px; z-index: 50; text-align: left; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.gl[aria-expanded="true"] .gl-tip { display: block; }

/* 落款(おわりの朱印) */
.en-hanko { width: 64px; height: 64px; margin: 34px auto 26px; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .1em; writing-mode: vertical-rl; border-radius: 4px; transform: rotate(-4deg); opacity: .9; }
.en-after { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.en-after .x-btn { margin: 0; }
.en-next { margin: 36px 0 0; border-top: 1px solid var(--line); padding-top: 18px; text-align: right; }
.en-next a { font-family: var(--en-serif); font-size: 1.15rem; color: var(--ink); text-decoration: none; display: inline-grid; gap: 2px; }
.en-next small { color: var(--muted); font-size: .85rem; }
.en-about h1 { font-family: var(--en-serif); font-weight: 400; font-size: 2rem; }
.en-about h2 { font-family: var(--en-serif); font-weight: 600; font-size: 1.2rem; margin-top: 28px; }
.en-about p { font-family: var(--en-serif); font-size: 1.1rem; line-height: 1.75; }

.en-foot { max-width: 680px; margin: 0 auto; padding: 30px 20px 50px; font-family: var(--en-serif); font-size: .95rem; line-height: 1.65; color: var(--muted); text-align: center; }
.en-foot a { color: var(--ink); }
.en-seal { display: inline-block; writing-mode: vertical-rl; border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--display); font-weight: 700; padding: 8px 4px; letter-spacing: .15em; border-radius: 3px; margin: 0 0 12px; }

/* 日本語版から英語版へ */
.to-en { text-align: center; margin: -6px 0 18px; font-size: .92rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.to-en a { font-family: "EB Garamond", Georgia, serif; color: var(--muted); }
.to-en a[lang="zh-Hant"] { font-family: "Noto Serif TC", serif; }
.to-en a[lang="zh-Hans"] { font-family: "Noto Serif SC", serif; }
.to-en a[lang="ko"] { font-family: "Noto Serif KR", serif; }

/* 英語版は浮き上がる動きをなくす(固定表示の説明の帯が、動いている間ずれないように) */
.en .en-main { animation: none; }

/* ふりがな(日本語の原文を出しているときだけ、ふりがなの切り替えを見せる) */
.en-tools { gap: 8px; flex-wrap: wrap; }
.furi-only { display: none; }
.with-ja .furi-only { display: inline-flex; }
.en-body .ja ruby rt { font-size: .58em; color: var(--muted); letter-spacing: 0; }
.no-furi .en-body .ja rt { display: none; }
.with-ja .en-body .ja { line-height: 2.2; }
.en-level { text-align: center; margin: -10px 0 14px; font-family: var(--en-serif); font-size: .88rem; color: var(--muted); }
.en-level span[lang="ja"] { font-family: var(--display); color: var(--accent); margin-right: 4px; }
.en-lv { color: var(--accent); }

/* ===== 和の作り(藍・朱・生成り。暖簾・紋・青海波・縦書き・朱印) ===== */
.en {
  --ai: #1f3552;            /* 藍色 */
  --ai-deep: #15263d;
  --shu: #c0392b;           /* 朱色 */
  --kinari: #f6f0e3;        /* 生成り */
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%231f3552' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M0 20a20 20 0 0 1 40 0M5 20a15 15 0 0 1 30 0M10 20a10 10 0 0 1 20 0M15 20a5 5 0 0 1 10 0'/%3E%3Cpath d='M-20 10a20 20 0 0 1 40 0M-15 10a15 15 0 0 1 30 0M-10 10a10 10 0 0 1 20 0M-5 10a5 5 0 0 1 10 0M20 10a20 20 0 0 1 40 0M25 10a15 15 0 0 1 30 0M30 10a10 10 0 0 1 20 0M35 10a5 5 0 0 1 10 0'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .en { --ai: #8fb0d6; --ai-deep: #0d1826; --shu: #e0765c; } }
:root[data-theme="dark"] .en { --ai: #8fb0d6; --ai-deep: #0d1826; --shu: #e0765c; }

/* 暖簾:藍の帯に白抜きの紋。下の端に切れ目 */
.en .en-bar { background: var(--ai-deep); color: #f6f0e3; border-bottom: 0; position: sticky; top: 0; z-index: 20; }
.en .en-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background:
  linear-gradient(90deg, var(--ai-deep) 0 32%, transparent 32% 33.5%, var(--ai-deep) 33.5% 66%, transparent 66% 67.5%, var(--ai-deep) 67.5%); }
.en .en-bar .brand, .en .en-bar nav a { color: #f6f0e3; }
.en .en-bar nav a { opacity: .85; border-bottom-color: transparent; }
.en .en-bar nav a:hover { opacity: 1; }
.en-mark { width: 34px; height: 34px; border-radius: 50%; background: none; border: 1.5px solid #f6f0e3; color: #f6f0e3; font-size: 1.05rem; }

/* トップ:縦書きの「しずく文庫」と英語を並べる */
.en-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 44px 0 26px; border-bottom: 0; position: relative; }
.en-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: var(--seigaiha); }
.en-hero-v { writing-mode: vertical-rl; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: .18em; color: var(--ai); line-height: 1; margin: 0; padding-left: 14px; border-left: 2px solid var(--shu); }
.en-hero-v small { display: block; font-size: .32em; letter-spacing: .5em; color: var(--shu); margin-top: .8em; }
.en-hero .en-kicker { color: var(--shu); }
.en-hero .en-h1 { color: var(--ai); }
.en-hero-b { padding-bottom: 26px; }

/* 季節と今日の日本語:和紙の札。季節の札には青海波 */
.en-season, .en-word { border: 1px solid color-mix(in srgb, var(--ai) 25%, transparent); border-radius: 2px; box-shadow: 0 1px 0 color-mix(in srgb, var(--ai) 10%, transparent); }
.en-season { background: linear-gradient(var(--paper), var(--paper)) padding-box; }
.en-season::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; width: auto; border-radius: 0; background: var(--seigaiha); opacity: .9; top: auto; right: 0; }
.en-season-k, .en-word-k { color: var(--ai); }
.en-word { border-top: 3px solid var(--shu); }
.en-label { color: var(--shu); }

/* 見出し:朱の菱を「〆」のような小さな朱印に */
.en-sec::before { width: 14px; height: 14px; transform: none; border-radius: 50%; background: var(--shu); }
.en-sec { color: var(--ai); }

/* 一覧:漢字一字を朱印に */
.en-kanji { border-radius: 50%; border: 2px solid var(--shu); color: var(--shu); background: color-mix(in srgb, var(--shu) 6%, transparent); width: 50px; height: 50px; font-size: 1.45rem; transform: rotate(-6deg); }
.en-card b { color: var(--ai); }

/* 話:縦書きの題名を藍、区切りに青海波 */
.en-title-ja { color: var(--ai); border-left-color: var(--shu); }
.en-title h1 { color: var(--ai); }
.en-story-meta { color: var(--shu); }
.en-body p.sep { height: 20px; background: var(--seigaiha); color: transparent; margin: 1.6em 20%; }
.en-hanko { border-color: var(--shu); color: var(--shu); background: color-mix(in srgb, var(--shu) 6%, transparent); }
.en-tool[aria-pressed="true"] { border-color: var(--shu); color: var(--shu); }

/* 足もと:藍の地に紋 */
.en-foot { max-width: none; background: var(--ai-deep); color: #d9d2c3; margin-top: 30px; position: relative; padding-top: 44px; }
.en-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; background: var(--seigaiha); filter: invert(1); opacity: .5; }
.en-foot p { max-width: 640px; margin-left: auto; margin-right: auto; }
.en-foot a { color: #f6f0e3; }
.en-seal { border-color: #f6f0e3; color: #f6f0e3; }

@media (max-width: 480px) { .en-hero .en-h1 { font-size: 1.62rem; } .en-hero .en-kicker { font-size: .92rem; } .en-hero { gap: 14px; } }

/* 韓国語:言葉の途中で折り返さない。字間は詰める */
.lang-ko .en-body p, .lang-ko .en-sum, .lang-ko .en-card b, .lang-ko .en-title h1, .lang-ko .en-h1, .lang-ko .en-lede, .lang-ko .en-about p, .lang-ko .en-season-t, .lang-ko .en-word-m { word-break: keep-all; }
.lang-ko .en-body p { letter-spacing: 0; text-align: left; }
.lang-ko .en-h1, .lang-ko .en-title h1 { letter-spacing: .02em; }

/* AI の訳・ネイティブ未確認の一文(控えめに) */
.ai-note { font-family: var(--en-serif); font-size: .82rem; line-height: 1.6; color: var(--muted); text-align: center; margin: -10px auto 22px; max-width: 32em; }
.en-about .ai-note { font-size: .88rem; text-align: left; margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); max-width: none; }

/* 言語を選ぶメニュー(上の帯の右) */
.lang-menu { position: relative; display: inline-flex; align-items: center; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 8px; color: #f6f0e3; opacity: .85; font-family: var(--en-serif); font-size: .78rem; letter-spacing: .08em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.lang-menu[open] summary, .lang-menu summary:hover { opacity: 1; }
.lang-menu summary:focus-visible { outline: 1px solid var(--kin, currentColor); outline-offset: 2px; }
.lang-menu ul { position: absolute; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 6px 0; list-style: none; min-width: 168px; max-width: calc(100vw - 24px); background: var(--night, #15130f); border: 1px solid color-mix(in srgb, var(--kin, #a1834f) 55%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.en .en-bar nav .lang-menu a { display: flex; min-height: 40px; padding: 0 18px; align-items: center; text-transform: none; letter-spacing: .04em; font-size: .95rem; color: #efe7d6; opacity: .9; border: 0; white-space: nowrap; }
.en .en-bar nav .lang-menu a:hover { opacity: 1; background: rgba(255,255,255,.06); }
.en .en-bar nav .lang-menu a[aria-current] { color: var(--kin, #c9a96b); opacity: 1; }
.en .en-bar nav .lang-menu a[aria-current]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 9px 0 -14px; }
.lang-menu a[lang="ja"] { font-family: var(--display); }
.lang-menu a[lang="zh-Hant"] { font-family: "Noto Serif TC", serif; }
.lang-menu a[lang="zh-Hans"] { font-family: "Noto Serif SC", serif; }
.lang-menu a[lang="ko"] { font-family: "Noto Serif KR", serif; }
@media (max-width: 600px) { .lang-menu ul { position: fixed; right: 12px; top: auto; } }

/* 翻訳のまちがいを知らせる(小さく) */
.tr-report { margin: 22px 0 0; text-align: center; }
.tr-open { font: inherit; font-size: .82rem; color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.tr-form { max-width: 520px; margin: 8px auto 0; text-align: left; }
.tr-hint, .tr-msg { font-size: .85rem; color: var(--muted); margin: 6px 0; }
.tr-quote { font-size: .92rem; margin: 6px 0; }
.tr-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 0; }
.tr-form button { margin-top: 8px; }
