/* Chresmos site v2 */

/* fonts:start */
@font-face { font-family: "Noto Sans JP"; src: url("/assets/fonts/NotoSansJP-400-latin.v4.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F, U+20A0-20CF, U+2100-214F; }
@font-face { font-family: "Noto Sans JP"; src: url("/assets/fonts/NotoSansJP-400-ja.v4.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "Noto Sans JP"; src: url("/assets/fonts/NotoSansJP-600-latin.v4.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F, U+20A0-20CF, U+2100-214F; }
@font-face { font-family: "Noto Sans JP"; src: url("/assets/fonts/NotoSansJP-600-ja.v4.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-400.v4.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F, U+20A0-20CF, U+2100-214F; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-400-italic.v4.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F, U+20A0-20CF, U+2100-214F; }
/* fonts:end */

:root {
  --night: #121317; --on-night: #f2eee6; --on-night-muted: #aaa49a; --night-rule: rgb(242 238 230 / .16); --brass: #c8a66b;
  --paper: #f4f0e9; --text: #1d2126; --muted: #5d6268; --rule: #dcd5c9; --numeral: #7a5d2a; --focus: #7a5d2a;
  --ff-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; --ff-serif: "Instrument Serif", "Times New Roman", serif;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 48px); --section-gap: clamp(72px, 10vw, 128px); --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--ff-sans); font-size: 16px; line-height: 1.95; letter-spacing: .03em; line-break: strict; }
html[lang="en"] body { font-size: 17px; line-height: 1.65; letter-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.site-header, .hero, .page-head, .notfound, .site-footer { --focus: var(--brass); }

html[lang="en"] [lang="ja"] { font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans CJK JP", sans-serif; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { background: var(--night); color: var(--on-night); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; min-height: 80px; }
.logo { font-family: var(--ff-serif); font-size: 31px; line-height: 1; letter-spacing: .005em; text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-block; padding: 4px 0; font-size: 13.5px; color: var(--on-night-muted); text-decoration: none; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
html[lang="en"] .site-nav a { font-size: 15px; }
.site-nav a:hover { color: var(--on-night); background-size: 100% 1px; }
.site-nav a[aria-current="page"] { color: var(--on-night); }
.site-nav .lang-switch { color: var(--brass); }

.label { margin: 0 0 6px; font-family: var(--ff-serif); font-style: italic; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; color: var(--numeral); }
.label:lang(ja) { font-family: var(--ff-sans); font-style: normal; font-size: 13px; line-height: 1.6; letter-spacing: .22em; }

.section-head { margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head h2 { margin: 0; font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; letter-spacing: .06em; }
html[lang="en"] .section-head h2 { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.01em; }

/* Home */
.hero { background: var(--night); color: var(--on-night); padding: clamp(28px, 6vh, 64px) 0 clamp(64px, 10vh, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "portrait" "lead" "message"; gap: 28px; }
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "title portrait" "lead portrait" "message portrait";
    column-gap: clamp(40px, 6vw, 104px); row-gap: 0;
  }
}
.hero h1 { grid-area: title; margin: 0; font-weight: 600; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.45; letter-spacing: .04em; font-feature-settings: "palt"; }
.ph { display: inline-block; }
html[lang="en"] .hero h1 { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 86px); line-height: 1.02; letter-spacing: -.012em; font-feature-settings: normal; }
.hero :is(.lead, .message) { color: var(--on-night-muted); font-size: clamp(15.5px, 1.15vw, 16.5px); line-height: 2.05; }
html[lang="en"] .hero :is(.lead, .message) { font-size: clamp(17px, 1.3vw, 18.5px); line-height: 1.65; }
.hero .lead { grid-area: lead; align-self: start; margin: 0; max-width: 34em; text-wrap: balance; }
html[lang="en"] .hero .lead { max-width: 31em; }
.portrait { grid-area: portrait; position: relative; margin: 0; }
.portrait .frame { overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; }
@media (min-width: 900px) {
  .hero .lead { margin-top: 40px; }
  .portrait { align-self: start; }
  .portrait img { aspect-ratio: 5 / 7; }
  .portrait .frame {
    mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-composite: intersect;
  }
}
.portrait figcaption { margin-top: 14px; font-size: 12.5px; line-height: 1.75; letter-spacing: .06em; color: var(--on-night-muted); }
html[lang="en"] .portrait figcaption { font-size: 14px; letter-spacing: .01em; }
.portrait .role { display: block; color: var(--brass); }

/* Home: business areas */
.areas { padding-top: var(--section-gap); }

/* Message (home, founder) */
.message .message-sign { margin: 24px 0 0; font-size: 13.5px; line-height: 1.7; letter-spacing: .08em; color: var(--muted); }
html[lang="en"] .message-sign { font-size: 15px; letter-spacing: .01em; }
.hero .message { grid-area: message; margin-top: clamp(16px, 3.2vw, 44px); padding-top: 36px; border-top: 1px solid var(--night-rule); }
.hero .label { color: var(--brass); }
.profile .message { margin-bottom: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }

/* Home: synergy */
.synergy { padding: var(--section-gap) 0 clamp(80px, 10vw, 136px); }
.synergy-text { margin: 0; max-width: 34em; font-size: clamp(17px, 1.45vw, 20px); line-height: 2.1; }
html[lang="en"] .synergy-text { max-width: 32em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; }

/* Principles list (services: how we work). No numbers: it is not a sequence like the steps above it. */
.values-list { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .values-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.values-list li { padding-top: 22px; border-top: 1px solid var(--rule); }
.principle { display: block; margin-bottom: 10px; font-weight: 600; font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.8; }
html[lang="en"] .principle { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(25px, 2vw, 29px); line-height: 1.18; }
.detail { display: block; font-size: .94em; color: var(--muted); }

.cta { margin: clamp(48px, 6vw, 80px) 0 0; }
.button { display: inline-flex; align-items: center; gap: 16px; padding: 16px 32px; border-radius: 2px; background: var(--night); color: var(--on-night); text-decoration: none; font-size: 15px; letter-spacing: .1em; transition: background-color .25s var(--ease); }
html[lang="en"] .button { font-size: 16px; letter-spacing: .02em; }
.button::after { content: ""; width: 20px; height: 1px; background: var(--brass); transition: width .3s var(--ease); }
.button:hover { background: #000; }
.button:hover::after { width: 32px; }

/* Inner pages */
.page-head { background: var(--night); color: var(--on-night); padding: clamp(32px, 5vw, 64px) 0 clamp(44px, 7vw, 88px); }
.page-head .label { margin-bottom: 8px; color: var(--brass); }
.page-head h1 { margin: 0; font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.4; letter-spacing: .06em; }
html[lang="en"] .page-head h1 { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(42px, 5vw, 68px); line-height: 1.05; letter-spacing: -.01em; }
.page-body { padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(80px, 10vw, 136px); }
.block { margin-top: clamp(72px, 9vw, 120px); }
.page-body a:not(.button) { color: var(--text); text-decoration-line: underline; text-decoration-color: var(--numeral); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: color .2s; }
.page-body a:not(.button):hover { color: var(--numeral); }
.item-name { font-weight: 600; }

/* Services */
.business-lines { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .business-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; } }
.business-lines li { padding-top: 20px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.business-lines .item-name { display: block; margin-bottom: 8px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; }
html[lang="en"] .business-lines .item-name { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(27px, 2.3vw, 32px); line-height: 1.15; }
.business-lines .item-text { display: block; font-size: .97em; color: var(--muted); }
.business-lines a { text-decoration-line: underline; text-decoration-color: var(--numeral); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: color .2s; }
.business-lines a:hover { color: var(--numeral); }

.rule-list { display: grid; margin: 0; padding: 0; list-style: none; column-gap: 64px; }
@media (min-width: 900px) { .rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule-list li { position: relative; padding: 16px 0 16px 1.4em; border-top: 1px solid var(--rule); font-size: .97em; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: calc(16px + .5lh); width: 6px; height: 6px; background: var(--brass); transform: translateY(-50%); }
.note { margin: 28px 0 0; max-width: 46em; font-size: .91em; color: var(--muted); }

.steps { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-left: 64px; }
.step::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 44px; text-align: center; font-family: var(--ff-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--numeral); }
.step::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: -28px; width: 1px; background: var(--brass); transform-origin: top center; }
.step:nth-child(3)::after { display: none; }
.step .item-name { display: block; margin-bottom: 4px; font-size: 17px; line-height: 1.7; }
html[lang="en"] .step .item-name { font-family: var(--ff-serif); font-weight: 400; font-size: 25px; line-height: 1.2; margin-bottom: 8px; }
.step .item-text, .step-ongoing .item-text { display: block; font-size: .94em; color: var(--muted); }
.step-ongoing { padding-top: 20px; border-top: 1px dashed var(--brass); }
.step-ongoing .item-name { display: block; margin-bottom: 4px; font-size: 16px; line-height: 1.7; }
html[lang="en"] .step-ongoing .item-name { font-family: var(--ff-serif); font-weight: 400; font-size: 23px; line-height: 1.2; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 40px; }
  .step { padding-left: 0; padding-top: 76px; }
  .step::before { top: 0; width: auto; text-align: left; font-size: 60px; }
  .step::after { left: 56px; right: -40px; top: 30px; bottom: auto; width: auto; height: 1px; transform-origin: left center; }
  .step-ongoing { grid-column: 1 / -1; }
}

/* Founder */
.profile { display: grid; gap: 32px; }
@media (min-width: 900px) { .profile { grid-template-columns: 340px minmax(0, 1fr); gap: 72px; align-items: start; } .profile-photo { position: sticky; top: 32px; } }
.profile-photo { margin: 0; max-width: 360px; }
.profile-photo img { width: 100%; border-radius: 2px; }
.profile-name { margin: 0 0 28px; word-break: keep-all; font-weight: 600; font-size: clamp(21px, 2vw, 26px); line-height: 1.6; letter-spacing: .04em; }
.profile-name .role { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; letter-spacing: .12em; color: var(--numeral); }
html[lang="en"] .profile-name { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(32px, 3vw, 40px); line-height: 1.1; letter-spacing: 0; }
html[lang="en"] .profile-name .role { font-family: var(--ff-sans); font-size: 15px; letter-spacing: .02em; margin-top: 10px; }
.profile-text p { margin: 0 0 1.4em; max-width: 36em; }

/* Company */
.company-table { width: 100%; max-width: 56em; border-collapse: collapse; }
.company-table th, .company-table td { padding: 20px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 1px solid var(--rule); }
.company-table th { width: 9em; padding-right: 24px; font-weight: 400; font-size: 14px; letter-spacing: .14em; color: var(--muted); }
html[lang="en"] .company-table th { width: 11em; font-size: 15px; letter-spacing: .02em; }
@media (max-width: 599px) {
  .company-table th, .company-table td { display: block; width: auto; }
  .company-table th { padding: 18px 0 2px; }
  .company-table td { padding: 0 0 18px; border-top: 0; }
  .company-table tr:last-child th { border-bottom: 0; }
}

.contact .lead { margin: 0; max-width: 36em; font-size: clamp(16px, 1.3vw, 18px); line-height: 2.05; }
html[lang="en"] .contact .lead { line-height: 1.7; }

/* Privacy */
.prose > p { margin: 0 0 1.6em; max-width: 44em; }
.policy-list { margin: 0 0 2.4em; padding: 0; list-style: none; counter-reset: p; max-width: 44em; }
.policy-list li { counter-increment: p; position: relative; padding: 18px 0 18px 3em; border-top: 1px solid var(--rule); font-size: .97em; }
.policy-list li:last-child { border-bottom: 1px solid var(--rule); }
.policy-list li::before { content: counter(p); position: absolute; left: 0; top: 14px; font-family: var(--ff-serif); font-style: italic; font-size: 28px; line-height: 1.3; color: var(--numeral); }
.policy-meta { font-size: 14px; line-height: 1.9; color: var(--muted); }

/* 404 (bilingual) */
.notfound { background: var(--night); color: var(--on-night); padding: clamp(56px, 10vw, 128px) 0; }
.notfound h1 { margin: 0 0 16px; font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1.4; letter-spacing: .05em; }
.notfound p { margin: 0 0 10px; color: var(--on-night-muted); }
.notfound a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .28em; }
.notfound .en { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--night-rule); line-height: 1.65; letter-spacing: 0; }
.notfound .en-heading { margin: 0 0 12px; font-family: var(--ff-serif); font-size: clamp(38px, 4.8vw, 64px); line-height: 1.05; color: var(--on-night); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 44px 0 52px; font-size: 13px; }
html[lang="en"] .site-footer { font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; }
.footer-name { margin: 0; color: var(--on-night); letter-spacing: .08em; }
.footer-links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--on-night); }
.footer-links .lang-switch { color: var(--brass); }
.copyright { margin: 0 0 0 auto; }
.copyright small { font-size: inherit; }

@media (max-width: 719px) {
  .header-inner { padding-top: 16px; padding-bottom: 12px; min-height: 0; }
  .logo { font-size: 28px; }
  .site-nav ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 16px; }
  .site-nav a { font-size: 13px; }
  .copyright { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(12px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .portrait[data-reveal] { opacity: 1; transform: none; }
  .js .portrait[data-reveal] .frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s var(--ease) .1s; }
  .js .portrait[data-reveal] img { transform: scale(1.06); transition: transform 1.9s var(--ease) .1s; }
  .js .portrait[data-reveal] figcaption { opacity: 0; transition: opacity .9s var(--ease) .9s; }
  .js .portrait[data-reveal].is-visible .frame { clip-path: inset(0 0 0 0); }
  .js .portrait[data-reveal].is-visible img { transform: none; }
  .js .portrait[data-reveal].is-visible figcaption { opacity: 1; }
  .js [data-reveal]:nth-child(2) { --delay: .12s; }
  .js [data-reveal]:nth-child(3) { --delay: .24s; }
  .js [data-reveal]:nth-child(4) { --delay: .36s; }
  .js .hero .lead { --delay: .3s; }
  .js .hero .message { --delay: .5s; }
  .js .step[data-reveal]::after { transform: scaleY(0); transition: transform 1s var(--ease) calc(var(--delay, 0s) + .4s); }
  .js .step[data-reveal].is-visible::after { transform: none; }
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .portrait img, .profile-photo img { view-transition-name: portrait; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .step[data-reveal]::after { transform: scaleX(0); }
  .js .step[data-reveal].is-visible::after { transform: none; }
}

@media print {
  html, body, .site-header, .hero, .page-head, .notfound, .site-footer { background: #fff !important; color: #000 !important; }
  .site-nav, .lang-switch, .cta, .button { display: none !important; }
  [data-reveal], .portrait .frame, .portrait img, .portrait figcaption { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .portrait .frame { mask-image: none; }
  a { color: #000 !important; }
}
