:root {
  --bg: #FAF7F2;          /* あたたかい生成り */
  --surface: #FFFFFF;
  --surface-soft: #F1ECE3;
  --sage: #4F7262;        /* 主色：くすんだ緑（落ち着き・安心） */
  --sage-soft: #E3ECE6;
  --terracotta: #A9552F;  /* アクセント：casa＝家の屋根色。ボタンだけに使う */
  --text: #2E2A26;
  --text-sub: #5C554E;
  --line: #DDD5C9;
  --radius: 18px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
h1, h2, h3 { font-family: "Zen Maru Gothic", "BIZ UDPGothic", sans-serif; line-height: 1.5; margin: 0; }
a { color: var(--sage); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 10; }

/* ヘッダー */
header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo small { display: block; font-size: 11px; color: var(--text-sub); line-height: 1.2; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-size: 15px; }
nav a { color: var(--text); text-decoration: none; }
nav a:hover { color: var(--sage); text-decoration: underline; }
.head-tel { font-size: 14px; text-align: right; line-height: 1.4; color: var(--text-sub); }
.head-tel a { font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo small, .head-tel { white-space: nowrap; }
@media (max-width: 860px) { .head nav { display: none; } }
@media (max-width: 520px) { .head-tel .hours { display: none; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
       border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-main { background: var(--terracotta); color: #fff; }
.btn-main:hover { background: #8F4626; }
.btn-sub { background: var(--surface); color: var(--sage); border: 2px solid var(--sage); }
.btn-sub:hover { background: var(--sage-soft); }

/* ヒーロー */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: 0.04em; }
.hero h1 span { color: var(--sage); }
.hero p.lead { font-size: 18px; color: var(--text-sub); margin: 20px 0 30px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.vacancy { display: inline-flex; align-items: center; gap: 10px; background: var(--sage-soft); color: var(--sage);
           padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.vacancy i { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); display: inline-block; }
.vacancy.is-full { background: var(--surface-soft); color: var(--text-sub); }
.vacancy.is-full i { background: var(--text-sub); }
.photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
         border-radius: 28px 28px 120px 28px; background: var(--surface-soft);
         box-shadow: 0 12px 32px rgba(79, 114, 98, 0.14); }
@media (max-width: 860px) {
  .hero { padding: 32px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero .photo { border-radius: 24px 24px 80px 24px; }
}

/* セクション共通 */
section { padding: 72px 0; }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title small { display: block; color: var(--sage); font-size: 13px; letter-spacing: 0.2em; font-weight: 700; }
.sec-title h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 6px; }
.alt { background: var(--surface); }

/* 3つの特徴 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.alt .card { background: var(--bg); }
.card .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--sage-soft); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 28px; height: 28px; stroke: var(--sage); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-sub); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* 入居までの流れ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow li { background: var(--bg); border-radius: var(--radius); padding: 24px 20px; position: relative; counter-increment: step; }
.flow li::before { content: "STEP " counter(step); display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.15em; color: var(--sage); }
.flow h3 { font-size: 18px; margin: 4px 0 6px; }
.flow p { margin: 0; font-size: 15px; color: var(--text-sub); line-height: 1.8; }
.note { text-align: center; color: var(--text-sub); margin-top: 24px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* 対象別の入口 */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.door { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 26px; transition: border-color .2s; }
.door:hover { border-color: var(--sage); }
.door small { color: var(--sage); font-weight: 700; font-size: 13px; }
.door h3 { font-size: 19px; margin: 4px 0 8px; }
.door p { margin: 0; color: var(--text-sub); font-size: 15px; }
.door .more { display: inline-block; margin-top: 12px; color: var(--sage); font-weight: 700; font-size: 15px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* 費用 */
.cost { max-width: 720px; margin: 0 auto; background: var(--bg); border-radius: var(--radius); padding: 8px 28px; }
.cost table { width: 100%; border-collapse: collapse; }
.cost th, .cost td { padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.cost td { text-align: right; font-weight: 700; white-space: nowrap; }
.cost tr:last-child th, .cost tr:last-child td { border-bottom: 0; }
.cost th small { font-weight: 400; color: var(--text-sub); font-size: 13px; }
.cost tr.total th, .cost tr.total td { color: var(--sage); font-size: 19px; border-top: 2px solid var(--sage); }
.cost-note { max-width: 720px; margin: 16px auto 0; font-size: 15px; color: var(--text-sub); }

/* 問い合わせ */
.contact { background: var(--sage); color: #fff; border-radius: 28px; padding: 48px 32px; text-align: center; }
.contact h2 { font-size: clamp(22px, 3vw, 30px); }
.contact p { margin: 12px 0 28px; opacity: .95; }
.contact .btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact .btn-sub { border-color: #fff; color: var(--sage); }
.contact .tel { font-size: 15px; margin-top: 18px; }
.contact .tel a { color: #fff; font-size: 24px; font-weight: 700; text-decoration: none; }

footer { padding: 40px 0 56px; color: var(--text-sub); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text-sub); }

/* デザイン案の注記（本番では削除） */
.tmp { background: #FFF4CC; color: #5A4A00; font-size: 12px; padding: 1px 6px; border-radius: 4px; font-weight: 700; vertical-align: middle; }

/* 4つの特徴：PCでは2列×2段 */
.features.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .features.four { grid-template-columns: 1fr; } }

/* 現在のページ */
nav a[aria-current="page"] { color: var(--sage); font-weight: 700; }

/* 下層ページ */
.page-head { padding: 48px 0 40px; background: var(--sage-soft); }
.page-head small { color: var(--sage); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.page-head h1 { font-size: clamp(26px, 4.4vw, 38px); margin-top: 6px; }
.page-head p { color: var(--text-sub); margin: 14px 0 0; max-width: 720px; }
.crumb { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.crumb a { color: var(--text-sub); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(22px, 3vw, 27px); margin: 0 0 16px; padding-left: 14px; border-left: 5px solid var(--sage); }
.prose h3 { font-size: 19px; margin: 24px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose + .prose { margin-top: 56px; }

/* 1日の流れ */
.day { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--sage-soft); }
.day li { position: relative; padding: 0 0 22px 26px; }
.day li::before { content: ""; position: absolute; left: -8px; top: 9px; width: 13px; height: 13px; border-radius: 50%;
                  background: var(--surface); border: 3px solid var(--sage); }
.day time { display: block; font-weight: 700; color: var(--sage); font-size: 15px; }
.day li.staff::before { background: var(--sage); }

/* 職員がいる時間の帯 */
.shift { display: grid; grid-template-columns: minmax(118px, 7fr) 17fr; border-radius: 14px; overflow: hidden; font-size: 14px; font-weight: 700; margin: 8px 0 6px; }
.shift div { padding: 12px 14px; }
.shift .off { background: var(--surface-soft); color: var(--text-sub); }
.shift .on { background: var(--sage); color: #fff; }
.shift-note { font-size: 14px; color: var(--text-sub); }

/* 情報テーブル */
.info { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.info th, .info td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info th { width: 32%; background: var(--sage-soft); color: var(--text); font-weight: 700; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .info th, .info td { display: block; width: 100%; }
  .info th { padding-bottom: 8px; }
  .info td { padding-top: 10px; }
}

/* Q&A */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; gap: 10px; }
.qa summary::before { content: "Q"; color: var(--sage); font-family: "Zen Maru Gothic", sans-serif; }
.qa summary::-webkit-details-marker { display: none; }
.qa details p { margin: 0 0 16px; padding-left: 24px; color: var(--text-sub); }

.back { text-align: center; margin-top: 48px; }

/* 下層ページの費用表は白地にして背景と区別する */
.prose .cost { background: var(--surface); border: 1px solid var(--line); }

/* ロゴ（支給データ） */
.logo { flex-direction: column; align-items: flex-start; gap: 0; }
.logo small { font-size: 11px; line-height: 1; margin: 0 0 3px 6px; }
.logo img { display: block; height: 38px; width: auto; }
.foot-logo { display: block; height: 44px; width: auto; margin-bottom: 8px; }
footer p { margin: 0 0 18px; }
.operator { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.operator img { height: 48px; width: auto; }
.operator strong { color: var(--text); }

/* 地図 */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 運営法人（事業所概要） */
.operator.big { align-items: flex-start; gap: 20px; }
.operator.big img { height: 96px; flex: none; margin-top: 8px; }
.operator.big .info { flex: 1; }
@media (max-width: 560px) { .operator.big { flex-direction: column; } }

/* 電話の案内 */
.tel-box { background: var(--sage-soft); border-radius: var(--radius); padding: 24px; text-align: center; }
.tel-box p { margin: 0; font-weight: 700; color: var(--sage); }
.tel-box a { display: block; font-size: 30px; font-weight: 700; color: var(--text); text-decoration: none; margin: 4px 0; }
.tel-box small { color: var(--text-sub); }

/* フォーム */
.tmp-block { background: #FFF8DD; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
.field > label, .field legend { font-weight: 700; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); outline: 3px solid var(--sage-soft); }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 6px 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--sage); flex: none; }
.req { display: inline-block; background: var(--terracotta); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; line-height: 1.7; }
.hint { font-size: 14px; color: var(--text-sub); margin: 0; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-msg { margin: 0; color: var(--terracotta); font-weight: 700; }

/* アイコン（カード以外でも使う） */
.ic { width: 52px; height: 52px; border-radius: 16px; background: var(--sage-soft); display: grid; place-items: center; margin-bottom: 14px; }
.ic svg { width: 28px; height: 28px; stroke: var(--sage); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); margin: 10px 0 8px; }
.ic.sm svg { width: 24px; height: 24px; }
.door .ic { margin-bottom: 12px; }
.door:hover .ic { background: var(--sage); }
.door:hover .ic svg { stroke: #fff; }

/* ロゴの屋根の線を、背景の飾りとして使う */
.page-head { position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -40px; bottom: -6px; width: min(46vw, 460px); aspect-ratio: 760 / 300;
  background: url("../images/roofline.svg") no-repeat right bottom / contain; opacity: .16; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; }
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: min(92%, 760px); aspect-ratio: 760 / 300;
  background: url("../images/roofline-white.svg") no-repeat center bottom / contain; opacity: .12; pointer-events: none; }
.contact > * { position: relative; }
.sec-title small::before, .sec-title small::after { content: ""; display: inline-block; width: 22px; height: 1.5px; background: currentColor; vertical-align: middle; margin: 0 10px; opacity: .5; }

/* 水彩イラスト（白い背景は multiply で地の色になじませる） */
.deco, .note-ic, .with-deco img, .tel-deco { mix-blend-mode: multiply; pointer-events: none; }
#about, #cost { position: relative; overflow: hidden; }
.deco { position: absolute; height: auto; z-index: 0; }
.deco-sakura { width: clamp(180px, 26vw, 320px); top: 28px; right: -24px; transform: rotate(-6deg); }
.deco-plant { width: clamp(120px, 16vw, 210px); left: max(8px, calc(50% - 600px)); bottom: 24px; }
#about .wrap, #cost .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .deco-sakura { width: 150px; top: 18px; right: -30px; opacity: .85; }
  .deco-plant { display: none; }
}
.note { display: flex; align-items: center; justify-content: center; gap: 10px; }
.note-ic { width: 46px; height: auto; flex: none; }

.figure { margin: 0 auto 48px; }
.figure img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 12px 32px rgba(79, 114, 98, 0.14); }
.figure figcaption { text-align: center; color: var(--text-sub); font-size: 15px; margin-top: 12px; }
.figure.inline { margin: 0 0 20px; }

.with-deco { display: flex; align-items: center; gap: 8px; }
.with-deco img { width: 44px; height: auto; }

.tel-box { position: relative; }
.tel-deco { position: absolute; width: 74px; height: auto; right: 14px; bottom: 8px; }
@media (max-width: 560px) { .tel-deco { width: 54px; right: 8px; } }

/* 下層ページの見出しに桜の枝 */
.page-head::before { content: ""; position: absolute; top: 14px; right: 3%; width: clamp(150px, 22vw, 270px); aspect-ratio: 1774 / 887;
  background: url("../images/sakura.webp") no-repeat center / contain; mix-blend-mode: multiply; opacity: .9; pointer-events: none; }
@media (max-width: 560px) { .page-head::before { width: 120px; top: 8px; right: -12px; } }

/* 飾りが文字や表に重ならないよう、幅ごとに位置を調整 */
@media (max-width: 1199px) { .deco-plant { display: none; } }
@media (max-width: 860px) { .deco-sakura { width: 112px; top: 4px; right: -16px; } }

/* メニューが折り返す幅では隠す（ヘッダーが窮屈になるため） */
nav a { white-space: nowrap; }
@media (max-width: 1020px) { .head nav { display: none; } }

/* スマホ・タブレット用メニュー */
.menu-btn { display: none; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 6px 4px;
  font: inherit; font-size: 10px; color: var(--text); cursor: pointer; min-width: 48px; }
.menu-btn .bars { display: grid; gap: 5px; width: 26px; }
.menu-btn .bars i { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-btn .bars i { transition: none; } }

.sp-menu { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - 68px); overflow-y: auto; padding: 8px 0 28px; }
.sp-menu ul { list-style: none; margin: 0; padding: 0; }
.sp-main li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 700; }
.sp-main li a::after { content: "›"; color: var(--sage); font-size: 22px; line-height: 1; }
.sp-main li a[aria-current="page"] { color: var(--sage); }
.sp-group { margin: 22px 4px 2px; font-size: 13px; font-weight: 700; color: var(--sage); }
.sp-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 4px 22px !important; font-size: 14px; }
.sp-sub a { color: var(--text-sub); }
.sp-cta { width: 100%; }
.sp-tel { text-align: center; font-size: 14px; color: var(--text-sub); margin: 14px 0 0; }
.sp-tel a { color: var(--text); font-weight: 700; text-decoration: none; }
body.menu-open { overflow: hidden; }

@media (max-width: 1020px) {
  .menu-btn { display: flex; }
  .head { gap: 12px; }
  .head-tel { margin-left: auto; }
}
@media (min-width: 1021px) { .sp-menu { display: none; } }
@media (max-width: 380px) { .head-tel { font-size: 12px; } .head-tel a { font-size: 16px; } }

/* PC用メニューの横並び（nav ul）を打ち消して縦に並べる */
.sp-menu .sp-main { display: block; font-size: 16px; }

/* Wixフォーム（js/wix-form.js が描画する） */
.field-error { margin: 0; color: var(--terracotta); font-size: 14px; font-weight: 700; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--terracotta); }
.form-thanks, .form-error-box { border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.form-thanks { background: var(--sage-soft); color: var(--text); font-weight: 700; }
.form-error-box { background: #FBEDE6; color: var(--text); }
.form-thanks p, .form-error-box p { margin: 0 0 8px; }
.form-thanks p:last-child, .form-error-box p:last-child { margin: 0; }
.form .btn[disabled] { opacity: .6; cursor: wait; }

/* ロゴ上の「グループホーム」：ロゴと同じ幅に字間をそろえ、丸ゴシックでなじませる */
.logo { display: inline-flex; align-items: stretch; }
.logo small { font-family: "Zen Maru Gothic", sans-serif; font-weight: 500; font-size: 10.5px; line-height: 1; color: var(--sage);
  margin: 0 0 5px; padding: 0 1px 0 3px; text-align: justify; text-align-last: justify; text-justify: inter-character; letter-spacing: 0; }

/* ヘッダーの電話番号：受話器マークで電話番号だとわかるように */
.head-tel a { display: inline-flex; align-items: center; gap: 5px; }
.tel-ic { width: 18px; height: 18px; flex: none; fill: var(--sage); }
@media (max-width: 380px) { .tel-ic { width: 15px; height: 15px; } }
/* とても狭い画面（〜360px）ではヘッダーの余白とロゴを少し詰める */
@media (max-width: 360px) {
  .head.wrap { padding: 0 14px; }
  .head { gap: 8px; }
  .logo img { height: 33px; }
  .logo small { font-size: 9.5px; }
}
@media (max-width: 340px) { .head-tel a { font-size: 14.5px; gap: 3px; } .tel-ic { width: 13px; height: 13px; } .menu-btn { min-width: 40px; } }
.menu-btn .label { white-space: nowrap; }
@media (max-width: 340px) { .menu-btn { font-size: 9px; } }