/* Shared editorial design, layered over the existing multilingual pages. */
:root { --ink:#382621; --wine:#713e40; --paper:#faf8f3; --rule:#ddd5ca; --nav-h:88px; --charcoal:var(--ink); --charcoal-light:#594941; --rose-gold:#713e40; }
body { color:var(--ink); background:var(--paper); }
/* Content remains readable when JavaScript is blocked or fails to load. */
.reveal, .reveal-left, .reveal-right, .reveal-scale { opacity:1; transform:none; will-change:auto; }
.subpage section[id], .subpage section [id] { scroll-margin-top:calc(var(--nav-h) + 4rem); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline:2px solid var(--wine); outline-offset:5px; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:2000; padding:12px 20px; background:var(--ink); color:#fff; }
.skip-link:focus { top:10px; }
#navbar, #navbar.scrolled { background:rgba(250,248,243,.98); box-shadow:none; border-bottom:1px solid var(--rule); backdrop-filter:none; }
#navbar .nav-logo img { filter:none; opacity:1; max-height:51px; }
#navbar .nav-menu a { color:var(--ink); font-family:inherit; letter-spacing:0; font-size:13px; }
.nav-menu { gap:1.65rem; }
.lang-switcher-container { margin-left:1rem; gap:3px; }
#navbar .lang-btn { background:transparent; color:#6b6059; border:0; border-radius:0; backdrop-filter:none; padding:6px 5px; font-size:11px; }
#navbar .lang-btn.active { color:var(--wine); box-shadow:inset 0 -1px var(--wine); }
#navbar.scrolled .lang-btn.active { background:transparent; color:var(--wine); }
#navbar .lang-btn .flag { display:none; }
#navbar .nav-hamburger span { background:var(--ink); }
.mobile-menu { background:var(--paper); max-height:calc(100dvh - var(--nav-h)); overflow:auto; }
.page-hero { background:#f2eee6; padding-top:calc(var(--nav-h) + 65px); padding-bottom:55px; }
.page-hero h1 { letter-spacing:-.055em; line-height:1.25; }
.lnb { background:var(--paper); border-bottom:1px solid var(--rule); }
.footer-mini, .home-footer { background:#ebe6dc; color:var(--ink); border-top:1px solid var(--rule); }
.footer-mini p, .footer-mini .fm-biz, .footer-mini .fm-links a { color:#5d5048; }
.footer-mini .fm-logo img { filter:none; }
.home-footer { padding:60px 6% 25px; }
.hf-grid { gap:5%; }
.hf-col h3 { color:var(--wine); font-family:Georgia,serif; }
.hf-col p, .hf-col p a, .hf-tel a, .hf-bottom, .hf-links a { color:#5d5048; }
.hf-bottom { border-color:#d4c9bb; }
/* Compact text link shared with the collection page. */
.edit-text-link {
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  line-height: 1.9;
}

.editorial-home {
  --home-ink: #282624;
  --home-accent: #572a3b;
  --home-paper: #fbfaf7;
  --home-muted: #615e59;
  --home-rule: #d5d1ca;
  --home-gutter: clamp(20px, 4.5vw, 80px);
  color: var(--home-ink);
  background: var(--home-paper);
}
.editorial-home main { padding-top: var(--nav-h); }
.editorial-home main [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.editorial-home :is(a, button, summary, input):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.editorial-home main h2 { margin: 0; font-size: clamp(27px, 3vw, 46px); font-weight: 550; line-height: 1.2; letter-spacing: -.055em; text-wrap: balance; }
.home-section, .home-catalog, .home-story { max-width: 1660px; margin-inline: auto; padding-inline: var(--home-gutter); }
.home-section { padding-block: clamp(46px, 5.5vw, 86px); }
.home-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.home-link, .home-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: inherit; font-size: 14px; font-weight: 550; line-height: 1.5; }
.home-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.home-link:hover { color: var(--home-accent); text-decoration-thickness: 2px; }
.home-action { padding: 11px 21px; color: white; background: var(--home-ink); text-decoration: none; }
.home-action:hover { background: var(--home-accent); }
.editorial-home .home-action:focus-visible { outline-color: var(--home-accent); }

.home-catalog {
  display: grid;
  grid-template: "photo heading" auto "photo products" 1fr "photo actions" auto / minmax(0,1.21fr) minmax(0,1fr);
  column-gap: clamp(30px, 5.4vw, 94px);
  padding-block: clamp(25px, 3.5vw, 56px) clamp(30px, 4vw, 65px);
}
.catalog-heading { grid-area: heading; padding-block: 4px clamp(20px, 2.4vw, 38px); }
.catalog-heading h1 { margin: 0; color: var(--home-ink); font: 600 clamp(35px, 4.1vw, 72px)/1.1 'Pretendard', sans-serif; letter-spacing: -.07em; word-break: keep-all; text-wrap: balance; }
.catalog-heading p { margin: 12px 0 0; color: var(--home-muted); font-size: clamp(14px, 1.13vw, 17px); line-height: 1.5; word-break: keep-all; }
.catalog-cover { grid-area: photo; position: relative; min-width: 0; margin: 0; }
.catalog-cover img { position: absolute; inset: 0 0 auto; display: block; width: 100%; height: calc(100% - 25px); object-fit: cover; object-position: 53% 51%; }
.catalog-cover figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: baseline; color: var(--home-muted); font-size: 12px; line-height: 17px; }
.catalog-products { grid-area: products; display: grid; margin: 0; padding: 0; border-top: 1px solid var(--home-ink); list-style: none; }
.catalog-products li { min-width: 0; border-bottom: 1px solid var(--home-rule); }
.catalog-products a { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; height: 100%; padding: clamp(13px, 1.4vw, 23px) 18px clamp(13px, 1.4vw, 23px) 0; color: inherit; text-decoration: none; }
.catalog-products a::after { position: absolute; right: 3px; top: calc(50% - 3px); width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); content: ""; }
.catalog-name { flex-shrink: 0; font: 400 clamp(24px, 2.15vw, 38px)/1.2 Georgia, serif; letter-spacing: -.035em; }
.catalog-notes { color: var(--home-muted); font-size: 13px; line-height: 1.6; word-break: keep-all; }
.catalog-products a:hover .catalog-name, .catalog-products a:focus-visible .catalog-name { color: var(--home-accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.catalog-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; padding-top: clamp(18px, 2vw, 32px); }
.home-visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; }

.home-finder { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 7%; align-items: start; }
.home-finder::before, .home-faq::before { position: absolute; content: ''; top: 0; inset-inline: var(--home-gutter); border-top: 1px solid var(--home-rule); }
.home-finder-intro p, .home-story-copy p { max-width: 36ch; margin: 15px 0 8px; color: var(--home-muted); font-size: 15px; line-height: 1.7; word-break: keep-all; }
.home-finder-panel { min-width: 0; }
.home-finder fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; min-width: 0; padding: 0; margin: 0; border: none; }
.home-finder fieldset[hidden], .home-finder-result[hidden] { display: none; }
.home-finder label { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 9px 2px; border-bottom: 1px solid var(--home-rule); font-size: 14px; line-height: 1.5; word-break: keep-all; cursor: pointer; }
.home-finder input { flex: none; width: 17px; height: 17px; accent-color: var(--home-accent); }
.home-finder label span { min-width: 0; overflow-wrap: anywhere; }
:is(html[lang="ja"], html[lang^="zh"]) .editorial-home :is(h1, h2, h3, .catalog-heading p, .catalog-notes, .home-finder label, .home-finder-intro p, .home-story-copy p) { word-break: normal; }
.home-finder label:has(input:checked) { color: var(--home-accent); border-color: currentColor; font-weight: 650; }
.home-finder-result { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; }
.home-finder-result h3 { margin: 0; font: 400 28px/1.24 Georgia,serif; }

.edit-journal { padding-top: 10px; }
.edit-journal .home-journal-grid { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,.72fr); gap: 0 clamp(28px,4vw,70px); }
.edit-journal .home-journal-card { min-width: 0; border-top: 1px solid var(--home-rule); }
.edit-journal .home-journal-card:first-child { grid-row: span 2; border: 0; }
.edit-journal .home-journal-card a { display: block; height: 100%; padding: 15px 0; color: inherit; text-decoration: none; }
.edit-journal .home-journal-card:first-child a { display: grid; grid-template-columns: 45% minmax(0,1fr); align-content: start; align-items: center; gap: 20px; padding: 0; }
.edit-journal .home-journal-card img { display: none; }
.edit-journal .home-journal-card:first-child img { display: block; width: 100%; height: auto; aspect-ratio: 1.16; object-fit: cover; }
.edit-journal .home-journal-card h3 { margin: 7px 0 0; font-size: clamp(17px,1.5vw,22px); font-weight: 550; line-height: 1.48; letter-spacing: -.04em; word-break: keep-all; }
.edit-journal .home-journal-card:first-child h3 { font-size: clamp(20px,2vw,31px); line-height: 1.4; }
.edit-journal .home-journal-card p { color: var(--home-muted); font-size: 12px; line-height: 1.7; }
.edit-journal a:hover h3 { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

.home-story { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: center; gap: 0; padding-block: 0 clamp(48px,5vw,88px); }
.home-story > img { display: block; width: 100%; height: 100%; max-height: 340px; aspect-ratio: 1.65; object-fit: cover; object-position: 50% 28%; }
.home-story-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; height: 100%; background: #efece6; padding: clamp(25px,4vw,68px); }
.home-faq { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 6%; }
.home-faq details { border-bottom: 1px solid var(--home-rule); }
.home-faq summary { display: list-item; padding: 16px 4px; cursor: pointer; font-size: 15px; line-height: 1.5; }
.home-faq details p { padding: 0 0 16px; color: var(--home-muted); font-size: 14px; line-height: 1.8; }
.home-faq .home-link { margin-top: 8px; }
.editorial-home .home-footer { background: #eeeae4; }

@media (min-width: 741px) and (max-width: 1090px) {
  .home-catalog { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .catalog-products a { flex-direction: column; justify-content: center; padding-block: 10px; }
}
@media (max-width: 740px) {
  .home-catalog { grid-template: "heading" auto "photo" auto "products" auto "actions" auto / minmax(0,1fr); padding-top: 25px; }
  .catalog-heading { padding-block: 0 17px; }
  .catalog-heading h1 { font-size: clamp(34px,6vw,48px); }
  .catalog-heading p { margin-top: 7px; }
  .catalog-cover { margin-bottom: 16px; }
  .catalog-cover img { position: static; height: auto; aspect-ratio: 1.96; object-position: 52% 53%; }
  .catalog-cover figcaption { position: static; margin-top: 5px; font-size: 11px; }
  .catalog-products a { min-height: 54px; padding-block: 12px; }
  .catalog-name { font-size: clamp(22px,4.5vw,29px); }
  .catalog-notes { font-size: 12px; }
  .home-heading { align-items: center; margin-bottom: 15px; }
  .home-finder, .home-faq { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .home-finder-intro p { margin: 9px 0 0; }
  .home-finder fieldset { gap: 0 14px; }
  .home-finder label { min-height: 54px; }
  .edit-journal .home-journal-grid { grid-template-columns: minmax(0,1fr); }
  .edit-journal .home-journal-card:first-child { grid-row: auto; }
  .edit-journal .home-journal-card:first-child a { grid-template-columns: 35% minmax(0,1fr); gap: 15px; padding-bottom: 18px; }
  .edit-journal .home-journal-card:first-child h3 { font-size: 19px; }
  .home-story { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .home-story > img { max-height: none; min-height: 220px; aspect-ratio: auto; }
  .home-story-copy { padding: 20px; }
  .home-story-copy h2 { font-size: 25px; }
  .home-story-copy p { margin: 12px 0 0; font-size: 14px; }
  .home-faq .home-link { margin-top: 0; }
}
@media (max-width: 420px) {
  .home-story { grid-template-columns: minmax(0,1fr); }
  .home-story > img { min-height: 0; height: auto; aspect-ratio: 1.85; object-position: 50% 30%; }
  .home-story-copy { padding: 23px; }
}

@media (max-width: 1180px) {
  .nav-menu { gap: 1.1rem; }
  #navbar { padding-inline: 4%; }
}
@media (max-width: 960px) {
  #navbar .nav-menu { display: none; }
  #navbar .nav-hamburger { display: flex; position: static; transform: none; padding: 10px; min-height: 44px; width: 44px; }
  .lang-switcher-container { margin-left: auto; margin-right: 0; min-width: 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 72px; }
  #navbar { padding-inline: 4%; }
  #navbar .nav-logo img { width: 75px; max-height: 44px; }
  #navbar .lang-switcher-container { gap: 1px; margin-right: 0; }
  #navbar .lang-btn { padding: 8px 4px; font-size: 10px; }
  .home-footer { padding: 40px 7% 20px; }
  .hf-grid { grid-template-columns: 1fr; gap: 30px; }
  .editorial-home .hf-links { max-width: 100%; flex-wrap: wrap; gap: 8px 16px; }
  .page-hero { padding-top: calc(var(--nav-h) + 40px); }
  .page-hero h1 { font-size: 36px; }
}
@media (max-width: 360px) {
  #navbar .nav-logo img { width: 60px; }
  #navbar .lang-btn { font-size: 9px; padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
}
