/* Shared layout for every viewport. Small screens are the default. */
:root {
  --ink: #1c1f2a;
  --muted: #4a4e5c;
  --blue: #243f84;
  --purple: #7a3b8c;
  --night: #0f1226;
  --paper: #f6f6f8;
  --gutter: clamp(20px, 4.45vw, 64px);
  --section-space: clamp(68px, 9.7vw, 140px);
  --gradient: linear-gradient(120deg, #243f84, #4d3a8c 60%, #7a3b8c);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.9; }
main, header, footer { width: 100%; max-width: 1600px; margin-inline: auto; }
h1, h2, h3, h4, p, ol, dl, dd { margin: 0; }
h2, h3, h4 { line-height: 1.5; }
h2 { font-size: clamp(26px, 3.1vw, 44px); font-weight: 600; }
h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; }
h4 { font-size: 20px; }
p { font-size: 14px; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a06ed0; outline-offset: 5px; }
section, [id] { scroll-margin-top: 24px; }
.serif, h2 { font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; }
.eyebrow { font-family: 'Noto Sans JP', sans-serif; color: var(--purple); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.6; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 8px; background: white; padding: 12px 24px; }
.desktop-break { display: none; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.section { padding: var(--section-space) var(--gutter); }
.section-heading { margin-bottom: clamp(28px, 4.4vw, 64px); }
.section-heading--row { display: flex; flex-direction: column; gap: 20px; }
.section-heading p { max-width: 520px; color: var(--muted); }
.split { display: grid; gap: 36px; align-items: center; }
.split > *, .case-grid > *, .service-grid > *, .strength-grid > *, .price-grid > * { min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 3px; background: var(--purple); color: white; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-align: center; }
.button--light { background: white; color: var(--blue); }
.button:hover { text-decoration: none; filter: brightness(.94); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
/* Native picture selects the approved portrait artwork below 768px. */
.hero-brand { padding: 17px var(--gutter); background: var(--night); }
.hero-brand img { width: 137px; }
.hero-approved { background: white; }
.hero-approved picture { display: block; }
.hero-approved__image { width: 100%; height: auto; }
.key-numbers { padding: 28px var(--gutter); background: var(--night); color: white; }
.key-numbers__inner { display: flex; flex-direction: column; gap: 24px; }
.key-numbers__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.metric .eyebrow { color: #c8c7d2; font-size: 9px; letter-spacing: .1em; }
.metric__value { font-size: clamp(18px, 2.6vw, 38px); line-height: 1.3; font-weight: 600; }
.metric__value > span { font: 500 .52em 'Noto Sans JP', sans-serif; }
.key-numbers__actions .button { width: 100%; }
.concept, .service, .strengths, .about { background: white; }
.concept p { color: var(--muted); max-width: 580px; }
.concept__diagram { position: relative; height: 300px; display: none; }
.concept__circle { position: absolute; top: 0; width: 65%; aspect-ratio: 1; border-radius: 50%; display: grid; align-items: center; color: white; font-size: clamp(18px, 2vw, 30px); font-weight: 700; }
.concept__circle:first-child { left: 0; padding-left: 12%; background: #243f84c7; }
.concept__circle:last-child { right: 0; text-align: right; padding-right: 7%; background: #7a3b8cb8; mix-blend-mode: multiply; }
.produce { background: linear-gradient(160deg, #1c2a5e, #243f84 40%, #5b3a8c); color: white; }
.produce .eyebrow, .results .eyebrow, .contact-cta .eyebrow { color: #d9c5ea; }
.produce .section-heading p { max-width: 680px; color: #e2deef; }
.case-grid { display: grid; gap: 28px; }
.case-card { border: 1px solid #ffffff24; background: #ffffff0f; border-radius: 6px; overflow: hidden; }
.case-card__media { position: relative; aspect-ratio: 1.6; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__label { position: absolute; top: 20px; left: 20px; padding: 6px 12px; background: #0008; color: white; border-radius: 2px; }
.case-card__body { padding: clamp(20px, 2.5vw, 36px); }
.case-card__body p { color: #eee9f6; }
.case-card__body a { color: white; }
.case-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding-block: 20px; border-block: 1px solid #ffffff26; }
.case-metrics .metric > span:first-child { font-size: 11px; color: #ded9e9; }
.case-metrics .metric__value { font-size: 26px; }
.produce__closing { margin-top: 48px; text-align: center; font-size: clamp(18px, 1.7vw, 24px); }
.problem { display: grid; border: 1px solid #e3e1ec; border-radius: 8px; overflow: hidden; }
.problem__intro { justify-content: center; padding: 28px 24px; background: linear-gradient(160deg, #f0eef5, #e8e3f1); }
.problem__list { display: grid; gap: 16px; padding: 24px; background: #fafafc; }
.problem__item { display: flex; align-items: center; gap: 16px; padding: 20px; background: white; border: 1px solid #e3e1ec; border-radius: 6px; font-size: 14px; font-weight: 700; }
.check-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; background: #f0eef5; color: var(--purple); border-radius: 50%; }
.solution { margin-bottom: 64px; }
.solution::before { content: ''; display: block; width: 0; margin-inline: auto; border: 22px solid transparent; border-top-color: #e8e3f1; border-bottom: 0; }
.solution__body { padding: 28px 24px; margin-top: 16px; background: var(--gradient); color: white; text-align: center; border-radius: 8px; }
.solution__body .serif { font-size: clamp(20px, 2vw, 28px); }
.service-grid { display: grid; gap: 20px; }
.service-card { padding: 28px 24px; border-radius: 8px; background: var(--paper); border: 1px solid #e3e1ec; color: var(--ink); }
.service-card:first-child { background: var(--purple); color: white; }
.service-card:first-child .eyebrow { color: #eee9f6; }
.service-card p { font-size: 13px; }
.service-card .text-link { margin-top: auto; }
.service-card:hover { text-decoration: none; box-shadow: 0 6px 24px #243f8414; }
.posuraku { background: #f0eef5; }
.posuraku h2 span { color: var(--purple); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card { padding: 24px 12px; align-items: center; background: white; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 700; }
.results { background: radial-gradient(ellipse at top right, #54326a77, transparent 65%), #141a33; color: white; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-metric { display: flex; flex-direction: column; gap: 10px; }
.result-metric__value { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.result-metric__value > span:first-child { font-size: clamp(48px, 6.3vw, 92px); line-height: 1; }
.result-metric__value > span:last-child { font-size: clamp(16px, 1.6vw, 24px); }
.result-metric > span:last-child { font-size: 13px; color: #ded9e9; }
.results p { color: #e1deeb; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 6px 12px; border: 1px solid #ffffff59; border-radius: 999px; font-size: 12px; }
.result-proof { padding: 28px; background: #ffffff0f; border: 1px solid #ffffff24; border-radius: 8px; }
.result-proof > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.result-proof .serif { font-size: 56px; line-height: 1.2; }
.result-proof .serif span { font-size: 28px; }
.industry-grid { display: grid; gap: 12px; }
.industry-card { padding: 24px; gap: 10px; background: #ffffff0f; border: 1px solid #ffffff24; border-radius: 8px; font-size: 13px; }
.industry-card > span:first-of-type { font-weight: 700; }
.strength-grid { display: grid; gap: 20px; }
.strength-card { position: relative; padding: 28px 24px; background: var(--paper); border-radius: 8px; overflow: hidden; }
.strength-card > * { position: relative; }
.strength-card__number { position: absolute; right: 20px; top: 0; font-size: 120px; line-height: 1; color: #243f8412; }
.strength-card__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: white; }
.strength-card p { color: var(--muted); }
.strength-card--accent { background: var(--gradient); color: white; }
.strength-card--accent .eyebrow, .strength-card--accent p { color: #eee9f6; }
.strength-card--accent .strength-card__number { color: #ffffff14; }
.strength-card--accent .strength-card__icon { background: white; color: var(--blue); }
.flow { background: var(--paper); }
.flow__steps { margin-bottom: 72px; }
.steps { list-style: none; padding: 0; display: grid; gap: 24px; }
.step { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 20px; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 20px; top: 52px; bottom: -14px; width: 1px; background: #c9c5dd; }
.step__number { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); background: white; }
.step__body { padding: 0 0 16px; gap: 8px; }
.step__body h3 { font-size: 17px; font-weight: 700; }
.step__body p { font-size: 13px; }
.step:last-child .step__number { background: var(--purple); color: white; border-color: var(--purple); }
.price-grid { display: grid; gap: 20px; }
.price-card { padding: 28px 24px; background: white; border-radius: 8px; border-top: 3px solid var(--blue); }
.price-card:nth-child(2) { border-color: var(--purple); }
.price-card h3 { font-size: 15px; font-weight: 700; }
.price-card > span { font-size: 13px; color: var(--muted); }
.price-card__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.price-card__amount .serif { font-size: clamp(32px, 2.8vw, 40px); font-weight: 600; }
.portrait { position: relative; max-width: 420px; margin-bottom: 24px; }
.portrait > img { width: 100%; aspect-ratio: 7 / 8; object-fit: cover; object-position: center top; border-radius: 6px; }
.portrait__caption { position: absolute; left: 24px; bottom: -24px; display: flex; flex-direction: column; gap: 4px; padding: 18px 24px; background: var(--blue); color: white; border-radius: 4px; font-size: 11px; }
.portrait__caption .serif { font-size: 22px; }
.portrait__caption .eyebrow { color: #ded9e9; }
.about p { color: var(--muted); }
.news-list { border-top: 1px solid #dcdce3; }
.news-item { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid #dcdce3; color: var(--ink); font-size: 14px; }
.news-item > span:last-child { grid-column: 1 / -1; }
.news-item .eyebrow { color: #6b6f7c; letter-spacing: .08em; }
.news-item__category { justify-self: start; border: 1px solid var(--blue); color: var(--blue); border-radius: 2px; padding: 2px 12px; font-size: 11px; }
.contact-cta { position: relative; isolation: isolate; background: var(--gradient); color: white; }
.contact-cta__image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; mix-blend-mode: luminosity; }
.contact-cta__body { text-align: center; align-items: center; }
.contact-cta__body h2 { font-size: clamp(28px, 3.6vw, 52px); }
.contact-cta .button { margin-top: 12px; min-width: min(100%, 280px); }
.site-footer { background: var(--night); color: white; padding: 48px var(--gutter) 32px; }
.site-footer__main { display: flex; flex-direction: column; gap: 36px; margin-bottom: 40px; }
.site-footer__company { max-width: 420px; font-size: 13px; color: #c5c5ce; }
.site-footer__company img { width: 150px; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-footer__nav .stack { gap: 8px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: white; font-size: 12px; letter-spacing: .08em; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff20; padding-top: 24px; font-size: 11px; color: #b1b0c0; }
.site-footer__bottom > div { display: flex; gap: 16px; }
/* Intermediate widths use two columns only where the content fits. */
@media (min-width: 600px) {
  .service-grid, .strength-grid, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .key-numbers__metrics { gap: 24px; }
  .metric__value { font-size: 30px; }
}
@media (min-width: 768px) {
  p { font-size: 15px; }
  .hero-brand { padding-block: 20px; }
  .hero-brand img { width: 164px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__inner { grid-template-columns: minmax(220px, .85fr) minmax(0, 1.35fr); }
  .section-heading--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .section-heading--row > .stack { flex: 1 0 40%; }
  .section-heading--row > p { flex: 1; text-align: right; }
  .news-item { grid-template-columns: 120px 110px minmax(0, 1fr); gap: 24px; }
  .news-item > span:last-child { grid-column: auto; }
  .site-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-card { padding: 32px 16px; font-size: 14px; }
}
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
  .concept .split { grid-template-columns: 1.2fr 1fr; }
  .concept h2 { font-size: clamp(28px, 2.7vw, 40px); }
  .concept__diagram { display: block; height: clamp(240px, 24vw, 360px); }
  .problem { grid-template-columns: 1fr 2fr; }
  .problem__intro, .problem__list { padding: 40px 32px; }
  .strength-grid, .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strength-card { padding: 36px 28px; }
  .key-numbers__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .key-numbers__metrics { flex: 1; max-width: 860px; }
  .metric__value { font-size: clamp(28px, 2.6vw, 38px); }
  .key-numbers__actions { flex: 0 0 200px; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .step { display: flex; flex-direction: column; gap: 20px; }
  .step__number { width: 60px; height: 60px; margin-inline: auto; font-size: 20px; }
  .step:not(:last-child)::after { width: calc(100% + 20px); height: 1px; top: 30px; left: 50%; bottom: auto; }
  .step__body { height: 100%; background: white; padding: 24px 20px; border-radius: 8px; }
  .step:last-child .step__body { background: var(--blue); color: white; }
  .step:last-child .eyebrow { color: #d9c5ea; }
  .site-footer__main { flex-direction: row; justify-content: space-between; gap: 48px; }
  .site-footer__nav { flex: 1; max-width: 600px; }
}
@media (min-width: 1200px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .desktop-break { display: initial; }
  .service-card { padding: 36px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Abbreviated values retain the original SP presentation without squeezed text. */
.metric__value > .metric__wide, .metric__value > .metric__compact { font: inherit; }
.metric__value > .metric__wide { display: none; }
.metric__wide > span, .metric__compact > span { font: 500 .52em 'Noto Sans JP', sans-serif; }
@media (min-width: 1024px) {
  .metric__value > .metric__wide { display: inline; }
  .metric__value > .metric__compact { display: none; }
}
