/* 日本に住む外国人向けのページ（/en/）と日本語版（/kurashi/）。紡研究所の色と書体にそろえる */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@600;700&family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600&display=swap');
:root { --ink: #22201c; --paper: #f6f3ed; --sand: #ebe4d8; --mute: #6c665c; --line: #dcd2c2; --accent: #8a5a3a; --rakuten: #bf0000; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.75; font-size: 16px; font-family: Inter, 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif; }
html[lang="ja"] body { font-family: 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif; font-size: 15px; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .8rem max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.top .logo { font-weight: 700; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 1rem; font-size: .9rem; }
.pr, footer { font-size: .78rem; color: var(--mute); }
.pr { max-width: 820px; margin: .6rem auto 0; padding-inline: 16px; }
main { max-width: 820px; margin: 0 auto; padding: 0 16px 2rem; }
h1, h2 { font-family: 'Source Serif 4', 'Noto Serif JP', serif; line-height: 1.3; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 1.2rem 0 1rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
figure { margin: 0 0 1rem; }
figcaption { font-size: .75rem; color: var(--mute); }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); }
.answer { background: var(--sand); border-left: 3px solid var(--accent); padding: .9rem 1.1rem; font-size: 1.04rem; }
.toc { border: 1px solid var(--line); padding: .5rem 1rem; font-size: .92rem; }
.toc p { margin: .2rem 0; font-weight: 700; }
.toc ol { margin: .2rem 0; padding-left: 1.2rem; }
section p, section li { max-width: 72ch; }
.items { list-style: none; padding: 0; display: grid; gap: .9rem; }
.item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; background: #fff; border: 1px solid var(--line); padding: .9rem; }
.item img { width: 120px; height: 120px; object-fit: contain; }
.item p { margin: .25rem 0; font-size: .92rem; }
.pname { color: var(--mute); font-size: .82rem !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; color: var(--mute); font-size: .75rem; }
.spot { background: var(--paper); padding: .3rem .5rem; }
.btns { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.buy { background: var(--rakuten); color: #fff; text-decoration: none; padding: .35rem 1rem; font-weight: 700; font-size: .9rem; }
.alt { font-size: .8rem; color: var(--mute); }
.alt a { margin-left: .4rem; }
.faq dt { font-weight: 700; margin-top: .9rem; }
.faq dd { margin: .2rem 0 0; }
.guides { list-style: none; padding: 0; display: grid; gap: .6rem; }
.guides a, .guides .soon { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.guides .soon { background: transparent; color: var(--mute); }
.guides span { font-size: .85rem; color: var(--mute); }
footer { max-width: 820px; margin: 0 auto; padding: 1rem 16px 2rem; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .item { grid-template-columns: 80px minmax(0, 1fr); } .item img { width: 80px; height: 80px; } }
