/* Imagine Craft — site styles (2026-11) */

:root {
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #15171a;
  --ink-2: #474c54;
  --ink-3: #777c84;
  --line: #dcd8cf;
  --accent: #d2452a;
  --dark: #121417;
  --on-dark: #f3f1ec;
  --on-dark-2: rgba(243, 241, 236, .72);
  --dark-line: rgba(243, 241, 236, .18);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;
  --radius: 4px;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Fraunces", "Hoefler Text", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  font-feature-settings: "palt";
  letter-spacing: .03em;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.hero__body, .sec__desc, .step__text, .reason__text, .faq__q { word-break: auto-phrase; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(780px + var(--gutter) * 2); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 14px; background: var(--ink); color: #fff; text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-feature-settings: normal;
}

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.gnav__list a {
  position: relative;
  display: block; padding: 6px 0;
  font-size: 14px; font-weight: 500; line-height: 1.4;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
}
.gnav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.gnav__list a:hover { color: var(--ink); }
.gnav__list a:hover::after { transform: scaleX(1); }

.menu-btn { display: none; }

/* ---------- buttons / links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-family: inherit; font-weight: 700; line-height: 1; letter-spacing: .08em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--large { height: 60px; padding: 0 30px 0 34px; font-size: 17px; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn__arrow {
  position: relative; width: 22px; height: 10px; flex: none;
  transition: transform .25s ease;
}
.btn__arrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: currentColor;
}
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -4.25px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn__arrow { transform: translateX(5px); }

.textlink {
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color .2s ease;
}
.textlink:hover { color: var(--accent); }
.textlink--light { color: var(--on-dark); }
.textlink--light:hover { color: #fff; text-decoration-color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: clamp(20px, 3.4vw, 44px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 72px);
}

.hero__lead {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  color: var(--accent);
  font-size: 14px; font-weight: 700; letter-spacing: .16em; line-height: 1.4;
}
.hero__lead::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.hero__title {
  font-size: clamp(2.5rem, .6rem + 4.3vw, 4.5rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: .01em;
  white-space: nowrap;
}

.hero__sub {
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(1.125rem, .9rem + .8vw, 1.5rem);
  font-weight: 700; line-height: 1.5; letter-spacing: .06em;
}

.hero__body {
  margin-top: clamp(16px, 1.8vw, 22px);
  max-width: 31em;
  color: var(--ink-2);
  font-size: 16px; line-height: 2;
}

.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
  margin-top: clamp(28px, 3.2vw, 44px);
}

.hero__note { margin-top: 18px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }

.hero__visual { position: relative; }
.hero__visual img {
  width: 100%;
  aspect-ratio: 5 / 6;
  max-height: min(760px, calc(100vh - var(--header-h) - 56px));
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: var(--radius);
}
.hero__visual figcaption,
.reason__fig figcaption {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 8px;
  background: rgba(18, 20, 23, .55);
  color: #fff;
  font-size: 11px; line-height: 1.5; letter-spacing: .08em;
  border-radius: 2px;
}

/* ---------- sections ---------- */

.sec { padding: clamp(72px, 10vw, 132px) 0; }
.sec--white { background: var(--white); }
.sec--dark { background: var(--dark); color: var(--on-dark); }

.sec__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px;
  padding-bottom: clamp(22px, 2.6vw, 32px);
  margin-bottom: clamp(32px, 4.4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.sec--dark .sec__head { border-bottom-color: var(--dark-line); }

.sec__kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 14px; font-weight: 700; letter-spacing: .1em; line-height: 1.5;
}
.sec__title {
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);
  font-weight: 900; line-height: 1.35; letter-spacing: .03em;
}
.sec__desc { max-width: 34em; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.sec--dark .sec__desc { color: var(--on-dark-2); }

/* samples */

.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.sample img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #1d2024; }
.sample figcaption {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 16px;
  font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: .06em;
}
.sample figcaption::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--accent); transform: translateY(-5px); }

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.step { padding: 4px clamp(20px, 3vw, 44px) 8px; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step:last-child { padding-right: 0; }
.step__num {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3.25rem, 2.4rem + 2.6vw, 4.75rem);
  line-height: 1; letter-spacing: -.02em;
  color: var(--accent);
  font-feature-settings: "lnum";
}
.step__title { margin-top: clamp(18px, 2vw, 26px); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.step__text { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.95; }

/* reasons */

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.2vw, 44px); }
.reason__fig { position: relative; overflow: hidden; border-radius: var(--radius); background: #e9e6df; }
.reason__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.reason:hover .reason__fig img { transform: scale(1.03); }
.reason__title { margin-top: clamp(18px, 2vw, 24px); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.reason__text { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.95; }

/* closing */

.closing {
  position: relative; isolation: isolate;
  background: #08090b url("img/band-1920.jpg") right center / cover no-repeat;
  background-image: image-set(url("img/band-1920.webp") type("image/webp"), url("img/band-1920.jpg") type("image/jpeg"));
  color: var(--on-dark);
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 11, .88) 0%, rgba(8, 9, 11, .62) 42%, rgba(8, 9, 11, 0) 78%);
}
.closing__in { padding-block: clamp(84px, 11vw, 150px); }
.closing__title { font-size: clamp(1.875rem, 1rem + 3vw, 3.25rem); font-weight: 900; line-height: 1.4; letter-spacing: .03em; }
.closing__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: clamp(28px, 3.4vw, 44px); }
.closing__note { margin-top: 18px; color: var(--on-dark-2); font-size: 13px; line-height: 1.6; }

/* ---------- footer ---------- */

.site-footer { background: var(--dark); color: var(--on-dark); }
.site-footer__in {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 48px;
  padding-block: clamp(36px, 4.6vw, 56px);
}
.logo--footer { color: var(--on-dark); font-size: 21px; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 28px; }
.site-footer__links a { font-size: 13px; color: var(--on-dark-2); text-decoration: none; transition: color .2s ease; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.site-footer__copy {
  grid-column: 1 / -1;
  padding-top: 20px; border-top: 1px solid var(--dark-line);
  color: rgba(243, 241, 236, .5); font-size: 12px; letter-spacing: .06em;
  font-feature-settings: normal;
}

/* ---------- document pages (law / privacy / term / contact) ---------- */

.page-head { padding: clamp(40px, 6vw, 80px) 0 0; }
.page-head__title {
  padding-bottom: clamp(22px, 2.8vw, 32px);
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 900; line-height: 1.4; letter-spacing: .04em;
}

.doc { padding: clamp(28px, 4vw, 48px) 0 clamp(72px, 10vw, 128px); font-size: 16px; line-height: 2; }
.doc p { color: #2a2e34; }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.doc a:hover { color: var(--accent); }

/* text rendered from Markdown (law / privacy / term) */
.doc--md > * + * { margin-top: 1.6em; }
.doc--md h1 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 900; line-height: 1.6; letter-spacing: .04em; }
.doc--md h2 {
  margin-top: 2.6em; padding-top: 1.5em; border-top: 1px solid var(--line);
  font-size: 1.125rem; font-weight: 700; line-height: 1.6; letter-spacing: .04em;
}
.doc--md h1 + h2 { margin-top: 1.6em; }
.doc--md h2 + p { margin-top: .7em; }
.doc--md h3 { font-size: 1rem; font-weight: 700; line-height: 1.6; }
.doc--md ul { list-style: disc; padding-left: 1.4em; }
.doc--md ol { list-style: decimal; padding-left: 1.6em; }

/* paragraphs whose first line is a heading (marked up by site.js) */
.doc--md p.has-lead { margin-top: 2.2em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.doc--md p.has-lead:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc--md .doc-lead { display: block; margin-bottom: .35em; color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.6; letter-spacing: .04em; }

/* contact page */

.doc-sec { padding-top: 8px; }
.doc-sec + .doc-sec { margin-top: clamp(48px, 6vw, 76px); }
.doc-sec__title {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 900; line-height: 1.5; letter-spacing: .04em;
}
.doc-sec__title::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--accent); }
.doc-sec > * + * { margin-top: 1.2em; }

.faq { border-top: 1px solid var(--line); }
.faq__item { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.faq__q { position: relative; padding-left: 2em; font-size: 1.0625rem; font-weight: 700; line-height: 1.7; letter-spacing: .04em; }
.faq__a { position: relative; margin-top: 8px; padding-left: 2.125em; color: #2a2e34; }
.faq__q::before, .faq__a::before {
  position: absolute; left: 0; top: -.02em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25em; line-height: 1.5;
  font-feature-settings: normal; letter-spacing: 0;
}
.faq__q::before { content: "Q"; color: var(--accent); }
.faq__a::before { content: "A"; color: var(--ink-3); top: .1em; font-size: 1.3125em; }

.info { border-top: 1px solid var(--line); }
.info__row { display: grid; grid-template-columns: 9em 1fr; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info__row dt { color: var(--ink-2); font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 2.3; }
.info__row dd { font-size: 17px; font-weight: 500; }
.info__row dd a { text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.info__row dd a:hover { border-bottom-color: var(--accent); }

/* ---------- reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .samples > li:nth-child(2), .js .steps > li:nth-child(2), .js .reasons > li:nth-child(2) { transition-delay: .1s; }
.js .samples > li:nth-child(3), .js .steps > li:nth-child(3), .js .reasons > li:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .reason__fig img, .btn__arrow { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .gnav { gap: 20px; }
  .gnav__list { gap: 16px; }
  .gnav__list a { font-size: 13px; }
}

@media (max-width: 960px) {
  :root { --header-h: 60px; }

  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 12px 0 10px; margin-right: -12px;
    border: 0; background: none; color: var(--ink);
    font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; cursor: pointer;
  }
  .menu-btn__bars { position: relative; width: 20px; height: 10px; }
  .menu-btn__bars::before, .menu-btn__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform .25s ease, top .25s ease, bottom .25s ease;
  }
  .menu-btn__bars::before { top: 0; }
  .menu-btn__bars::after { bottom: 0; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 4.25px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { bottom: 4.25px; transform: rotate(-45deg); }

  .gnav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(21, 23, 26, .25);
  }
  .gnav.is-open { display: flex; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav__list a { padding: 15px 0; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .gnav__list a::after { display: none; }
  .gnav .btn--small { height: 52px; font-size: 16px; }

  .hero { padding-top: 12px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__visual { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero__visual img { aspect-ratio: 4 / 3; min-height: 0; max-height: 62vh; border-radius: 0; object-position: 50% 58%; }
  .hero__visual figcaption { right: var(--gutter); }

  .samples, .reasons { grid-template-columns: minmax(0, 1fr); }
  .samples { gap: 32px; }
  .reasons { gap: 40px; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .step {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 8px;
    padding: 26px 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .step:first-child { padding-top: 0; border-top: 0; }
  .step:last-child { padding-bottom: 0; }
  .step__num { grid-row: 1 / span 2; font-size: 3.25rem; }
  .step__title { margin-top: 4px; }
  .step__text { margin-top: 8px; }

  .closing { background-position: 72% center; }
  .closing::before { background: linear-gradient(90deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .7) 60%, rgba(8, 9, 11, .35) 100%); }

  .site-footer__in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .site-footer__links { justify-content: flex-start; flex-direction: column; gap: 12px; }
  .site-footer__links a { font-size: 14px; }

  .info__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .info__row dt { line-height: 1.8; }
}

@media (min-width: 600px) and (max-width: 960px) {
  .samples { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .sample figcaption { font-size: 14px; }
  .hero__visual img { aspect-ratio: 16 / 10; }
}

@media (min-width: 720px) and (max-width: 960px) {
  .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .reason__text { font-size: 14px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.125rem; }
  .btn--large { padding: 0 22px 0 26px; }
}
