/*
  CREAMe — Analog Atelier design reminder
  Japanese editorial modernism: warm paper surfaces, charcoal rules, vermilion signals,
  asymmetric pacing, Noto Serif JP display + Noto Sans JP utility type. Avoid generic cards.
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root {
  --paper: #f5f0e9;
  --paper-deep: #eae1d6;
  --ink: #272522;
  --ink-muted: #6f6962;
  --line: #bfb6ac;
  --vermilion: #e24227;
  --yellow: #fccf00;
  --white: #fffdfa;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 4px; }
::selection { background: var(--vermilion); color: var(--white); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .65rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  font-size: .78rem;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: .85rem clamp(1.2rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(39, 37, 34, .18);
  background: rgba(245, 240, 233, .92);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  min-width: 0;
}
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.brand-word {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: 1;
}
.brand-word span { color: var(--vermilion); }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.desktop-nav a, .footer-nav a, .social-link {
  position: relative;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.desktop-nav a::after, .footer-nav a::after, .social-link::after {
  position: absolute;
  right: 0;
  bottom: -.32rem;
  left: 0;
  height: 1px;
  content: '';
  transform: scaleX(0);
  transform-origin: right center;
  background: var(--vermilion);
  transition: transform .2s var(--ease);
}
.desktop-nav a:hover::after, .footer-nav a:hover::after, .social-link:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-cta, .text-link, .button-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-cta { padding: .66rem .95rem; background: var(--ink); color: var(--white); }
.nav-cta::before, .button-link::before, .text-link::before { width: .52rem; height: .52rem; border-radius: 50%; content: ''; background: currentColor; transition: transform .18s var(--ease); }
.nav-cta:hover::before, .button-link:hover::before, .text-link:hover::before { transform: scale(1.35); }
.nav-cta:active, .button-link:active { transform: scale(.97); }
.mobile-nav { display: none; }

.hero { position: relative; min-height: min(780px, calc(100svh - 76px)); overflow: hidden; background: #d8d0c7; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(245, 240, 233, .97) 0%, rgba(245, 240, 233, .78) 36%, rgba(245, 240, 233, .12) 62%, rgba(245, 240, 233, 0) 100%); }
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  width: min(100% - 2.4rem, 1260px);
  margin: 0 auto;
  padding: clamp(4rem, 13vh, 8.25rem) 0 clamp(4.4rem, 8vw, 7rem);
  flex-direction: column;
  justify-content: flex-end;
}
.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; color: var(--ink-muted); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 1.55rem; height: 1px; content: ''; background: var(--vermilion); }
.hero h1, .display-title { max-width: 790px; margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.08em; line-height: 1.17; }
.hero h1 { font-size: clamp(3.2rem, 7.2vw, 7rem); }
.hero h1 em { color: var(--vermilion); font-style: normal; }
.hero-intro { max-width: 450px; margin: 1.65rem 0 0; font-size: clamp(.9rem, 1.1vw, 1.05rem); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; margin-top: 2.15rem; }
.text-link { padding-bottom: .15rem; border-bottom: 1px solid var(--ink); }
.text-link:hover { color: var(--vermilion); border-bottom-color: var(--vermilion); }
.hero-note { position: absolute; right: max(1.2rem, 4vw); bottom: 1.5rem; z-index: 2; color: var(--white); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-shadow: 0 1px 4px rgba(0,0,0,.35); text-transform: uppercase; }

.page-intro { width: min(100% - 2.4rem, 1260px); margin: 0 auto; padding: clamp(4.6rem, 8vw, 8.5rem) 0 clamp(3.8rem, 7vw, 6rem); }
.page-intro .display-title { max-width: 860px; font-size: clamp(2.7rem, 6vw, 5.5rem); }
.page-intro p { max-width: 665px; margin: 1.65rem 0 0; font-size: clamp(.94rem, 1.1vw, 1.1rem); }

.editorial-section { width: min(100% - 2.4rem, 1260px); margin: 0 auto; padding: clamp(4.2rem, 9vw, 9rem) 0; }
.section-grid { display: grid; grid-template-columns: minmax(125px, .46fr) minmax(0, 1.54fr); gap: clamp(1.5rem, 5vw, 6.5rem); }
.section-label { display: flex; flex-direction: column; gap: .4rem; color: var(--ink-muted); font-size: .65rem; font-weight: 700; letter-spacing: .16em; line-height: 1.25; text-transform: uppercase; }
.section-label::before { width: 1.25rem; height: 1.25rem; margin-bottom: .28rem; border-radius: 50%; content: ''; background: var(--vermilion); }
.section-label strong { color: var(--ink); font-size: .76rem; }
.section-content { min-width: 0; }
.section-content h2 { max-width: 830px; margin: -.35rem 0 1.65rem; font-family: var(--serif); font-size: clamp(2rem, 4.1vw, 4rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.35; }
.section-content p { max-width: 695px; margin: 0 0 1.15rem; }
.section-content p:last-child { margin-bottom: 0; }
.pull-quote { max-width: 680px; margin: 2.5rem 0 0; padding: 1.1rem 0 1.1rem 1.6rem; border-left: 4px solid var(--vermilion); font-family: var(--serif); font-size: clamp(1.18rem, 2.05vw, 1.75rem); font-weight: 500; line-height: 1.7; }

.yellow-break { position: relative; overflow: hidden; background: var(--yellow); }
.yellow-break::before { position: absolute; top: 0; right: 7vw; width: clamp(75px, 13vw, 175px); height: clamp(75px, 13vw, 175px); content: ''; transform: translateY(-52%); border: 1px solid var(--ink); border-radius: 50%; }
.yellow-break .editorial-section { position: relative; }
.yellow-break .section-label::before { background: var(--ink); }
.yellow-break .section-content { max-width: 900px; }
.yellow-break .section-content h2 { max-width: 880px; }
.principle-list { display: grid; margin: 2.6rem 0 0; padding: 0; border-top: 1px solid rgba(39, 37, 34, .75); list-style: none; }
.principle-list li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(39, 37, 34, .75); }
.principle-list span { color: var(--vermilion); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.principle-list strong { font-size: .99rem; font-weight: 600; }

.image-interval { position: relative; width: min(100% - 2.4rem, 1260px); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; }
.image-interval figure { position: relative; width: min(76%, 960px); margin: 0 0 0 auto; }
.image-interval figure::before { position: absolute; top: -1.3rem; left: -1.3rem; z-index: -1; width: 48%; height: 63%; content: ''; background: var(--vermilion); }
.image-interval img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-interval figcaption { display: flex; align-items: center; gap: .65rem; margin-top: .72rem; color: var(--ink-muted); font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.image-interval figcaption::before { width: 1.3rem; height: 1px; content: ''; background: var(--ink); }

.contact-band { background: var(--ink); color: var(--paper); }
.contact-band .editorial-section { padding-bottom: clamp(4.5rem, 9vw, 8rem); }
.contact-band .section-label { color: #ded7ce; }
.contact-band .section-label::before { background: var(--vermilion); }
.contact-band .section-label strong { color: var(--paper); }
.contact-band .section-content h2 { color: var(--paper); }
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.address-block { margin: 1.9rem 0 0; padding-top: 1.35rem; border-top: 1px solid rgba(245, 240, 233, .38); }
.address-block p { margin: 0; color: #ded7ce; font-size: .94rem; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .95rem; padding-bottom: .25rem; }
.contact-band .text-link { border-bottom-color: rgba(245, 240, 233, .55); color: var(--paper); }
.contact-band .text-link:hover { color: var(--vermilion); border-bottom-color: var(--vermilion); }

.social-strip { width: min(100% - 2.4rem, 1260px); margin: 0 auto; padding: clamp(3.4rem, 7vw, 6.8rem) 0; }
.social-strip-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.social-strip h2 { max-width: 580px; margin: 0; font-family: var(--serif); font-size: clamp(1.85rem, 3.6vw, 3.25rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.35; }
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.7rem; }
.social-link { display: inline-flex; align-items: center; gap: .5rem; }
.social-link::before { width: .45rem; height: .45rem; border-radius: 50%; content: ''; background: var(--vermilion); }

.page-image { position: relative; margin: 0; background: var(--ink); }
.page-image img { width: 100%; max-height: 680px; object-fit: cover; }
.page-image--texture img { max-height: 570px; object-position: 50% 45%; }
.page-image-caption { position: absolute; right: clamp(1.2rem, 4vw, 4.5rem); bottom: 1.1rem; color: var(--white); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-shadow: 0 1px 4px rgba(0,0,0,.45); text-transform: uppercase; }

.content-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 7rem); }
.content-columns h2 { margin: 0 0 1.05rem; font-family: var(--serif); font-size: clamp(1.55rem, 2.8vw, 2.45rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.45; }
.border-list { margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.border-list li { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.border-list small { display: block; margin-bottom: .2rem; color: var(--ink-muted); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.border-list strong { display: block; font-size: .95rem; font-weight: 600; }

.access-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: clamp(2.2rem, 7vw, 8.25rem); align-items: start; }
.access-layout h2 { margin: -.4rem 0 1.55rem; font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.9rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.35; }
.contact-card { padding: clamp(1.5rem, 3.4vw, 3rem); border: 1px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--vermilion); }
.contact-card .eyebrow { margin-bottom: 1.1rem; }
.address-detail { margin: 0 0 1.4rem; font-size: 1.02rem; font-weight: 600; line-height: 1.8; }
.contact-card .border-list { margin-top: 1.2rem; }
.contact-card .text-link { margin-top: 1.75rem; }
.map-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 2.1rem; padding: .95rem 1.15rem; background: var(--vermilion); color: var(--white); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .18s var(--ease), transform .18s var(--ease); }
.map-link::after { content: '↗'; font-size: 1.1rem; line-height: 1; }
.map-link:hover { background: var(--ink); }
.map-link:active { transform: scale(.97); }

.legal-main { background: var(--white); }
.legal-wrap { width: min(100% - 2.4rem, 920px); margin: 0 auto; padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.legal-header { padding-bottom: 2rem; border-bottom: 5px solid var(--ink); }
.legal-header h1 { margin: .55rem 0 0; font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 500; letter-spacing: -.07em; line-height: 1.25; }
.legal-header p { margin: 1rem 0 0; color: var(--ink-muted); font-size: .84rem; }
.legal-note { margin: 2.2rem 0; padding: 1.15rem 1.25rem; border-left: 4px solid var(--vermilion); background: var(--paper); font-size: .87rem; line-height: 1.75; }
.legal-section { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 .9rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 2.1rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.45; }
.legal-section p { margin: 0 0 1rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.legal-section li { margin: .45rem 0; padding-left: .25rem; }

.site-footer { padding: 2.2rem clamp(1.2rem, 4vw, 4.5rem) 2.8rem; background: var(--paper-deep); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; width: min(100%, 1260px); margin: 0 auto; }
.footer-copy { max-width: 435px; margin: 1.1rem 0 0; color: var(--ink-muted); font-size: .74rem; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: .85rem 1.35rem; padding-top: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1.2rem; width: min(100%, 1260px); margin: 2.7rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .63rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.fade-in { animation: rise .65s var(--ease) both; }
.fade-in--late { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 780px) {
  .site-header { min-height: 67px; padding: .72rem 1.2rem; }
  .brand-mark { width: 33px; height: 33px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font-size: .71rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::before { width: .52rem; height: .52rem; border-radius: 50%; content: ''; background: var(--vermilion); }
  .mobile-nav[open] summary { color: var(--vermilion); }
  .mobile-nav-panel { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: flex; padding: 1.2rem; border-bottom: 1px solid var(--ink); background: var(--paper); flex-direction: column; gap: .2rem; }
  .mobile-nav-panel a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }
  .mobile-nav-panel .nav-cta { justify-content: center; margin-top: .8rem; border: 0; font-family: var(--sans); font-size: .7rem; }
  .hero { min-height: 650px; }
  .hero-media { object-position: 65% center; }
  .hero::after { background: linear-gradient(90deg, rgba(245, 240, 233, .98) 0%, rgba(245, 240, 233, .83) 55%, rgba(245, 240, 233, .18) 100%); }
  .hero-content, .page-intro, .editorial-section, .image-interval, .social-strip { width: min(100% - 2.4rem, 1260px); }
  .hero-content { padding-top: 6rem; padding-bottom: 4.2rem; }
  .hero h1 { max-width: 315px; font-size: clamp(2.9rem, 14vw, 4.6rem); }
  .hero-intro { max-width: 294px; font-size: .87rem; line-height: 1.9; }
  .hero-note { right: 1.2rem; bottom: .9rem; font-size: .55rem; }
  .section-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .section-label { flex-direction: row; align-items: center; }
  .section-label::before { width: .78rem; height: .78rem; margin: 0; }
  .section-content h2 { margin-top: 0; }
  .image-interval { padding: 2.7rem 0; }
  .image-interval figure { width: calc(100% - 1.05rem); }
  .image-interval figure::before { top: -.75rem; left: -.75rem; }
  .contact-split, .content-columns, .access-layout { grid-template-columns: 1fr; }
  .contact-links { margin-top: .8rem; }
  .social-strip-inner { grid-template-columns: 1fr; }
  .social-links { justify-content: flex-start; }
  .page-image img { min-height: 255px; object-position: 68% center; }
  .page-image--texture img { object-position: 50% 50%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; padding-top: 0; }
  .footer-bottom { flex-direction: column; margin-top: 2rem; }
  .legal-wrap { width: min(100% - 2.4rem, 920px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
