.onhen-souken-hero { position:relative; overflow:hidden; width:100%; background:#7dc6fa; }
@media (min-width: 768px) {
  .onhen-souken-hero {
    --ground-extra-height: 24px;
    padding-bottom: var(--ground-extra-height);
    background-image: url("./hero/pc-ground.svg");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% calc(min(5vw, 72px) + var(--ground-extra-height));
  }
  .onhen-souken-hero .pc {
    position: relative;
    max-width: 1440px;
    margin-inline: auto;
    aspect-ratio: 1440 / 598;
  }
}
.onhen-souken-hero img,.onhen-souken-hero a {position:absolute;display:block;margin:0;max-width:none;}
.onhen-souken-hero .onhen-hero-pc-title {
  top: 7.525%;
  left: 50%;
  width: min(48.75%, 702px);
  height: auto;
  transform: translateX(-50%);
}
.onhen-souken-hero a:focus-visible {outline:3px solid #252525;outline-offset:2px;border-radius:999px;}
.onhen-souken-hero a img { inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .onhen-souken-hero a img { transition: transform 150ms ease-out; }
  .onhen-souken-hero a:hover img { transform: translateY(-2px); }
}
.onhen-souken-hero .sp {display:none;}
@media(max-width:767px){.onhen-souken-hero {aspect-ratio:390/490;} .onhen-souken-hero .pc {display:none;} .onhen-souken-hero .sp {display:contents;}}
.onhen-souken-subnav { min-height:50px; display:flex; flex-flow:row wrap; align-items:center; justify-content:center; gap:32px; background:#fff; border-block:1px solid #ddd; }
.onhen-souken-subnav a { color:#252525; text-decoration:none; font:700 14px/1.7 "Noto Sans JP",sans-serif; }
.onhen-souken-search { box-sizing:border-box; width:100%; background:#e5e5e5; padding:16px 20px 24px; color:#252525; }
.onhen-souken-search form { max-width:560px; margin:auto; }
.onhen-souken-search label { display:flex; align-items:center; justify-content:center; gap:0; font:500 13px/1.4 "Noto Sans JP",sans-serif; }
.onhen-souken-search label img { width:82px; height:68px; object-fit:contain; }
.onhen-souken-search form div { display:flex; align-items:center; height:64px; border:1px solid #252525; border-radius:40px; background:white; overflow:hidden; padding:0 24px 0 32px; }
.onhen-souken-search input { min-width:0; flex:1; background:white; color:#252525; border:0; padding:8px 0; font:16px/1.5 sans-serif; }
.onhen-souken-search input:focus { outline: none; }
.onhen-souken-search form > div:has(input:focus) {
  outline: 1px solid #252525;
  outline-offset: 0;
}
.onhen-souken-search button { display:grid; place-items:center; background:transparent; border:0; padding:10px; cursor:pointer; }
.onhen-souken-search ul,.onhen-souken-search > p { max-width:560px; margin:24px auto; }
.onhen-souken-subnav a { display:inline-flex; align-items:center; gap:4px; }
.onhen-souken-subnav a img { width:auto; height:16px; }
@media (max-width: 767px) {
  .onhen-souken-subnav {
    flex-wrap: nowrap;
    justify-content: safe center;
    gap: 16px;
    padding-inline: 12px;
    overflow-x: auto;
  }
  .onhen-souken-subnav a {
    flex: none;
    min-height: 44px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
  }
  .onhen-souken-subnav a img { height: 13px; }
  .onhen-souken-search form div { height: 56px; padding-left: 24px; }
}
.onhen-souken-footer {line-height:1.7;font-size:16px;position:relative;box-sizing:border-box;width:100%;padding:0;color:#252525;background:#90e19d;}
/* The shared footer reserves space for the mobile consultation banner. */
@media (min-width: 768px) {
  #onhen-souken-footer { padding-bottom: 0 !important; }
}
.onhen-footer-scene {
  padding: 64px 8% 100px;
  background: #7dc6fa url("./hero/pc-ground.svg") center bottom / 100% auto no-repeat;
}
.onhen-footer-inner{display:grid;grid-template-columns:1.1fr 1fr;gap:8%;max-width:1130px;margin:auto;align-items:start}.onhen-footer-title{display:block;width:100%}.onhen-souken-footer .onhen-souken-search{background:transparent;padding:36px 0 0}.onhen-souken-footer form{max-width:360px}
.onhen-footer-inner nav { display: flex; flex-direction: column; font-family: "Noto Sans JP", sans-serif; }
.onhen-footer-inner nav > a,
.onhen-footer-inner summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4px 24px 0;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.onhen-footer-inner nav > a, .onhen-footer-inner details { border-bottom: 1px dashed #252525; }
.onhen-footer-inner nav > a::after,
.onhen-footer-fields a::after {
  content: "";
  flex: none;
  width: var(--footer-arrow-width, 12px);
  aspect-ratio: 11 / 8;
  background: url("./steps/arrow.svg") center / contain no-repeat;
}
.onhen-footer-inner summary::-webkit-details-marker { display: none; }
.onhen-footer-inner summary::after {
  content: "";
  width: 10px;
  height: 10px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.onhen-footer-inner details[open] > summary::after { background-size: 100% 1.5px, 0 0; }
.onhen-footer-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 28px;
}
.onhen-footer-fields a {
  --footer-arrow-width: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px #252525;
  background: #ffcfd7;
  color: #252525;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
}
.onhen-footer-fields a[data-subject="理系"] { background: #aedeff; }
@media (min-width: 768px) { .onhen-footer-inner details { order: 1; } }
.onhen-footer-credits { text-align: center; padding: 0 20px 16px; color: #252525; }
.onhen-footer-credits .onhen-use-notice { padding: 10px 0; font-size: 10px; line-height: 1.6; color: inherit; }
.onhen-footer-credits small { display: block; font-size: 10px; line-height: 1.7; }

@media (max-width: 767px) {
  .onhen-souken-footer { font-size: 15px; }
  .onhen-footer-scene {
    padding: max(87px, 22.3vw) 15px 97px;
    background: url("./hero/sp-planet.svg") left top / 24.1% auto no-repeat,
                url("./footer-clouds.svg") right top / 29.7% auto no-repeat, #7dc6fa;
  }
  .onhen-footer-inner { display: block; }
  .onhen-footer-title { max-width: 330px; margin: auto; }
  .onhen-souken-footer .onhen-souken-search { padding-top: 15px; }
  .onhen-footer-inner nav { --footer-arrow-width: 11px; margin: 36px 20px 0; }
  .onhen-footer-inner nav > a, .onhen-footer-inner summary { padding-block: 16px; }
  .onhen-footer-inner details[open] summary { padding-bottom: 20px; }
  .onhen-footer-credits { position: relative; isolation: isolate; }
  .onhen-footer-credits::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: -63px 0 0;
    background: url("./footer-ground.svg") center top / 100% auto no-repeat;
  }
}


.onhen-top-speech {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-left: 10px;
  background: url("./speech-marks.svg") left center / 10px 38px no-repeat;
  font: 500 13px/1.4 "Noto Sans JP", sans-serif;
}

#onhen-souken-faculty-hub-top .onhen-hub-sronly { line-height: 1.4; }

.onhen-souken-subnav {
  box-sizing: border-box;
  width: 100%;
  position: sticky;
  top: var(--onhen-shared-header-height, 0px);
  z-index: 1;
}
main:has(> .onhen-souken-subnav) :is(#onhen-souken-search, #onhen-hub-faculties, #onhen-hub-joken, #onhen-hub-steps, #onhen-hub-voices) {
  scroll-margin-top: calc(var(--onhen-shared-header-height, 0px) + var(--onhen-subnav-height, 0px));
}
