:root {
  color-scheme: light;
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #112a43;
  background: #f1f6fa;
  font-synthesis: none;
  line-height: 1.7;
  --navy: #071d36;
  --muted: #486176;
  --line: #dce8ef;
  --teal: #82f2d1;
  --link: #125f63;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #16876b; outline-offset: 4px; }
.hero :focus-visible, .apply-panel :focus-visible { outline-color: #fff; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .6rem 1rem; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { background: #fff; }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none; line-height: 1.4; }
.brand img { width: 43px; height: auto; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .06em; }
.brand small { color: var(--muted); font-size: .72rem; margin-top: .15rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 48px; padding: .65rem 1.2rem; border-radius: 9px; font-weight: 700; text-decoration: none; }
.header-apply { border: 1px solid var(--line); color: var(--navy); font-size: .86rem; }
.header-apply:hover { background: #eff8f7; }
.button-accent { background: var(--teal); color: #082a31; }
.button-accent:hover { background: #b2f9e4; }
.button span { font-size: 1.15em; line-height: 1; }

.hero {
  background: radial-gradient(ellipse at 83% 58%, #15475b 0, transparent 64%), var(--navy);
  color: #fff;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: 58px 71px; }
.hero-location { margin: 0 0 .9rem; color: #a6eee0; font-size: .92rem; font-weight: 700; letter-spacing: .12em; }
.contract { display: inline-block; margin: 0; padding: .2rem .7rem; border: 1px solid #477287; border-radius: 5px; color: #ebf6fd; font-size: .76rem; font-weight: 700; }
h1 { margin: .8rem 0 1.15rem; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.28; letter-spacing: .015em; }
.hero-description { margin: 0 0 1.3rem; color: #dceaf4; font-size: clamp(.88rem, 1.35vw, 1rem); line-height: 1.85; }
.hero .button { min-width: 225px; }
.gallery { margin: 0; min-width: 0; }
.gallery-image { width: 100%; height: auto; aspect-ratio: 1.61; object-fit: cover; object-position: center 54%; border-radius: 14px; background: #163c53; }
.gallery figcaption { margin: .45rem 0 .65rem; font-size: .75rem; color: #d4e4ef; }
.gallery-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-options button { background: #183c50; border: 2px solid transparent; padding: 2px; border-radius: 7px; cursor: pointer; }
.gallery-options button:hover { border-color: #b3cee0; }
.gallery-options button[aria-pressed="true"] { border-color: var(--teal); }
.gallery-options img { width: 100%; height: auto; aspect-ratio: 2; border-radius: 4px; object-fit: cover; object-position: center 52%; }

.at-a-glance { position: relative; margin-top: -32px; }
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 1.15rem 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px #09223c0d; }
.highlights > div { padding-inline: clamp(.8rem, 2.2vw, 1.65rem); min-width: 0; }
.highlights > div + div { border-left: 1px solid var(--line); }
.highlights dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.highlights dd { margin: .18rem 0 0; font-size: .9rem; line-height: 1.4; }
.highlights dd strong { font-size: clamp(1.04rem, 1.5vw, 1.28rem); }
.highlights > div:nth-child(-n+2) strong { color: var(--link); font-size: clamp(1.55rem, 3vw, 2rem); font-variant-numeric: tabular-nums; padding-right: .15em; }
.highlights dd small { display: block; color: var(--muted); font-size: .75rem; }

.details-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 28px; padding-block: 42px 58px; }
.sidebar { position: sticky; top: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: .4rem 1rem; }
.sidebar a { display: flex; justify-content: space-between; gap: .5rem; padding: .8rem 0; font-size: .85rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.sidebar a + a { border-top: 1px solid var(--line); }
.sidebar a:hover { color: var(--link); text-decoration: underline; }
.sidebar span { color: var(--link); }
.sections { display: grid; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3.6vw, 2.35rem); }
.panel h2 { margin: 0 0 1rem; line-height: 1.4; font-size: clamp(1.32rem, 2.65vw, 1.85rem); }
.panel h2::before { display: inline-block; content: ""; width: 4px; height: .9em; margin-right: .55rem; border-radius: 2px; background: #158b80; vertical-align: -.05em; }
.panel h3 { margin: 0 0 .45rem; font-size: 1rem; }
.intro { margin: 0 0 1.25rem; }
.duties, .places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.duties > div, .places > div { padding: 1.05rem; border-radius: 9px; border: 1px solid #e2edf2; background: #f4f9fb; }
.duties p, .places p { margin: 0; font-size: .9rem; color: var(--muted); }
.note { margin: .7rem 0 0; color: var(--muted); font-size: .85rem; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .9rem; font-weight: 700; }
.specs dd { margin: 0; font-size: .92rem; }
.shifts, .benefits { margin: .38rem 0 0; padding-left: 1.15em; }
.benefits { margin: 0; }
.places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.places a, .company-link { display: inline-block; margin-top: .65rem; font-size: .88rem; font-weight: 700; }
.apply-panel { background: var(--navy); color: #fff; border-color: var(--navy); }
.apply-panel h2::before { background: var(--teal); }
.steps { color: #e4eff7; margin: 0 0 1.05rem; padding-left: 1.4em; }
.official-link { display: inline-block; color: #e1f8f0; margin: .7rem .75rem; font-size: .85rem; }
.footer { background: #e6eef4; color: #31495f; font-size: .83rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1.25rem; }
.mobile-apply { display: none; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .details-layout { grid-template-columns: 165px minmax(0, 1fr); gap: 16px; }
  .duties { grid-template-columns: 1fr; gap: .6rem; }
  .desktop-break { display: none; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .brand img { width: 34px; }
  .brand strong { font-size: .85rem; }
  .brand small { font-size: .64rem; }
  .header-apply { min-height: 40px; gap: .3rem; padding: .4rem .55rem; font-size: .75rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 31px 47px; }
  .hero-location { margin-bottom: .5rem; }
  h1 { font-size: clamp(1.75rem, 8vw, 3rem); margin-block: .6rem .85rem; }
  .hero .button { min-width: min(225px, 100%); }
  .gallery-image { aspect-ratio: 1.73; }
  .at-a-glance { margin-top: -22px; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .highlights > div { padding: .75rem .9rem; }
  .highlights > div:nth-child(3) { border-left: 0; }
  .highlights > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .details-layout { display: block; padding-block: 20px 36px; }
  .sidebar { position: static; margin-bottom: 18px; padding-block: .2rem; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .sidebar a { padding: .65rem 0; font-size: .77rem; }
  .sidebar a:nth-child(2) { border-top: 0; }
  .sections { gap: 15px; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .places { grid-template-columns: 1fr; }
  .official-link { margin-left: 0; }
  .footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-wrap: wrap; }
  .mobile-apply {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 2;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom));
  }
  .mobile-apply .button { width: 100%; justify-content: center; }
  html { scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}
