/* =========================================================
   変数（色・フォント・文字サイズ・余白）  ※CLAUDE.md のとおり
   ========================================================= */
:root {
  /* 色（案A） */
  --color-bg: #FBF8F2;      /* 背景 */
  --color-main: #4F7356;    /* 見出し・区切りの帯・アイコン・線 */
  --color-accent: #B8492F;  /* 「職場見学を申し込む」ボタンだけに使う */
  --color-text: #2F3631;    /* 本文 */
  --color-white: #FFFFFF;   /* メインの帯の上の文字・ボタンの文字 */

  /* フォント */
  --font-heading: "Zen Maru Gothic", sans-serif; /* 見出し・キャッチコピー・ボタン */
  --font-body: "Noto Sans JP", sans-serif;        /* 本文 */

  /* 文字サイズ（スマホ） */
  --fs-catch: 27px;
  --fs-h2: 22px;
  --fs-h3: 19px;
  --fs-body: 17px;   /* これより小さくしない */
  --fs-button: 18px;
  --fs-micro: 14px;  /* ボタンの下の一言 */
  --fs-note: 13px;   /* 注記 */
  --lh-body: 1.9;

  /* 余白（スマホ） */
  --space-side: 20px;
  --space-section: 56px;
  --space-title: 32px;   /* セクション見出しの下 */
  --space-card: 24px;    /* カードどうしの間 */
  --space-cta: 32px;     /* ボタンの上 */
  --card-pad: 24px 20px; /* カードの内側 */
  --card-radius: 16px;
  --width-content: 720px;

  /* ボタン */
  --button-radius: 999px;
  --button-height: 56px;
  --button-max-width: 400px;
}

@media (min-width: 768px) {
  :root {
    /* 文字サイズ（PC） */
    --fs-catch: 40px;
    --fs-h2: 30px;
    --fs-h3: 22px;

    /* 余白（PC） */
    --space-section: 88px;
    --space-title: 48px;
    --space-cta: 40px;
    --card-pad: 32px;
  }
}

/* =========================================================
   基本
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  word-break: auto-phrase; /* 文節の途中で改行しない */
}

/* =========================================================
   レイアウトの枠
   ========================================================= */
.container {
  max-width: calc(var(--width-content) + var(--space-side) * 2);
  margin: 0 auto;
  padding: 0 var(--space-side);
}

.section {
  padding: var(--space-section) 0;
}

/* =========================================================
   セクション（中身はこれから）
   ========================================================= */
/* ボタン（ファーストビューから使う共通の部品） */
.cta {
  margin-top: var(--space-cta);
  text-align: center;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--button-max-width);
  min-height: var(--button-height);
  margin: 0 auto;
  padding: 12px 24px;
  border-radius: var(--button-radius);
  line-height: 1.4; /* リンクと送信ボタンで高さをそろえる */
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}

.btn:hover {
  opacity: .85;
}

.btn:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 3px;
}

.cta__micro {
  margin: 8px 0 0;
  font-size: var(--fs-micro);
  line-height: 1.6;
  word-break: auto-phrase;
}

/* 1. ファーストビュー */
.fv {
  padding-top: 0;
}

.fv__inner {
  padding: 0;
}

.fv__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: right center; /* スタッフの腰あたりから、高齢の方まで入れる */
}

.fv__body {
  padding: 28px var(--space-side) 0;
}

.fv__catch {
  margin: 0 0 16px;
  color: var(--color-main);
  font-size: var(--fs-catch);
  font-weight: 700;
  line-height: 1.5;
}

.fv__sub {
  margin: 0 0 20px;
}

.fv__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fv__points li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 1.6em;
  font-weight: 700;
  line-height: 1.6;
}

/* チェックの印 */
.fv__points li::before {
  content: "";
  position: absolute;
  left: .2em;
  top: .3em;
  width: .45em;
  height: .8em;
  border-right: 3px solid var(--color-main);
  border-bottom: 3px solid var(--color-main);
  transform: rotate(45deg);
}

.fv__note {
  margin: 20px 0 0;
  font-size: var(--fs-note);
  line-height: 1.6;
}

/* タブレット：キャッチコピーの2行目が1行に収まる大きさにする */
@media (min-width: 768px) and (max-width: 1023px) {
  .fv__catch {
    font-size: 34px;
  }
}

/* 左右に並べるのは1024px以上。タブレットはスマホと同じ縦の並び */
@media (min-width: 1024px) {
  .fv {
    padding-top: var(--space-section);
  }

  .fv__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    padding: 0 40px;
  }

  .fv__image {
    order: 2;
  }

  .fv__image img {
    border-radius: 24px;
  }

  .fv__body {
    padding: 0;
  }

  .fv .cta {
    text-align: left;
  }

  .fv .btn {
    margin: 0;
  }
}

/* 2. 不安への答え */
.worries {
  padding-top: 0;
}

.worries__head {
  margin-bottom: var(--space-title);
  padding: 32px 0;
  background: var(--color-main);
}

.worries__title {
  margin: 0;
  color: var(--color-white);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.5;
  text-align: center; /* ほかのセクションの見出しとそろえる */
}

.worry {
  margin-bottom: var(--space-card);
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--color-white);
}

.worry__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.worry__body {
  padding: var(--card-pad);
}

.worry__body p {
  margin: 0 0 12px;
}

/* 不安のことば（吹き出し風） */
.worry__q {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-main);
  color: var(--color-main);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.6;
}

/* 時間のまとまりの途中で改行しない */
.nowrap {
  white-space: nowrap;
}

.worry__lead {
  font-weight: 700;
}

.worry__fact strong {
  color: var(--color-main);
  font-size: 1.3em;
}

.worry__note {
  font-size: var(--fs-note);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .worries__head {
    padding: 48px 0;
  }

  .worries__head .container,
  .worries > .container {
    max-width: 1000px;
  }

  .worry {
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: center;
  }

  .worry--text-only {
    display: block;
  }

  .worry__image,
  .worry__image img {
    height: 100%;
  }

}
/* 3. 先輩の声 */
.voices .container {
  max-width: 1000px;
}

/* セクションの見出し（3. から使う共通の部品） */
.section-title {
  margin: 0 0 var(--space-title);
  color: var(--color-main);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.voices__list {
  display: grid;
  gap: var(--space-card);
}

.voice {
  margin: 0;
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  background: var(--color-white);
}

.voice__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-main);
}

.voice__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  fill: var(--color-main);
}

.voice__profile {
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  word-break: auto-phrase;
}

.voice__text {
  margin: 0;
}

.voice__text p {
  margin: 0;
}

.voices__note {
  margin: 16px 0 0;
  font-size: var(--fs-note);
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .voices__list {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 4. 施設長から */
.message__card {
  position: relative;
  padding: var(--card-pad);
  padding-top: 48px; /* 引用符のぶん */
  border-top: 4px solid var(--color-main);
  border-radius: var(--card-radius);
  background: var(--color-white);
}

/* 手紙のような引用符 */
.message__card::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 18px;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1;
}

.message__card p {
  margin: 0 0 16px;
}

.message__card .message__sign {
  margin: 24px 0 0;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  text-align: right;
}

.message__role {
  margin-right: 12px;
  color: var(--color-main);
  font-size: 15px;
}

@media (min-width: 768px) {
  .message__card {
    padding-top: 64px;
  }

  .message__card::before {
    left: 28px;
    font-size: 72px;
  }
}
/* 5. 見学のご案内 */
.visit {
  background: var(--color-white);
}

.visit__lead {
  margin: calc(var(--space-title) * -.5) 0 var(--space-title);
  font-weight: 700;
  text-align: center;
  word-break: auto-phrase;
}

.visit__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--card-radius);
}

.visit__box {
  margin-bottom: var(--space-card);
  padding: var(--card-pad);
  border: 2px solid var(--color-main);
  border-radius: var(--card-radius);
  background: var(--color-bg);
}

.visit__can .visit__box {
  margin-top: 16px;
}

.visit__h3 {
  margin: 0 0 12px;
  color: var(--color-main);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
}

.visit__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visit__list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 1.6em;
  line-height: 1.7;
}

.visit__list li:last-child,
.visit__steps li:last-child {
  margin-bottom: 0;
}

/* チェックの印（ファーストビューと同じ形） */
.visit__list li::before {
  content: "";
  position: absolute;
  left: .2em;
  top: .3em;
  width: .45em;
  height: .8em;
  border-right: 3px solid var(--color-main);
  border-bottom: 3px solid var(--color-main);
  transform: rotate(45deg);
}

/* 流れ（番号つき） */
.visit__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.visit__steps li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 48px;
  min-height: 34px;
  line-height: 1.7;
  counter-increment: step;
}

.visit__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* 番号どうしをつなぐ線 */
.visit__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: -18px;
  width: 2px;
  background: var(--color-main);
}

/* 見学の案内のボタンは大きめ */
.cta--large .btn {
  min-height: 64px;
}

@media (min-width: 768px) {
  .visit .container {
    max-width: 1000px;
  }

  .visit__can {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: var(--space-card);
  }

  .visit__can .visit__box {
    margin: 0;
  }
}

/* 6. 募集要項 */
.requirements .container {
  max-width: 920px;
}

/* タブ（JSが動いたときだけ使う。動かないときは両方を表示） */
.tabs {
  display: none;
}

.js .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
}

.tabs__btn {
  min-height: 52px;
  padding: 8px;
  border: 2px solid var(--color-main);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: var(--color-white);
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  cursor: pointer;
}

.tabs__btn[aria-selected="true"] {
  background: var(--color-main);
  color: var(--color-white);
}

.tabs__btn:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

.req-panel {
  margin-bottom: 32px;
  border-top: 4px solid var(--color-main);
  background: var(--color-white);
}

.js .req-panel[hidden] {
  display: none;
}

/* タブがあるときは見出しをタブに任せる */
.req-panel__title {
  margin: 0;
  padding: 16px 20px;
  color: var(--color-main);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.js .req-panel__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
}

.req-table th,
.req-table td {
  display: block;
  text-align: left;
  line-height: 1.7;
}

.req-table th {
  padding: 14px 20px 2px;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-weight: 700;
}

.req-table td {
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--color-bg);
}

.req-table tr:nth-child(even) {
  background: var(--color-bg);
}

.req-table tr:nth-child(even) td {
  border-bottom-color: var(--color-white);
}

.req-company {
  margin-bottom: 8px;
  text-align: center;
}

.req-company__title {
  margin: 0 0 4px;
  color: var(--color-main);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.req-company p {
  margin: 0;
}

@media (min-width: 768px) {
  .req-table th,
  .req-table td {
    display: table-cell;
    padding: 16px 24px;
    vertical-align: top;
  }

  .req-table th {
    width: 32%;
  }

  .req-table td {
    border-bottom: none;
  }
}
/* 7. よくある質問 */
.faq__list {
  margin: 0;
}

.faq__item {
  margin-bottom: var(--space-card);
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  background: var(--color-white);
}

.faq__q,
.faq__a {
  position: relative;
  padding-left: 44px;
  line-height: 1.7;
}

.faq__q {
  margin-bottom: 14px;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.faq__a {
  margin: 0;
}

/* Q・A の丸い印 */
.faq__q::before,
.faq__a::before {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.faq__q::before {
  content: "Q";
  background: var(--color-main);
  color: var(--color-white);
}

.faq__a::before {
  content: "A";
  border: 2px solid var(--color-main);
  color: var(--color-main);
}

/* 8. 見学申し込みフォーム */
.entry {
  background: var(--color-white);
}

.entry__lead {
  margin: calc(var(--space-title) * -.5) 0 var(--space-title);
  text-align: center;
  word-break: auto-phrase;
}

.entry__warning {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-main);
  background: var(--color-bg);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.6;
}

.entry-form {
  padding: var(--card-pad);
  border: 2px solid var(--color-main);
  border-radius: var(--card-radius);
  background: var(--color-bg);
}

.field {
  margin: 0 0 24px;
  padding: 0;
  border: none;
  min-width: 0;
}

.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
  line-height: 1.6;
}

.field__hint {
  font-size: var(--fs-micro);
  font-weight: 400;
}

.field__sublabel {
  display: block;
  margin: 8px 0 4px;
  font-size: var(--fs-micro);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
}

.badge--req {
  background: var(--color-main);
  color: var(--color-white);
}

.badge--opt {
  border: 1px solid var(--color-main);
  color: var(--color-main);
}

.field__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--color-main);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body); /* 16px以上でスマホの自動拡大を防ぐ */
}

.field__textarea {
  min-height: 120px;
  resize: vertical;
}

.field__input:focus,
.choice:focus-within {
  outline: 3px solid var(--color-main);
  outline-offset: 1px;
}

.field__input[aria-invalid="true"] {
  border: 2px solid var(--color-text);
}

.field__error {
  margin: 6px 0 0;
  color: var(--color-text);
  font-size: var(--fs-micro);
  font-weight: 700;
}

.field__error::before {
  content: "！";
  color: var(--color-main);
}

.choices {
  display: grid;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--color-main);
  border-radius: 8px;
  background: var(--color-white);
  line-height: 1.5;
  cursor: pointer;
}

.choice input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--color-main);
}

.choice:has(input:checked) {
  border: 2px solid var(--color-main);
  font-weight: 700;
}

.entry-form__submit {
  margin-top: var(--space-cta);
  text-align: center;
}

button.btn {
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .choices {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* 送信のかわりに出すお知らせ（モーダル） */
.modal {
  width: calc(100% - var(--space-side) * 2);
  max-width: 480px;
  max-height: calc(100dvh - 32px); /* スマホでも画面に収める */
  padding: 0;
  border: none;
  border-radius: var(--card-radius);
  background: var(--color-white);
  color: var(--color-text);
  overflow-y: auto;
}

.modal::backdrop {
  background: rgba(47, 54, 49, .6);
}

.modal__inner {
  padding: 32px 24px 24px;
}

.modal__inner p {
  margin: 0 0 12px;
}

.modal__title {
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.6;
}

.modal__close {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 2px solid var(--color-main);
  border-radius: var(--button-radius);
  background: var(--color-white);
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
}

.modal__close:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 3px;
}

body:has(.modal[open]) {
  overflow: hidden; /* 開いている間は後ろをスクロールさせない */
}
/* 9. フッター */
.footer {
  padding: 40px 0;
  background: var(--color-main);
  color: var(--color-white);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer__name {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  word-break: auto-phrase;
}

.footer__note {
  font-size: var(--fs-note);
  line-height: 1.8;
}
