@charset "UTF-8";

/* ==========================================================================
   デイサービス 桜湯 - 共通スタイル
   配色: 桜色を基調に、高コントラスト・大きめ文字で高齢の方にも読みやすく
   ========================================================================== */

:root {
  /* カラーパレット */
  --c-bg: #fdfaf7;            /* 生成りの背景 */
  --c-surface: #ffffff;
  --c-sakura: #f2c9d3;        /* 桜色 */
  --c-sakura-pale: #faf0f3;   /* 淡い桜色の面 */
  --c-primary: #b24a60;       /* 深い桜色（メインアクセント） */
  --c-primary-dark: #97394d;
  --c-text: #3e3437;
  --c-text-sub: #6e6165;
  --c-border: #eaddE0;
  --c-leaf: #7d9b62;          /* 若葉色（補助アクセント） */

  /* タイポグラフィ */
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-heading: "Zen Maru Gothic", "Noto Sans JP", sans-serif;

  --radius: 16px;
  --shadow: 0 2px 12px rgba(120, 70, 85, 0.08);
  --max-width: 1080px;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-primary); }
table { border-collapse: collapse; width: 100%; }

/* キーボード操作時のフォーカスを明確に */
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- スキップリンク --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-primary); color: #fff; padding: 0.5em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- レイアウト --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--pale { background: var(--c-sakura-pale); }

/* セクション見出し */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .en {
  display: block; font-size: 0.85rem; letter-spacing: 0.2em;
  color: var(--c-primary); text-transform: uppercase; margin-bottom: 6px;
  font-weight: 600;
}
.sec-head h2 { font-size: 1.9rem; }
.sec-head .lead { margin-top: 14px; color: var(--c-text-sub); }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--c-text);
  flex-shrink: 0;
}
/* ロゴは淡い色のため小サイズでは施設名が読めない。
   ロゴはシンボルとして置き、名称はテキストで補う（チラシと同じ構成） */
.brand img { width: auto; height: 56px; display: block; }
.brand .brand-sub { display: block; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--c-text-sub); line-height: 1.2; white-space: nowrap; }
.brand .brand-name { display: block; font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; line-height: 1.3; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 4px; }
.global-nav a {
  display: block; padding: 10px 14px;
  text-decoration: none; color: var(--c-text);
  font-weight: 500; border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.global-nav a:hover { background: var(--c-sakura-pale); color: var(--c-primary); }
.global-nav a[aria-current="page"] { color: var(--c-primary); font-weight: 700; }

.header-tel {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: #fff;
  background: var(--c-primary); border-radius: 999px;
  padding: 8px 22px; line-height: 1.4;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s;
}
.header-tel:hover { background: var(--c-primary-dark); }
.header-tel .num { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.header-tel .note { font-size: 0.68rem; }

/* モバイルメニュー */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 52px; height: 52px;
  border: 1px solid var(--c-border); border-radius: 10px;
  background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-text); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--c-sakura-pale);
  /* 明るい桜色の覆い。左は文字を読ませるため濃く、右へ抜けて写真を見せる */
  background-image:
    linear-gradient(100deg, rgba(255, 253, 254, 0.95) 0%, rgba(255, 248, 251, 0.90) 34%, rgba(252, 236, 242, 0.62) 66%, rgba(250, 228, 236, 0.28) 100%),
    url("../images/hero-exterior.jpg");
  background-size: cover;
  background-position: center 55%;
  padding: 108px 0 120px;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hero .catch {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.6; margin: 0 0 18px;
  color: var(--c-text);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9);
}
.hero .catch .accent { color: var(--c-primary); }
/* 語のまとまりで折り返す（狭い画面での不自然な分断を防ぐ） */
.hero .u { display: inline-block; }
.hero .sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-text-sub); max-width: 32em; margin-bottom: 34px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.95);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* 桜の花びら装飾 */
.hero .petal { position: absolute; opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   ボタン
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 34px;
  font-size: 1.05rem; font-weight: 700; font-family: var(--font-body);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-sakura-pale); }

/* ==========================================================================
   カード
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 28px;
  text-align: center;
}
.card .icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-sakura-pale); border-radius: 50%;
  font-size: 2rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--c-primary); }
.card p { margin: 0; color: var(--c-text-sub); font-size: 0.98rem; text-align: left; }

/* ==========================================================================
   お知らせ
   ========================================================================== */
.news-list { max-width: 780px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--c-border); }
.news-list a, .news-list .news-row {
  display: flex; gap: 24px; align-items: baseline;
  padding: 18px 8px; text-decoration: none; color: var(--c-text);
}
.news-list a:hover .title { color: var(--c-primary); text-decoration: underline; }
.news-list time { flex-shrink: 0; color: var(--c-text-sub); font-size: 0.92rem; }
.news-list .tag {
  flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--c-primary);
  background: var(--c-sakura-pale); border-radius: 999px; padding: 2px 12px;
}
.news-list .tag--important { background: var(--c-primary); color: #fff; }

/* ==========================================================================
   サービス（半日型 / 1日型）
   ========================================================================== */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plan {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.plan-head { padding: 22px 28px; text-align: center; color: #fff; }
.plan-head.half { background: var(--c-leaf); }
.plan-head.full { background: var(--c-primary); }
.plan-head .label { font-size: 0.85rem; display: block; opacity: 0.9; }
.plan-head h3 { font-size: 1.5rem; color: #fff; }
.plan-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.plan-body .time {
  text-align: center; font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 14px;
}
.plan-body ul { margin-bottom: 20px; }
.plan-body li {
  position: relative; padding-left: 1.6em; margin-bottom: 8px; font-size: 0.98rem;
}
.plan-body li::before {
  content: "✿"; position: absolute; left: 0; color: var(--c-sakura);
}
.plan-body .plan-note { font-size: 0.9rem; color: var(--c-text-sub); margin-top: auto; }

/* ==========================================================================
   1日の流れ（タイムライン）
   ========================================================================== */
.timeline { max-width: 720px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 108px; top: 10px; bottom: 10px;
  width: 3px; background: var(--c-sakura);
}
.timeline li { display: flex; gap: 34px; padding: 14px 0; position: relative; }
.timeline .time {
  flex-shrink: 0; width: 90px; text-align: right;
  font-family: var(--font-heading); font-weight: 700; color: var(--c-primary);
  padding-top: 2px;
}
.timeline li::before {
  content: ""; position: absolute; left: 101px; top: 24px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 4px solid var(--c-primary);
}
.timeline .body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline .body p { margin: 0; color: var(--c-text-sub); font-size: 0.95rem; }

/* ==========================================================================
   特徴（交互レイアウト）
   ========================================================================== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature .num {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700;
  color: var(--c-primary); letter-spacing: 0.15em;
}
.feature h3 { font-size: 1.55rem; margin: 6px 0 16px; }
.feature p { color: var(--c-text-sub); }

/* イメージイラスト（実写真と差し替え予定） */
.feature-photo { margin: 0; }
.feature-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-photo figcaption {
  font-size: 0.82rem; color: var(--c-text-sub); text-align: right; margin-top: 8px;
}

/* 施設外観の写真 */
.exterior-photo { margin: 0 0 40px; }
.exterior-photo img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* 導入機器の写真（2枚並び） */
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.device { margin: 0; }
.device img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain;
  background: var(--c-sakura-pale);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px;
}
.device figcaption {
  text-align: center; margin-top: 10px;
  font-size: 0.95rem; font-weight: 700; color: var(--c-primary);
  line-height: 1.5;
}
/* 機器名が語中（長音符など）で割れないよう、まとまりで折り返す */
.device figcaption .u { display: inline-block; }

/* 写真プレースホルダー（実写真と差し替え予定） */
.photo-placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f6e4e9, #f6e4e9 12px, #fbf0f3 12px, #fbf0f3 24px);
  border: 2px dashed var(--c-sakura);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary); font-weight: 700; font-size: 0.95rem;
}
.photo-placeholder.wide { aspect-ratio: 16 / 7; }

/* ==========================================================================
   テーブル（料金・施設概要）
   ========================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); min-width: 560px;
}
.table th, .table td {
  padding: 14px 18px; border-bottom: 1px solid var(--c-border);
  text-align: left; font-size: 1rem;
}
.table thead th {
  background: var(--c-primary); color: #fff; font-weight: 700;
  text-align: center; white-space: nowrap;
}
.table tbody th { background: var(--c-sakura-pale); font-weight: 700; white-space: nowrap; width: 30%; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }

/* 仮データの注意書き */
.draft-notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #e8d28a; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 32px; font-size: 0.95rem; color: #7a5c00;
}
.draft-notice strong { color: #7a5c00; }

/* 案内ボックス（問い合わせ誘導など） */
.info-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--c-sakura-pale); border: 1px solid var(--c-sakura);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 36px;
}
.info-box::before { content: "🌸"; flex-shrink: 0; }
.info-box p { margin: 0; font-weight: 500; }

/* 注記リスト */
.notes { font-size: 0.92rem; color: var(--c-text-sub); margin-top: 16px; }
.notes li { padding-left: 1.4em; position: relative; margin-bottom: 4px; }
.notes li::before { content: "※"; position: absolute; left: 0; }

/* ==========================================================================
   Instagram / CTA
   ========================================================================== */
.insta-box {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 30px;
}
.insta-box .icon { font-size: 2.4rem; margin-bottom: 10px; }
.insta-box .account { font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; }

.cta {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff; text-align: center; padding: 72px 20px;
}
.cta h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta p { opacity: 0.95; margin-bottom: 28px; }
.cta .tel-big {
  display: inline-block; font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700;
  color: #fff; text-decoration: none; letter-spacing: 0.03em;
}
.cta .tel-note { font-size: 0.95rem; margin-top: 6px; margin-bottom: 0; }

/* ==========================================================================
   ページ下層ヒーロー
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #fdf6f2 0%, #f7dde4 100%);
  padding: 60px 20px; text-align: center;
}
.page-hero .en { display: block; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--c-primary); text-transform: uppercase; font-weight: 600; }
.page-hero h1 { font-size: 2rem; margin-top: 4px; }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { background: #4a3b40; color: #f3e9ec; padding: 56px 0 24px; margin-top: 0; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px;
}
/* 濃い背景ではロゴの淡い色が映える */
.footer-logo { width: auto; height: 96px; display: block; margin-bottom: 14px; }
.site-footer h2 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.site-footer .company { font-size: 0.9rem; opacity: 0.8; margin-bottom: 16px; }
.site-footer address { font-style: normal; font-size: 0.95rem; line-height: 2; }
.site-footer a { color: #f9cdd8; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.footer-nav a { display: block; padding: 6px 0; color: #f3e9ec; text-decoration: none; }
.footer-nav a:hover { color: #f9cdd8; text-decoration: underline; }
.copyright {
  text-align: center; font-size: 0.82rem; opacity: 0.7;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15);
}

/* ==========================================================================
   地図
   ========================================================================== */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1060px) {
  body { font-size: 17px; }

  /* 電話番号を先に、ハンバーガーを右端に置く（DOM順は変えず見た目の順序だけ入れ替え） */
  .nav-toggle { display: flex; order: 3; margin-left: 0; }
  .global-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: 0 12px 24px rgba(120, 70, 85, 0.12);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .global-nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--c-border); border-radius: 0; }
  .header-tel { order: 2; margin-left: auto; margin-right: 0; padding: 6px 16px; }
  .header-tel .num { font-size: 1rem; }

  .card-grid, .plan-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 20px; margin-bottom: 52px; }
  .feature:nth-child(even) .feature-img { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  /* 狭い画面では文字が写真全体に重なるため、覆いを均一にかける */
  .hero {
    padding: 72px 0 80px;
    background-image:
      linear-gradient(rgba(255, 253, 254, 0.93) 0%, rgba(253, 240, 245, 0.88) 100%),
      url("../images/hero-exterior.jpg");
    background-position: center 58%;
  }

  .timeline::before { left: 86px; }
  .timeline li { gap: 26px; }
  .timeline .time { width: 72px; }
  .timeline li::before { left: 79px; }
}

@media (max-width: 480px) {
  .news-list a, .news-list .news-row { flex-wrap: wrap; gap: 8px 16px; }
  .hero-actions .btn { width: 100%; }
  /* 電話番号が語中で割れないよう縦積みにする */
  .hero-actions .btn--primary { flex-direction: column; gap: 2px; line-height: 1.4; }
  .header-tel .note { display: none; }
  .header-tel { padding: 10px 14px; }
  /* 狭い画面はヘッダーの要素が収まらないため、ロゴと施設名を圧縮する */
  .brand { gap: 7px; }
  .brand img { height: 42px; }
  .brand .brand-sub { display: none; }
  .brand .brand-name { font-size: 1.2rem; }
  .header-inner { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .nav-toggle { width: 46px; height: 46px; }
  .header-tel .num { font-size: 0.95rem; }
  .footer-logo { height: 78px; }
}
