@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/NotoSansJP-web.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Brand tokens: change these to match the existing company website. */
:root {
  --color-ink: #142c3b;
  --color-primary: #284fcc;
  --color-primary-hover: #1e3ca1;
  --color-muted: #52636c;
  --color-line: #d8dfe1;
  --color-pale: #f1f4fa;
  --color-paper: #f7f8f4;
  --color-white: #fff;
  --color-dark: #162f62;
  --color-dark-card: #223f75;
  --color-dark-copy: #e0e8f6;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --content-max: 1200px;
  --page-gutter: 40px;
  --section-space: 96px;
  --radius-button: 8px;
  --radius-card: 12px;
  color-scheme: light;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 14px; color: var(--color-muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-break: strict; overflow-wrap: anywhere; }
h1 { font-size: 2.6875rem; line-height: 1.65; letter-spacing: 0; }
h1 span { display: block; }
h2 { max-width: 960px; margin-bottom: 26px; font-size: 2.25rem; line-height: 1.6; text-wrap: pretty; }
h3 { margin-bottom: 12px; font-size: 1.25rem; line-height: 1.6; }
a:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 5px; box-shadow: 0 0 0 5px #fff; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--color-primary); }
.container { width: calc(100% - var(--page-gutter) * 2); max-width: var(--content-max); margin-inline: auto; }
.section { padding-block: var(--section-space); scroll-margin-top: 24px; }
.eyebrow { margin-bottom: 20px; color: var(--color-primary); font-size: .8125rem; line-height: 1.5; font-weight: 700; }
.accent { color: var(--color-primary); }
.paper, .hero { background: var(--color-paper); }
.caption, .hero-art figcaption { margin-top: 14px; color: var(--color-muted); font-size: .75rem; line-height: 1.7; }
.medium { max-width: 900px; }
.skip-link { position: absolute; top: 0; left: 24px; z-index: 10; transform: translateY(-120%); padding: 12px; background: var(--color-white); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { min-height: 76px; background: var(--color-white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px 24px; padding-block: 12px; border-bottom: 1px solid var(--color-line); }
.brand { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; min-height: 44px; gap: 13px; font-size: .9375rem; font-weight: 700; }
.brand [data-company] { min-width: 0; }
.brand-logo { flex: 0 1 auto; width: auto; max-width: 150px; max-height: 42px; object-fit: contain; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: .875rem; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }
.header-inner nav [data-contact-nav] { color: var(--color-primary); font-weight: 700; }
.header-inner nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* First view */
.hero { padding: 64px 0 50px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 584px) minmax(0, 560px); column-gap: 56px; align-items: start; }
.hero-heading { grid-column: 1; grid-row: 1; min-width: 0; }
.hero-heading .eyebrow { margin-bottom: 24px; font-size: .875rem; }
.hero-art { grid-column: 2; grid-row: 1 / span 2; min-width: 0; margin-top: 41px; }
.hero-art img { aspect-ratio: 3 / 2; object-fit: contain; }
.hero-copy { grid-column: 1; grid-row: 2; min-width: 0; margin-top: 28px; }
.hero-copy .button { margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 56px; min-width: min(220px, 100%); max-width: 100%; gap: 34px; padding: 15px 22px; border: 0; border-radius: var(--radius-button); background: var(--color-primary); color: var(--color-white); font-size: .9375rem; line-height: 1.5; font-weight: 700; transition: background-color 160ms ease; }
.button span { flex-shrink: 0; font-size: 1.25rem; font-weight: 400; }
.button:hover { background: var(--color-primary-hover); }

/* Purpose, opportunity and process */
.split { display: grid; grid-template-columns: minmax(0, 530px) minmax(0, 560px); gap: 110px; }
.split h2 { margin: 0; }
.grid { display: grid; gap: 20px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.goals { margin-top: 44px; }
.card { height: 100%; padding: 26px; background: var(--color-white); border-radius: var(--radius-card); }
.goals .card { background: var(--color-pale); }
.card-number { display: block; margin-bottom: 20px; color: var(--color-primary); font-size: .875rem; line-height: 1.4; font-weight: 700; }
.card h3 { margin-bottom: 14px; }
.list-label { margin: 34px 0 18px; color: var(--color-primary); font-size: .875rem; font-weight: 700; }
.dark { background: var(--color-dark); color: var(--color-white); }
.dark .eyebrow, .dark .card-number { color: #b9c9ff; }
.dark .card { background: var(--color-dark-card); }
.dark p { color: var(--color-dark-copy); }
.process-list { margin: 38px 0 0; padding: 0; list-style: none; }
.process-list > li { min-width: 0; }

/* Support and principles */
.support-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; margin-top: 32px; }
.section-art { min-width: 0; }
.section-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: var(--radius-card); }
.section-art figcaption { margin-top: 12px; color: var(--color-muted); font-size: .75rem; line-height: 1.7; }
.principles-lead { min-width: 0; }
.principles-lead .section-art { margin-top: 32px; }
.support-items { gap: 30px 40px; margin-top: 42px; }
.ruled-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 20px; padding-top: 20px; border-top: 1px solid var(--color-line); }
.ruled-item > .card-number { padding-top: 4px; margin-bottom: 0; }
.incentive { margin-top: 40px; padding: 24px; border-radius: 10px; background: var(--color-pale); }
.incentive h3 { margin-bottom: 10px; font-size: 1.125rem; }
.principles { grid-template-columns: minmax(0, 470px) minmax(0, 630px); gap: 100px; }
.principles .ruled-item { padding-bottom: 28px; }

/* Optional activity reports: one item / multiple items / no photo */
.project-feature { display: grid; grid-template-columns: 46% minmax(0, 1fr); align-items: start; gap: 40px; margin-top: 22px; }
.project-body { min-width: 0; }
.project-feature h3 { margin: 14px 0 18px; }
.project-feature p { margin-bottom: 18px; }
.project-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: var(--color-primary); font-size: .875rem; font-weight: 700; }
.project-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.status { display: inline-block; padding: 5px 10px; border-radius: 4px; color: #41566b; background: #edf1f6; font-size: .875rem; line-height: 1.6; font-weight: 700; }
.status[data-stage="企画中"] { color: #6a4a17; background: #fff0d8; }
.status[data-stage="開発中"] { color: #2542a4; background: #eaf0ff; }
.status[data-stage="公開済み"] { color: #1b614b; background: #e8f3ed; }
.project-many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.project-many .project-feature { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.project-many .project-body { width: 100%; }
.project-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; height: auto; border-radius: 10px; background: var(--color-pale); }
.project-feature.without-image { grid-template-columns: 1fr; }
.project-comment { margin: 22px 0; padding: 0 0 0 18px; border-left: 3px solid var(--color-primary); color: var(--color-muted); }

/* Closing message and inquiry */
.contact { color: var(--color-white); background: var(--color-primary); }
.contact .eyebrow { color: #d8e1ff; }
.contact p { color: #eef2ff; }
.contact .button { margin-top: 30px; }
.button.inverse { min-width: min(375px, 100%); background: var(--color-white); color: var(--color-primary); }
.button.inverse:hover { background: #eaf0ff; }
footer { padding-block: 30px; font-size: .875rem; }

/* Tablet: preserve reading order, allow natural height. */
@media (max-width: 1099px) {
  body { font-size: 1rem; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-heading, .hero-art, .hero-copy { width: 100%; }
  .hero-art { margin-top: 28px; }
  .hero-copy { margin-top: 24px; }
  .hero-heading h1 span:first-child, .hero-heading h1 span:nth-child(2) { display: inline; }
  .hero-heading h1 span.accent { display: block; }
  .split, .principles { grid-template-columns: 1fr; gap: 0; }
  .support-intro { grid-template-columns: 1fr; gap: 28px; }
  .principles-lead { margin-bottom: 36px; }
  .principles-lead .section-art { margin-top: 0; }
  .split h2 { margin-bottom: 26px; }
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles .ruled-item:last-child { padding-bottom: 0; }
}

/* Mobile */
@media (max-width: 599px) {
  :root { --page-gutter: 24px; --section-space: 64px; }
  h1 { font-size: 1.8125rem; }
  h1 .accent { font-size: 1.75rem; }
  h2 { font-size: 1.625rem; line-height: 1.6; }
  h3 { font-size: 1.1875rem; }
  .hero { padding-top: 50px; }
  .hero-heading .eyebrow { font-size: .875rem; }
  .hero-heading h1 span:first-child, .hero-heading h1 span:nth-child(2) { display: block; }
  .header-inner nav { display: none; }
  .header-inner { gap: 8px; }
  .brand { font-size: .875rem; }
  .brand-logo { max-width: 100px; }
  .two, .three, .project-many { grid-template-columns: 1fr; }
  .goals { gap: 16px; margin-top: 36px; }
  .support-items { gap: 30px; }
  .project-feature { grid-template-columns: 1fr; gap: 26px; }
  .button.inverse { min-width: 0; width: 100%; gap: 12px; }
  .contact .button { font-size: .875rem; }
  .ruled-item h3 { font-size: 1.1875rem; }
}

@media (max-width: 359px) {
  h1 { font-size: 1.625rem; }
  h1 .accent { font-size: 1.5rem; }
  .card { padding: 22px; }
  .ruled-item { grid-template-columns: 26px minmax(0, 1fr); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  html { scroll-behavior: auto; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .site-header nav, .button, .skip-link { display: none !important; }
  .section, .hero { padding-block: 24px; background: #fff; color: #000; }
  .dark p, .contact p, .eyebrow, .dark .eyebrow, .contact .eyebrow { color: #333; }
  .dark .card { background: #f1f4fa; color: #000; }
  .dark .card-number { color: #284fcc; }
  .card, .ruled-item, .project-feature { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
