/* 介護食卸ページ(2026-11-24 試作)。styles.css・wind-air.css・business.css の上に重ねる
   事業紹介・会社概要と同じ考え方:にじむ背景の頭+区画の境目の細線の束+丸いいびつな写真+淡い地の丸い段
   ・頭 = 左に題と言葉、右に食堂と料理の写真3枚を不規則にちりばめる(トップの最初の画面を小さく)
   ・選ばれる理由 = 4つを左右交互に。写真と文の高さを少しずつずらす(風の通り道)
   ・栄養管理 = トップの理念と同じにじむ背景
   ・ご利用の流れ = 4つを横に並べる(ゆるい波は外した 2026-11-24 本人) */

.page-care h2 { font-size: var(--h2); line-height: 1.4; }
.page-care h3 { margin: 0; font-size: 24px; line-height: 1.5; }
/* 日本語を文節で折り返す(「いただ/けます」のような切れ方を防ぐ) */
.page-care h3, .page-care li, .page-care summary, .page-care dd, .page-care figcaption { word-break: auto-phrase; text-wrap: pretty; }
.page-care h3 { text-wrap: balance; }
/* ページの頭の目次(会社概要ページと同じ見た目。company.css は読み込まないのでここに置く) */
.ph-toc { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 16px; font-weight: 700; }
.ph-toc a { text-decoration: none; color: var(--kifu-teal-text); padding: 10px 0; }
.ph-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* 2つ目のボタン:線で囲まず、淡い地で塗る(線を使わない決まり) */
.btn-line { background: var(--kifu-wash); color: var(--kifu-navy); }
.btn-line:hover { background: #dfe7f0; color: var(--kifu-navy); }
.text-link a { color: var(--kifu-teal-text); font-weight: 700; text-underline-offset: 4px; }
.text-link a:hover { color: var(--kifu-navy); }

/* 境目の細線(位置は事業紹介・会社概要と同じ考え方) */
.w-seam-k1, .w-seam-k2, .w-seam-k3 { z-index: 0; }
.w-seam-k1 .w-bundle { top: -60px; height: 180px; }
.w-seam-k2 .w-bundle { top: -100px; height: 200px; }
.w-seam-k3 .w-bundle { top: -100px; height: 200px; }
.worries, .reasons, .nutri, .quality, .flow, .faq, .trade, .closing { position: relative; z-index: 1; }

/* ---------- ページの頭 ---------- */
.cph { padding: 56px 0 64px; }
.cph-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.cph-copy { display: flex; flex-direction: column; gap: 22px; }
.cph h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.2; letter-spacing: 0.08em; display: flex; flex-direction: column; gap: 14px; }
.cph-sub { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: 0.04em; color: var(--kifu-teal-text); }
.cph-lead { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.6; }
.cph-text { font-size: 16px; line-height: 2; max-width: 36em; }
.cph .btns { margin-top: 6px; }
.cph-photos { position: relative; aspect-ratio: 1 / 1.02; }
.cph-photo { position: absolute; display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.cph-photo img { width: 100%; height: 100%; object-fit: cover; }
.cq-1 { top: 0; right: 0; width: 72%; }
.cq-2 { top: 44%; left: 0; width: 48%; z-index: 1; outline: 6px solid var(--paper); }
.cq-3 { top: 62%; right: 8%; width: 40%; }
.cph-toc { position: relative; z-index: 1; justify-content: flex-start; margin-top: 48px; }
/* 写真:読み込んだとき、右から順に現れる(トップの最初の画面と同じ値) */
.js .fv-tile-in { opacity: 0; transform: translateX(16px) scale(.96); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); }
.js .ph.is-ready .fv-tile-in { opacity: 1; transform: none; }
.js .ph.is-ready .cq-1 { transition-delay: 120ms; }
.js .ph.is-ready .cq-2 { transition-delay: 200ms; }
.js .ph.is-ready .cq-3 { transition-delay: 280ms; }
.js .ph.is-ready .cph-copy .fv-in:nth-child(4) { transition-delay: 490ms; }

/* ---------- お困りごと:淡い地の丸い段(左をそろえる。ゆるい波は不要 2026-11-24 本人) ---------- */
.worries { padding: 120px 0 140px; }
.worries-in { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.worries-body { display: flex; flex-direction: column; gap: 28px; }
.worries-list { display: flex; flex-direction: column; gap: 10px; }
.worries-list li { padding: 18px 32px; background: var(--kifu-wash); border-radius: var(--radius-pill); font-size: 18px; font-weight: 700; line-height: 1.7; }
.worries-answer { font-size: 18px; line-height: 1.9; color: var(--kifu-teal-text); font-weight: 700; }

/* ---------- 選ばれる理由 ---------- */
.reasons { padding: 0 0 170px; }
.reasons > .wrap > h2 { margin-bottom: 72px; }
.reason { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; margin-bottom: 110px; }
.reason.r-thaw, .reason.r-plan { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.r-text { display: flex; flex-direction: column; gap: 20px; }
.r-text > p { font-size: 16px; line-height: 2; }
.r-photo { display: block; overflow: hidden; aspect-ratio: 1 / 0.86; }
.r-photo img { width: 100%; height: 100%; object-fit: cover; }
/* 写真と文の高さを少しずつずらし、ページを下る風の通り道にする */
.r-thaw .r-photo { margin-top: 64px; }
.r-look .r-photo { margin-top: -40px; }
.r-plan .r-photo { margin-top: 88px; }

/* 理由1:15年を大きな数字で(写真の代わりに、この会社だけの数字を主役に) */
.r-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1 / 0.86; background: var(--kifu-wash); border-radius: var(--shape-2); }
.years { display: flex; align-items: baseline; gap: 6px; color: var(--kifu-teal-text); line-height: 1; }
.years b { font-family: Montserrat, sans-serif; font-size: clamp(120px, 15vw, 220px); font-weight: 700; letter-spacing: -0.04em; }
.years span { font-size: 40px; font-weight: 700; }
.years-note { margin-top: 18px; font-size: 16px; font-weight: 700; }

/* 理由2:解凍方法を丸い段で */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 20px; background: var(--kifu-wash); border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; }

/* 理由3:料理を選んで、盛り付け例を見る */
.look-photo img { transition: opacity 220ms var(--ease-out), transform 400ms var(--ease-out); }
.look-photo img.is-out { opacity: 0; transform: scale(1.02); }
.dish-picker { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; padding: 28px 32px; background: var(--kifu-wash); border-radius: 36px; }
.dish-picker-label { font-size: 16px; font-weight: 700; }
.dish-picker ul { display: flex; flex-wrap: wrap; gap: 8px; }
.dish-picker button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: var(--paper); color: var(--kifu-navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform 160ms var(--ease-out);
}
.dish-picker button:hover { background: #dfe7f0; }
.dish-picker button:active { transform: scale(0.97); }
.dish-picker button[aria-pressed="true"] { background: var(--kifu-navy); color: var(--on-navy); }
.dish-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 16px; }
.dish-caption strong { font-size: 18px; }
.dish-caption span { color: var(--kifu-navy); font-weight: 700; }
.dish-caption small { flex-basis: 100%; font-size: 14px; color: var(--kifu-navy); }

/* 理由4:数字3つを淡い地の段で */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; }
.facts div { padding: 18px 22px; background: var(--kifu-wash); border-radius: 28px; }
.facts dt { font-size: 14px; font-weight: 700; color: var(--kifu-navy); }
.facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.5; }

.mid-cta { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.mid-cta > p:first-child { font-size: 18px; font-weight: 700; }
.mid-cta .btns { justify-content: center; }

/* ---------- 栄養管理:にじむ背景 ---------- */
.nutri { overflow: hidden; padding: 140px 0 160px; }
.nutri-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: center; }
.nutri-text { display: flex; flex-direction: column; gap: 28px; }
.nutri-text p { font-size: 16px; line-height: 2.05; }
.nutri-doc { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nutri-doc img { width: 78%; border-radius: var(--radius-sm); outline: 10px solid var(--paper); }
.nutri-doc figcaption { font-size: 14px; line-height: 1.8; text-align: center; font-weight: 700; }

/* ---------- 品質と安心 ---------- */
.quality { padding: 140px 0 150px; }
.quality-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.q-photo { display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.q-photo img { width: 100%; height: 100%; object-fit: cover; }
.q-text h2 { margin-bottom: 36px; }
.q-list { display: flex; flex-direction: column; gap: 22px; }
.q-list li { position: relative; padding-left: 30px; font-size: 18px; line-height: 1.85; }
.q-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 12px; border-radius: var(--shape-1); background: var(--kifu-teal); }
.q-list small { display: block; margin-top: 4px; font-size: 14px; color: var(--kifu-teal-text); font-weight: 700; }

/* ---------- ご利用の流れ:4つを横に並べる(上端をそろえる。ゆるい波は不要 2026-11-24 本人) ---------- */
.flow { padding: 0 0 190px; }
.flow h2 { margin-bottom: var(--space-4); }
.flow-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.flow-list li { display: flex; flex-direction: column; gap: 12px; padding: 36px 30px 40px; background: var(--kifu-wash); border-radius: 40px; }
.flow-list h3 { font-size: 18px; }
.flow-list p { font-size: 16px; line-height: 1.9; }

/* ---------- よくあるご質問 ---------- */
.faq { padding: 110px 0 140px; }
.faq-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; }
.faq-main h2 { margin-bottom: 36px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.faq-list details { background: var(--kifu-wash); border-radius: 30px; }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 30px; cursor: pointer;
  font-size: 16px; font-weight: 700; line-height: 1.7; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; color: var(--kifu-teal-text); transition: transform 200ms var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--kifu-teal-text); outline-offset: 3px; border-radius: 30px; }
.faq-list details p { padding: 0 30px 22px; font-size: 16px; line-height: 1.9; }
.faq-photos { position: relative; aspect-ratio: 1 / 1.5; margin-top: 80px; }
.faq-photos span { position: absolute; display: block; overflow: hidden; }
.faq-photos img { width: 100%; height: 100%; object-fit: cover; }
.fq-1 { top: 0; right: 0; width: 82%; aspect-ratio: 1 / 1.25; }
.fq-2 { bottom: 0; left: 0; width: 60%; aspect-ratio: 1 / 1; outline: 6px solid var(--paper); }

/* ---------- 卸業者・給食会社さまへ ---------- */
.trade { padding: 0 0 170px; }
.trade-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; padding: 72px 72px 80px; background: var(--kifu-wash); border-radius: 56px; }
.trade h2 { margin-bottom: 24px; }
.trade-lead { font-size: 18px; line-height: 2; }
.trade-body { display: flex; flex-direction: column; gap: 32px; }
.trade-list { display: flex; flex-direction: column; gap: 10px; }
.trade-list li { padding: 16px 28px; background: var(--paper); border-radius: var(--radius-pill); font-size: 16px; line-height: 1.8; }
.trade .btn-line { background: var(--paper); }

/* ---------- 締め ---------- */
.closing { padding: 40px 0 var(--space-5); }
.closing-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.closing-text { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; padding-top: 72px; }
.closing-text .btns { justify-content: center; }
.cl-photo { display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.cl-photo img { width: 100%; height: 100%; object-fit: cover; }
.cl-2 { margin-top: 120px; }

@media (hover: hover) and (pointer: fine) {
  .r-photo img, .q-photo img, .cl-photo img, .faq-photos img { transition: transform 400ms var(--ease-out); }
  .r-thaw .r-photo:hover img, .r-plan .r-photo:hover img, .q-photo:hover img, .cl-photo:hover img, .faq-photos span:hover img { transform: scale(1.04); }
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 900px) {
  .page-care h3 { font-size: 21px; }
  .w-seam-k1 .w-bundle { top: 0; height: 110px; }
  .w-seam-k2 .w-bundle { top: -70px; height: 130px; }
  .w-seam-k3 .w-bundle { top: -80px; height: 130px; }
  .cph { padding: 36px 0 48px; }
  .cph-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cph-photos { width: 100%; max-width: 520px; margin: 0 auto; }
  .cph-toc { justify-content: center; margin-top: 32px; }
  .worries { padding: 130px 0 var(--space-5); }
  .worries-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .worries-list li { font-size: 16px; padding: 16px 24px; border-radius: 28px; }
  .worries-answer { font-size: 17px; }
  .reasons > .wrap > h2 { margin-bottom: 56px; }
  .reason, .reason.r-thaw, .reason.r-plan { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 96px; }
  /* 縦1列では、写真を左右交互に寄せて波を作る(事業紹介ページと同じ) */
  .r-figure, .r-photo { width: 82%; margin-top: 0 !important; }
  .r-thaw .r-photo, .r-plan .r-photo { order: -1; justify-self: end; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 24px; }
  .facts dd { font-size: 18px; }
  .dish-picker { padding: 22px 20px; border-radius: 28px; }
  .nutri { padding: 120px 0; }
  .nutri-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .nutri-doc img { width: 60%; }
  .quality { padding: 110px 0 var(--space-5); }
  .quality-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .q-photo { width: 78%; order: 2; justify-self: end; }
  .q-list li { font-size: 16px; }
  .flow { padding-bottom: 150px; }
  .flow-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flow-list li { padding: 26px 28px 30px; border-radius: 32px; }
  .faq { padding: 110px 0 var(--space-5); }
  .faq-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .faq-list summary { padding: 16px 22px; font-size: 16px; }
  .faq-list details p { padding: 0 22px 18px; }
  .faq-photos { width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1 / 1.2; }
  .trade { padding-bottom: 130px; }
  .trade-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 24px 48px; border-radius: 36px; }
  .trade-list li { border-radius: 24px; padding: 14px 20px; }
  .closing-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .closing-text { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
  .cl-1 { grid-row: 2; }
  .cl-2 { grid-row: 2; margin-top: 48px; }
}
@media (max-width: 600px) {
  .cph h1 { letter-spacing: 0.04em; }
  .cph-lead { font-size: 19px; }
  .cph-toc { gap: 0 20px; font-size: 15px; justify-content: flex-start; }
  .btns .btn { flex: 1 1 100%; justify-content: center; }
  .closing-text h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .fv-tile-in { transform: none; transition: opacity 300ms ease; transition-delay: 0s !important; }
  .look-photo img, .r-photo img, .q-photo img, .cl-photo img, .faq-photos img { transition: opacity 200ms ease; transform: none !important; }
  .faq-list summary::after { transition: none; }
}
