@charset "UTF-8";
/* ==========================================================================
   あみ訪問看護ステーション レスポンシブ修正案（2026-11-26 検収）
   既存の css/page.css・css/main.css の「後ろ」に読み込む前提の追記CSS。
   既存のブレークポイント（800px／1224px）に合わせ、中間幅だけに効く範囲指定を使う。
   片側だけの装飾線は追加しない（余白・幅・並びだけで調整）。
   各ブロック先頭の記号は findings.md の指摘番号。
   ========================================================================== */

/* --------------------------------------------------------------------------
   G1 共通：固定幅コンテナが画面より広くなる幅（1225〜1400px前後）
   .w01_in(1360px)・.w04_in(1300px) は 1224px 以下でしか可変にならないため、
   1280・1366px の一般的なノートPCで左端に張り付き、右側が切れる（トップ T1）。
   .w03_in(1224px) も Windows の通常スクロールバー（約17px）込みの 1225〜1241px で数px はみ出す。
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 801px) {
  .w01_in,
  .w04_in {
    max-width: calc(100% - 80px);
  }
  .w03_in {
    max-width: calc(100% - 40px);
  }
}

/* ==========================================================================
   採用情報（/recruit/）
   ========================================================================== */

/* R1 「働く私たちのリアルな声」の写真が縦長の楕円になる
   （PC表示で 1224px 以下。幅は列の40%に縮むのに高さが400px固定のため） */
.page_recruit .group_flBox > .image img {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* R2 801〜1224px で横スクロールが出る（固定幅の要素が画面より広い）
   ＝横に動かすと隠しメニューの黒い帯も見えてしまう */
@media only screen and (min-width: 801px) and (max-width: 1224px) {
  .page_recruit .recruitMain_sec .mainheadline {
    max-width: 100%;
  }
  .page_recruit .recruitMain_sec .mainheadline img {
    width: 100%;
    height: auto;
  }
  /* 1日の流れ：1050px固定 → 画面幅に追従。写真列と時刻列を少し細くして本文列を確保 */
  .page_recruit .sch_sec .sch_main {
    padding-top: 180px;
  }
  .page_recruit .sch_sec .sch_box {
    width: 100%;
    flex-wrap: nowrap;
  }
  .page_recruit .sch_sec .sch_box .col_l {
    width: 190px;
    flex-shrink: 0;
  }
  .page_recruit .sch_sec .sch_box .col_l img {
    width: 190px;
    height: 190px;
    top: -160px;
  }
  .page_recruit .sch_sec .sch_box .col_c {
    width: 170px;
    flex-shrink: 0;
  }
  .page_recruit .sch_sec .sch_box .col_c .time {
    width: 150px;
    font-size: 20px;
  }
  .page_recruit .sch_sec .sch_box .col_r {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  /* 募集職種の表：950px固定 → 画面幅に追従 */
  .page_recruit .tableNormal {
    width: 100%;
    max-width: 950px;
  }
  .page_recruit .tableNormal th {
    width: 28%;
  }
  /* 採用までの流れ：880px固定 → 画面幅に追従（文字量が増えても箱からあふれないよう高さは成り行き） */
  .page_recruit .flow_box {
    width: 100%;
    max-width: 880px;
    height: auto;
    min-height: 300px;
    padding-bottom: 50px;
    box-sizing: border-box;
  }
  .page_recruit .flow_box_in .title {
    font-size: 24px;
  }
  /* 代表メッセージ：写真が本文の下へ落ちて左寄せになる → 横並びを維持 */
  .page_recruit .recruitMain_sec .message_flBox {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4%;
  }
  .page_recruit .recruitMain_sec .message_flBox .col_l {
    width: 58%;
  }
  .page_recruit .recruitMain_sec .message_flBox .col_r {
    width: 38%;
  }
  .page_recruit .recruitMain_sec .message_flBox .title {
    font-size: 28px;
  }
}

/* R2・R3 キャンペーン枠：内側余白が幅に足されて枠・表・ボタンが画面外へはみ出す（1224px以下） */
@media only screen and (max-width: 1224px) {
  .page_recruit .campaign_inner {
    box-sizing: border-box;
  }
}
@media only screen and (max-width: 800px) {
  .page_recruit .campaign_table th,
  .page_recruit .campaign_table td {
    box-sizing: border-box;
  }
  .page_recruit .campaign_btn {
    box-sizing: border-box;
    max-width: 100%;
  }
}

/* R6 PCのブラウザー窓を800px以下に縮めたとき（PC用HTMLのまま）の「声」の並び */
@media only screen and (max-width: 800px) {
  .page_recruit .group_flBox {
    width: 100%;
    margin-bottom: 40px;
  }
  .page_recruit .group_flBox .title {
    font-size: 20px;
    padding: 14px;
    margin-bottom: 16px;
  }
  .page_recruit .group_flBox > .content {
    padding-top: 10px;
  }
}
@media only screen and (max-width: 600px) {
  .page_recruit .group_flBox {
    flex-direction: column;
    gap: 12px;
  }
  .page_recruit .group_flBox > .image,
  .page_recruit .group_flBox > .content,
  .page_recruit .sec_main .group_flBox:nth-of-type(even) > .image,
  .page_recruit .sec_main .group_flBox:nth-of-type(even) > .content {
    width: 100%;
    order: 0;
  }
  .page_recruit .group_flBox > .image img {
    max-width: 200px;
  }
  .page_recruit .group_flBox:nth-of-type(odd) .title::after,
  .page_recruit .group_flBox:nth-of-type(even) .title::after {
    display: none;
  }
}

/* R5 スマホ用HTMLの「声」：541〜800px で写真が100px固定のまま、吹き出しだけ横に伸びる */
@media only screen and (max-width: 800px) {
  .page_recruit .voice_flSection .sp_group_top {
    align-items: center;
  }
  .page_recruit .voice_flSection .sp_image img {
    width: 100%;
    max-width: 160px;
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
  }
}

/* R4 スマホ判定のまま画面幅が801px以上（iPhone Pro/Max などの横向き 852〜956px）
   スマホ用HTMLにPC用CSSが当たり、写真が画面幅いっぱいの巨大表示になる */
@media only screen and (min-width: 801px) {
  .page_recruit .voice_flSection .sp_group {
    padding: 24px 0;
    width: 90%;
    margin: 0 auto;
  }
  .page_recruit .voice_flSection .sp_group_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .page_recruit .voice_flSection .sp_title {
    width: 66%;
  }
  .page_recruit .voice_flSection .sp_title_in {
    position: relative;
    width: 96%;
    padding: 16px 3%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    color: #224a8b;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
  }
  .page_recruit .voice_flSection .sp_title_in::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
  }
  .page_recruit .voice_flSection .sp_image {
    width: 28%;
    font-size: 13px;
    text-align: center;
  }
  .page_recruit .voice_flSection .sp_image img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1 / 1;
    -o-object-fit: cover;
       object-fit: cover;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 3px solid #fff;
  }
  .page_recruit .voice_flSection .sp_content {
    margin-top: 16px;
    font-size: 16px;
  }
}

/* R7 751〜800px：レイアウトはスマホ版なのに、冒頭画像だけPC版（横長・文字が小さい）が出る
   （.dis-pc/.dis-mb の切替が750px、他は800pxで切替のため）。採用ページの冒頭だけ800pxに合わせる */
@media only screen and (min-width: 751px) and (max-width: 800px) {
  .page_recruit .fv_sec .dis-pc {
    display: none;
  }
  .page_recruit .fv_sec .dis-mb {
    display: block;
    width: 100%;
  }
}

/* ==========================================================================
   はじめての方へ（/first/）
   ========================================================================== */

/* F1 801〜1224px：写真600px固定の残りに本文を詰めるため、本文が1〜数文字幅の縦長になる */
@media only screen and (min-width: 801px) and (max-width: 1224px) {
  .page_first .main_flBox {
    align-items: flex-start;
  }
  .page_first .main_flBox .col_image {
    width: 46%;
  }
  .page_first .main_flBox .col_image img {
    width: 100%;
    height: auto;
  }
  .page_first .main_flBox .col_text .title {
    font-size: 26px;
  }
  .page_first .main_flBox.fl02 .col_text .text {
    padding-right: 30px;
  }
  .page_first .main_flBox.fl01 .col_text .text {
    padding-left: 30px;
  }
}

/* ==========================================================================
   トップ（/）
   ========================================================================== */

/* T2 801〜1300px：「選ばれる理由」の写真2枚が見出し・本文に重なる
   （1225〜1300px は G1 で左右に余白を取るため、見出し2行目の右端が写真に少し掛かる） */
@media only screen and (min-width: 801px) and (max-width: 1300px) {
  .top_page .reason_sec .reason_add {
    width: 28%;
  }
  .top_page .reason_sec .reason_line01,
  .top_page .reason_sec .reason_line02,
  .top_page .reason_sec .reason_line03 {
    padding-right: 31%;
  }
  .top_page .reason_sec .reason_line01 {
    font-size: 32px;
  }
  .top_page .reason_sec .reason_line02 {
    font-size: 22px;
  }
  .top_page .reason_sec .reason_line03 .line02 {
    width: auto;
    max-width: 100%;
  }
  .top_page .reason_sec .reason_line03 .line02 .word {
    padding: 0 12px;
  }
}

/* T3 801〜1500px：「Support of Ami」の丸い集合写真が右へ120pxはみ出して切れる */
@media only screen and (min-width: 801px) and (max-width: 1500px) {
  .top_page .feature_sec .feature_add {
    width: 420px;
    right: 0;
    bottom: -60px;
  }
}

/* T4 801〜1400px：「サービス対応エリア」が地図540px＋一覧760pxの固定幅のため縦積みになり、
   右半分が空く（1225〜1360pxでは逆に右の人物写真が切れる）→ 比率で横並びを維持 */
@media only screen and (min-width: 801px) and (max-width: 1400px) {
  .top_page .area_sec .area_flBox {
    flex-wrap: nowrap;
    align-items: center;
    gap: 2%;
  }
  .top_page .area_sec .area_flBox .col_l {
    width: 41%;
  }
  .top_page .area_sec .area_flBox .col_r {
    width: 57%;
  }
  .top_page .area_sec .area_flBox img {
    width: 100%;
    height: auto;
  }
}

/* T5 801〜1360px：「あみの特徴」のカード列が白い面の左端（画面の端）に張り付く */
@media only screen and (min-width: 801px) and (max-width: 1224px) {
  .top_page .feature_sec .feature_main {
    box-sizing: border-box;
    padding-left: 4%;
    padding-right: 4%;
  }
}
/* 1225〜1360px は3列（380px×3）を保つため、余白を小さくしてカード幅を比率にする */
@media only screen and (min-width: 1225px) and (max-width: 1360px) {
  .top_page .feature_sec .feature_main {
    box-sizing: border-box;
    padding-left: 2%;
    padding-right: 2%;
  }
  .top_page .feature_sec .feature_contents_flBox .col {
    width: calc((100% - 60px) / 3);
  }
}

/* R9（ステージ02確認時に追加） 「声」の吹き出し見出し：中間幅で末尾の「が、」「い”」だけが次の行に落ちる
   （見出し30pxのまま吹き出しが狭くなるため）→ 中間幅だけ文字を小さくする */
@media only screen and (min-width: 801px) and (max-width: 1224px) {
  .page_recruit .group_flBox .title {
    font-size: clamp(20px, 2.65vw, 24px);
  }
}
@media only screen and (min-width: 601px) and (max-width: 800px) {
  .page_recruit .group_flBox .title {
    font-size: clamp(16px, 2.7vw, 18px);
    padding: 14px 10px;
  }
}

/* R10（2026-11-28 ユーザー指示） 「声」：スマホ幅だと人と人の境目が分からない
   → 人ごとにカードにし、背景を「薄い／少し濃い」の交互で区切る。PC幅（801px以上のPC用HTML）は左右交互の現状のまま。
   片側だけの線は使わず、面の色・角丸・余白で区切る。吹き出しは四辺均等のごく薄い影で薄いカードから浮かせる。 */
@media only screen and (max-width: 800px) {
  .page_recruit .voice_flSection .group_flBox {
    box-sizing: border-box;
    padding: 24px 18px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #f5faff;
  }
  .page_recruit .voice_flSection .group_flBox:nth-of-type(even) {
    background: #d4e6fb;
  }
  .page_recruit .voice_flSection .group_flBox .title {
    box-shadow: 0 1px 6px rgba(34, 74, 139, 0.12);
  }
  .page_recruit .voice_flSection .group_flBox > .content p:last-child {
    margin-bottom: 0;
  }
}
/* スマホ用HTML（実機のスマホで表示される方）は幅にかかわらずカード */
.page_recruit .voice_flSection .sp_group {
  box-sizing: border-box;
  padding: 20px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #f5faff;
}
.page_recruit .voice_flSection .sp_group:nth-of-type(even) {
  background: #d4e6fb;
}
.page_recruit .voice_flSection .sp_title_in {
  box-shadow: 0 1px 6px rgba(34, 74, 139, 0.12);
}
.page_recruit .voice_flSection .sp_content p:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 801px) {
  .page_recruit .voice_flSection .sp_group {
    padding: 24px 28px;
  }
}

/* R11（R10のカード化に伴う調整） 480px以下のスマホ：吹き出しが写真の横で幅の約6割しかなく、
   見出しの最長行（15文字）が収まらず末尾1〜2文字だけ次の行に落ちる（カード化前から発生）。
   → 1段目に写真と名前・肩書き、2段目に全幅の吹き出し（三角は上の写真を指す）、3段目に本文。 */
@media only screen and (max-width: 480px) {
  .page_recruit .voice_flSection .sp_group_top {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .page_recruit .voice_flSection .sp_image {
    order: -1;
    width: 100%;
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 12px;
    align-items: center;
    text-align: left;
  }
  .page_recruit .voice_flSection .sp_image img {
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    margin: 0;
  }
  .page_recruit .voice_flSection .sp_image .recruit_name {
    align-self: end;
    font-size: 14px;
    font-weight: 700;
    color: #224a8b;
  }
  .page_recruit .voice_flSection .sp_image .recruit_role {
    align-self: start;
    font-size: 11px;
    text-wrap: balance;
  }
  .page_recruit .voice_flSection .sp_title {
    width: 100%;
    padding-top: 16px;
  }
  .page_recruit .voice_flSection .sp_title_in {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
  }
  .page_recruit .voice_flSection .sp_title_in::after {
    top: -12px;
    right: auto;
    left: 26px;
    transform: none;
    border-width: 0 10px 12px 10px;
    border-color: transparent transparent #fff transparent;
  }
  .page_recruit .voice_flSection .sp_content {
    margin-top: 14px;
  }
}
@media only screen and (max-width: 340px) {
  .page_recruit .voice_flSection .sp_title_in {
    font-size: 15px;
  }
}

/* R12 肩書き（例「〈所長・正看護師・介護支援専門員〉」）の最後の1〜2文字だけが次の行に落ちないよう、行の長さをそろえて折り返す */
.page_recruit .voice_flSection .recruit_role {
  text-wrap: balance;
}

/* R13 カードで区切るようになったため、元の区切り用の白い下線（本文の下だけの線）を外す */
.page_recruit .voice_flSection .sp_content {
  border-bottom: none;
}
