:root { --paper:#f8f5ef; --ink:#302d2a; --muted:#726c64; --rose:#8c4856; --rose-light:#f1e3e0; --sage:#eaf0e5; --line:#ded8cf; --white:#fffdf9; --radius:18px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; font-size:15px; line-height:1.75; }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
input,textarea,select { width:100%; border:1px solid var(--line); border-radius:9px; padding:12px 14px; background:var(--white); color:var(--ink); min-height:46px; }
textarea { resize:vertical; }
input[type=checkbox],input[type=radio] { width:18px; height:18px; min-height:18px; accent-color:var(--rose); flex-shrink:0; }
input[type=file] { font-size:13px; }
label { display:block; font-size:14px; font-weight:500; margin:14px 0 6px; }
fieldset { padding:0; border:0; margin:0; min-width:0; }
fieldset:disabled { opacity:.8; }
:focus-visible { outline:3px solid var(--rose); outline-offset:4px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { line-height:1.4; letter-spacing:-.035em; }
h1 { font-size:36px; font-weight:600; }
h2 { font-size:25px; font-weight:600; }
h3 { font-size:21px; font-weight:600; }
small,.small,.hint { font-size:12px; }
small { display:block; }
hr { border:0; border-top:1px solid var(--line); margin:24px 0; }
[hidden] { display:none!important; }
.wrap { max-width:1180px; width:calc(100% - 96px); margin:auto; }
.muted,.hint { color:var(--muted); }
.hint { margin:10px 0 16px; line-height:1.7; }
.serif { font-family:Georgia,"Songti SC",SimSun,serif; font-weight:400; }
.rose-text { color:var(--rose); }
.eyebrow { font-size:10px; font-weight:650; letter-spacing:.18em; text-transform:uppercase; margin-bottom:20px; }
.dot { display:inline-block; background:var(--rose); width:6px; height:6px; border-radius:50%; margin-right:8px; }
.site-header { display:flex; justify-content:space-between; align-items:center; padding:27px 0; border-bottom:1px solid var(--line); gap:24px; }
.brand { display:flex; align-items:center; gap:12px; font-family:Georgia,serif; font-size:25px; line-height:1.2; }
.brand-mark { border:1px solid var(--rose); color:var(--rose); height:42px; width:42px; border-radius:50%; display:grid; place-items:center; font-size:32px; padding-bottom:5px; }
.brand small { font-family:system-ui,sans-serif; font-size:8px; letter-spacing:.18em; margin-top:7px; color:var(--muted); }
.brand-icon { display:block; width:44px; height:44px; flex-shrink:0; border-radius:50%; }
.header-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:14px 24px; }
.language-switch { display:flex; align-items:center; gap:3px; border:1px solid var(--line); padding:3px; border-radius:24px; }
.language-switch a { display:grid; place-items:center; min-height:38px; padding:5px 11px; border-radius:20px; font-size:12px; white-space:nowrap; }
.language-switch a[aria-current] { background:var(--rose); color:white; }
.language-switch a:not([aria-current]):hover { background:var(--rose-light); }
html[lang=en] .hero h1 { font-size:clamp(36px,4vw,53px); line-height:1.3; letter-spacing:-.035em; }
html[lang=ja] body { font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif; }
html[lang=ja] .hero h1 { font-size:clamp(30px,3.3vw,44px); letter-spacing:-.045em; }
.locale-settings { margin:20px 0; }
.locale-settings summary { font-size:13px; }
nav { display:flex; align-items:center; gap:26px; font-size:13px; }
nav a { padding:10px 0; }
.nav-pill { padding:9px 18px; border:1px solid var(--line); border-radius:24px; }
.text-button { background:none; border:0; min-height:44px; color:var(--muted); padding:8px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:16px; min-height:46px; padding:11px 21px; border:1px solid var(--line); background:transparent; border-radius:8px; color:var(--ink); font-size:13px; font-weight:550; transition:background .18s,transform .18s; text-align:center; }
.button:hover { background:#eee8df; }
.button.primary { background:var(--rose); color:white; border-color:var(--rose); }
.button.primary:hover { background:#713845; }
.wide { width:100%; }
.quiet-link { font-size:13px; padding:12px 0; border-bottom:1px solid var(--line); }
.hero { display:grid; grid-template-columns:1.1fr 1fr; gap:45px; align-items:center; padding:70px 0 75px; min-height:600px; }
.hero h1 { font-size:clamp(38px,4.25vw,59px); line-height:1.45; letter-spacing:-.06em; margin:24px 0; font-weight:500; }
.hero-description { max-width:395px; color:var(--muted); font-size:15px; line-height:2; }
.hero-actions { display:flex; align-items:center; gap:28px; margin:32px 0 18px; }
.hero-actions .button { padding:15px 24px; }
.paper-scene { height:450px; position:relative; display:flex; align-items:center; justify-content:center; }
.paper-back { position:absolute; width:290px; height:375px; border:1px solid #d4d9cc; background:#e5e9df; transform:rotate(10deg) translate(28px,-10px); padding:22px; }
.paper-back span { display:block; color:#879178; text-align:right; font-size:9px; letter-spacing:.2em; }
.paper-front { position:relative; width:295px; height:395px; background:#fffdf7; box-shadow:0 12px 32px #51443515; border:1px solid #e8e1d5; padding:20px 27px; transform:rotate(-7deg); }
.paper-top { font-size:6px; letter-spacing:.18em; display:flex; justify-content:space-between; align-items:center; color:#8d8171; }
.paper-top span { font-size:17px; }
.flower-art { width:195px; height:180px; margin:3px auto 0; }
.flower-art svg { width:100%; height:100%; }
.paper-title { font-size:24px; font-style:italic; margin:0 0 8px; }
.paper-front>p:not(.paper-title) { font-size:10px; line-height:2.2; color:var(--muted); }
.paper-sign { padding-top:12px; border-top:1px solid var(--line); font-size:7px; letter-spacing:.17em; }
.paper-label { position:absolute; right:0; bottom:16px; font-size:12px; font-family:Georgia,"Songti SC",serif; letter-spacing:.15em; transform:rotate(-7deg); }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:30px; }
.section-heading .eyebrow { margin-bottom:10px; }
.section-heading h2,.section-heading p { margin-bottom:0; }
.section-heading>p { font-size:12px; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.three-col { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.mode-card { display:block; padding:29px 32px 23px; border:1px solid #e4d4cf; background:#f5ece6; border-radius:var(--radius); transition:transform .2s,box-shadow .2s; }
.mode-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px #47342a0b; }
.sage-card { background:#edf0e7; border-color:#dce2d3; }
.card-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.number { font-family:Georgia,serif; font-size:18px; color:#8f6960; }
.tag { border:1px solid #d4c9be; border-radius:20px; font-size:10px; padding:3px 10px; }
.page-samples { display:flex; align-items:end; justify-content:center; gap:18px; height:125px; margin:3px 0 24px; }
.sample { display:grid; place-items:center; border:1px solid #b29b8e; color:#8f7768; background:#fdf9f0; font-size:10px; box-shadow:3px 3px 0 #e1d6c7; }
.sample.full { width:63px; height:90px; transform:rotate(-6deg); }
.sample.half { width:82px; height:58px; transform:rotate(6deg); }
.sample.quarter { width:45px; height:64px; transform:rotate(-3deg); }
.mode-card h3 { margin:0 0 10px; }
.mode-card p { font-size:13px; color:var(--muted); max-width:390px; margin-bottom:24px; }
.card-bottom { border-top:1px solid #dacfc1; padding-top:16px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.card-bottom small { font-size:10px; color:var(--muted); }
.card-bottom>span { font-size:20px; }
.letter-sample { background:#fffdf5; border:1px solid #d8d4c4; width:177px; height:110px; padding:12px 20px; margin:17px auto 25px; transform:rotate(5deg); box-shadow:4px 4px 0 #dce1d2; }
.letter-sample span { font-family:Georgia,serif; font-style:italic; color:#768165; font-size:15px; }
.letter-sample i { display:block; width:100%; height:1px; background:#dcded2; margin-top:11px; }
.letter-sample i:last-child { width:65%; }
.process { padding:58px 0 38px; }
.process .eyebrow { color:var(--muted); }
.three-col>div { border-top:1px solid var(--line); padding-top:20px; }
.three-col span { font-size:13px; font-weight:600; }
.three-col p { font-size:12px; color:var(--muted); margin-top:8px; }
.privacy-note { display:flex; gap:25px; align-items:center; padding:28px 32px; background:#eee9e0; border-radius:var(--radius); margin:20px 0 50px; }
.privacy-note h3 { font-size:17px; margin-bottom:7px; }
.privacy-note p { font-size:12px; color:var(--muted); margin:0; max-width:780px; }
.seal { font-size:44px; color:var(--rose); }
.site-footer { display:flex; justify-content:space-between; align-items:start; gap:25px; padding:35px 0 30px; border-top:1px solid var(--line); font-size:12px; margin-top:65px; }
.site-footer strong { font-weight:500; }
.site-footer p,.site-footer small { color:var(--muted); font-size:10px; margin:7px 0; }
.site-footer>div:last-child { text-align:right; }
.site-footer .muted { font-size:10px; }
.page-heading { padding:60px 0 28px; }
.page-heading h1 { margin-bottom:14px; }
.page-heading .eyebrow { margin-bottom:12px; }
.page-heading.compact { padding-top:40px; }
.heading-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:25px; }
.back-link { font-size:12px; color:var(--muted); }
.panel { padding:28px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); }
.panel h2 { font-size:20px; margin-bottom:18px; }
.panel p { font-size:13px; }
.auth-layout { display:grid; grid-template-columns:1fr 1fr; gap:90px; max-width:930px; margin:80px auto; align-items:center; }
.auth-layout h1 { white-space:pre-line; line-height:1.6; }
.auth-panel { padding:34px; }
.tabs { display:flex; border-bottom:1px solid var(--line); margin-bottom:22px; }
.tabs button { flex:1; background:transparent; border:0; border-bottom:2px solid transparent; padding:13px 5px; color:var(--muted); }
.tabs button.active { color:var(--rose); border-bottom-color:var(--rose); }
.recovery { border-top:1px solid var(--line); padding-top:20px; margin:25px 0 0; font-size:12px; }
.recovery a { color:var(--rose); text-decoration:underline; }
.recovery small { margin-top:9px; color:var(--muted); }
.notice { background:#f5eee2; border-left:3px solid #ac8a58; border-radius:4px; padding:13px 16px; margin:16px 0; font-size:13px; line-height:1.8; }
.form-error { color:#9a2538; background:#ffefee; border-radius:6px; padding:12px; font-size:13px; margin:16px 0; }
.status { display:inline-flex; white-space:nowrap; border-radius:20px; background:#efebe6; color:#68615a; padding:4px 11px; font-size:11px; }
.status.pending { background:#faf0d9; color:#806028; }
.status.approved { background:#e4efdf; color:#3e6537; }
.status.needs_changes { background:#f7e4df; color:#914d40; }
.contribution h2 { margin-top:27px; }
.editor-grid { display:grid; grid-template-columns:1.2fr 1fr; align-items:start; gap:30px; }
.editor-grid h2:not(:first-child) { margin-top:28px; }
.size-options { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.choice { border:1px solid var(--line); border-radius:9px; padding:12px 8px; text-align:center; position:relative; margin:0; cursor:pointer; }
.choice:has(input:checked),.template-choice:has(input:checked) { border-color:var(--rose); box-shadow:0 0 0 1px var(--rose); background:#fbf2ef; }
.choice>input { position:absolute; top:8px; left:7px; width:14px; height:14px; min-height:14px; }
.choice .sample { margin:22px auto 15px; transform:none; box-shadow:none; }
.choice .sample.full { height:61px; width:43px; }
.choice .sample.half { height:43px; width:61px; margin-top:40px; }
.choice .sample.quarter { height:49px; width:35px; margin-top:34px; }
.choice strong { display:block; font-size:11px; }
.choice small { font-size:9px; color:var(--muted); margin-top:5px; }
.upload-zone { border:1px dashed #bcae9d; background:var(--paper); padding:20px; text-align:center; border-radius:10px; cursor:pointer; }
.upload-zone>span,.upload-zone strong { display:block; }
.upload-zone>span:not(.upload-plus) { color:var(--muted); font-size:11px; margin:8px 0; }
.upload-plus { font-size:30px; font-weight:300; color:var(--rose); }
.upload-zone input { background:transparent; border:0; padding:8px; max-width:100%; }
.consent-block { padding-top:10px; border-top:1px solid var(--line); margin-top:25px; }
.radio-row { display:flex; align-items:start; gap:10px; font-size:12px; font-weight:400; cursor:pointer; }
.radio-row input { margin-top:3px; }
.editor-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; border-top:1px solid var(--line); padding-top:20px; margin-top:25px; }
#save-status { width:100%; font-size:12px; color:var(--muted); }
.preview-column { position:sticky; top:24px; min-width:0; }
.preview-heading { display:flex; justify-content:space-between; align-items:center; font-size:12px; margin:10px 0 18px; }
.preview-heading .eyebrow { margin:0; }
.art-preview { min-height:330px; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#eae5dc; display:flex; justify-content:center; align-items:center; margin:16px 0; }
.art-preview img { width:100%; max-height:650px; object-fit:contain; display:block; }
.art-preview iframe { width:100%; height:580px; border:0; }
.empty-preview { text-align:center; padding:30px; }
.empty-preview .serif { font-size:40px; line-height:1.25; color:#b8aa96; }
.empty-preview p { font-size:12px; color:var(--muted); margin:25px 0 0; }
.template-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.template-choice { border:1px solid var(--line); border-radius:8px; padding:10px; margin:0; position:relative; text-align:center; cursor:pointer; font-size:11px; }
.template-choice input { position:absolute; top:12px; left:12px; width:14px; height:14px; min-height:14px; }
.template-swatch { display:grid; place-items:center; font:italic 28px Georgia,serif; width:100%; height:90px; border-radius:4px; margin-bottom:8px; background-size:cover; background-position:center; }
.rose { background-color:#f4e6df; color:#7d4550; }
.sage { background-color:#e7eddf; color:#4e634b; }
.night { background-color:#303b52; color:#f5e7cb; }
.custom { background-color:#f7f3e9; color:#302d2a; }
.letter-preview { padding:38px 33px; min-height:480px; border:1px solid #d7cbbb; border-radius:3px; position:relative; box-shadow:5px 6px 0 #e8e2d7; background-size:cover; background-position:center; overflow-wrap:anywhere; }
.letter-preview>small { font-size:8px; letter-spacing:.2em; margin-bottom:55px; }
.letter-preview h3 { font-size:29px; margin-bottom:30px; }
.letter-preview>p { line-height:2.1; font-size:14px; white-space:pre-wrap; }
#preview-signature { text-align:right; margin-top:30px; font-size:14px; }
.letter-flower { display:block; font-size:40px; text-align:center; margin-top:35px; opacity:.55; }
.formal-preview { margin:26px 0 16px; font-size:13px; padding:20px; }
summary { cursor:pointer; font-weight:550; min-height:30px; }
.preserve { white-space:pre-wrap; overflow-wrap:anywhere; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:5px 0 25px; }
.stats>div { border:1px solid var(--line); border-radius:12px; padding:18px 22px; display:flex; align-items:center; justify-content:space-between; gap:15px; background:var(--white); }
.stats span { font-size:12px; color:var(--muted); }
.stats strong { font:32px Georgia,serif; }
.admin-section { margin:24px 0; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:20px; }
.filter-bar label { flex:1; min-width:120px; margin:0; font-size:12px; }
.filter-bar input,.filter-bar select { margin-top:6px; }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
td,th { padding:14px 10px; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-weight:500; white-space:nowrap; }
td small { font-size:10px; color:var(--muted); overflow-wrap:anywhere; }
td a { color:var(--rose); white-space:nowrap; }
.empty-cell { text-align:center; color:var(--muted); padding:35px; }
.batch-bar { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.batch-bar input { flex:1; min-width:180px; }
.admin-columns { align-items:start; }
.admin-columns .wide { margin-top:10px; }
.inline-form { display:flex; flex-wrap:wrap; gap:15px; align-items:end; }
.inline-form label { flex:1; min-width:180px; }
.inline-form .button { margin-bottom:6px; }
.template-list { display:flex; flex-wrap:wrap; gap:15px; }
.template-list>div { width:150px; text-align:center; padding:12px; border:1px solid var(--line); border-radius:10px; }
.template-list strong { display:block; font-size:12px; margin:7px 0; }
.template-list button { font-size:12px; min-height:35px; padding:5px 15px; }
.book-row { padding-top:25px; margin-top:25px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:25px; align-items:start; }
.book-row h3 { font-size:17px; }
.book-row a:not(.button) { font-size:12px; color:var(--rose); }
.book-row .publish-form { max-width:430px; }
.book-row .radio-row { margin-top:0; margin-bottom:10px; }
.toolbar { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
.book-viewer { width:100%; height:78vh; border:1px solid var(--line); border-radius:8px; }
.empty-book { min-height:360px; text-align:center; padding:60px 20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); margin:30px 0; }
.empty-book .serif { font-size:50px; color:#a18a72; }
.empty-book p { margin:25px 0; color:var(--muted); font-size:14px; }
.recovery-panel { margin-top:24px; }
.audit-detail { max-width:350px; overflow-wrap:anywhere; }
#toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#302d2a; color:white; padding:14px 24px; max-width:calc(100% - 32px); border-radius:10px; box-shadow:0 5px 20px #0002; z-index:20; font-size:14px; }
.skip { position:fixed; top:-100px; left:12px; background:var(--white); padding:12px; z-index:30; }
.skip:focus { top:12px; }
@media(max-width:1000px) { .wrap { width:calc(100% - 48px); } .hero { gap:10px; } .paper-scene { transform:scale(.9); } .editor-grid { gap:20px; } .panel { padding:22px; } .auth-layout { gap:40px; } .size-options { gap:6px; } .choice small { font-size:8px; } }
@media(max-width:720px) { .wrap { width:calc(100% - 36px); } .site-header { padding:19px 0; gap:12px; } .brand { font-size:21px; gap:8px; } .brand-mark { width:33px; height:33px; font-size:26px; } .brand small { font-size:6px; } nav { gap:10px; font-size:11px; } .nav-pill { padding:8px 12px; } nav .text-button { font-size:11px; padding:2px; } nav>a:first-child { display:none; } .hero { grid-template-columns:1fr; padding:42px 0 30px; gap:0; } .hero h1 { font-size:44px; margin:22px 0; } .hero-copy { max-width:500px; } .hero-description { font-size:14px; } .paper-scene { height:370px; transform:scale(.85); margin:-5px 0 -15px; } .hero-actions { gap:22px; margin-top:26px; } .hero-actions .button { padding:13px 19px; } .section-heading { display:block; margin:22px 0; } .section-heading>p { margin-top:12px; } .section-heading h2 { font-size:23px; } .two-col,.three-col,.editor-grid,.auth-layout { grid-template-columns:1fr; } .mode-card { padding:25px; } .two-col { gap:18px; } .three-col { gap:14px; } .three-col>div { padding-top:16px; } .process { padding-top:35px; } .privacy-note { gap:17px; padding:22px; margin-bottom:30px; align-items:start; flex-wrap:wrap; } .privacy-note .seal { display:none; } .site-footer { flex-direction:column; padding-top:26px; margin-top:45px; gap:15px; } .site-footer>div:last-child { text-align:left; } .page-heading { padding-top:35px; } h1 { font-size:29px; } .auth-layout { margin:40px 0; gap:20px; } .auth-layout h1 { font-size:32px; } .auth-panel { padding:24px; } .preview-column { position:static; } .editor-grid { display:flex; flex-direction:column; } .editor-grid>form,.editor-grid>section,.editor-grid>aside { width:100%; } .preview-column { order:2; } .size-options { gap:7px; } .panel { padding:20px; } .choice strong { font-size:10px; } .stats { grid-template-columns:1fr 1fr; gap:10px; } .stats>div { padding:14px; } .stats strong { font-size:28px; } .book-row { flex-direction:column; } .letter-preview { min-height:420px; } .template-options { gap:8px; } .template-choice { padding:7px; } .book-viewer { height:65vh; } .empty-book .serif { font-size:36px; } .heading-row { align-items:start; } .editor-actions .button { flex:1; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }
@media(max-width:720px) {
  .site-header { display:grid; grid-template-columns:1fr; gap:16px; }
  .header-controls { width:100%; justify-content:space-between; gap:8px; }
  .language-switch { flex-shrink:0; }
  .language-switch a { min-height:38px; padding:5px 10px; font-size:11px; }
  .brand-icon { width:40px; height:40px; }
  .header-controls nav { gap:8px; }
  .header-controls .nav-pill { padding:8px 10px; }
  html[lang=en] .hero h1 { font-size:42px; }
  html[lang=ja] .hero h1 { font-size:34px; }
  html[lang=en] .hero-actions { gap:16px; flex-wrap:wrap; }
}
