:root {
  --blue: #3a6ea5;
  --blue-deep: #2b567f;
  --blue-soft: #6f9cc4;
  --sky: #7eb6e8;
  --ink: #2c3340;
  --muted: #667085;
  --line: #e6ebf2;
  --bg: #f7f9fc;
  --white: #fff;
  --accent: #f0a35e;
  --accent-2: #f7c97a;
  --shadow: 0 18px 50px rgba(43, 86, 127, 0.12);
  --radius: 18px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230,235,242,.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo {
  display: grid;
  gap: 2px;
}
.logo-en {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--blue-soft);
}
.logo-ja {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  font-size: 14px;
  color: var(--ink);
  transition: color .2s;
}
.nav a:hover { color: var(--blue); }
.nav .btn-contact {
  border: 1px solid var(--blue-soft);
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 999px;
}
.nav .btn-admin {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: #6aa7d8;
  background-image:
    linear-gradient(180deg, rgba(15,40,70,.28), rgba(15,40,70,.45)),
    radial-gradient(circle at 70% 20%, #9ec9ef 0%, transparent 45%),
    linear-gradient(160deg, #8ec4ef 0%, #6aa7d8 45%, #4f8fc4 100%);
  background-size: cover;
  background-position: center;
  transition: background-image .4s ease;
}
.hero.has-photo .hero-cloud { opacity: .35; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 85%, rgba(255,255,255,.35), transparent 28%),
    linear-gradient(180deg, transparent 55%, rgba(255,255,255,.12));
  pointer-events: none;
}
.hero-cloud {
  position: absolute;
  width: 280px;
  height: 90px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  filter: blur(2px);
  animation: drift 18s ease-in-out infinite;
}
.hero-cloud.c1 { top: 18%; left: 8%; }
.hero-cloud.c2 { top: 28%; right: 12%; width: 220px; animation-delay: -6s; }
.hero-cloud.c3 { bottom: 22%; left: 40%; width: 180px; animation-delay: -11s; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(24px); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  color: #fff;
}
.hero-copy {
  max-width: 720px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  text-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.hero-copy .en {
  margin-top: 10px;
  font-size: clamp(14px, 2vw, 18px);
  opacity: .9;
  letter-spacing: .04em;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-recruit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #4a2d0d;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(240,163,94,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-recruit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(240,163,94,.4);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}
.hero-dots button.active { background: #fff; }

/* Sections */
.section {
  padding: 88px 0;
}
.section.alt { background: var(--bg); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: .08em;
}
.section-head .en {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--blue-soft);
  letter-spacing: .18em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
  font-size: 14px;
}

.area-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.area-card, .card, .news-item, .service-card, .facility-card, .faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.area-card {
  padding: 28px;
}
.area-card h3 {
  margin: 0 0 12px;
  color: var(--blue);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--blue-deep);
  font-size: 13px;
}

.facility-grid, .service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.facility-card {
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(43,86,127,.16);
}
.facility-card .thumb {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.facility-card .body, .service-card, .news-item, .faq-item {
  padding: 20px;
}
.facility-card .area {
  font-size: 12px;
  color: var(--blue-soft);
  letter-spacing: .06em;
}
.facility-card h3, .service-card h3, .news-item h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.5;
}
.meta {
  font-size: 13px;
  color: var(--muted);
}

.service-card .count {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--blue);
  background: #eef5fb;
  padding: 4px 10px;
  border-radius: 999px;
}

.news-list {
  display: grid;
  gap: 14px;
}
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
}
.news-item.has-thumb {
  grid-template-columns: 110px 140px 1fr;
}
.facility-card .thumb,
.service-card .thumb,
.news-thumb {
  overflow: hidden;
  background: #e8eef5;
}
.facility-card .thumb img,
.service-card .thumb img,
.news-thumb img,
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-thumb {
  width: 140px;
  aspect-ratio: 4/3;
  border-radius: 12px;
}
.facility-card .thumb {
  aspect-ratio: 16/10;
}
.live-card-preview .shot {
  overflow: hidden;
}
.live-card-preview .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card {
  padding: 20px;
  overflow: hidden;
}
.service-card .thumb {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 14px;
  background-color: #eef5fb;
}
.image-field {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed #c5d4e6;
  border-radius: 14px;
  background: #f7fbff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.image-field.is-dragover {
  border-color: #2b6cb0;
  background: #e8f2ff;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.18);
}
.card .thumb {
  aspect-ratio: 16/9;
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}
.image-field .preview {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: #e8eef5;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: copy;
}
.image-field .drop-placeholder {
  text-align: center;
  color: #5b6b7c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px;
  pointer-events: none;
}
.image-field .drop-placeholder small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.image-field .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.image-actions input[type="file"] {
  max-width: 100%;
}
.news-item .date {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .04em;
}
.more-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
}

.page-hero {
  padding: 72px 0 40px;
  background:
    linear-gradient(180deg, #eef5fb, #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: .08em;
}
.page-hero .en {
  margin-top: 8px;
  color: var(--blue-soft);
  letter-spacing: .18em;
  font-size: 13px;
}
.breadcrumb {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--blue); }

.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}
.prose h2 {
  margin-top: 0;
  font-size: 28px;
  letter-spacing: .04em;
}
.prose .catch {
  font-size: 20px;
  color: var(--blue-deep);
  font-weight: 700;
  line-height: 1.6;
}
.info-box {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-box dt {
  font-size: 12px;
  color: var(--muted);
}
.info-box dd {
  margin: 0 0 14px;
  font-weight: 600;
}

.faq-list { display: grid; gap: 12px; }
.faq-item details { padding: 18px 20px; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  background: #1f2d3d;
  color: rgba(255,255,255,.86);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-grid h4 {
  margin: 0 0 12px;
  color: #9ec9ef;
  font-size: 13px;
  letter-spacing: .08em;
}
.footer-grid a {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}
.footer-grid a:hover { color: #fff; }
.copy {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.banner-note {
  background: #fff8e8;
  border: 1px solid #f3dfb0;
  color: #7a5a18;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 18px 0 0;
  font-size: 13px;
}

/* Admin */
.admin-body { background: #edf2f7; }
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: #1f2d3d;
  color: #fff;
  padding: 24px 18px;
}
.admin-side h1 {
  margin: 0 0 8px;
  font-size: 16px;
}
.admin-side p {
  margin: 0 0 24px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}
.admin-nav button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  padding: 12px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 6px;
}
.admin-nav button.active,
.admin-nav button:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-main { padding: 28px; }
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.admin-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfcfe;
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn-primary, .btn-secondary {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-secondary {
  background: #eef5fb;
  color: var(--blue-deep);
}
.item-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.item-list button {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.item-list button.active {
  border-color: var(--blue-soft);
  background: #eef5fb;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1f2d3d;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: .25s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav { display: none; }
  .area-grid,
  .facility-grid,
  .service-grid,
  .split,
  .footer-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .news-item { grid-template-columns: 1fr; }
  .mobile-nav-toggle {
    display: inline-flex;
  }
}
.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
@media (max-width: 960px) {
  .mobile-nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
}
