* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #253d4b;
  background: #f7f8f4;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  line-height: 1.6;
}
body { margin: 0; min-height: 100vh; min-height: 100svh; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid #a46212; outline-offset: 4px; }
button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
svg, img { display: block; }
.skip-link {
  position: fixed; top: 10px; left: 16px; z-index: 5;
  transform: translateY(-160%); padding: 10px 16px;
  border: 1px solid #325c69; border-radius: 8px;
  color: #253d4b; background: #fff; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.site-header, main { width: min(100%, 1096px); margin-inline: auto; padding-inline: 40px; }
.site-header { padding-top: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; }
.brand img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.brand span { font-size: 12px; font-weight: 750; letter-spacing: .105em; color: #3c0044; }
.intro { padding: 66px 0 42px; }
.intro h1 { margin: 0; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.3; font-weight: 750; letter-spacing: -.065em; word-break: keep-all; text-wrap: balance; }
.intro p { margin: 17px 0 0; color: #536973; font-size: 19px; line-height: 1.6; letter-spacing: -.035em; word-break: keep-all; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; color: #285f88; text-underline-offset: 4px; }
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 76px; }
.programs:focus { outline: none; }
.program-card {
  --accent: #285f88; --soft: #edf4f9; --edge: #cedde8;
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 340px;
  overflow: hidden; padding: 30px; border: 1px solid var(--edge); border-radius: 23px;
  background: var(--soft); text-decoration: none;
  touch-action: manipulation; transition: border-color .15s ease, background-color .15s ease;
}
.program-card--together { --accent: #1e6c63; --soft: #edf5f0; --edge: #cddfd7; }
.program-card--flow { --accent: #70558c; --soft: #f2edf7; --edge: #ded2ea; }
.card-art { width: 100%; height: 112px; margin-bottom: 27px; }
.card-art svg { width: 134px; height: 108px; }
.program-category { margin: 0 0 7px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.program-card h2 { margin: 0; padding-right: 24px; color: #253d4b; font-size: clamp(23px, 2.6vw, 28px); font-weight: 750; line-height: 1.45; letter-spacing: -.055em; word-break: keep-all; overflow-wrap: anywhere; }
.program-description { max-width: 32em; margin: 11px 0 0; padding-right: 4px; color: #50656f; font-size: 14px; line-height: 1.8; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
.card-arrow { position: absolute; right: 27px; top: 30px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--edge); border-radius: 50%; color: var(--accent); background: #ffffff8c; }
.card-arrow svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .program-card:hover { border-color: var(--accent); background: #e6f0f7; }
  .program-card--together:hover { background: #e5f0e9; }
  .program-card--flow:hover { background: #eae1f2; }
}
.site-footer { width: min(100%, 1096px); margin-inline: auto; padding: 0 40px 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 18px; padding-top: 16px; border-top: 1px solid #dbe2de; }
.copyright { margin: 0; color: #53646c; font-size: 12px; font-weight: 550; line-height: 1.8; word-break: keep-all; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -8px; }
.footer-link { min-height: 44px; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: #405661; font-size: 12px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #aebbb7; }
.footer-link:hover { background: #edf0ea; }
.info-dialog { width: min(540px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid #d7e1db; border-radius: 20px; background: #fff; color: #253d4b; box-shadow: 0 12px 50px #253d4b26; }
.info-dialog::backdrop { background: #253b4a66; }
.dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 12px 24px; background: #fff; }
.dialog-heading h2 { margin: 0; font-size: 23px; font-weight: 750; line-height: 1.4; letter-spacing: -.04em; }
.dialog-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: #f0f4f1; color: #304d58; cursor: pointer; }
.dialog-close svg { width: 22px; height: 22px; }
.dialog-body { padding: 0 24px 24px; }
.dialog-section p, .dialog-section ul { margin: 0 0 14px; font-size: 14px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.dialog-section ul { padding-left: 20px; }
.dialog-section li + li { margin-top: 7px; }
.dialog-section > :last-child { margin-bottom: 0; }
.feedback-label { display: block; margin-bottom: 7px; color: #304d58; font-size: 14px; font-weight: 700; }
#feedback-message { display: block; width: 100%; min-height: 128px; max-height: 40svh; padding: 12px; border: 1px solid #b8c9c2; border-radius: 10px; background: #fbfcfa; color: #253d4b; font-size: 16px; line-height: 1.65; resize: vertical; }
.dialog-section .feedback-help { margin-top: 8px; color: #566b71; font-size: 12px; line-height: 1.75; }
.feedback-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.copy-button, .feedback-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 10px 13px; border: 1px solid #bfd5c9; border-radius: 9px; background: #eaf4ed; color: #275d50; font-size: 13px; font-weight: 700; line-height: 1.6; text-decoration: none; cursor: pointer; }
.feedback-actions a { border-color: #d5c8e4; background: #f3eef8; color: #694c85; }
.feedback-actions a svg { width: 15px; height: 15px; flex: 0 0 15px; }
.copy-button:disabled { color: #566b71; background: #edf1ec; cursor: wait; }
.dialog-section .feedback-status { min-height: 1.8em; margin: 8px 0 0; color: #275d50; font-size: 12px; font-weight: 650; }
.dialog-section .maker-name { color: #304d58; font-size: 18px; font-weight: 750; }
@media (max-width: 640px) {
  .site-header, main, .site-footer { padding-inline: 24px; }
  .site-header { padding-top: 23px; }
  .intro { padding: 48px 0 30px; }
  .intro p { font-size: 17px; margin-top: 14px; }
  .programs { grid-template-columns: minmax(0, 1fr); gap: 17px; padding-bottom: 38px; }
  .program-card { padding: 26px; min-height: 302px; border-radius: 20px; }
  .card-art { height: 91px; margin-bottom: 23px; }
  .card-art svg { width: 114px; height: 92px; }
  .program-card h2 { font-size: 25px; padding-right: 0; }
  .program-description { font-size: 14px; }
  .card-arrow { top: 24px; right: 24px; }
  .site-footer { padding-bottom: 22px; }
  .footer-inner { padding-top: 14px; gap: 4px; }
  .dialog-heading { padding: 14px 12px 10px 18px; }
  .dialog-heading h2 { font-size: 21px; }
  .dialog-body { padding: 0 18px 20px; }
}
@media (max-width: 350px) {
  .site-header, main, .site-footer { padding-inline: 20px; }
  .intro { padding-top: 39px; }
  .intro p { font-size: 16px; }
  .program-card { padding: 23px; }
  .program-card h2 { font-size: 23px; }
}
@media (max-height: 500px) and (min-width: 641px) {
  .site-header { padding-top: 20px; }
  .intro { padding: 26px 0 25px; }
  .intro h1 { font-size: 44px; }
  .intro p { margin-top: 10px; font-size: 17px; }
  .programs { padding-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
