/* Design tokens and shared base */
:root {
  --bg: #f4fcfe;
  --surface: #ffffff;
  --ink: #123b46;
  --muted: #587680;
  --line: #e2eef1;
  --cyan: #22bcd6;
  --cyan-deep: #08798c;
  --cyan-soft: #e8f9fb;
  --navy: #0d3f49;
  --coral: #c64838;
  --gold: #ffb735;
  --shadow: 0 16px 50px rgba(20, 113, 130, 0.11);
  --shadow-soft: 0 8px 24px rgba(18, 59, 70, 0.08);
  --radius: 16px;
  --page: 1200px;
  --warm: #fffaf4;
  --sky-line: #caedf3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 22%, rgba(43, 199, 224, 0.08), transparent 22rem),
    linear-gradient(180deg, #fff 0, var(--bg) 28rem, #eefafd 100%);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(34, 188, 214, 0.34);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--navy);
  border-radius: 0.6rem;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.header-inner,
.hero-inner,
.page-shell,
.footer-inner {
  width: min(calc(100% - 2rem), var(--page));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.05rem;
  color: #fff;
  background: linear-gradient(145deg, #08798c, #065f70);
  border-radius: 48% 52% 44% 56%;
  box-shadow: inset 0 -5px 10px rgba(5, 95, 111, 0.16);
  font-size: 1.05rem;
  font-weight: 900;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  right: 0;
  left: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #08798c, #065f70);
  box-shadow: 0 7px 18px rgba(10, 139, 160, 0.23);
}

.button-ghost {
  color: var(--cyan-deep);
  background: #fff;
  border-color: var(--cyan);
}

.menu-toggle {
  display: none;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero::before {
  width: 13rem;
  height: 13rem;
  top: -7rem;
  left: 9%;
}

.hero::after {
  width: 8rem;
  height: 8rem;
  right: 7%;
  bottom: -5rem;
}

.hero-glow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffd45b;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 22px rgba(255, 212, 91, 0.5);
}

.hero-glow-one {
  left: 16%;
  top: 65%;
}

.hero-glow-two {
  right: 25%;
  top: 16%;
  width: 7px;
  height: 7px;
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--cyan-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero-lead {
  margin: 0.3rem 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.area-panel,
.search-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 238, 241, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.heading-icon {
  position: relative;
  color: var(--cyan);
  font-size: 1rem;
}

.heading-icon::after {
  position: absolute;
  left: 0.15rem;
  bottom: -0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  content: "";
  background: var(--cyan);
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.area-groups {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.area-row:last-child {
  border-bottom: 0;
}

.area-row:nth-child(odd) {
  background: linear-gradient(90deg, rgba(232, 249, 251, 0.55), rgba(255, 255, 255, 0));
}

.region-name {
  margin: 0;
  font-weight: 900;
}

.search-heading-icon::after {
  position: absolute;
  width: 0.65rem;
  height: 4px;
  right: -0.52rem;
  bottom: -0.3rem;
  content: "";
  background: var(--cyan);
  border-radius: 99px;
  transform: rotate(45deg);
}

.shortcut-icon.heart {
  color: var(--cyan-deep);
}

.shortcut-arrow {
  color: var(--cyan-deep);
  font-size: 1.6rem;
  font-weight: 400;
}

.select-field > span {
  color: var(--cyan);
}

.select-field select,
.keyword-field input {
  width: 100%;
  min-height: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 700;
}

.select-field select {
  cursor: pointer;
}

.keyword-field input::placeholder {
  color: #7e9aa2;
}

.magnifier {
  position: relative;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--cyan-deep);
  border-radius: 50%;
}

.magnifier::after {
  position: absolute;
  right: -0.45rem;
  bottom: -0.3rem;
  width: 0.55rem;
  height: 2px;
  content: "";
  background: var(--cyan-deep);
  transform: rotate(45deg);
}

.jobs-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.title-bar {
  width: 6px;
  height: 2.45rem;
  background: linear-gradient(180deg, #4ee0ef, var(--cyan-deep));
  border-radius: 999px;
}

.more-link {
  color: var(--cyan-deep);
  font-weight: 800;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.job-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.job-card[hidden] {
  display: none;
}

.job-image-wrap {
  position: relative;
  height: auto;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #d7f6fa;
}

.job-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.badge-premium {
  color: #5a3a00;
  background: linear-gradient(135deg, #ffdc6c, #ff9f2e);
}

.badge-new {
  color: #fff;
  background: var(--cyan-deep);
}

.save-button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(43, 71, 79, 0.14);
  font-size: 1.45rem;
  cursor: pointer;
}

.save-button[aria-pressed="true"] {
  color: #fff;
  background: var(--coral);
}

.job-body {
  padding: 0.9rem 1rem 1rem;
}

.job-meta {
  margin: 0;
  color: var(--cyan-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.job-meta span {
  color: var(--coral);
}

.job-body h3 {
  margin: 0.25rem 0 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.job-copy {
  margin: 0.3rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.salary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0;
}

.salary-list div {
  min-width: 0;
}

.salary-list dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.salary-list dd {
  margin: 0;
  color: var(--cyan-deep);
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag-list span {
  padding: 0.25rem 0.55rem;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

.empty-state {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #b8dce3;
  border-radius: var(--radius);
}

.empty-state button {
  padding: 0.6rem 1rem;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.guide-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.2rem;
  color: #fff;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.2), transparent 12rem),
    linear-gradient(135deg, #0d3f49, #087f92);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.guide-strip .section-kicker {
  color: #7ce7f2;
}

.guide-strip h2,
.guide-strip p {
  margin: 0;
}

.guide-strip h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.guide-strip p {
  color: #d1f2f6;
}

.button-light {
  flex: 0 0 auto;
  color: var(--navy);
  background: #fff;
}

.footer-inner p {
  margin: 0;
  color: #b6d8df;
}

@media (max-width: 1180px) {


  .global-nav {
    justify-content: flex-end;
  }



  .search-content {
    grid-template-columns: 1fr;
  }

  .job-search {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {


  .menu-toggle {
    display: grid;
    width: 44px;
    min-height: 44px;
    place-content: center;
    gap: 4px;
    padding: 0.65rem;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
  }



  .global-nav.is-open {
    display: flex;
  }





  .hero-character {
    right: 1%;
    width: 210px;
  }

  .speech-bubble {
    display: none;
  }



  .job-grid {
    grid-template-columns: 1fr 1fr;
  }

  .job-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.65rem);
  }
}

@media (max-width: 680px) {
  .header-inner,
  .hero-inner,
  .page-shell,
  .footer-inner {
    width: min(calc(100% - 1.15rem), var(--page));
  }

  .header-inner {
    min-height: 62px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand-mark {
    width: 1.95rem;
    height: 1.8rem;
  }





  .eyebrow {
    display: none;
  }



  .hero-lead {
    max-width: 72%;
    font-size: 1.2rem;
  }

  .hero-note {
    max-width: 70%;
    font-size: 0.85rem;
  }







  .section-heading.centered {
    justify-content: flex-start;
    padding: 0 0.25rem 0.65rem;
  }

  .section-heading h2 {
    font-size: 1.22rem;
  }



  .region-name {
    font-size: 0.9rem;
  }



  .prefecture-button {
    min-height: 38px;
    font-size: 0.83rem;
  }



  .search-shortcuts {
    grid-template-columns: 1fr;
  }



  .select-field,
  .keyword-field,
  .search-button {
    width: 100%;
  }

  .jobs-heading-row {
    align-items: flex-start;
    gap: 1rem;
  }

  .more-link {
    padding-top: 0.35rem;
    font-size: 0.82rem;
    text-align: right;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }

  .job-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .job-image-wrap {
    height: auto;
    aspect-ratio: 3 / 1;
  }

  .guide-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem;
  }




}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Homepage content sections */

.utility-line {
  width: min(calc(100% - 2rem), var(--page));
  margin: 0 auto;
  padding: 0.25rem 0;
  color: #496b73;
  font-size: 0.75rem;
  line-height: 1.35;
}

.site-header {
  position: sticky;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 238, 241, 0.9);
  backdrop-filter: blur(18px);
  top: 0;
  border-top: 1px solid var(--line);
  border-bottom-color: #d7eaee;
}

.header-inner {
  display: grid;
  align-items: center;
  grid-template-columns: auto auto 1fr;
  min-height: 78px;
  gap: 2rem;
}

.header-status {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  color: #395f69;
  font-size: 0.82rem;
  white-space: nowrap;
}

.header-status strong {
  font-size: 0.95rem;
}

.global-nav {
  display: flex;
  align-items: center;
  color: #2b6170;
  font-weight: 700;
  justify-content: flex-end;
  gap: 0.5rem;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  background: #fff;
  border: 1px solid #b9d3d9;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.global-nav a::after {
  position: absolute;
  right: 50%;
  bottom: -0.45rem;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--cyan);
  transition: right 0.2s ease, left 0.2s ease;
  display: none;
}

.global-nav a span {
  margin-right: 0.3rem;
  color: var(--cyan-deep);
}

.global-nav a b {
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.3rem;
  color: #fff;
  background: var(--coral);
  border-radius: 50%;
  font-size: 0.75rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px) 0 0 / 58px 58px,
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.98), transparent 18rem),
    linear-gradient(105deg, #f7feff 0%, #e5f9fc 46%, #c9f0f7 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 78%;
  padding: 2.4rem 0 4rem 4.5rem;
  text-align: center;
}

.hero .eyebrow {
  margin-bottom: 0.45rem;
}

.hero .hero-lead {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0.2rem 0;
  color: #174f5e;
  font-size: clamp(3.15rem, 5.7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 3px 0 #fff;
}

.hero h1 span {
  color: var(--cyan);
}

.hero .hero-note {
  font-size: 0.98rem;
}

.hero-character {
  position: absolute;
  z-index: 1;
  right: -0.5rem;
  bottom: -18.5rem;
  width: 330px;
}

.speech-bubble {
  position: absolute;
  z-index: 2;
  width: 8rem;
  padding: 0.6rem 0.8rem;
  text-align: center;
  color: var(--cyan-deep);
  background: rgba(255, 255, 255, 0.93);
  border: 2px solid rgba(34, 188, 214, 0.7);
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 900;
  transform: rotate(-5deg);
  top: 8rem;
  left: -4rem;
}

.page-shell {
  position: relative;
  z-index: 4;
  min-width: 0;
  margin-top: -2.8rem;
  padding-bottom: 5rem;
}

.area-panel {
  min-width: 0;
  max-width: 100%;
  padding: 1.25rem 1.7rem 1.5rem;
  border-color: #d4e8ed;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(18, 59, 70, 0.13);
}

.section-heading.centered {
  justify-content: center;
  min-height: 3.4rem;
}

.area-row {
  display: grid;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 135px 1fr;
  min-height: 64px;
  padding: 0.55rem 1rem;
}

.prefecture-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  gap: 0.55rem 0.65rem;
}

.prefecture-button {
  padding: 0.2rem 0.65rem;
  color: #195969;
  background: #fff;
  border: 1.5px solid var(--cyan);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  min-height: 44px;
  border-radius: 6px;
  font-size: 0.94rem;
}

.prefecture-button:hover {
  background: var(--cyan-soft);
  transform: translateY(-1px);
}

.prefecture-button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, #08798c, #065f70);
  box-shadow: 0 4px 10px rgba(10, 139, 160, 0.18);
}

.search-panel {
  margin-top: 0.9rem;
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0.9rem 0 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 238, 241, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel::before {
  display: none;
}

.search-panel > .section-heading {
  justify-content: flex-start;
  min-height: 0;
  background: transparent;
  border-bottom: 0;
}

.search-heading-icon {
  width: 1.25rem;
  height: 1.25rem;
  border: 4px solid var(--cyan);
  border-radius: 50%;
  position: relative;
  display: block;
}

.search-content {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.2rem;
  margin-top: 1rem;
  padding: 0;
  background: transparent;
}

.search-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.shortcut-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease;
  min-height: 64px;
  padding: 0.6rem 0.9rem;
  font-size: inherit;
}

.shortcut-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.shortcut-icon {
  display: grid;
  place-items: center;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border-radius: 50%;
  font-size: 1.45rem;
  width: 2.7rem;
  height: 2.7rem;
}

.job-search {
  display: grid;
  align-items: center;
  grid-template-columns: 155px 1fr auto;
  gap: 0.65rem;
  padding-left: 1.2rem;
  overflow: visible;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.select-field,
.keyword-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 52px;
  padding: 0 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.select-field {
  border: 1px solid var(--line);
}

.search-button {
  border: 0;
  height: 52px;
  border-radius: 11px;
}

.search-feedback {
  color: var(--cyan-deep);
  font-size: 0.88rem;
  font-weight: 700;
  position: static;
  width: auto;
  min-height: 1.1rem;
  margin: 0.45rem 0 0;
  text-align: left;
}

.area-dialog {
  width: min(820px, calc(100% - 2rem));
  max-height: min(82vh, 760px);
  padding: 0;
  color: var(--text);
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(5, 56, 67, 0.28);
}

.area-dialog::backdrop {
  background: rgba(4, 38, 46, 0.56);
  backdrop-filter: blur(2px);
}

.area-dialog-header {
  display: flex;
  position: sticky;
  z-index: 2;
  top: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #0a8ba0, #087386);
}

.area-dialog-header h2 {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
}

.area-dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.area-dialog-body {
  padding: 1.1rem 1.2rem 1.4rem;
}

.area-dialog-all {
  display: block;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, #18aec5, #08798c);
  border-radius: 10px;
  text-align: center;
  font-weight: 900;
}

.area-dialog-group {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.area-dialog-group h3 {
  margin: 0.45rem 0 0;
  color: var(--text);
  font-size: 0.92rem;
}

.area-dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-dialog-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.45rem 0.75rem;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border: 1px solid #bce8ef;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.area-dialog-note {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

.portal-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(720px, 100%);
  margin: 2rem auto 4.5rem;
  padding: 1.2rem 1.5rem;
  color: #174f5e;
  background:
    radial-gradient(circle at 15% 40%, rgba(255, 255, 255, 0.9), transparent 8rem),
    linear-gradient(100deg, #e9fbff, #eae8ff 52%, #fff1f4);
  border: 2px solid #a9dfe8;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.portal-banner-badge {
  padding: 0.3rem 0.65rem;
  color: #fff;
  background: var(--cyan-deep);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.portal-banner > span:last-child {
  color: var(--cyan-deep);
  font-weight: 900;
}

.magazine-section {
  margin-bottom: 4.5rem;
  padding: 4rem 0 3.2rem;
  background: #fffaf7;
  box-shadow: 0 0 0 100vmax #fffaf7;
  clip-path: inset(0 -100vmax);
}

.magazine-brand {
  margin-bottom: 2rem;
  text-align: center;
}

.magazine-brand h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  letter-spacing: -0.07em;
}

.magazine-brand h2 span {
  color: var(--cyan-deep);
}

.magazine-brand p {
  margin: 0.15rem 0 1rem;
  color: var(--muted);
}

.magazine-tabs {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.magazine-tabs span {
  padding: 0.42rem 1.2rem;
  color: #fff;
  background: var(--cyan-deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.magazine-tabs span:last-child {
  background: #6656b8;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece4df;
  box-shadow: 0 5px 13px rgba(79, 58, 46, 0.11);
  transition: transform 0.18s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-cover {
  position: relative;
  display: flex;
  min-height: 145px;
  padding: 1rem;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  isolation: isolate;
}

.article-cover::after {
  position: absolute;
  z-index: -1;
  right: -1.5rem;
  bottom: -2.8rem;
  width: 9rem;
  height: 9rem;
  content: "";
  background: rgba(255, 255, 255, 0.24);
  border: 9px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.article-cover b {
  font-size: 2.1rem;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.article-cover em {
  margin-top: 0.45rem;
  padding: 0.15rem 0.45rem;
  color: #174f5e;
  background: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.cover-interview { background: linear-gradient(135deg, #ff9e77, #ff668d); }
.cover-beginner { background: linear-gradient(135deg, #64d7ea, #1ca7c2); }
.cover-safe { background: linear-gradient(135deg, #7fd8c4, #3eb594); }
.cover-trial { background: linear-gradient(135deg, #a994ec, #7463c7); }
.cover-costume { background: linear-gradient(135deg, #ffbb79, #f09173); }
.cover-pay { background: linear-gradient(135deg, #f4ce5c, #df9e2f); }
.cover-night { background: linear-gradient(135deg, #5d82bc, #293e77); }
.cover-double { background: linear-gradient(135deg, #f79dc2, #cc6aa4); }

.article-category {
  align-self: flex-start;
  margin: 0.75rem 0.8rem 0;
  padding: 0.2rem 0.55rem;
  color: #fff;
  background: var(--cyan-deep);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.article-card > strong {
  padding: 0.45rem 0.8rem 0;
  line-height: 1.48;
}

.article-card time {
  margin-top: auto;
  padding: 0.65rem 0.8rem;
  color: #587078;
  font-size: 0.75rem;
  text-align: right;
}

.outline-more {
  display: flex;
  width: max-content;
  min-width: 300px;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 2.2rem auto 0;
  color: var(--cyan-deep);
  background: #fff;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  font-weight: 900;
}

.activity-section,
.updates-section,
.about-section {
  margin-bottom: 4.5rem;
}

.dense-heading {
  margin-bottom: 1rem;
}

.dense-heading h2,
.about-intro h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.dense-heading p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.activity-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid #d7e8ec;
  box-shadow: var(--shadow-soft);
}

.activity-card > img {
  width: 90px;
  height: 70px;
  object-fit: cover;
}

.activity-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.activity-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.3;
}

.activity-card > div p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.activity-card dl {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.activity-card dl div {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  font-size: 0.78rem;
}

.activity-card dt {
  color: var(--cyan-deep);
  font-weight: 900;
}

.activity-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jobs-section {
  margin-bottom: 4.5rem;
  padding: 0;
}

.updates-section {
  padding: 3.5rem 0;
  background: #f5fbfd;
  box-shadow: 0 0 0 100vmax #f5fbfd;
  clip-path: inset(0 -100vmax);
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.2rem;
}

.update-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.7rem;
  padding: 1rem 2rem 1rem 0;
  border-bottom: 1px solid #b9d5db;
}

.update-item::after {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  content: "›";
  color: #8cb3bc;
  font-size: 2rem;
  transform: translateY(-50%);
}

.update-date {
  color: var(--cyan-deep);
  font-size: 0.75rem;
  font-weight: 900;
}

.update-item strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.update-item small {
  color: var(--muted);
}

.update-item b {
  color: var(--cyan-deep);
  font-size: 0.82rem;
  text-align: right;
}

.about-section {
  padding: 1rem 0;
}

.about-intro {
  max-width: 920px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.about-intro p {
  margin: 1rem 0 0;
  color: #426872;
  text-align: left;
}

.about-section > h3 {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.benefit-grid article {
  position: relative;
  padding: 2rem 1.4rem 1.4rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.benefit-grid article > span {
  position: absolute;
  top: -0.8rem;
  right: 0.7rem;
  color: rgba(34, 188, 214, 0.14);
  font-size: 4rem;
  font-weight: 900;
}

.benefit-grid h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.shop-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 3rem;
  color: #174f5e;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.85), transparent 13rem),
    linear-gradient(120deg, #e2f9fd, #f5efff 60%, #fff2f2);
  border: 2px solid #c5e9ef;
  border-radius: 18px;
}

.shop-cta h2,
.shop-cta p {
  margin: 0;
}

.shop-cta strong {
  display: block;
  margin-top: 0.5rem;
}

.shop-cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

@media (max-width: 1180px) {
  .header-inner {
  grid-template-columns: auto 1fr;
}

  .header-status {
    display: none;
  }

  .prefecture-list {
  grid-template-columns: repeat(7, minmax(70px, 1fr));
}
}

@media (max-width: 900px) {
  .utility-line {
    display: none;
  }

  .header-inner {
  justify-content: space-between;
  grid-template-columns: auto auto;
}

  .global-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.5rem 1rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  justify-content: initial;
}

  .global-nav a {
  padding: 0.8rem 0.3rem;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

  .hero-copy {
  width: 78%;
  padding-left: 1.2rem;
}

  .prefecture-list {
  grid-template-columns: repeat(4, minmax(65px, 1fr));
}

  .article-grid,
  .activity-grid,
  .update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .area-dialog-group {
    grid-template-columns: 1fr;
  }

  .area-dialog-group h3 {
    margin-top: 0;
  }

  .area-dialog-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-dialog-links a {
    justify-content: center;
  }

  .hero,
  .hero-inner {
  min-height: 300px;
}

  .hero-copy {
  align-self: flex-start;
  width: 100%;
  padding: 1.5rem 0.35rem 0;
  text-align: left;
}

  .hero .hero-lead {
    max-width: 70%;
    font-size: 1.05rem;
  }

  .hero h1 {
  max-width: 72%;
  font-size: 2.2rem;
  letter-spacing: -0.1em;
}

  .hero .hero-note {
    max-width: 62%;
    font-size: 0.8rem;
  }

  .hero-character {
  opacity: 0.98;
  right: 0;
  bottom: -8.25rem;
  width: 175px;
}

  .page-shell {
  margin-top: -1rem;
}

  .area-panel {
  padding: 0.75rem 0.55rem;
}

  .section-heading {
    min-width: 0;
  }

  .section-heading h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .area-row {
  gap: 0.45rem;
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 0.75rem;
}

  .prefecture-list {
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

  .search-panel {
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.9rem 0.75rem;
}

  .search-content {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .shortcut-card {
    min-height: 64px;
  }

  .job-search {
  grid-template-columns: 1fr;
  border-radius: 10px;
}

  .select-field {
    border: 1px solid var(--line);
  }

  .search-button {
    border-radius: 11px;
  }

  .portal-banner {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .portal-banner-badge {
    width: max-content;
  }

  .portal-banner strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .article-grid {
    display: flex;
    width: 100%;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0 0.575rem 0.9rem 0;
    scroll-snap-type: x mandatory;
  }

  .article-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .activity-grid,
  .update-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    grid-template-columns: 82px 1fr;
  }

  .activity-card > img {
    width: 82px;
  }

  .magazine-section,
  .activity-section,
  .updates-section,
  .about-section,
  .jobs-section {
    margin-bottom: 3.2rem;
  }

  .outline-more {
    min-width: min(100%, 300px);
  }

  .shop-cta {
    padding: 1.6rem 1.2rem;
  }

  .shop-cta-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Footer */
.site-footer {
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  justify-content: space-between;
  gap: 3rem;
  display: block;
  max-width: 1040px;
  padding: 3.25rem 0 2.5rem;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.brand-footer {
  margin-bottom: 0.8rem;
  margin: 0;
  font-size: 1.55rem;
}

.footer-brand-divider {
  width: 1px;
  height: 2.3rem;
  background: #cfe1e5;
}

.footer-subbrand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #285b68;
  line-height: 1.05;
}

.footer-subbrand strong {
  font-size: 1.15rem;
}

.footer-subbrand span {
  color: var(--cyan-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.footer-social {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  max-width: 100%;
  margin: 2rem auto 2.25rem;
  padding: 0.75rem 1rem;
  text-align: left;
  background: #f4fcfe;
  border: 1px solid #cce8ed;
  border-radius: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.footer-social:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.footer-social-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-social strong,
.footer-social small {
  display: block;
}

.footer-social strong {
  color: var(--cyan-deep);
  font-size: 0.94rem;
}

.footer-social small {
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-social b {
  color: var(--cyan-deep);
  font-size: 1.2rem;
}

.footer-inner nav {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  color: #315e69;
  font-size: 0.84rem;
}

.footer-inner nav a {
  position: relative;
  padding: 0.35rem 1rem;
  font-weight: 700;
}

.footer-inner nav a:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 0.8rem;
  content: "";
  background: #cfdee2;
  transform: translateY(-50%);
}

.footer-inner nav a:hover {
  color: var(--cyan-deep);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.copyright {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  margin: 0;
  padding: 0.8rem 1rem;
  color: #c9e8ed;
  background: var(--navy);
  border: 0;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 680px) {
  .footer-inner {
  flex-direction: column;
  width: min(calc(100% - 2rem), var(--page));
  padding: 2.5rem 0 2rem;
}

  .footer-brand-row {
    gap: 0.8rem;
  }

  .brand-footer {
    font-size: 1.15rem;
  }

  .brand-footer .brand-mark {
    width: 1.85rem;
    height: 1.75rem;
  }

  .footer-subbrand strong {
    font-size: 0.92rem;
  }

  .footer-subbrand span {
    font-size: 0.75rem;
  }

  .footer-social {
    width: 100%;
    margin: 1.6rem auto;
  }

  .footer-inner nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  text-align: left;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

  .footer-inner nav a {
    min-height: 44px;
    padding: 0.7rem 0.75rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .footer-inner nav a:not(:last-child)::after {
    display: none;
  }

  .footer-inner nav a:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero .hero-lead,
  .hero h1,
  .hero .hero-note {
    max-width: calc(100% - 165px);
  }

  .hero h1 {
    font-size: 1.95rem;
    white-space: nowrap;
  }

  .hero-character {
    right: -0.75rem;
    width: 185px;
    bottom: -6rem;
  }

  .hero-character .speech-bubble {
    display: none;
  }
}

.hero-character img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 681px) and (max-width: 900px) {
  .hero-copy {
    width: calc(100% - 280px);
    padding-left: 1.5rem;
  }

  .hero-character {
    width: 270px;
  }
}

/* Avoid stray one- or two-character lines in headings and copy */
h1,
h2,
h3 {
  text-wrap: balance;
}

p,
dd,
li {
  text-wrap: pretty;
}

.shortcut-card {
  gap: 0.5rem;
}

.shortcut-card > span:nth-child(2),
.footer-inner nav a {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .search-shortcuts {
    grid-template-columns: 1fr;
  }
}

strong {
  text-wrap: balance;
}

.hero .hero-lead span,
.hero .hero-note span {
  display: inline-block;
}
