@charset "UTF-8";
/* =========================================================
   長崎大学病院 精神科神経科・地域連携児童思春期精神医学診療部
   Base stylesheet (static → WordPress theme)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* color */
  --c-bg: #eff8f9;
  --c-text: #1f2c5c;
  --c-primary: #234a87;
  --c-primary-hover: #5780bc;
  --c-link: #527dba;
  --c-sky: #d2ecf7;
  --c-mint: #d3f4f4;
  --c-teal: #42a5a5;
  --c-yellow: #ffc000;
  --c-yellow-soft: #fff4d6;
  --c-coral: #ff9e7a;
  --c-white: #fff;
  --c-line: #cfe0ea;

  /* type */
  --ff-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --ff-en: "Jost", "Futura", "Century Gothic", "Gill Sans", sans-serif;
  --fs-base: 1.6rem;
  --lh-base: 1.8;
  --ls-base: 0.04em;

  /* shape */
  --radius-sm: 10px;   /* カード・写真 */
  --radius-md: 15px;   /* 大きめのパネル */
  --radius-pill: 40px; /* ボタン */
  --border: 2px solid var(--c-text);

  /* layout */
  --container: 1100px;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

html {
  font-size: 62.5%;
  background: var(--c-bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-base);
  letter-spacing: var(--ls-base);
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body.is-menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
[lang="en"] { font-family: var(--ff-en); }

:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 8px 16px; background: var(--c-primary); color: #fff; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.u-pc { display: none; }
.u-sp { display: inline; }
@media (min-width: 769px) {
  .u-pc { display: inline; }
  .u-sp { display: none; }
}
.u-mark {
  background: linear-gradient(transparent 62%, rgba(255, 192, 0, .45) 62%);
  padding-inline: .05em;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 240px;
  padding: 14px 52px 14px 36px;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-primary);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; line-height: 1.5;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: right .25s var(--ease);
}
.btn[target="_blank"]::after {
  width: 12px; height: 12px; margin-top: -6px; border: 0; transform: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14zM5 5h6v2H7v10h10v-4h2v6H5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14zM5 5h6v2H7v10h10v-4h2v6H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn:hover { background: var(--c-primary); color: #fff; }
.btn:hover::after { right: 18px; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btn--outline { background: transparent; }
.btn--white { border-color: var(--c-white); }
.btn--white:hover { border-color: var(--c-primary); }
.btn--lg { min-width: 280px; padding-block: 18px; font-size: 1.6rem; }

.icon-external {
  display: inline-block; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.1em;
  background: currentColor; opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14zM5 5h6v2H7v10h10v-4h2v6H5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14zM5 5h6v2H7v10h10v-4h2v6H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  padding: 2px 14px; border-radius: var(--radius-pill);
  background: var(--c-sky); color: var(--c-primary);
  font-size: 1.3rem; font-weight: 500;
}

/* ---------- Section title ---------- */
.section { padding-block: 72px; }
.sec-title { margin-bottom: 40px; text-align: center; }
.sec-title__en {
  font-family: var(--ff-en);
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  font-weight: 600; line-height: 1; letter-spacing: .08em;
  color: var(--c-primary);
}
.sec-title__ja {
  margin-top: 14px;
  font-size: 1.6rem; font-weight: 700; color: var(--c-primary); letter-spacing: .1em;
}
.sec-title__ja::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: .2em;
  border-radius: 50%; background: var(--c-yellow);
}
.sec-title--left { text-align: left; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 248, 249, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(31, 44, 92, .08); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { flex: none; width: 42px; height: 42px; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.site-logo__sub { font-size: 1.1rem; font-weight: 500; letter-spacing: .12em; color: var(--c-primary); }
.site-logo__main { font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; color: var(--c-text); }
.site-logo__dept { display: inline-block; }
@media (max-width: 599px) {
  .site-logo__dept { display: block; }
  .site-logo__amp { display: none; }
}
.site-logo__amp { margin-inline: .15em; color: var(--c-teal); }

/* menu button (SP) */
.menu-btn {
  position: relative; z-index: 120; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
}
.menu-btn__bars { position: relative; display: block; width: 22px; height: 14px; }
.menu-btn__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 6px; }
.menu-btn__bars span:nth-child(3) { top: 12px; }
.menu-btn__label { font-size: .9rem; font-weight: 500; letter-spacing: .12em; line-height: 1; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* global nav (SP: full screen) */
.gnav {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: calc(var(--header-h) + 20px) 32px 40px;
  background: var(--c-sky);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  overflow-y: auto;
}
.gnav.is-open { opacity: 1; visibility: visible; }
.gnav__list { display: grid; gap: 4px; }
.gnav__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 4px; border-bottom: 1px dashed rgba(35, 74, 135, .3);
}
.gnav__ja { font-size: 1.7rem; font-weight: 700; }
.gnav__en { font-size: 1.2rem; font-weight: 500; letter-spacing: .12em; color: var(--c-primary-hover); }
.gnav__cta {
  display: block; padding: 16px; text-align: center;
  border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-weight: 700;
}

@media (min-width: 1200px) {
  :root { --header-h: 96px; }
  .site-header__inner { padding-inline: 32px; }
  .logo-mark { width: 52px; height: 52px; }
  .site-logo__sub { font-size: 1.2rem; }
  .site-logo__main { font-size: 1.6rem; }
  .menu-btn { display: none; }
  .gnav {
    position: static; flex-direction: row; align-items: center; gap: 20px;
    padding: 0; background: none; opacity: 1; visibility: visible; overflow: visible;
  }
  .gnav__list { display: flex; gap: 2px; }
  .gnav__link {
    flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 12px; border: 0; border-radius: var(--radius-sm);
    transition: background-color .25s var(--ease);
  }
  .gnav__link:hover, .gnav__link[aria-current="page"] { background: var(--c-white); }
  .gnav__ja { font-size: 1.4rem; line-height: 1.4; }
  .gnav__en { font-size: 1.1rem; line-height: 1; }
  .gnav__cta { padding: 12px 28px; font-size: 1.4rem; transition: background-color .25s var(--ease); }
  .gnav__cta:hover { background: var(--c-primary-hover); }
}

/* =========================================================
   Main visual
   ========================================================= */
.mv { padding: 12px var(--gutter) 0; }
.mv__inner { position: relative; max-width: 1400px; margin-inline: auto; }
.mv__photo { overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4 / 5; }
.mv__photo img { width: 100%; height: 100%; object-fit: cover; }
.mv__copy {
  position: relative; z-index: 2;
  width: calc(100% - 24px); margin: -64px auto 0;
  padding: 28px 24px;
  background: var(--c-white); border: var(--border); border-radius: var(--radius-md);
}
.mv__catch {
  font-size: clamp(2.8rem, 7.6vw, 5.6rem); font-weight: 700; line-height: 1.45; letter-spacing: .08em;
  color: var(--c-primary);
}
.mv__lead { margin-top: 14px; font-size: 1.5rem; line-height: 2; font-weight: 500; }
.mv__illust { position: absolute; z-index: 3; pointer-events: none; }
.mv__illust--sun { top: -6px; right: 4%; width: 72px; animation: float 6s ease-in-out infinite; }
.mv__illust--cloud { top: 18%; left: 4%; width: 96px; animation: drift 12s ease-in-out infinite; }
.mv__illust--bird { top: 34%; right: 10%; width: 52px; animation: float 5s ease-in-out infinite reverse; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(16px); } }

@media (min-width: 769px) {
  .mv { padding: 24px 32px 0; }
  .mv__photo { aspect-ratio: 16 / 8; }
  .mv__copy {
    position: absolute; left: 4%; bottom: -48px; width: auto; max-width: 560px; margin: 0;
    padding: 44px 52px;
  }
  .mv__lead { font-size: 1.6rem; }
  .mv__illust--sun { width: 120px; top: -24px; right: 6%; }
  .mv__illust--cloud { width: 160px; top: 12%; left: auto; right: 30%; }
  .mv__illust--bird { width: 80px; top: 28%; right: 18%; }
}

/* =========================================================
   Intro
   ========================================================= */
.intro {
  position: relative;
  display: grid; grid-template-columns: 1fr; justify-items: center;
  padding: 64px var(--gutter) 40px;
  text-align: center;
}
.intro__title { margin-bottom: 24px; font-size: 2rem; line-height: 1.6; font-weight: 700; color: var(--c-primary); letter-spacing: .06em; }
.intro__title-sub { display: block; font-size: 1.4rem; font-weight: 500; letter-spacing: .14em; color: var(--c-teal); }
.intro__body p { font-size: 1.5rem; line-height: 2.2; text-align: left; }
.intro__tree { width: 110px; }
.intro__tree--l { display: none; }
.intro__tree--r { margin-top: 24px; }

@media (min-width: 769px) {
  .intro {
    grid-template-columns: minmax(120px, 1fr) minmax(auto, 760px) minmax(120px, 1fr);
    align-items: end; gap: 24px;
    padding: 140px 32px 80px;
  }
  .intro__title { font-size: 2.4rem; }
  .intro__body p { font-size: 1.6rem; line-height: 2.4; text-align: center; }
  .intro__tree { width: min(220px, 100%); }
  .intro__tree--l { display: block; justify-self: start; }
  .intro__tree--r { margin-top: 0; justify-self: end; }
}

/* =========================================================
   Wave background wrapper
   ========================================================= */
.wave-bg {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60c180-50 360-50 540 0s360 50 540 0 270-40 360-20V0H0z' fill='%23eff8f9'/%3E%3C/svg%3E") top / 100% 80px no-repeat,
    linear-gradient(var(--c-mint), var(--c-mint));
  padding-top: 40px;
}

/* =========================================================
   Guide cards
   ========================================================= */
.guide__list { display: grid; gap: 16px; grid-template-columns: 1fr; }
.guide-card {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  height: 100%;
  padding: 20px 52px 20px 20px;
  background: var(--c-white); border: var(--border); border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 6px 0 var(--c-text); }
.guide-card__icon {
  grid-row: 1 / 3;
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
}
.guide-card__icon svg { width: 32px; height: 32px; }
.guide-card__icon--blue { background: var(--c-sky); color: var(--c-primary); }
.guide-card__icon--yellow { background: var(--c-yellow-soft); color: var(--c-yellow); }
.guide-card__icon--mint { background: var(--c-mint); color: var(--c-teal); }
.guide-card__icon--navy { background: #e3e9f5; color: var(--c-primary); }
.guide-card__title { font-size: 1.7rem; font-weight: 700; line-height: 1.5; color: var(--c-primary); }
.guide-card__text { font-size: 1.3rem; line-height: 1.6; }
.guide-card__arrow {
  position: absolute; right: 16px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary);
}
.guide-card__arrow::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; margin: -3.5px 0 0 -5px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg);
}
.guide-card--child { background: var(--c-yellow-soft); }

@media (min-width: 769px) {
  .guide__list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1100px) {
  .guide__list { grid-template-columns: repeat(4, 1fr); }
  .guide-card {
    grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; row-gap: 8px;
    padding: 32px 20px 64px; text-align: center;
  }
  .guide-card__icon { grid-row: auto; width: 88px; height: 88px; margin-bottom: 8px; }
  .guide-card__icon svg { width: 44px; height: 44px; }
  .guide-card__arrow { top: auto; bottom: 20px; right: 50%; translate: 50% 0; }
}

/* =========================================================
   About (departments)
   ========================================================= */
.about__list { display: grid; gap: 32px; }
.dept-card {
  display: grid; overflow: hidden;
  background: var(--c-white); border-radius: var(--radius-md);
}
.dept-card__photo { position: relative; aspect-ratio: 4 / 3; }
.dept-card__photo > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.dept-card__illust { position: absolute; right: 12px; bottom: -8px; width: 38%; max-width: 200px; }
.dept-card__body { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px 32px; }
.dept-card__label {
  align-self: flex-start;
  padding: 2px 14px; border-radius: var(--radius-pill);
  background: var(--c-primary); color: #fff; font-size: 1.3rem; font-weight: 700;
}
.dept-card--child .dept-card__label { background: var(--c-teal); }
.dept-card__title { font-size: 2.2rem; line-height: 1.5; font-weight: 700; color: var(--c-primary); }
.dept-card__btn { margin-top: 8px; }

@media (min-width: 769px) {
  .dept-card { grid-template-columns: 1fr 1fr; }
  .dept-card__photo { aspect-ratio: auto; min-height: 100%; }
  .dept-card__body { padding: 48px 48px 52px; }
  .dept-card__title { font-size: 2.6rem; }
  .dept-card--child .dept-card__photo { order: 2; }
}

/* =========================================================
   News
   ========================================================= */
.news { padding-bottom: 120px; }
.news__wrap {
  display: grid; gap: 8px;
  padding: 36px 24px;
  background: var(--c-white); border: var(--border); border-radius: var(--radius-md);
}
.news .sec-title { position: relative; margin-bottom: 16px; }
.news__illust { display: none; }
.news-list__item { border-bottom: 1px dashed var(--c-line); }
.news-list__item:first-child { border-top: 1px dashed var(--c-line); }
.news-list__link {
  display: grid; gap: 6px;
  padding: 18px 4px;
  transition: color .25s var(--ease);
}
.news-list__link:hover { color: var(--c-link); }
.news-list__meta { display: flex; align-items: center; gap: 12px; }
.news-list__meta time { font-family: var(--ff-en); font-size: 1.5rem; font-weight: 500; letter-spacing: .08em; color: var(--c-primary); }
.news-list__title { font-size: 1.5rem; line-height: 1.7; }
.news-tag {
  min-width: 96px; padding: 1px 10px; text-align: center;
  border-radius: var(--radius-pill); font-size: 1.2rem; font-weight: 700;
  background: var(--c-sky); color: var(--c-primary);
}
.news-tag--press { background: var(--c-yellow-soft); color: #9a6a00; }
.news-tag--event { background: #ffe4da; color: #b4502c; }
.news-tag--research { background: var(--c-mint); color: #23807f; }
.news-tag--recruit { background: #e3e9f5; color: var(--c-primary); }
.news__more { margin-top: 28px; text-align: center; }

@media (min-width: 769px) {
  .news__wrap { grid-template-columns: 240px 1fr; gap: 40px; padding: 56px 60px; }
  .news__illust { display: block; width: 72px; margin-top: 32px; }
  .news-list__link { grid-template-columns: 220px 1fr; align-items: center; gap: 16px; padding: 22px 8px; }
  .news__more { text-align: right; }
}

/* =========================================================
   Seminar
   ========================================================= */
.seminar {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v40c-200 60-420 60-640 20S300 0 0 50z' fill='%23d3f4f4'/%3E%3C/svg%3E") top / 100% 80px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120h1440V70c-240-60-480-60-720 0S240 120 0 60z' fill='%23eff8f9'/%3E%3C/svg%3E") bottom / 100% 80px no-repeat,
    var(--c-sky);
  margin-top: -1px;
}
.seminar__inner { padding: 120px 0 130px; }
.seminar__box {
  position: relative;
  max-width: 880px; margin-inline: auto;
  padding: 40px 24px;
  background: var(--c-white); border-radius: var(--radius-md); text-align: center;
}
.seminar__illust { position: absolute; top: -34px; right: 24px; width: 64px; }
.seminar__text { font-size: 1.5rem; line-height: 2; text-align: left; }
.seminar__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }
.seminar__btns .btn--white { border-color: var(--c-primary); }

@media (min-width: 769px) {
  .seminar__box { padding: 56px 60px; }
  .seminar__illust { width: 80px; top: -44px; right: 48px; }
  .seminar__text { font-size: 1.6rem; text-align: center; }
}

/* =========================================================
   Message
   ========================================================= */
.message__inner { display: grid; gap: 40px; align-items: center; }
.message__text p + p { margin-top: 1em; }
.message__text p { line-height: 2.1; }
.message__sign { text-align: right; margin-top: 24px !important; color: var(--c-primary); line-height: 1.8 !important; }
.message__sign b { font-size: 1.8rem; }
.message__btn { margin-top: 28px !important; }
.message__photo {
  justify-self: center;
  width: min(100%, 420px); aspect-ratio: 1; overflow: hidden;
  border-radius: 50%; border: 6px solid var(--c-white);
  box-shadow: 16px 16px 0 var(--c-sky);
}
.message__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 769px) {
  .message__inner { grid-template-columns: 1.2fr 1fr; gap: 72px; }
  .message__photo { order: 2; }
}

/* =========================================================
   Recruit
   ========================================================= */
.recruit { padding-bottom: 72px; }
.recruit__box {
  display: grid; overflow: hidden;
  background: var(--c-yellow-soft); border: var(--border); border-radius: var(--radius-md);
}
.recruit__body { padding: 36px 24px 40px; }
.recruit__body > p { line-height: 2; }
.recruit__points { display: grid; gap: 12px; margin-top: 24px; }
.recruit__points li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--c-white); font-size: 1.7rem; font-weight: 700; color: var(--c-primary);
}
.recruit__num {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-yellow); color: var(--c-text); font-size: 1.5rem; font-weight: 600;
}
.recruit__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.recruit__photo { aspect-ratio: 4 / 3; }
.recruit__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 769px) {
  .recruit__box { grid-template-columns: 1.15fr 1fr; }
  .recruit__body { padding: 56px 56px 60px; }
  .recruit__photo { aspect-ratio: auto; }
}

/* =========================================================
   Links
   ========================================================= */
.links { padding-top: 40px; padding-bottom: 120px; }
.link-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
.link-list__item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 100%; padding: 16px 20px;
  background: var(--c-white); border-radius: var(--radius-sm);
  font-size: 1.4rem; font-weight: 500; line-height: 1.5;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.link-list__item:hover { background: var(--c-primary); color: #fff; }
@media (min-width: 600px) { .link-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .link-list { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; color: #fff; }
.site-footer__wave { color: var(--c-primary); line-height: 0; margin-bottom: -1px; }
.site-footer__wave svg { width: 100%; height: 48px; }
.site-footer__body { background: var(--c-primary); padding: 40px 0 24px; }
.site-footer__inner {
  display: grid; gap: 36px;
  max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.site-logo--footer .site-logo__sub,
.site-logo--footer .site-logo__main { color: #fff; }
.site-logo--footer .site-logo__amp { color: var(--c-yellow); }
.site-footer__address { margin-top: 20px; font-size: 1.4rem; line-height: 1.9; }
.site-footer__tel { display: grid; gap: 12px; margin-top: 16px; font-size: 1.4rem; line-height: 1.8; }
.site-footer__tel dt { font-weight: 700; }
.site-footer__tel dd { opacity: .9; }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.site-footer__nav a { display: inline-block; padding: 6px 0; font-size: 1.4rem; }
.site-footer__nav a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: .2em; border-radius: 50%; background: var(--c-yellow); }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy {
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 40px auto 0; padding: 20px var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 1.1rem; letter-spacing: .06em; opacity: .8; text-align: center;
}

.pagetop {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-yellow); color: var(--c-text);
  box-shadow: 0 4px 12px rgba(31, 44, 92, .18);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), visibility .3s var(--ease), transform .3s var(--ease);
}
.pagetop svg { width: 24px; height: 24px; }
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }

@media (min-width: 769px) {
  .site-footer__wave svg { height: 80px; }
  .site-footer__body { padding: 48px 0 28px; }
  .site-footer__inner { grid-template-columns: 1.2fr 1fr; gap: 60px; padding-inline: 32px; }
  .site-footer__tel { grid-template-columns: repeat(2, auto); justify-content: start; gap: 12px 32px; }
  .pagetop { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}

/* ---------- Scroll reveal ---------- */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal.is-visible { opacity: 1; transform: none; }
