.ke-mi, .ke-mi * { box-sizing: border-box; }
.ke-mi { --ink: #1a3c55; --rule: #c4d1d8; color: var(--ink); margin: clamp(24px, 4vw, 64px) 0; padding: clamp(18px, 4.5vw, 64px); border: 1px solid var(--rule); border-top: 5px solid #efb51b; border-radius: 10px; background: #f4f7f8; scroll-margin-top: 7rem; }
.ke-mi__intro, .ke-mi__routes { display: grid; min-width: 0; gap: clamp(20px, 4vw, 64px); }
.ke-mi__intro { grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr); align-items: start; }
.ke-mi h2, .ke-mi h3 { color: var(--ink); line-height: 1.12; text-wrap: balance; margin: 0 0 .55em; }
.ke-mi h2 { font-size: clamp(29px, 3.8vw, 56px); letter-spacing: -.035em; }
.ke-mi h3 { font-size: clamp(20px, 2vw, 27px); }
.ke-mi p, .ke-mi li { font-size: 16px; line-height: 1.55; color: #29495b; max-width: 74ch; margin: 0 0 .7em; }
.ke-mi p:last-child, .ke-mi li:last-child { margin-bottom: 0; }
.ke-mi .ke-mi__lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; }
.ke-mi__apply { padding: clamp(16px, 2.1vw, 28px); border: 1px solid var(--rule); background: white; border-radius: 8px; min-width: 0; }
.ke-mi a { color: #184c69; text-decoration: underline; text-underline-offset: .2em; }
.ke-mi .ke-mi__primary { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 15px; padding: 10px 15px; border-radius: 5px; background: var(--ink); color: white; text-decoration: none; text-align: center; font-weight: 700; }
.ke-mi .ke-mi__primary:hover { background: #285571; }
.ke-mi .ke-mi__phone { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 650; }
.ke-mi__routes { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: clamp(20px, 3vw, 36px) 0; }
.ke-mi__routes > div { border-top: 1px solid var(--rule); padding-top: 16px; }
.ke-mi__detail { border-top: 1px solid var(--rule); }
.ke-mi__detail:last-child { border-bottom: 1px solid var(--rule); }
.ke-mi__detail summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; font-weight: 700; }
.ke-mi__detail > div { padding: 0 0 14px; }
.ke-mi__detail ul { padding-inline-start: 1.3em; margin: 0; }
.ke-mi__detail li { margin-bottom: .6em; }
.ke-mi-jump { display: inline-flex; align-items: center; min-height: 44px; gap: .45em; color: #1a3c55; text-decoration: underline; text-underline-offset: .19em; font-weight: 700; }
.ke-mi :is(a,summary):focus-visible, .ke-mi-jump:focus-visible { outline: 3px solid #996500; outline-offset: 3px; }
@media (max-width: 720px) { .ke-mi__intro, .ke-mi__routes { grid-template-columns: 1fr; } .ke-mi { scroll-margin-top: 5rem; } }
.ke-mi__choice { display: block; margin: 1em 0 .35em; font-weight: 650; }
.ke-mi__apply select { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 6px; border: 1px solid #758b98; background-color: white; border-radius: 5px; color: var(--ink); font: inherit; }
.ke-mi__apply select:focus-visible { outline: 3px solid #996500; outline-offset: 3px; }
.ke-mi__work { display: grid; align-items: center; grid-template-columns: minmax(190px, .66fr) minmax(0, 1fr); gap: clamp(18px, 3.5vw, 48px); padding: clamp(20px, 3vw, 36px) 0; }
.ke-mi__photo { margin: 0; min-width: 0; }
.ke-mi__photo img { display: block; width: 100%; height: auto; max-height: 425px; object-fit: contain; background: #e9eef0; border-radius: 5px; }
.ke-mi__photo figcaption { margin-top: .5em; color: #365363; font-size: 14px; line-height: 1.4; }
.ke-mi__work .ke-mi__routes { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 0; }
.ke-mi [hidden] { display: none; }
@media (max-width: 720px) { .ke-mi__work { grid-template-columns: 1fr; } .ke-mi__photo img { max-height: 380px; } }

.ke-mi__intro { grid-template-areas: "summary apply" "context apply"; row-gap: 12px; }
.ke-mi__intro > div:first-child { grid-area: summary; }
.ke-mi__apply { grid-area: apply; }
.ke-mi__context { grid-area: context; }
@media (max-width: 720px) { .ke-mi__intro { grid-template-areas: "summary" "apply" "context"; row-gap: 18px; } }
