@font-face {
  font-family: "Ikaros";
  src: url("assets/fonts/ikaros-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Swap --font here to try another typeface. */
:root {
  --font: "Ikaros", "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
  --paper: #eeefeb;
  --ink: #343835;
  --muted: #626863;
  --line: #ced2cc;
  --wordmark-spacing: .2em;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) var(--paper);
}
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
@supports selector(::-webkit-scrollbar) {
  html { scrollbar-width: auto; scrollbar-color: auto; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--paper); }
  ::-webkit-scrollbar-thumb {
    background: var(--muted);
    border: 3px solid var(--paper);
    border-radius: 12px;
    min-height: 40px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink); }
  ::-webkit-scrollbar-corner { background: var(--paper); }
}
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #d3d9d0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 2px; }
a:hover { color: #131814; }
.page { min-height: 100svh; display: flex; flex-direction: column; width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 5; }
.skip-link:focus { top: 16px; color: var(--paper); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 24px; font-weight: 400; letter-spacing: var(--wordmark-spacing); }
nav { display: flex; gap: 32px; font-size: 14px; }
nav a { padding-block: 8px; }
.hero { padding: 100px 0 108px; }
.hero h1 { margin: 0 0 24px; font-size: clamp(48px, 7vw, 80px); font-weight: 400; letter-spacing: var(--wordmark-spacing); line-height: 1.2; }
.brand-note { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 16px; }
.brand-note [lang="ja"] { font-family: "Yu Gothic", "Meiryo", sans-serif; letter-spacing: .22em; }
.section { border-top: 1px solid var(--line); padding-block: 40px 52px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 30px; }
.subpage h1, h2 { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: .025em; }
.small-note { color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 3px; min-height: 154px; background: #f2f3ef; display: block; transition: border-color .2s ease; }
.project-arrow { position: absolute; top: 32px; right: 28px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: 20px; line-height: 1; }
h3 { margin: 0 0 10px; font-size: 25px; font-weight: 400; letter-spacing: -.025em; padding-right: 30px; }
.project p { margin: 0; color: var(--muted); }
.about, .contact { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.section-copy { max-width: 580px; }
.section-copy p { margin: 0 0 18px; color: var(--muted); }
.section-copy p:last-child { margin-bottom: 0; }
.spoken { color: var(--ink); white-space: nowrap; }
.contact-placeholder { display: flex; gap: 24px; align-items: baseline; }
footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px 36px; }
footer .wordmark { font-size: 18px; }
.footer-details { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .page { min-height: 100svh; display: flex; flex-direction: column; width: calc(100% - 48px); }
}
@media (max-width: 560px) {
  .header { padding-block: 12px; gap: 16px; }
  .header .wordmark { font-size: 21px; }
  nav { gap: 18px; }
  .hero { padding-block: 64px; }
  .section { padding-block: 28px 36px; }
  .section-heading { margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project { padding: 24px; min-height: 140px; }
  .project-arrow { top: 26px; right: 24px; }
  .about, .contact { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 360px) {
  .page { min-height: 100svh; display: flex; flex-direction: column; width: calc(100% - 32px); }
  .header { flex-wrap: wrap; }
  nav { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}



/* Separate pages share the same shell and styles. */
.subpage { padding-top: 60px; padding-bottom: 40px; }
.subpage-section { border-top: 0; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 560px) {
  .subpage { padding-top: 28px; padding-bottom: 24px; }
}

/* Pronunciation guides remain visible beside the katakana. */
.pronunciation-mark { display: inline-flex; align-items: center; max-width: 100%; }
.pronunciation-mark > [lang="ja"] { flex-shrink: 0; }
.pronunciation-reveal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); font-family: "Segoe UI", "Arial", sans-serif; font-size: 14px; line-height: 1.6; letter-spacing: 0; }
.pronunciation-reveal > span { white-space: nowrap; }
.view-all { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.view-all:hover, .footer-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .footer-details { flex-direction: column; align-items: flex-end; gap: 4px; }
}

@media (hover: hover) {
  .project:hover { border-color: var(--muted); }
}
.project:active { border-color: var(--ink); }
.project:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
}

/* Position the credit within the existing footer padding to preserve height. */


/* Match the hero wordmark to the header wordmark across page navigation. */
@view-transition { navigation: none; }
[data-moving-wordmark] { view-transition-name: kiyori-wordmark; display: inline-block; width: max-content; }
.header-wordmark-space { width: 92px; height: 39.6px; flex-shrink: 0; }
.header nav { margin-left: auto; }
::view-transition-group(kiyori-wordmark) { animation-duration: .35s; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
::view-transition-old(kiyori-wordmark),
::view-transition-new(kiyori-wordmark) { height: 100%; width: 100%; mix-blend-mode: normal; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
@media (max-width: 560px) {
  .header-wordmark-space { width: 80px; height: 34.65px; }
}
@media (max-width: 360px) {
  .home-page .header { flex-wrap: nowrap; }
  .home-page .header-wordmark-space { width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

.moving-wordmark-copy { position: fixed; font-weight: 400; letter-spacing: .2em; white-space: nowrap; transform-origin: top left; pointer-events: none; z-index: 100; }


.hero-description { margin: 24px 0 0; color: var(--muted); font-size: 16px; }

/* Catalog information follows the same two-column rhythm. */
.editorial { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.editorial h1, .editorial h2 { margin: 0; font-size: 16px; font-weight: 400; }
.editorial ul { margin: 0; padding-left: 20px; color: var(--muted); }
.editorial li + li { margin-top: 10px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.inline-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.section-copy .catalog-disclaimer { margin-top: 24px; font-size: 13px; }
.email-action { display: inline-flex; align-items: center; gap: 24px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 3px; }
.email-action:hover { background: var(--ink); color: var(--paper); }
.section-copy .email-address { margin-block: 18px 28px; font-size: 14px; }
@media (max-width: 560px) {
  .editorial { grid-template-columns: 1fr; gap: 20px; }
  .header { align-items: flex-start; }
  .header nav { flex-wrap: wrap; justify-content: flex-end; gap: 0 18px; }
  .home-page .header-wordmark-space { display: none; }
  .header .wordmark { flex-shrink: 0; padding-top: 3px; }
}
