/* AceDo design prototype — one type scale, no section-specific emphasis overrides. */
:root {
  color-scheme: light;
  --ink: #181818;
  --paper: #fff;
  --orange: #ff542e;
  --line: #bdbdbd;
  --dark-line: #6b6b6b;
  --body: 1.5rem;
  --chapter: 2.125rem;
  --heading: clamp(2rem, 3.25vw, 3rem);
  --subheading: 1.75rem;
  --label: 1.25rem;
  --action: 1.25rem;
  --meta: 1rem;
  --gutter: clamp(24px, 4.5vw, 88px);
  --section-space: 96px;
  --chapter-space: 64px;
  --item-space: 80px;
  --label-space: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 28px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3, strong { font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:hover, button:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px white; }
.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.phrase { display: inline-block; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px 20px; background: white; z-index: 20; }
.skip:focus { top: 15px; }

/* Chapter titles, major headlines, supporting titles, and body emphasis. */
.chapter {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: var(--chapter-space);
  font-size: var(--chapter);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.chapter > span:first-child {
  flex-shrink: 0;
  min-width: 28px;
  border-top: 2px solid currentColor;
  padding-top: 7px;
  font-size: var(--meta);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .04em;
}
.story-row h3, .founder-copy h3, .partnership-invitation {
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.experience h3, .subheading, .person-name strong {
  font-size: var(--subheading);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.025em;
}
.context-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--label-space);
  font-size: var(--label);
  font-weight: 700;
  line-height: 1.6;
}
.story-heading > .context-label::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 3px;
  background: var(--orange);
}
.prose { min-width: 0; font-size: var(--body); }
.prose p + p, .experience p + p { margin-top: 1.1em; }
.statement, .key-line, .town-principle { font-size: var(--body); font-weight: 700; }

/* Navigation and controls share their own readable scale. */
.review-banner { background: var(--ink); color: white; }
.review-inner { display: flex; align-items: center; gap: 20px; padding-block: 8px; font-size: var(--meta); line-height: 1.6; }
.review-inner strong { white-space: nowrap; }
.review-inner a { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 102px; padding-block: 8px; }
.brand { display: block; flex-shrink: 0; width: 174px; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; font-size: 1.125rem; font-weight: 700; line-height: 1.6; }
.site-header nav a { display: inline-block; padding-block: 12px; }
.site-header nav .nav-contact { background: var(--ink); color: white; padding: 13px 18px; }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  max-width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: var(--action);
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  transition: background-color .15s, color .15s;
}
.button span { flex-shrink: 0; }
.outline { background: transparent; }
.outline:hover { background: var(--ink); color: white; text-decoration: none; }
.primary { background: var(--ink); color: white; border-color: var(--ink); }
.primary:hover { background: white; color: var(--ink); text-decoration: none; }
.prose > .button { margin-top: 32px; }

/* The hero is the only extra-large type exception. */
.hero { background: var(--orange); padding: 48px 0 26px; }
.hero h1 { font-size: clamp(2.1rem, 6.55vw, 6rem); line-height: 1.4; letter-spacing: -.05em; }
.hero h1 > span { display: block; }
.hero-bottom { display: grid; grid-template-columns: 1.05fr 1fr; gap: 7%; align-items: start; margin-top: 52px; }
.hero-vision { font-weight: 700; }
.hero-vision p + p { margin-top: 20px; }
.hero-definition { font-size: var(--body); font-weight: 400; }
.hero-about .button { margin-top: 28px; }
.hero-foot { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #18181880; padding-top: 17px; margin-top: 44px; font-size: var(--meta); }

/* Shared section and story layout. */
.section { padding-block: var(--section-space); }
.story-row { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.12fr); gap: 7%; }
.divided { border-top: 1px solid var(--line); padding-top: var(--item-space); margin-top: var(--item-space); }
.town-principle { margin-top: 32px; }
.belief { background: var(--ink); color: white; }
.founder-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 8%; align-items: start; }
.person-space { min-width: 0; }
.founder-photo { max-width: 400px; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 610 / 656; object-fit: contain; }
.person-name { margin-top: 24px; }
.person-name strong { display: inline-block; margin-top: 4px; }
.experience { max-width: 400px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--dark-line); }
.experience h3 { margin-bottom: 24px; }
.founder-copy h3 { margin-block: 32px; }
.team-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; border-top: 1px solid var(--dark-line); margin-top: 64px; padding-top: 32px; }
.team-row .button { flex-shrink: 0; }
.belief .outline:hover { color: var(--ink); background: white; }
.village-photo { margin-top: 56px; }
.village-photo img { width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: center; }
.village-photo figcaption { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); font-size: var(--label); line-height: 1.7; }
.partnership { background: var(--orange); }
.partnership-invitation { margin-bottom: var(--chapter-space); }
.partnership .story-row { border-top: 1px solid #18181880; padding-top: 44px; }
.contact-zone { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 48px; }
.contact-zone .primary { width: 100%; }
.secondary-contacts { display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.secondary-contacts button, .secondary-contacts a, .footer-links button, .footer-links a { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 8px 0; font-size: var(--action); font-weight: 700; line-height: 1.7; }
.site-footer { padding-block: 32px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; font-size: var(--meta); }
.site-footer .brand { width: 160px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }

/* Dialogs retain focus visibility without decorative stripes. */
dialog { border: 0; padding: 0; width: min(740px, calc(100% - 40px)); max-height: 85dvh; color: var(--ink); background: white; box-shadow: 0 20px 100px #0006; }
dialog::backdrop { background: rgb(0 0 0 / .6); }
.dialog-inner { padding: 40px; }
.dialog-inner h2 { font-size: var(--chapter); line-height: 1.5; margin-bottom: 24px; }
.dialog-inner ul { padding-left: 1.2em; margin-block: 24px; }
.dialog-inner li + li { margin-top: 10px; }
.dialog-note { padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 24px; }
.dialog-inner .button { width: 100%; justify-content: center; }

@media (max-width: 1100px) {
  .site-header { gap: 20px; }
  .site-header .brand { width: 150px; }
  .site-header nav { gap: 15px; }
  .story-row, .founder-grid, .hero-bottom { gap: 40px; }
  .team-row, .contact-zone { display: block; }
  .team-row .button, .secondary-contacts { margin-top: 24px; }
  .secondary-contacts { justify-content: flex-start; }
}
@media (max-width: 760px) {
  :root {
    --gutter: 24px;
    --body: 1.25rem;
    --chapter: 1.75rem;
    --heading: 1.875rem;
    --subheading: 1.5rem;
    --label: 1.125rem;
    --action: 1.125rem;
    --section-space: 56px;
    --chapter-space: 36px;
    --item-space: 48px;
    --label-space: 16px;
  }
  .review-inner { flex-wrap: wrap; gap: 4px 14px; padding-block: 9px; }
  .review-inner span { display: none; }
  .site-header { display: block; min-height: 0; padding-block: 4px 15px; }
  .site-header nav { gap: 8px 18px; }
  .site-header nav a { padding-block: 6px; }
  .site-header nav .nav-contact { padding: 6px 12px; }
  .chapter { align-items: baseline; gap: 14px; }
  .chapter > span:first-child { min-width: 23px; }
  .context-label { gap: 10px; }
  .story-heading > .context-label::before { width: 20px; }
  .button { min-height: 60px; padding: 17px 20px; gap: 24px; }
  .hero { padding-block: 36px 24px; }
  .hero h1 { font-size: clamp(1.875rem, 8.5vw, 3.5rem); letter-spacing: -.065em; line-height: 1.55; }
  .hero-bottom { display: block; margin-top: 32px; }
  .hero-about { margin-top: 30px; padding-top: 26px; border-top: 1px solid #18181880; }
  .hero-about .button { margin-top: 24px; }
  .hero-foot { display: block; margin-top: 32px; padding-top: 18px; }
  .hero-foot > span:first-child, .desktop-break { display: none; }
  .story-row { display: block; }
  .story-row > .prose { margin-top: 28px; }
  .prose > .button { margin-top: 26px; }
  .town-principle { margin-top: 28px; }
  .founder-grid { display: flex; flex-direction: column; gap: 40px; }
  .founder-copy { order: 0; }
  .founder-copy h3 { margin-block: 28px; }
  .person-space { order: 1; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 20px; width: 100%; }
  .founder-photo { grid-column: 1; grid-row: 1; width: 104px; }
  .person-name { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .experience { grid-column: 1 / -1; max-width: none; margin-top: 28px; padding-top: 28px; }
  .team-row { margin-top: 36px; padding-top: 28px; }
  .village-photo { margin-top: 34px; }
  .village-photo img { max-height: none; object-fit: contain; }
  .village-photo figcaption { display: block; padding-block: 16px; }
  .village-photo figcaption span { display: block; margin-top: 4px; }
  .partnership .story-row { padding-top: 30px; }
  .contact-zone { margin-top: 30px; }
  .secondary-contacts { margin-top: 20px; gap: 12px 24px; }
  .footer-row { display: block; }
  .footer-links { margin-block: 14px 20px; gap: 16px 24px; }
  .dialog-inner { padding: 28px 24px; }
}
@media (max-width: 360px) {
  .site-header nav { gap: 6px 12px; }
  .person-space { grid-template-columns: 80px minmax(0, 1fr); gap: 0 16px; }
  .founder-photo { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
@media print {
  .review-banner, .site-header nav, .button, .secondary-contacts, .footer-links, dialog { display: none !important; }
  .wrap { width: 100%; }
  .section { padding-block: 30px; }
  .story-row, .founder-grid { display: block; }
  .chapter { break-after: avoid; }
}
