/* ========================================= Base ========================================= */
:root {
  --brand-color: #2f8f82;
  --brand-light: #e3f4f1;
  --accent-color: #f2a93b;

  --text-main: #111827;
  --text-sub: rgba(17, 24, 39, 0.78);

  /* クリック色（控えめ） */
  --link-soft: rgba(47, 143, 130, 0.82);
  --link-hover: rgba(47, 143, 130, 0.95);

  /* ここを置き換える */
  --bg-body: linear-gradient(to bottom, #ffffff 0%, #faf7f3 40%, #f2ebe4 100%);
  --bg-white: #ffffff;

  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 110px;
  }
}

body {
  margin: 0;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 18px; /* 17px → 18px */
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-body);
}

/* ✅ 6点ルール：下線は使わない（全体方針） */
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(47, 143, 130, 0.12);
}

/* キーボード操作の見やすさ（タップでは出ない） */
a:focus-visible {
  outline: 3px solid rgba(47, 143, 130, 0.22);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.skiplink {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skiplink:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  z-index: 9999;
}

/* ========================================= Header ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

/* 旧：brand__link は残してOK（別ページ/将来用） */
.brand__link {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

/* ✅ 6点ルール：タイトル（事業所名）は押せない */
.brand__name {
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: default;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ✅ 6点ルール：メニューリンクは下線なし＋色変化＋タップ反応 */
.nav a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.75);
  padding: 8px 10px;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.06s ease;
}

.nav a:hover {
  background: rgba(47, 143, 130, 0.10);
  color: rgba(17, 24, 39, 0.95);
}

/* スマホの“押した感” */
.nav a:active {
  transform: translateY(1px);
  background: rgba(47, 143, 130, 0.14);
  color: rgba(17, 24, 39, 0.98);
}

/* ========================================= Hero ========================================= */
.hero--center {
  position: relative;
  min-height: clamp(420px, 60vh, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 18px auto 0;
  width: min(1100px, calc(100% - 32px));
  background: #fff;
}

/* 背景画像（画像はHTMLのstyleで指定する） */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  opacity: 1;
  filter: none;
}

/* ✅ 文字の視認性を安定させる薄いオーバーレイ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.35)
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  padding: 28px 18px;
  max-width: 900px;
}

.hero__title {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-main);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.hero__sub {
  margin: 10px 0 0;
  font-size: clamp(14px, 2.2vw, 18px);
  color: var(--text-sub);
  line-height: 1.7;
}

/* ========================================= Sections ========================================= */
.section {
  padding: 44px 0;
}

.section__title {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.section__text {
  margin: 0;
  color: rgba(17, 24, 39, 0.8);
}

/* ✅ 見出し周り（services等） */
.section__head {
  margin-bottom: 18px;
}

.section__lead {
  margin: 0;
  color: rgba(17, 24, 39, 0.78);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.card__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.card__text {
  margin: 0;
  color: rgba(17, 24, 39, 0.78);
}

/* ========================================= Services ========================================= */
.services__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ✅ service-card 専用の文字（card__title/textと同等に揃える） */
.service-card__title {
  margin: 0;
  font-size: 18px;
}

.service-card__text {
  margin: 0;
  color: rgba(17, 24, 39, 0.78);
}

/* ========================================= Recruit Mini ========================================= */
/* ✅ 確定：採用ミニ枠は “文章だけ” */
.recruitMini__textBlock {
  /* 何もしない（将来の微調整用フックだけ残す） */
}

/* 旧カードスタイルは残っていても崩れないよう“無効化” */
.recruitMini__box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.recruitMini__text {
  margin: 0;
  color: rgba(17, 24, 39, 0.8);
  line-height: 1.7;
}

/* ========================================= Legal ========================================= */
@media (max-width: 560px) {
  .legal-links {
    display: flex; /* ← これが必要 */
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .section__text {
    margin-bottom: 20px;
  }

  .legal-links .btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding-left: 20px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.06s ease,
    opacity 0.2s ease;
}

/* ✅ 6点ルール：法定情報リンク（PDF）は“押せる感”を残しつつ下線なし */
.btn--ghost {
  color: var(--link-soft);
  border-color: rgba(47, 143, 130, 0.18);
}

.btn--ghost:hover {
  background: rgba(47, 143, 130, 0.10);
  border-color: rgba(47, 143, 130, 0.22);
  color: var(--link-hover);
}

.btn--ghost:active {
  transform: translateY(1px);
  opacity: 0.92;
}

/* ========================================= Contact ========================================= */
.section--contact {
  background: transparent;
}

.contact {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact__item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 16px;
}

.contact__label {
  font-size: 13px;
  color: rgba(17, 24, 39, 0.62);
  margin-bottom: 6px;
}

.contact__value {
  font-weight: 700;
  word-break: break-word;
}

/* ✅ 6点ルール：電話（a.contact__value）のみ控えめ色＋クリック感 */
a.contact__value {
  color: var(--link-soft);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.06s ease;
}

a.contact__value:hover {
  color: var(--link-hover);
}

a.contact__value:active {
  transform: translateY(1px);
  opacity: 0.88;
}

/* ========================================= Footer ========================================= */
.footer {
  padding: 26px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__name {
  font-weight: 800;
}

.footer__sub {
  color: rgba(17, 24, 39, 0.7);
  font-size: 14px;
  margin-top: 6px;
}

.footer__copy {
  color: rgba(17, 24, 39, 0.6);
}

/* ========================================= Responsive ========================================= */
@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

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

/* ========================================= Header (Mobile layout) ========================================= */
@media (max-width: 700px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    width: 100%;
  }

  .brand__name {
    display: block;
    font-size: 18px; /* ここは好みで 17〜19 */
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav a {
    font-size: 14px;
    padding: 8px 10px;
  }
}
