/* 118 訪問看護ステーション みかんの木 — K08 会話で進む（スマホのまま横に延長）。色と書体は共通の13変数だけ */
:root {
  --c-bg: #fffaf0;
  --c-bg-alt: #ffe9c7;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #f6b98a;
  --c-accent: #ff8a3d;
  --c-accent-text: #a03f12;
  --c-on-accent: #3d2414;
  --c-2: #ffd166;
  --c-3: #3d2414;
  --font-ja: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-head: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-en: "Comfortaa", "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-hand: "Zen Kurenaido", "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --header-h: 64px;
  --radius: 28px;
  --hh: clamp(540px, 80svh, 780px);
}
/* 地の色が変わる帯は、同じ名前の変数を全部上書きする */
.t-yellow { --c-bg: #ffd166; --c-bg-alt: #fff3d1; --c-text: #3d2414; --c-sub: #3d2414; --c-line: #3d2414; --c-accent: #ff8a3d; --c-accent-text: #3d2414; --c-on-accent: #3d2414; }
.t-orange { --c-bg: #ff8a3d; --c-bg-alt: #ff8a3d; --c-text: #3d2414; --c-sub: #3d2414; --c-line: #3d2414; --c-accent: #3d2414; --c-accent-text: #3d2414; --c-on-accent: #ffd166; }
.band--cream { --c-bg: #ffe9c7; --c-bg-alt: #fffaf0; --c-text: #374151; --c-sub: #4b5563; --c-line: #f6b98a; --c-accent-text: #a8481a; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-weight: 500; font-size: 16px; line-height: 1.95; overflow-x: hidden; padding-bottom: 60px; }
figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dd, dt, li { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
button { font-family: inherit; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 40; background: var(--c-bg); border-bottom: 3px solid var(--c-3); }
.header__inner { height: var(--header-h); padding: 0 16px; display: flex; align-items: center; gap: 10px; position: relative; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-3); white-space: nowrap; flex: none; min-height: 44px; }
.logo__ja { font-weight: 800; font-size: 15px; line-height: 1.25; }
.sp-br { display: inline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 3px solid var(--c-3); background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-ja); font-weight: 800; font-size: 16px; line-height: 1.3; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 0 4px 0 var(--c-3); cursor: pointer; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-3); }
.btn--lg { min-height: 56px; padding: 0 28px; }
.btn--paper { background: color-mix(in srgb, var(--c-bg) 20%, white); color: var(--c-3); }
.header__btn { display: none; }
.spmenu { flex: none; margin-left: auto; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-3); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 24px; height: 3px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; right: 12px; top: calc(100% + 6px); width: min(calc(100% - 24px), 340px); background: var(--c-bg); border: 3px solid var(--c-3); border-radius: 24px; box-shadow: 0 5px 0 var(--c-3); padding: 6px 20px 10px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-3); text-decoration: none; border-bottom: 2px dotted var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }

/* アイコン */
.ic-ring { fill: var(--c-bg-alt); stroke: var(--c-3); stroke-width: 2; } .ic-skin { fill: var(--c-bg); stroke: var(--c-3); stroke-width: 2; } .ic-body { fill: var(--c-2); stroke: var(--c-3); stroke-width: 2; }
.ic-ring2 { fill: var(--c-2); stroke: var(--c-3); stroke-width: 2; } .ic-fruit { fill: var(--c-accent); stroke: var(--c-3); stroke-width: 2; } .ic-leaf { fill: var(--c-accent-text); } .ic-stem { stroke: var(--c-3); }

/* ===== メインビジュアル（A05・LP風） ===== */
.hero { position: relative; }
.hero__stage { position: relative; height: var(--hh); overflow: hidden; background: var(--c-bg-alt); }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: rise 1.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(16%) scale(1.05); } to { transform: none; } }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--c-3) 92%, transparent) 0%, color-mix(in srgb, var(--c-3) 78%, transparent) 38%, color-mix(in srgb, var(--c-3) 0%, transparent) 76%); }
.hero__copy { position: absolute; left: 0; right: 0; bottom: 96px; max-width: 800px; margin: 0 auto; padding: 0 20px; color: var(--c-bg); }
.hero__en { font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .14em; color: var(--c-2); margin-bottom: 6px; line-height: 1.5; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 11.4vw, 76px); line-height: 1.22; margin-bottom: 12px; }
.hero__lead { margin-bottom: 18px; }
.hero__mist { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, color-mix(in srgb, var(--c-bg) 0%, transparent), var(--c-bg)); }
.hero__name { position: relative; margin: -52px 0 0; padding: 0 20px 28px; text-align: center; font-weight: 800; font-size: clamp(48px, 15vw, 92px); line-height: 1.2; }
.hero__name span { background: linear-gradient(100deg, var(--c-3), var(--c-accent-text) 48%, var(--c-3) 100%); background-size: 240% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 2.6s .3s ease-out both; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== 会話（K08） ===== */
.band { padding: 44px 0; background: var(--c-bg); color: var(--c-text); }
.chat { max-width: 760px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg--q { padding-right: 18px; }
.msg--a { flex-direction: row-reverse; margin-bottom: 18px; }
.msg--a.msg--wide { padding-left: 0; }
.av { flex: none; width: 44px; height: 44px; }
.bub { position: relative; min-width: 0; padding: 16px 18px; border: 3px solid var(--c-3); border-radius: 24px; background: color-mix(in srgb, var(--c-bg) 50%, white); }
.msg--a .bub { flex: 1 1 auto; background: color-mix(in srgb, var(--c-accent) 26%, var(--c-bg)); box-shadow: 0 5px 0 var(--c-3); border-top-right-radius: 8px; }
.msg--q .bub { border-top-left-radius: 8px; }
.who { font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--c-accent-text); line-height: 1.6; margin-bottom: 2px; }
.q { font-weight: 800; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.7; color: var(--c-3); }
.msg--a .who { color: var(--c-3); }
.bub > p + p { margin-top: .8em; }
.hand { font-family: var(--font-hand); font-size: 20px; line-height: 1.6; color: var(--c-accent-text); }
.note { margin-top: 12px; font-size: 15px; color: var(--c-sub); }

.can { margin-top: 8px; display: grid; gap: 10px; }
.can li { padding: 12px 16px; background: var(--c-bg); border: 2px solid var(--c-3); border-radius: 18px; line-height: 1.75; }
.can b { display: block; font-weight: 800; font-size: 18px; color: var(--c-3); line-height: 1.6; }

.bleed { position: relative; height: clamp(220px, 46vw, 420px); overflow: hidden; border-top: 3px solid var(--c-3); border-bottom: 3px solid var(--c-3); }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.bleed figcaption { position: absolute; left: 16px; bottom: 16px; padding: 4px 18px; border-radius: 999px; background: var(--c-bg); color: var(--c-3); border: 3px solid var(--c-3); font-weight: 800; font-size: 16px; line-height: 1.7; }
.bleed--talk img { object-position: 50% 60%; }

/* ある一日（B08：PCは左右の舞台を固定） */
.day { margin-top: 8px; display: grid; gap: 12px; }
.day li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 2px dotted var(--c-line); }
.day li:last-child { border-bottom: 0; }
.day time { font-family: var(--font-en); font-weight: 700; font-size: 17px; color: var(--c-accent-text); padding-top: 2px; }
.day h3 { font-weight: 800; font-size: 18px; line-height: 1.6; color: var(--c-3); }
.day p { font-size: 15px; line-height: 1.8; }
.stage { display: none; }
.sun { fill: var(--c-accent); stroke: var(--c-3); stroke-width: 3; } .clock { fill: var(--c-bg-alt); stroke: var(--c-3); stroke-width: 3; } .hand-h { stroke: var(--c-3); } .clock-c { fill: var(--c-3); }

/* スタッフ（Swiper） */
.staff { margin-top: 14px; overflow: hidden; padding: 4px 4px 52px; position: relative; }
.card { height: auto; padding: 18px 16px 20px; background: var(--c-bg); border: 3px solid var(--c-3); border-radius: var(--radius); text-align: center; }
.face { width: 96px; height: 96px; margin: 0 auto 8px; }
.f-bg { fill: var(--c-2); stroke: var(--c-3); stroke-width: 2.5; } .f-body { fill: var(--c-accent); stroke: var(--c-3); stroke-width: 2.5; }
.f-skin { fill: var(--c-bg-alt); stroke: var(--c-3); stroke-width: 2.5; } .f-hair { fill: var(--c-3); } .f-eye { fill: var(--c-3); } .f-smile { stroke: var(--c-3); }
.face--2 .f-bg { fill: var(--c-accent); } .face--2 .f-body { fill: var(--c-2); }
.face--3 .f-bg { fill: var(--c-bg-alt); }
.card__role { font-size: 15px; font-weight: 800; color: var(--c-accent-text); line-height: 1.6; }
.card h3 { font-weight: 800; font-size: 20px; line-height: 1.5; color: var(--c-3); }
.card p:last-child { font-family: var(--font-hand); font-size: 18px; line-height: 1.6; margin-top: 4px; }
.staff .swiper-pagination { position: absolute; bottom: 0; left: 0; right: 0; height: 44px; display: flex; justify-content: center; flex-wrap: nowrap; }
.staff .swiper-pagination-bullet { position: relative; flex: none; width: 40px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; border-radius: 0; }
.staff .swiper-pagination-bullet::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c-3); opacity: .35; }
.staff .swiper-pagination-bullet-active::before { background: var(--c-accent-text); opacity: 1; }
html:not(.js) .staff { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding-bottom: 12px; }
html:not(.js) .staff .swiper-slide { flex: none; width: 78%; scroll-snap-align: start; margin-right: 12px; }
.staff__ctrl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sw-btn { min-width: 48px; height: 48px; padding: 0 14px; border-radius: 999px; border: 3px solid var(--c-3); background: var(--c-bg); color: var(--c-3); font-size: 18px; font-weight: 800; cursor: pointer; line-height: 1; }
.sw-btn:hover { background: var(--c-2); }
.sw-btn--wide { font-size: 15px; }
html:not(.js) .staff__ctrl { display: none; }

.flow { display: grid; gap: 20px; margin-top: 8px; }
.flow li { position: relative; padding-left: 62px; }
.flow__n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); border: 3px solid var(--c-3); display: grid; place-items: center; font-family: var(--font-en); font-weight: 700; font-size: 20px; line-height: 1; }
.flow li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: -22px; border-left: 3px dotted var(--c-3); }
.flow li:last-child::after { display: none; }
.flow h3 { font-weight: 800; font-size: 19px; line-height: 1.6; color: var(--c-3); }
.flow p { font-size: 15px; line-height: 1.8; }

.price { margin-top: 8px; border-top: 2px dotted var(--c-line); }
.price > div { padding: 12px 0; border-bottom: 2px dotted var(--c-line); }
.price dt { font-weight: 800; color: var(--c-3); }
.price b { display: block; font-weight: 800; font-size: 22px; line-height: 1.5; color: var(--c-accent-text); }
.price dd { font-size: 15px; line-height: 1.7; }

/* ご相談 */
.band--cta { padding: 56px 0 64px; }
.h2 { font-weight: 800; font-size: clamp(34px, 9vw, 52px); line-height: 1.3; color: var(--c-text); margin-bottom: 12px; }
.cta__p { margin-bottom: 18px; }
.form { display: grid; gap: 14px; margin-top: 22px; padding: 20px 18px; background: color-mix(in srgb, var(--c-bg) 22%, white); border: 3px solid var(--c-3); border-radius: var(--radius); }
.form label { display: grid; gap: 4px; font-weight: 800; font-size: 15px; line-height: 1.6; color: var(--c-3); }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--c-3); background: white; border: 3px solid var(--c-3); border-radius: 16px; }
.form .btn { width: 100%; }

.footer { padding: 30px 16px 40px; text-align: center; background: var(--c-3); color: var(--c-bg); font-size: 15px; }
.footer__logo { font-weight: 800; font-size: 18px; }
.footer__fiction { margin-top: 6px; }
.fixbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; border-top: 3px solid var(--c-3); }
.fixbar__a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 56px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 800; text-decoration: none; }
.fixbar__a--b { background: var(--c-2); border-left: 3px solid var(--c-3); }

@media (min-width: 768px) {
  .header__inner { padding: 0 32px; }
  .header__btn { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 20px; }
  .spmenu { margin-left: 0; }
  .sp-br { display: none; }
  .chat { padding: 0 24px; gap: 20px; }
  .bub { padding: 20px 26px; }
  .msg { gap: 14px; } .av { width: 52px; height: 52px; }
  .msg--q { padding-right: 10%; }
  .band { padding: 64px 0; }
  .fixbar { display: none; }
  body { padding-bottom: 0; }
  .bleed figcaption { left: 32px; bottom: 28px; }
  .face { width: 110px; height: 110px; }
}

/* PC：写真と色の帯は画面の端まで、文字の列は 760px のまま。ある一日だけ左右に舞台 */
@media (min-width: 1080px) {
  .spmenu { display: none; }
  .band--day { display: grid; grid-template-columns: minmax(0, 1fr) 760px minmax(0, 1fr); align-items: start; }
  .band--day .chat { grid-column: 2; width: 100%; }
  .stage { display: flex; position: sticky; top: calc(var(--header-h) + 80px); flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 24px; }
  .stage--l { grid-column: 1; grid-row: 1; justify-self: end; }
  .stage--r { grid-column: 3; grid-row: 1; justify-self: start; }
  .stage p { font-family: var(--font-hand); font-size: 24px; line-height: 1.6; text-align: left; }
  .stage--l p { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo img, .hero__name span { animation: none; }
  html { scroll-behavior: auto; }
}
