/* ===== 当センターの支援について（2グループ新デザイン・トップ/shien共通） ===== */
/* 寸法・色は PSD(1_index2026) の Photoshop「CSSをコピー」準拠。倍率2倍 → PC: rem = PSD px / 20 */
/* 背景は白（PSD: 支援セクションに青背景なし。見出しは青文字＋黄タグの標準ttl） */
.support {
  background: #fff;
  padding: 8rem 0 10rem;
  position: relative;
  z-index: 150;
}
.support .ttl {
  text-align: left;
  margin-left: 1rem;
}

/* グループ枠（黄=施設向け / 緑=企業向け）。角丸はPSD 40px を等倍=4rem（1/2にしない） */
.support-group {
  border-radius: 4rem;
  padding: 4rem 2rem;
}
.support-group + .support-group {
  margin-top: 4.6rem;
}
.support-group.facility {
  background-color: #f1e743;
}
.support-group.company {
  background-color: #57c5b4;
}
/* グループ見出し：文字は濃グレー #2c2c2c、●は青塗りドット（border のみでサイズ指定・両グループ共通） */
.support-group__ttl {
  display: flex;
  align-items: center;
  gap: 0 1.2rem;
  font-size: 2rem;
  color: #2c2c2c;
  font-weight: bold;
  margin-bottom: 2.4rem;
  padding-left: 0.4rem;
}
/* 見出し左の丸は青ドーナツ（Figma node 1:321：外径:穴:太さ = 3:1:1）。box-sizing:border-box で外径=width */
.support-group__ttl::before {
  content: "";
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: solid 0.5rem #085dbb;
}

/* 各支援項目（番号は左の余白に縦書き・白カードは右にインデント） */
.support-item {
  position: relative;
  padding-left: 0;
}
.support-item + .support-item {
  margin-top: 3rem;
}
/* SP: 番号「01 相談」はカード上に横並び・中央（01=青下線／ラベル=濃グレー） */
.support-item__no {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
.support-item__no .num {
  font-size: 1.8rem;
  color: #085dbb;
  border-bottom: solid 2px #085dbb;
  line-height: 1.2;
  padding-bottom: 0.2rem;
}
.support-item__no .label {
  font-size: 2rem;
  letter-spacing: 0.3em;
  color: #2c2c2c;
}

/* 白カード（角丸PSD 40px 等倍=4rem） */
.support-item__inner {
  background-color: #fff;
  border-radius: 4rem;
  padding: 2.6rem 1rem 3rem;
}

/* ふきだし（SVGアウトライン背景・下向き右寄りのしっぽ。h2要素） */
.support-catch {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  color: #085dbb;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.4;
  text-align: center;
  padding: 1rem 1.1rem 2.6rem;
  background: url(../img/support-catch-balloon.svg) center/100% 100% no-repeat;
}

.support-item__cols {
  display: flex;
  flex-direction: column;
  gap: 2rem 0;
}
.support-item__text > p {
  line-height: 2;
  color: #2c2c2c;
}
.support-item__text .note {
  display: block;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 0.6rem;
}

/* 相談方法など */
.support-contact {
  margin-top: 1.8rem;
}
.support-contact__ttl {
  display: flex;
  align-items: center;
  gap: 0 0.6rem;
  color: #085dbb;
  font-weight: bold;
  margin-bottom: 0.4rem;
}
/* 丸は青ドーナツ（Figma 楕円形3: 実寸30px＋中央stroke15px → 外径2.25rem/帯0.75rem/中抜き0.75rem） */
.support-contact__ttl::before {
  content: "";
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: solid 0.75rem #085dbb;
  background: transparent;
}
.support-contact__tel,
.support-contact__mail {
  display: flex;
  align-items: center;
  margin-top: 0.4rem;
  color: #085dbb;
  font-weight: bold;
  /* SP: 長いメールを1行に収めるため 1.4rem＋わずかに字間を詰める（744/1210 で上書き解除） */
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}
/* ラベル＋リンクのまとまり。長いメールアドレスを縮小・折返し可能にする */
.support-contact__text {
  min-width: 0;
}
/* 電話・メール横のアイコン（Figma: 受話器36×47px / 手紙39×30px → 幅÷20rem、高さは比率維持） */
.support-contact__icon {
  flex: 0 0 auto;
  display: block;
  height: auto;
  /* SP: 電話・メールとも 1.3rem（tab/pc は 744 で Figma 値 受話器1.8/手紙1.95rem に戻す） */
  width: 1.3rem;
  margin-right: 0.3rem;
}
.support-contact a {
  color: #085dbb;
  word-break: break-all;
  font-weight: bold;
  border-bottom: solid 1px #085dbb;
  padding-bottom: 0.9rem;
}

/* ボタン（支援内はテキスト幅・左寄せ・青グラデ＋白丸矢印） */
.support .btn {
  width: 100%;
  max-width: 41rem;
  margin: 1.6rem 0 0;
  font-size: 1.4rem;
  font-weight: bold;
  height: auto;
  line-height: 1.4;
  padding: 1.3rem 4rem 1.3rem 2rem;
  text-align: left;
}
/* 企業向けグループのボタン（介護ロボット…／介護系スタートアップ…）は幅 50.6rem */
.support-group.company .btn {
  max-width: 50.6rem;
}
/* 研修・展示等の案内ボタン（.support-btn-wide 付与分）のみ 1210px以下で幅を43remに。
   相談フォーム・企業ボタンは据え置き。PC（1210px以上）は .support .btn の49remのまま */
@media screen and (max-width: 1209.98px) {
  .support .btn.support-btn-wide {
    max-width: 43rem;
  }
}
.support-note {
  margin-top: 1.6rem;
  line-height: 1.7;
}
.support-note a {
  color: #085dbb;
  border-bottom: solid 1px #085dbb;
}

/* 写真（SP: キャッチ直下・本文の上にフル幅で縦並び） */
.support-item__photos {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem 0;
}
.support-item__photos img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  display: block;
}

/* SP(<744)のみ：番号ラベル（01 相談 等）の横並び余白・下余白、支援グループの角丸を左上以外小さく。
   @744 以降は .support-item__no を縦書き絶対配置に、.support-group の角丸は @1210 で上書きするため SP限定 */
@media screen and (max-width: 743.98px) {
  .support-item__no {
    gap: 0 1.5rem;
    padding-bottom: 1rem;
  }
  .support-group {
    border-radius: 4rem 1rem 1rem 1rem;
  }
  /* 電話・メールのリンク下線の余白を詰める（base 0.9rem → SPは0.2rem。@744 以降は base 0.9rem を維持） */
  .support-contact a {
    padding-bottom: 0.2rem;
  }
}

/* タブレット（744〜1209px）: 行レイアウトだが余白・写真を抑えて本文幅を確保 */
@media screen and (min-width: 744px) {
  .support {
    padding: 12rem 0 14rem;
  }
  .support .ttl {
    margin-left: 3.2rem;
  }
  .support-group {
    padding: 5rem 3rem;
  }
  .support-group__ttl {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    gap: 0 1.4rem;
  }
  .support-group__ttl::before {
    width: 2.1rem;
    height: 2.1rem;
    border-width: 0.7rem;
  }
  .support-item {
    padding-left: 6rem;
  }
  .support-item + .support-item {
    margin-top: 3rem;
  }
  /* タブレット以上: 番号は左の縦書き・縦中央に戻す */
  .support-item__no {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    width: 6rem;
    gap: 1.2rem 0;
    margin-bottom: 0;
  }
  .support-item__no .num {
    font-size: 2rem;
  }
  .support-item__no .label {
    writing-mode: vertical-rl;
    font-size: 2.6rem;
    letter-spacing: 0.2em;
  }
  .support-item__inner {
    padding: 3rem 3rem 3.5rem;
  }
  .support-catch {
    font-size: 2.4rem;
    padding: 1.2rem 2.6rem 3rem;
    margin-bottom: 2.8rem;
  }
  .support-item__cols {
    flex-direction: row;
    gap: 0 2.5rem;
    align-items: flex-start;
  }
  .support-item__text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .support-item__text > p {
    font-size: 1.6rem;
  }
  .support-contact__ttl,
  .support-contact__tel,
  .support-contact__mail {
    font-size: 1.6rem;
    letter-spacing: normal;
  }
  /* tab/pc は SP の詰め（アイコン余白・字間）を解除 */
  .support-contact__icon {
    margin-right: 0.6rem;
  }
  .support-contact__tel .support-contact__icon {
    width: 1.8rem;
  }
  .support-contact__mail .support-contact__icon {
    width: 1.95rem;
  }
  /* 写真: タブレット以上も縦並び（カスケードにしない） */
  .support-item__photos {
    order: 0;
    flex: 0 0 22rem;
    width: 22rem;
    gap: 1.2rem 0;
  }
  .support .btn {
    max-width: 40rem;
    font-size: 1.5rem;
    padding: 1.3rem 4rem 1.3rem 2rem;
  }
}
/* PC（1210px以上）: PSD「CSSをコピー」の厳密値（rem = PSD px / 20） */
@media screen and (min-width: 1210px) {
  .support-group {
    border-radius: 16rem 4rem 4rem 4rem;
    padding: 10rem 7.15rem 7.4rem 7rem;
  }
  .support-group__ttl {
    font-size: 3.1rem;
    margin-bottom: 4rem;
    gap: 0 1.6rem;
    padding-left: 0;
  }
  /* PC: Figma node 1:321 実測（外径3rem・太さ1rem・穴1rem） */
  .support-group__ttl::before {
    width: 3rem;
    height: 3rem;
    border-width: 1rem;
  }
  .support-item {
    padding-left: 8.8rem;
  }
  .support-item + .support-item {
    margin-top: 3.5rem;
  }
  .support-item__no {
    width: max-content;
    gap: 2.1rem 0;
  }
  .support-item__no .num {
    font-size: 2rem;
    border-bottom-width: 0.2rem;
  }
  .support-item__no .label {
    font-size: 3.1rem;
    letter-spacing: 0.2em;
  }
  .support-item__inner {
    border-radius: 4rem;
    padding: 3.5rem 5.35rem 4rem;
  }
  .support-catch {
    font-size: 2.8rem;
    padding: 1.6rem 3rem 3.6rem;
    margin-bottom: 3.2rem;
  }
  .support-item__cols {
    gap: 0 3rem;
  }
  .support-item__text > p {
    font-size: 1.8rem;
  }
  .support-item__text .note {
    font-size: 1.2rem;
    line-height: 3;
  }
  .support-contact__ttl,
  .support-contact__tel,
  .support-contact__mail {
    font-size: 1.8rem;
  }
  /* 写真 28rem・縦並び（デザイン準拠。カスケードにしない） */
  .support-item__photos {
    flex: 0 0 28rem;
    width: 28rem;
    gap: 1.6rem 0;
  }
  .support-item__photos img {
    width: 100%;
  }
  .support .btn {
    max-width: 49rem;
    height: 5rem;
    font-size: 1.8rem;
    padding: 0 4.5rem 0 2.4rem;
    display: flex;
    align-items: center;
  }
}

/* お悩み下のパンフレットDLボタン（トップと /shien/ で共通。Figma node 1:366：青グラデ・白文字中央・右に白丸矢印）。SPは折返し可 */
/* Figma 1:366 の形状SVGは半径75px=高さの半分の完全なピル形。基本 .btn の 30px だと角丸が足りないため上書き。
   文字は Figma が Inter:Bold（＝太字）指定のため bold（日本語は Noto Sans JP Bold で表示。Inter は未同梱で指定しない） */
.question .btn {
  width: 100%;
  max-width: 34rem;
  height: auto;
  line-height: 1.6;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 9999px;
  /* SP: 左右対称の内側余白（右は従来5rem→1.5rem）。@744 以降は下で padding を上書きするためSP限定 */
  padding: 1.3rem 1.5rem 1.3rem 1.5rem;
  margin: 2.6rem auto 0;
}
/* SP は「パンフレット」の前で改行する。行末に全角スペースが残ると中央からずれ、矢印にも掛かるので消す */
@media screen and (max-width: 743.98px) {
  .question .btn .btn-space {
    display: none;
  }
}
@media screen and (min-width: 744px) {
  /* PC: Figma実寸 幅1403px・高さ150px・文字40.1px（÷20） */
  .question .btn {
    max-width: 70.2rem;
    height: 7.5rem;
    line-height: 7.5rem;
    font-size: 2rem;
    padding: 0 6rem 0 2rem;
    margin-top: 4rem;
    white-space: nowrap;
  }
}
