/*




















 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* iOS Safariで入力時の自動ズームを防止（font-size 16px未満で発生） */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px;
  }
}
:root {
  /* Brand */
  --brand: #117BBF;

  /* Layout */
  --bottom-nav-height: 75px;
  --header-height: 70px;
  --container-max: 960px;

  /* Background / Surface */
  --bg: #ffffff;
  --surface: #f7fafc;        /* カード背景 */
  --surface-2: #f1f5f9;      /* 薄いセクション背景 */

  /* Text */
  --text: #111827;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;

  /* Border / Shadow */
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  /* Spacing */
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               "Noto Sans JP", sans-serif;
  --font-size-base: 15px;
  --line-height: 1.6;

  /* State colors */
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  /* Brand variations (便利) */
  --brand-weak: #e8f3fb;
  --brand-hover: #0e6aa5;
  --brand-secondary: #6AACB0;

  /* Card */
  --card-bg: #ffffff;
  --card-radius: var(--radius-lg);
  --card-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  --card-border: rgba(17, 123, 191, 0.12);

  /* Form input */
  --input-bg: #f8fcff;
  --input-border: #d0e3f3;
  --input-radius: var(--radius-sm);
  --input-focus-border: var(--brand);
  --input-focus-shadow: 0 0 0 2px rgba(17, 123, 191, 0.18);

  /* Page title */
  --page-title-size: 20px;
  --page-title-weight: 700;
  --page-title-color: var(--brand);

  /* Page container */
  --page-max-width: 720px;
  --page-padding: 18px 14px 28px;

  /* Button (app内共通) */
  --btn-radius: var(--radius-md);
  --btn-font-size: 13px;
  --btn-font-weight: 700;
  --btn-padding: 10px 14px;
}
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-4));
}

html, body {
  overflow-x: hidden;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden;
  }
}
/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 16px 32px;
  font-size: 18px;
  border-radius: 14px;
  font-weight: 600;

  border: none;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;

  transition:
    transform 0.18s cubic-bezier(0.17, 0.67, 0.37, 1.32),
    box-shadow 0.18s ease,
    background-color 0.18s ease;

  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.10),
    0 2px 4px rgba(255, 255, 255, 0.8) inset;

  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.15),
    0 3px 6px rgba(255,255,255,0.85) inset;
}

.btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.25) inset,
    0 0 0 rgba(0,0,0,0.1);
}

/* Variants */
.btn--primary {
  background: linear-gradient(180deg, #1ea0ff, #117BBF);
  color: #fff;
}

.btn--secondary {
  background: linear-gradient(180deg, #d6d8d8a3, #e9e9e9);
  color: #333;
}

/* ログアウト用に */
.btn--danger {
  background: linear-gradient(180deg, #e93232, #ef4444);
  color: #fff;
}


/* トグル全体 */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  background-color: #d0d7de;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, transform 0.12s ease;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.12) inset,
    0 0 0 1px rgba(0,0,0,0.06);
}

/* ON状態 */
.toggle-switch.is-on {
  background-color: rgb(247, 130, 87);
}

/* 白い丸（つまみ） */
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.18),
    0 1px 2px rgba(0,0,0,0.10);
}

/* ON時に右へスライド */
.toggle-switch.is-on .toggle-knob {
  transform: translateX(20px);
}

.habit-item__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  margin-left: auto;
}
.toggle-switch:active {
  transform: scale(0.96);
}

.toggle-switch:active .toggle-knob {
  width: 26px; /* ちょい潰れる感じ */
}

/* キーボード操作のフォーカスリング（アクセシビリティ） */
.toggle-switch:focus-visible {
  outline: 3px solid rgba(17, 123, 191, 0.35); /* #117BBF を薄く */
  outline-offset: 3px;
}

.habit-item__actions form {
  margin-left: auto;
}

/* 習慣記録アニメーション */

/* トグル成功時のアニメーション */
.toggle-switch.toggle-success {
  animation: toggle-pulse 0.5s ease-out;
}

@keyframes toggle-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12) inset,
      0 0 0 1px rgba(0,0,0,0.06);
  }
  30% {
    transform: scale(1.15);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12) inset,
      0 0 0 1px rgba(0,0,0,0.06),
      0 0 20px rgba(247, 130, 87, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.12) inset,
      0 0 0 1px rgba(0,0,0,0.06);
  }
}

/* パーティクル（紙吹雪）エフェクト */
.habit-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  animation: particle-burst 0.7s ease-out forwards;
}

@keyframes particle-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--tx, 0px)),
      calc(-50% + var(--ty, 0px))
    ) scale(0);
  }
}

/* チェックマークアニメーション */
.habit-checkmark {
  position: absolute;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 101;
  animation: checkmark-pop 0.8s ease-out forwards;
}

.habit-checkmark svg {
  width: 100%;
  height: 100%;
  color: #117BBF;
  filter: drop-shadow(0 2px 8px rgba(17, 123, 191, 0.5));
}

@keyframes checkmark-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-45deg);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 20px)) scale(1.2) rotate(0deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 25px)) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 35px)) scale(0.8) rotate(0deg);
  }
}

/* 習慣カードにposition:relativeを確保（パーティクル用） */
.habit-item {
  position: relative;
  overflow: visible;
}

/* ── アプリ内共通ボタン ── */
.haby-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.haby-btn--primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(17, 123, 191, 0.22);
}

.haby-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.haby-btn--ghost {
  color: var(--text);
  background: #fff;
  border-color: var(--card-border);
}

.haby-btn--ghost:hover {
  background: var(--brand-weak);
}

.haby-btn--danger {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.18);
}

.haby-btn--danger:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .haby-btn {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
  }
}
/* Header */
.app-header {
  overflow-x: clip;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

@supports not (overflow-x: clip) {
  .app-header {
    overflow-x: hidden;
  }
}

.app-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 6px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.app-header__left {
  justify-self: start;
  width: auto;
}

.app-header__center {
  justify-self: center;
}

.app-header__logo-link {
  display: inline-block;
}

.app-header__logo {
  height: 40px;
  width: auto;
  display: block;
}

/* ハンバーガーボタン（右上固定） */
.app-header__menu-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 60;

  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;

  /* ここ重要：内部の線をabsoluteで重ねられるようにする */
  position: absolute;
}

.app-header__menu-button {
  /* 見た目のクリック領域を安定させる（任意だけどおすすめ） */
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;
}

/* 3本線の共通 */
.app-header__menu-line {
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background-color: #117BBF;

  /* ここ重要：回転時に中心がブレないよう基準を固定 */
  transform-origin: 50% 50%;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

/* 閉じてる時は普通に縦並びっぽく配置（gridで3本作る） */
.app-header__menu-button {
  grid-auto-rows: min-content;
  row-gap: 8px;
}

.app-header__menu-button .app-header__menu-line:nth-child(1),
.app-header__menu-button .app-header__menu-line:nth-child(2),
.app-header__menu-button .app-header__menu-line:nth-child(3) {
  position: relative;
}

/* 開いたとき：3本を中央に重ねる → 1本目と3本目だけ回転 */
.app-header.is-menu-open .app-header__menu-button {
  row-gap: 0; /* gapの影響を消す */
}

.app-header.is-menu-open .app-header__menu-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 1本目：＼ */
.app-header.is-menu-open .app-header__menu-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 2本目：消す */
.app-header.is-menu-open .app-header__menu-line:nth-child(2) {
  opacity: 0;
}

/* 3本目：／ */
.app-header.is-menu-open .app-header__menu-line:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* ドロワーメニュー本体（右からスライド） */
.app-header__nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;

  width: 70%;
  max-width: 320px;

  background: #fff;
  border-radius: 16px 0 0 16px; /* 右端は画面に接するので0に */
  padding: 12px;

  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
  z-index: 55;

  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.app-header.is-menu-open .app-header__nav {
  transform: translateX(0);
}

/* メニューの中身 */
.app-header__nav-list {
  margin: 64px 16px 16px;
  padding: 12px 8px 16px;
  list-style: none;
}

.app-header__nav-list li + li {
  margin-top: 12px;
}

/* メニューリンク（menu__link運用） */
.menu__link {
  position: relative;
  display: block;

  padding: 16px 20px;
  border-radius: 12px;

  text-decoration: none;
  color: var(--text, #333);

  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;

  transition: background-color 0.2s ease;
}

.menu__link:hover {
  background-color: rgba(17, 123, 191, 0.08);
}

.menu__link::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: 0;
  height: 2px;
  background-color: var(--primary, #117BBF);
  transition: width 0.25s ease;
}

.menu__link:hover::after {
  width: calc(100% - 40px);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .app-header__inner {
    padding: 4px 12px;
  }

  .app-header__logo {
    height: 34px;
  }

  .app-header__nav {
    width: 78%;
  }

  .app-header__nav-list {
    margin: 56px 10px 10px;
    padding: 10px 6px 14px;
  }

  .menu__link {
    padding: 12px 14px;
    font-size: 15px;
  }
}
/* ===============================
   Footer
   =============================== */

.app-footer {
  background: #ffffff;
  padding: 20px 0;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  margin-top: 40px;
  margin-bottom: 16px;
  color: #333;
  font-size: 14px;
  border-top: 1px solid #e5e5e5;
}

.app-footer__inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* コピーライト */
.app-footer__copy {
  text-align: left;
  flex: 1;
}

/* 右側リンク */
.app-footer__links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}


.app-footer__links a {
  color: #333;
  text-decoration: none;
}

.app-footer__links a:hover {
  text-decoration: underline;
}

/* Footer: responsive */

@media (max-width: 600px) {
  .app-footer {
    padding: 16px 0;
    padding-bottom: calc(var(--bottom-nav-height) + 12px);
    margin-top: 24px;
  }

  .app-footer__inner {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .app-footer__copy {
    text-align: left;
    flex: none;
    font-size: 13px;
  }

  .app-footer__links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .app-footer__links a {
    font-size: 13px;
  }
}
/* ==========================================================================
   Haby Calendar — ブランド青 + 水緑グラデの柔らかカード
   今日の習慣 / 習慣一覧と兄弟デザイン
   ========================================================================== */

.haby-cal-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--page-padding);
}

/* --------------------------------------------------------------------------
   Hero: 月タイトル + ナビ + 統計
   -------------------------------------------------------------------------- */
.haby-cal-hero {
  background: linear-gradient(
    135deg,
    rgba(17, 123, 191, 0.18),
    rgba(106, 172, 176, 0.14)
  );
  border: 1px solid rgba(17, 123, 191, 0.18);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 25px rgba(17, 123, 191, 0.06);
}

.haby-cal-hero__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.haby-cal-hero__title-block {
  min-width: 0;
}

.haby-cal-hero__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.haby-cal-hero__subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ナビ(ピル型) */
.haby-cal-hero__nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 123, 191, 0.16);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(17, 123, 191, 0.05);
  backdrop-filter: blur(4px);
}

.haby-cal-hero__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.haby-cal-hero__nav-btn:hover {
  background: rgba(17, 123, 191, 0.10);
}

.haby-cal-hero__nav-btn:active { transform: scale(0.96); }

.haby-cal-hero__nav-btn--today {
  font-size: 12px;
  font-weight: 800;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(17, 123, 191, 0.22);
}

.haby-cal-hero__nav-btn--today:hover {
  background: var(--brand-hover);
  color: #fff;
}

/* 統計バッジ3つ */
.haby-cal-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.haby-cal-hero__stat {
  background: #fff;
  border: 1px solid rgba(17, 123, 191, 0.14);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(17, 123, 191, 0.04);
}

.haby-cal-hero__stat dt {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.haby-cal-hero__stat dd {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.haby-cal-hero__stat dd span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

/* --------------------------------------------------------------------------
   Calendar Card (白カード)
   -------------------------------------------------------------------------- */
.haby-cal-card {
  background: #fff;
  border: 1px solid rgba(17, 123, 191, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.simple-calendar.haby-cal {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  max-width: 100%;
}

.haby-cal__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}

/* 曜日ヘッダ */
.haby-cal__weekdays th { padding: 0; }

.haby-cal__weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 6px 0 10px;
  letter-spacing: 0.04em;
}

/* 土曜 = ブランド青、日曜 = 柔らかい赤(既存ブランドに寄せる) */
.haby-cal__weekday--wd5 { color: rgba(17, 123, 191, 0.85); }
.haby-cal__weekday--wd6 { color: rgba(224, 92, 92, 0.85); }

/* --------------------------------------------------------------------------
   セル
   -------------------------------------------------------------------------- */
.haby-cal__cell {
  height: 76px;
  padding: 0;
  background: transparent;
  border: none;
  vertical-align: middle;
}

.haby-cal__cell-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  background: #fafcff;
  border: 1px solid rgba(17, 123, 191, 0.08);
  color: var(--text);
  text-decoration: none;
  box-sizing: border-box;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.haby-cal__date {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease;
}

.haby-cal__mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
  box-sizing: border-box;
  transition: transform 180ms cubic-bezier(0.22, 0.8, 0.36, 1);
}

/* --- 状態別セル塗り --- */

/* 全達成: ブランド青→水緑のグラデ塗り */
.cal-day--all .haby-cal__cell-link {
  background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(17, 123, 191, 0.22);
}
.cal-day--all .haby-cal__date { color: #fff; }
.cal-day--all .haby-cal__mark {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

/* 一部達成: 薄い青カード + ハーフドット */
.cal-day--partial .haby-cal__cell-link {
  background: rgba(17, 123, 191, 0.10);
  border-color: rgba(17, 123, 191, 0.22);
}
.cal-day--partial .haby-cal__mark {
  background: linear-gradient(90deg, var(--brand) 50%, transparent 50%);
  border: 1.5px solid var(--brand);
}

/* 未達(予定あり): 白カード + 空ドット枠 */
.cal-day--none .haby-cal__cell-link {
  background: #fff;
  border-color: rgba(17, 123, 191, 0.10);
}
.cal-day--none .haby-cal__mark {
  background: transparent;
  border: 1.5px solid rgba(17, 123, 191, 0.28);
}

/* 予定なし: ほぼ無地、ドット非表示 */
.cal-day--empty .haby-cal__cell-link {
  background: rgba(15, 23, 42, 0.015);
  border-color: rgba(15, 23, 42, 0.04);
}
.cal-day--empty .haby-cal__mark { visibility: hidden; }
.cal-day--empty .haby-cal__date { color: var(--text-muted); font-weight: 700; }

/* 今日: 青リングで強調(塗りは状態依存のまま) */
.simple-calendar .today .haby-cal__cell-link {
  box-shadow:
    0 0 0 2px var(--brand),
    0 8px 18px rgba(17, 123, 191, 0.22);
}

/* 前月・次月: フェード */
.simple-calendar .prev-month .haby-cal__cell-link,
.simple-calendar .next-month .haby-cal__cell-link {
  opacity: 0.38;
}

/* ホバー */
@media (hover: hover) and (pointer: fine) {
  .haby-cal__cell-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(17, 123, 191, 0.14);
    border-color: rgba(17, 123, 191, 0.32);
  }
  .cal-day--all .haby-cal__cell-link:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 24px rgba(17, 123, 191, 0.28);
  }
  .haby-cal__cell-link:hover .haby-cal__mark { transform: scale(1.12); }
}

.haby-cal__cell-link:active { transform: scale(0.97); }
.haby-cal__cell-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Legend (凡例ピル)
   -------------------------------------------------------------------------- */
.haby-cal-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.haby-cal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid rgba(17, 123, 191, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.haby-cal-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-sizing: border-box;
}

.haby-cal-legend__dot--all {
  background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
  box-shadow: 0 0 0 2px rgba(17, 123, 191, 0.15);
}
.haby-cal-legend__dot--partial {
  background: linear-gradient(90deg, var(--brand) 50%, transparent 50%);
  border: 1.5px solid var(--brand);
}
.haby-cal-legend__dot--none {
  background: transparent;
  border: 1.5px solid rgba(17, 123, 191, 0.30);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .haby-cal-page { padding: 14px 10px 24px; gap: 12px; }

  .haby-cal-hero { padding: 14px 14px 12px; }
  .haby-cal-hero__head { margin-bottom: 12px; }
  .haby-cal-hero__title { font-size: 20px; }
  .haby-cal-hero__subtitle { font-size: 11px; margin-top: 2px; }

  .haby-cal-hero__nav { padding: 3px; }
  .haby-cal-hero__nav-btn { min-width: 30px; height: 30px; font-size: 16px; padding: 0 8px; }
  .haby-cal-hero__nav-btn--today { font-size: 11px; padding: 0 12px; }

  .haby-cal-hero__stat { padding: 8px 6px; }
  .haby-cal-hero__stat dt { font-size: 10px; margin-bottom: 2px; }
  .haby-cal-hero__stat dd { font-size: 18px; }
  .haby-cal-hero__stat dd span { font-size: 11px; }

  .haby-cal-card { padding: 10px; }
  .haby-cal__table { border-spacing: 4px; }

  .haby-cal__weekday { font-size: 11px; padding: 4px 0 8px; }

  .haby-cal__cell { height: 56px; }
  .haby-cal__cell-link { gap: 4px; padding: 6px 2px; }
  .haby-cal__date { font-size: 12px; }
  .haby-cal__mark { width: 12px; height: 12px; }

  .haby-cal-legend { gap: 8px; }
  .haby-cal-legend__item { padding: 5px 10px; font-size: 11px; }
}

@media (max-width: 400px) {
  .haby-cal__cell { height: 50px; }
  .haby-cal__date { font-size: 11px; }
  .haby-cal__mark { width: 10px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .haby-cal__cell-link,
  .haby-cal__mark,
  .haby-cal-hero__nav-btn { transition: none; }
}
/* Bottom Navigation */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  /* height: var(--bottom-nav-height); */
  height: var(--bottom-nav-height);

  padding: 10px 24px 18px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 40;
}


.bottom-nav__item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}

.bottom-nav__icon-wrapper {
  margin: 10px 0 6px;
}

.bottom-nav__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


/* アクティブ */
.bottom-nav__item--active {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 768px) {
  .bottom-nav {
    justify-content: center;
    gap: 35px;
  }

  .bottom-nav__item {
    flex: 0 0 auto;
  }
}
/* flash */
.flash {
  max-width: 640px;
  margin: 12px auto;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
}

.flash__message {
  margin: 0;
  font-weight: 700;
}

/* success: 緑 */
.flash--success {
  background: #eaf7ef;
  border-color: #bfe6cc;
  color: #1f6b3a;
}

/* danger: 赤 */
.flash--danger {
  background: #fdecec;
  border-color: #f5bcbc;
  color: #9b1c1c;
}

/* info */
.flash--info {
  background: #eef5ff;
  border-color: #c4dcff;
  color: #124a9a;
}

/* form errors block */
.form-errors {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  background: #fdecec;
  border: 1px solid #f5bcbc;
  color: #9b1c1c;
}

.form-errors__title {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 14px;
}

.form-errors__list {
  margin: 0;
  padding-left: 18px;
}

.form-errors__item {
  font-size: 13px;
  font-weight: 700;
}

/* rails default wrapper */
.field_with_errors .habit-form__input,
.field_with_errors input,
.field_with_errors textarea,
.field_with_errors select {
  border-color: #f5bcbc !important;
  background: #fff7f7;
}
/* ===========================
   Loading Components
   =========================== */

/* --- Full-screen Overlay --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Bouncing Dots --- */
.loading-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  animation: habyBounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  background: #117BBF;
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  background: #3d9bc9;
  animation-delay: 0.16s;
}

.loading-dot:nth-child(3) {
  background: #6AACB0;
  animation-delay: 0.32s;
}

@keyframes habyBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.loading-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.5);
}

/* --- Top Progress Bar --- */
.loading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.loading-progress.is-visible {
  opacity: 1;
}

.loading-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #117BBF, #6AACB0);
  box-shadow: 0 0 8px rgba(17, 123, 191, 0.4);
  transition: width 0.3s ease;
}

.loading-progress.is-running .loading-progress__bar {
  animation: habyProgress 2.5s ease-in-out forwards;
}

.loading-progress.is-finishing .loading-progress__bar {
  width: 100% !important;
  animation: none;
  transition: width 0.2s ease;
}

@keyframes habyProgress {
  0%   { width: 0%; }
  20%  { width: 35%; }
  50%  { width: 60%; }
  80%  { width: 82%; }
  100% { width: 90%; }
}

/* --- Button Spinner --- */
.loading-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: habySpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* Ghost / outlined button variant */
.loading-btn-spinner--dark {
  border-color: rgba(17, 123, 191, 0.2);
  border-top-color: #117BBF;
}

@keyframes habySpin {
  to { transform: rotate(360deg); }
}

[data-loading-submitting] {
  opacity: 0.7;
  pointer-events: none;
}
/* ===========================
   Top Page
   =========================== */
.top-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  background: #f9fafb;
}

/* ----------------------------
   Scroll Reveal Animation
   ---------------------------- */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* スタガー遅延 */
.feature-card[data-scroll-reveal]:nth-child(2) { transition-delay: 0.15s; }
.feature-card[data-scroll-reveal]:nth-child(3) { transition-delay: 0.3s; }
.step[data-scroll-reveal]:nth-child(2) { transition-delay: 0.18s; }
.step[data-scroll-reveal]:nth-child(3) { transition-delay: 0.36s; }
.pain-point[data-scroll-reveal]:nth-child(2) { transition-delay: 0.12s; }
.pain-point[data-scroll-reveal]:nth-child(3) { transition-delay: 0.24s; }

/* ----------------------------
   Hero Section
   ---------------------------- */
.hero {
  position: relative;
  padding: 80px 20px 100px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6fc 100%);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(17, 123, 191, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: #117BBF;
}

.hero__shape--1 {
  width: 350px;
  height: 350px;
  top: -120px;
  right: -90px;
  opacity: 0.1;
  animation: float 9s ease-in-out infinite;
}

.hero__shape--2 {
  width: 240px;
  height: 240px;
  bottom: -80px;
  left: -60px;
  opacity: 0.08;
  animation: float 7s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 90px;
  height: 90px;
  top: 25%;
  left: 70%;
  opacity: 0.12;
  animation: float 11s ease-in-out infinite 1s;
}

.hero__shape--4 {
  width: 50px;
  height: 50px;
  top: 55%;
  left: 12%;
  opacity: 0.09;
  animation: float 8s ease-in-out infinite 0.5s;
}

.hero__shape--5 {
  width: 70px;
  height: 70px;
  top: 15%;
  left: 25%;
  opacity: 0.07;
  animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.08); }
}

/* Wave divider */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  animation: heroFadeIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ロゴエリア */
.hero__logo-area {
  margin-bottom: 12px;
}

.hero__logo-img {
  width: clamp(180px, 40vw, 260px);
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

.hero__tagline {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #64748b;
}

/* グラスカード */
.hero__glass-card {
  background: #ffffff;
  border: 1px solid #e8eff5;
  border-radius: 22px;
  padding: 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(17, 123, 191, 0.06);
}

.hero__glass-text {
  margin: 0 0 20px;
  font-size: clamp(14px, 3.5vw, 16px);
  color: #475569;
  line-height: 2;
  font-weight: 500;
}

.hero__glass-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero__glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #eef6fc;
  border: 1px solid #d4e8f7;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #117BBF;
  white-space: nowrap;
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 190px;
  padding: 17px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.hero__btn--primary {
  background: #117BBF;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(17, 123, 191, 0.25);
}

.hero__btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(17, 123, 191, 0.3);
}

.hero__btn-arrow {
  font-size: 18px;
  transition: transform 0.35s ease;
}

.hero__btn--primary:hover .hero__btn-arrow {
  transform: translateX(5px);
}

.hero__btn--secondary {
  background: transparent;
  color: #117BBF;
  border: 2px solid #117BBF;
}

.hero__btn--secondary:hover {
  background: #eef6fc;
  transform: translateY(-3px);
}

/* ----------------------------
   Stats Section
   ---------------------------- */
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 540px;
  margin: -44px auto 0;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stats__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.stats__icon-wrap--blue { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.stats__icon-wrap--green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.stats__icon-wrap--purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }

.stats__icon {
  font-size: 22px;
  line-height: 1;
}

.stats__icon-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #117BBF;
  text-transform: uppercase;
}

.stats__number {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #117BBF, #2e99d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stats__label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.stats__divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, #e5e7eb, transparent);
  flex-shrink: 0;
}

/* ----------------------------
   Section Heading
   ---------------------------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 36px;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  color: #1e293b;
}

.section-heading__accent {
  display: block;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #117BBF, #57aee8);
  border-radius: 2px;
}

/* ----------------------------
   Slider Section
   ---------------------------- */
.slider-section {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 0 16px;
}

.slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.slider__track {
  position: relative;
  height: 240px;
}

.slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.slider__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slider__slide.slide-out-left {
  opacity: 0;
  transform: translateX(-100%);
}
}

/* 写真スライド */
.slider__slide--photo {
  padding: 0;
}

.slider__slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.8s ease;
}

.slider__slide.is-active .slider__slide-bg {
  animation: kenBurns 5.5s ease-in-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.slider__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.slider__slide-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 0 32px 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.slider__slide.is-active .slider__slide-body {
  opacity: 1;
  transform: translateY(0);
}

.slider__slide-icon {
  font-size: 44px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.slider__slide-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.slider__slide-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}


/* Arrows */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slider__arrow--prev {
  left: 12px;
}

.slider__arrow--next {
  right: 12px;
}

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slider__dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
  width: 28px;
  border-radius: 5px;
}

/* ----------------------------
   Pain Points Section
   ---------------------------- */
.pain-points {
  max-width: 700px;
  margin: 56px auto 0;
  padding: 0 16px;
}

.pain-points__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pain-point {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
}

.pain-point:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.pain-point__icon-area {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef7f0;
  border-radius: 16px;
}

.pain-point__emoji {
  font-size: 28px;
  line-height: 1;
}

.pain-point__icon-mark {
  font-size: 22px;
  font-weight: 800;
  color: #e87171;
  line-height: 1;
}

.pain-point__body {
  flex: 1;
  min-width: 0;
}

.pain-point__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.pain-point__desc {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.pain-points__solution {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
  border-radius: 20px;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}


@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-5deg); }
  75% { transform: scale(1.15) rotate(5deg); }
}

.pain-points__solution-text {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #117BBF;
}

.pain-points__solution-text strong {
  background: linear-gradient(135deg, #117BBF, #2e99d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------
   Visual Break Section
   ---------------------------- */
.visual-break {
  padding: 80px 24px;
  background: #ffffff;
  overflow: hidden;
}

.visual-break__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1000px;
  margin: 0 auto;
}

.visual-break__image-col {
  flex: 1;
  min-width: 0;
}

.visual-break__image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(17, 123, 191, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.visual-break__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform 0.6s ease;
}

.visual-break__image-frame:hover .visual-break__img {
  transform: scale(1.03);
}

.visual-break__image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #117BBF 0%, #57aee8 100%);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

.visual-break__text-col {
  flex: 1;
  min-width: 0;
}

.visual-break__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #117BBF;
  background: rgba(17, 123, 191, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.visual-break__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  color: #1a2b3c;
  margin: 0 0 20px;
}

.visual-break__text {
  font-size: 15px;
  line-height: 2;
  color: #5a6b7c;
  margin: 0 0 32px;
}

.visual-break__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visual-break__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #117BBF;
  background: #f0f7fd;
  border: 1px solid rgba(17, 123, 191, 0.12);
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ----------------------------
   Features Section
   ---------------------------- */
.features-section {
  background: linear-gradient(180deg, #f0f9ff 0%, #f9fafb 100%);
  margin-top: 64px;
  padding: 64px 0;
  position: relative;
}

.features {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e8eff5;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #117BBF, #57aee8, #8dcaef);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
  pointer-events: none;
}

.feature-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.feature-card__icon-wrap--blue {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.feature-card__icon-wrap--green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.feature-card__icon-wrap--purple {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
}

.feature-card__icon {
  font-size: 26px;
  line-height: 1;
}

.feature-card__icon-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.feature-card__body {
  flex: 1;
  min-width: 0;
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}

.feature-card__text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}

.feature-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #117BBF;
  letter-spacing: 0.5px;
}

.feature-card__tag-dot {
  width: 6px;
  height: 6px;
  background: #2e99d4;
  border-radius: 50%;
}

/* ----------------------------
   How It Works (Steps)
   ---------------------------- */
.how-it-works {
  max-width: 680px;
  margin: 64px auto 0;
  padding: 0 16px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding-bottom: 20px;
}

.step:last-child {
  padding-bottom: 0;
}

.step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #117BBF, #57aee8);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(17, 123, 191, 0.25);
  position: relative;
  z-index: 1;
}

.step__connector {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #57aee8, #e2e8f0);
  margin-top: 6px;
  flex: 1;
}

.step__card {
  flex: 1;
  text-align: left;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.step__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #2e99d4;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.step__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}

.step__text {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}

/* ----------------------------
   CTA Section
   ---------------------------- */
.cta {
  max-width: 680px;
  margin: 64px auto 0;
  padding: 0 16px 48px;
}

.cta__inner {
  background: linear-gradient(160deg, #117BBF 0%, #2e99d4 40%, #57aee8 80%, #8dcaef 100%);
  border-radius: 28px;
  padding: 52px 28px;
  position: relative;
  overflow: hidden;
}

.cta__decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta__decoration--1 {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  top: -80px;
  right: -60px;
}

.cta__decoration--2 {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  bottom: -50px;
  left: -50px;
}

.cta__decoration--3 {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  top: 45%;
  left: 18%;
  animation: float 9s ease-in-out infinite;
}

.cta__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.5;
  position: relative;
}

.cta__text {
  margin: 0 0 32px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  position: relative;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  padding: 18px 38px;
  background: #ffffff;
  color: #117BBF;
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.08); }
}

.cta__btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  animation: none;
}

.cta__btn-arrow {
  font-size: 18px;
  transition: transform 0.35s ease;
}

.cta__btn:hover .cta__btn-arrow {
  transform: translateX(5px);
}

/* ----------------------------
   Responsive
   ---------------------------- */
@media (max-width: 480px) {
  .hero {
    padding: 60px 16px 80px;
  }

  .hero__title {
    letter-spacing: 3px;
  }

  .hero__wave svg {
    height: 40px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__btn {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }

  .stats {
    margin: -36px 14px 0;
    padding: 22px 14px;
    gap: 10px;
    border-radius: 20px;
  }

  .stats__icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .stats__icon {
    font-size: 18px;
  }

  .stats__number {
    font-size: 18px;
  }

  .stats__label {
    font-size: 11px;
  }

  .slider-section {
    margin-top: 36px;
  }

  .slider__track {
    height: 220px;
  }

  .slider__slide {
    padding: 28px 48px;
  }

  .slider__slide-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .slider__slide-title {
    font-size: 18px;
  }

  .slider__slide-text {
    font-size: 13px;
  }

  .slider__arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .slider__arrow--prev { left: 8px; }
  .slider__arrow--next { right: 8px; }

  .pain-points {
    margin-top: 40px;
  }

  .pain-point {
    padding: 18px 18px;
    gap: 14px;
  }

  .pain-point__icon-area {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .pain-point__emoji {
    font-size: 24px;
  }

  .pain-point__icon-mark {
    font-size: 18px;
  }

  .pain-point__title {
    font-size: 15px;
  }

  .pain-points__solution {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
  }

  .pain-points__solution-text {
    font-size: 16px;
  }

  .visual-break {
    padding: 48px 16px;
  }

  .visual-break__inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .visual-break__image-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .visual-break__image-accent {
    width: 80px;
    height: 80px;
    bottom: -8px;
    right: -8px;
  }

  .visual-break__title {
    font-size: 22px;
  }

  .visual-break__text {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .visual-break__chips {
    justify-content: center;
  }

  .features-section {
    margin-top: 48px;
    padding: 48px 0;
  }

  .feature-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .feature-card__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .feature-card__number {
    font-size: 40px;
  }

  .how-it-works {
    margin-top: 48px;
  }

  .step__number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .step__card {
    padding: 18px 18px;
  }

  .cta {
    margin-top: 48px;
    padding-bottom: 88px;
  }

  .cta__inner {
    padding: 40px 22px;
    border-radius: 22px;
  }
}
/* 認証画面 共通レイアウト */

.devise-main {
  padding: 20px;
}

/* 外側：中央寄せ */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px;
  width: 100%;
  box-sizing: border-box;
}

/* カード */
.auth-card {
  width: min(92vw, 520px);
  background: var(--card-bg);
  padding: 28px 20px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

/* タイトル */
.auth-title {
  font-size: var(--page-title-size);
  font-weight: var(--page-title-weight);
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-title-color);
}

/* フォームのパーツ */
.auth-card .field {
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #555;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: var(--input-radius);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  box-sizing: border-box;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  background: #fff;
  box-shadow: var(--input-focus-shadow);
}

/* ボタン */
.auth-button {
  width: 100%;
  border: none;
  padding: 12px 12px;
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.auth-button:hover {
  opacity: 0.9;
}

.auth-card .actions {
  margin-top: 16px;
}

/* links */
.auth-card a {
  color: var(--brand);
  font-size: 13px;
}

/* メモの小さい文字 */
.field-note {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 6px;
}

/* remember_me */
.field-remember {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.auth-links__text {
  margin: 0 0 8px;
  font-size: 14px;
  color: #64748b;
}

.auth-links__signup {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-weak);
  border: 1px solid rgba(17, 123, 191, 0.2);
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-links__signup:hover {
  background: #e0f0fa;
  border-color: rgba(17, 123, 191, 0.3);
}

.auth-links a {
  display: inline-block;
  margin: 4px 0;
}

/* エラーメッセージ */
.error_explanation {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--input-radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.error_explanation h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #b91c1c;
}

.error_explanation ul {
  margin: 0;
  padding-left: 18px;
}

.error_explanation li {
  font-size: 13px;
  color: #b91c1c;
}

/* SNSログイン セパレーター */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.auth-divider__text {
  padding: 0 12px;
  font-size: 13px;
  color: #9ca3af;
}

/* SNSボタン */
.auth-sns-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-sns-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  border: 1px solid var(--input-border);
  cursor: pointer;
  transition: background 0.2s;
}

.auth-sns-button--google {
  background: #fff;
  color: #3c4043;
}

.auth-sns-button--google:hover {
  background: #f8f9fa;
}

.auth-sns-icon {
  flex-shrink: 0;
}

/* スマホ微調整 */
@media (max-width: 480px) {
  .auth-wrapper {
    padding: 24px 12px;
  }

  .auth-card {
    padding: 24px 16px;
  }

  .auth-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
}
/* マイページ全体 */
.account-page {
  width: min(92vw, 640px);
  margin: 24px auto;
  padding: 24px 16px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}


.account-page__title {
  font-size: var(--page-title-size);
  font-weight: var(--page-title-weight);
  color: var(--page-title-color);
  text-align: center;
  margin-bottom: 12px;
}

.account-page__user {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin-bottom: 24px;
}

.account-page__user-name {
  color: var(--brand);
}

.account-page__sns-info {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  background: #f0f7fc;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 8px;
  display: inline-block;
  width: 100%;
}

/* メニューリスト */
.account-menu {
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.account-menu__item {
  margin-bottom: 12px;
}

/* メニューリンク */
.account-menu__link {
  display: block;
  width: 100%;
  max-width: 420px;
  text-align: center;

  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f5fbff;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 auto;

  position: relative;
  padding-left: 20px;

  box-shadow:
    0 4px 10px rgba(17, 123, 191, 0.08),
    0 0 0 1px rgba(17, 123, 191, 0.03);
  transition:
    background 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}


/* ホバー・フォーカス時の動き */
.account-menu__link:hover,
.account-menu__link:focus {
  background: #e3f2ff;
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(17, 123, 191, 0.12),
    0 0 0 1px rgba(17, 123, 191, 0.06);
}

/* 危険アクション（削除）だけ色を変える */
.account-menu__item--danger .account-menu__link {
  background: #fff5f5;
  color: #d9534f;
  box-shadow:
    0 4px 10px rgba(217, 83, 79, 0.06),
    0 0 0 1px rgba(217, 83, 79, 0.04);
}

.account-menu__link--danger:hover,
.account-menu__link--danger:focus {
  background: #ffe4e4;
  box-shadow:
    0 8px 18px rgba(217, 83, 79, 0.14),
    0 0 0 1px rgba(217, 83, 79, 0.08);
}

/* 小さい画面でも余白を保つ */
@media (max-width: 480px) {
  .account-page {
    margin: 24px 12px 56px;
    padding: 20px 16px 24px;
  }

  .account-page__title {
    font-size: 20px;
  }

  .account-menu__link {
    font-size: 14px;
    padding: 12px 14px;
  }
}
/* メールアドレス変更ページ */
.account-form-page {
  max-width: 480px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

.account-form-page__title {
  font-size: var(--page-title-size);
  font-weight: var(--page-title-weight);
  color: var(--page-title-color);
  text-align: center;
  margin-bottom: 16px;
}

/* カード部分 */
.account-form-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 24px 20px 28px;
  box-shadow: var(--card-shadow);
}

/* フィールド */
.account-form__field {
  margin-bottom: 18px;
}

.account-form__label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

.account-form__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--input-radius);
  border: 1px solid var(--input-border);
  font-size: 14px;
  outline: none;
  background: var(--input-bg);
  min-height: 44px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.account-form__input:focus {
  border-color: var(--input-focus-border);
  background: #ffffff;
  box-shadow: var(--input-focus-shadow);
}

/* 説明テキスト */
.account-form__help-text {
  margin-top: 6px;
  font-size: 12px;
  color: #777;
}

/* ボタン */
.account-form__actions {
  margin-top: 24px;
  text-align: center;
}

.account-form__submit {
  display: inline-block;
  min-width: 220px;
  padding: 10px 18px;
  border-radius: var(--btn-radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 123, 191, 0.3);
  transition:
    transform 0.1s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease;
}

.account-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 123, 191, 0.35);
  opacity: 0.95;
}

.account-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(17, 123, 191, 0.25);
}

/* 戻るリンク */
.account-form-page__back {
  margin-top: 16px;
  text-align: center;
}

.account-form__back-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
}

.account-form__back-link:hover {
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 480px) {
  .account-form-page {
    margin: 28px auto 60px;
  }

  .account-form-card {
    padding: 20px 16px 24px;
  }

  .account-form-page__title {
    font-size: 20px;
  }
}
/* アカウント削除用のカード強調 */
.account-form-card--danger {
  border: 1px solid #f5c2c0;
  background: #fff7f7;
}

/* 説明文・注意リスト */
.account-delete__text {
  font-size: 13px;
  color: #844;
  line-height: 1.6;
  margin-bottom: 12px;
}

.account-delete__list {
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 13px;
  color: #844;
}

/* 危険アクションボタン */
.account-form__submit--danger {
  background: linear-gradient(135deg, #d9534f, #f37b72);
  box-shadow: 0 8px 18px rgba(217, 83, 79, 0.35);
}

.account-form__submit--danger:hover {
  box-shadow: 0 10px 22px rgba(217, 83, 79, 0.4);
  opacity: 0.97;
}

.account-form__submit--danger:active {
  box-shadow: 0 4px 10px rgba(217, 83, 79, 0.3);
}

/* Habits Index */

/* ページ全体 */
.habits-page {
  min-height: calc(100vh - var(--bottom-nav-height, 0px));
  padding: var(--page-padding);
  background: var(--bg);
}

.habits-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

/* タイトル */
.habits-hero {
  background: linear-gradient(
    135deg,
    rgba(17, 123, 191, 0.18),
    rgba(106, 172, 176, 0.14)
  );
  border: 1px solid rgba(17, 123, 191, 0.18);
  border-radius: var(--card-radius);
  padding: 14px 14px 12px;
  box-shadow: var(--card-shadow);
}

.habits-hero__title {
  margin: 0;
  font-size: var(--page-title-size);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
}

.habits-hero__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* 共通カード */
.haby-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}

/* 一覧グリッド */
.habits-list {
  display: grid;
  gap: 12px;
}

/* 習慣カード */
.habit-item {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.habit-item:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 123, 191, 0.22);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

.habit-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.habit-item__name {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  color: var(--text);
}

.habit-item__name a {
  color: inherit;
  text-decoration: none;
}

.habit-item__name a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* 右側のバッジ（カテゴリなど） */
.habit-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  background: rgba(88, 157, 200, 0.10);
  border: 1px solid rgba(17, 123, 191, 0.18);
}

.habit-badge-danger {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgb(255, 255, 255);
  background: rgb(241, 104, 104);
  border: 1px solid rgb(251, 93, 93);
}

/* アクション（編集/削除など） */
.habit-item__actions {
  margin-top: 12px;
  display: flex;
  gap: 15px;
}


/* 0件のとき */
.habits-empty {
  text-align: center;
  padding: 22px 14px;
  border-radius: var(--card-radius);
  border: 1px dashed rgba(17, 123, 191, 0.25);
  background: rgba(17, 123, 191, 0.06);
  color: var(--text-muted);
}

.habits-empty__title {
  margin: 0;
  font-weight: 900;
  color: var(--text);
}

.habits-empty__text {
  margin: 6px 0 0;
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .habits-page {
    padding: 14px 10px 24px;
  }

  .habits-hero {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  .habits-hero__title {
    font-size: 16px;
  }

  .habit-item {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .habit-item__head {
    flex-wrap: wrap;
    gap: 6px;
  }

  .habit-item__name {
    font-size: 14px;
  }

  .habit-badge,
  .habit-badge-danger {
    padding: 5px 8px;
    font-size: 11px;
  }

  .habit-item__actions {
    gap: 10px;
  }
}
/* Habit Form */

/* 画面全体 */
.habit-form-page {
  min-height: calc(100vh - var(--bottom-nav-height, 0px));
  padding: var(--page-padding);
  background: var(--bg);
}

.habit-form-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

/* 見出しカード */
.habit-form-hero {
  background: linear-gradient(
    135deg,
    rgba(17, 123, 191, 0.18),
    rgba(106, 172, 176, 0.14)
  );
  border: 1px solid rgba(17, 123, 191, 0.18);
  border-radius: var(--card-radius);
  padding: 14px 14px 12px;
  box-shadow: var(--card-shadow);
}

.habit-form-hero__title {
  margin: 0;
  font-size: var(--page-title-size);
  font-weight: 800;
  color: var(--text);
}

.habit-form-hero__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* フォームカード */
.habit-form-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}

/* フォーム */
.habit-form {
  position: relative;
  display: grid;
  gap: 14px;
}

.habit-form__group {
  display: grid;
  gap: 6px;
}

.habit-form__label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
}

.habit-form__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* 入力 */
.habit-form input[type="text"],
.habit-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--input-radius);
  border: 1px solid var(--input-border);
  outline: none;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.habit-form textarea {
  min-height: 120px;
  resize: vertical;
}

.habit-form input[type="text"]:focus,
.habit-form textarea:focus {
  border-color: var(--input-focus-border);
  background: #fff;
  box-shadow: var(--input-focus-shadow);
}

/* エラー表示 */
.field_with_errors input,
.field_with_errors textarea {
  border-color: rgba(239, 68, 68, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}

.habit-form-errors {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  border-radius: 16px;
  padding: 12px 12px;
  color: var(--text);
}

.habit-form-errors__title {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 13px;
}

.habit-form-errors ul {
  margin: 0;
  padding-left: 18px;
  color: #b91c1c;
  font-size: 13px;
}

/* ボタン行 */
.habit-form__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}


/* 補助リンク */
.habit-form__back {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.habit-form__back:hover {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* 曜日選択UI */
.schedule-days-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.schedule-preset-btn {
  padding: 6px 12px;
  border: 1px solid #d9e6f2;
  border-radius: 20px;
  background: #fff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.schedule-preset-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(17, 123, 191, 0.05);
}

.schedule-days-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.schedule-day-toggle {
  position: relative;
  cursor: pointer;
}

.schedule-day-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.schedule-day-toggle__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #d9e6f2;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.schedule-day-toggle:hover .schedule-day-toggle__label {
  border-color: var(--brand);
  color: var(--brand);
}

.schedule-day-toggle.is-selected .schedule-day-toggle__label,
.schedule-day-toggle input[type="checkbox"]:checked + .schedule-day-toggle__label {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(17, 123, 191, 0.25);
}

/* 土日の色分け */
.schedule-day-toggle[data-day="0"] .schedule-day-toggle__label,
.schedule-day-toggle[data-day="6"] .schedule-day-toggle__label {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.schedule-day-toggle[data-day="0"]:hover .schedule-day-toggle__label,
.schedule-day-toggle[data-day="6"]:hover .schedule-day-toggle__label {
  border-color: #ef4444;
  color: #ef4444;
}

.schedule-day-toggle[data-day="0"].is-selected .schedule-day-toggle__label,
.schedule-day-toggle[data-day="6"].is-selected .schedule-day-toggle__label,
.schedule-day-toggle[data-day="0"] input[type="checkbox"]:checked + .schedule-day-toggle__label,
.schedule-day-toggle[data-day="6"] input[type="checkbox"]:checked + .schedule-day-toggle__label {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .habit-form-page {
    padding: 14px 10px 24px;
  }

  .habit-form-hero {
    padding: 12px 12px 10px;
    border-radius: var(--radius-md);
  }

  .habit-form-hero__title {
    font-size: 16px;
  }

  .habit-form-card {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .schedule-days-presets {
    flex-wrap: wrap;
    gap: 6px;
  }

  .schedule-preset-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .schedule-day-toggle__label {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .schedule-days-buttons {
    gap: 4px;
  }

  .habit-form__actions {
    flex-direction: column;
    gap: 8px;
  }

  .habit-form__actions .haby-btn {
    width: 100%;
    justify-content: center;
  }
}



/* Habit Show  */

/* 画面全体 */
.habit-show-page {
  min-height: calc(100vh - var(--bottom-nav-height, 0px));
  padding: var(--page-padding);
  background: var(--bg);
}

.habit-show-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

/* ヒーロー */
.habit-show-hero {
  background: linear-gradient(135deg, rgba(17, 123, 191, 0.18), rgba(106, 172, 176, 0.14));
  border: 1px solid rgba(17, 123, 191, 0.18);
  border-radius: var(--card-radius);
  padding: 14px 14px 12px;
  box-shadow: var(--card-shadow);
}

.habit-show-hero__titleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.habit-show-hero__title {
  margin: 0;
  font-size: var(--page-title-size);
  font-weight: 800;
  color: var(--text);
}

.habit-show-hero__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* バッジ */
.habit-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand);
  background: rgba(17,123,191,0.10);
  border: 1px solid rgba(17,123,191,0.18);
}

/* カード */
.habit-show-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}

.habit-show-card::before {
  content: "";
  position: absolute;
  inset: -46px auto auto -56px;
  width: 160px;
  height: 100px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17,123,191,0.16), rgba(106,172,176,0.14));
}

.habit-show-card__content {
  position: relative;
  display: grid;
  gap: 10px;
}

.habit-show-card__label {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.habit-show-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
}

/* 何もないとき */
.habit-show-empty {
  text-align: center;
  padding: 22px 14px;
  border-radius: var(--card-radius);
  border: 1px dashed rgba(17, 123, 191, 0.25);
  background: rgba(17, 123, 191, 0.06);
  color: var(--text-muted);
  position: relative;
}


.habit-show-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .habit-show-page {
    padding: 14px 10px 24px;
  }

  .habit-show-hero {
    padding: 12px 12px 10px;
    border-radius: var(--radius-md);
  }

  .habit-show-hero__titleRow {
    flex-wrap: wrap;
    gap: 6px;
  }

  .habit-show-hero__title {
    font-size: 16px;
  }

  .habit-show-card {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .habit-show-card::before {
    width: 120px;
    height: 70px;
    inset: -30px auto auto -40px;
  }

  .habit-show-actions {
    gap: 6px;
  }

}
/* Today  */

.comingsoon {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 28px 16px 44px;
  background: radial-gradient(1200px 700px at 30% 0%, rgba(17, 123, 191, 0.18), transparent 55%),
              radial-gradient(900px 600px at 100% 30%, rgba(106, 172, 176, 0.18), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #fbfdff 60%, #ffffff 100%);
  overflow: hidden;
}

.comingsoon__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* --- blobs --- */
.comingsoon__blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
  transform: translate3d(0,0,0);
  mix-blend-mode: multiply;
}

/* --- card --- */
.comingsoon__card {
  position: relative;
  width: min(560px, 100%);
  padding: 22px 18px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    0 6px 18px rgba(17, 123, 191, 0.08);
}

.comingsoon__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 123, 191, 0.16), rgba(106, 172, 176, 0.14));
  border: 1px solid rgba(17, 123, 191, 0.22);
}

.comingsoon__badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(17, 123, 191, 0.16);
  animation: habyPulse 1.6s ease-in-out infinite;
}

@keyframes habyPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(17, 123, 191, 0.14); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(17, 123, 191, 0.10); }
}

.comingsoon__badge-text {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.75);
}

.comingsoon__title {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 950;
}

.comingsoon__lead {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.comingsoon__meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(14, 74, 213, 0.06);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.comingsoon__meter-bar {
  height: 100%;
  width: 60%;
  border-radius: 999px;
  background: rgba(17, 123, 191, 0.85);
  animation: habyMeter 2.2s ease-in-out infinite;
}

@keyframes habyMeter {
  0%   { transform: translateX(-35%); }
  50%  { transform: translateX(15%); }
  100% { transform: translateX(-35%); }
}

.comingsoon__chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comingsoon__chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.7);
  background: rgba(17, 123, 191, 0.08);
  border: 1px solid rgba(17, 123, 191, 0.16);
}

.comingsoon__actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.comingsoon__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.comingsoon__btn:active {
  transform: translateY(1px) scale(0.99);
}

.comingsoon__btn--primary {
  color: #fff;
  background: linear-gradient(90deg, rgba(17, 123, 191, 1), rgba(106, 172, 176, 1));
  box-shadow: 0 10px 22px rgba(17, 123, 191, 0.18);
}

.comingsoon__btn--primary:hover {
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(17, 123, 191, 0.22);
}

.comingsoon__btn--ghost {
  color: rgba(15, 23, 42, 0.8);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(17, 123, 191, 0.18);
}

.comingsoon__btn--ghost:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.comingsoon__note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.45);
  letter-spacing: 0.14em;
  font-weight: 800;
}

.comingsoon__br { display: none; }

@media (min-width: 520px) {
  .comingsoon__actions { grid-template-columns: 1fr 1fr; }
  .comingsoon__title { font-size: 32px; }
  .comingsoon__br { display: inline; }
}

/* ==========================================
   Today's Habits Page
   ========================================== */

.todays-habits-page {
  min-height: calc(100vh - var(--bottom-nav-height, 0px));
  padding: var(--page-padding);
  background: var(--bg);
}

.todays-habits-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

/* Hero Section */
.todays-habits-hero {
  background: linear-gradient(
    135deg,
    rgba(17, 123, 191, 0.18),
    rgba(106, 172, 176, 0.14)
  );
  border: 1px solid rgba(17, 123, 191, 0.18);
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.todays-habits-hero__title {
  margin: 0;
  font-size: var(--page-title-size);
  font-weight: 800;
  color: var(--text);
}

.todays-habits-hero__date {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Section */
.todays-habits-section {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.todays-habits-section--completed {
  background: rgba(17, 123, 191, 0.02);
}

.todays-habits-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.todays-habits-section__icon {
  display: flex;
  color: var(--text-muted);
}

.todays-habits-section__icon--completed {
  color: var(--brand);
}

.todays-habits-section__count {
  font-weight: 600;
  color: var(--text-muted);
}

/* Habit List */
.todays-habits-list {
  display: grid;
  gap: 10px;
}

/* Habit Item */
.todays-habit-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

.todays-habit-item:hover {
  box-shadow: 0 4px 12px rgba(17, 123, 191, 0.08);
}

.todays-habit-item--completed {
  background: rgba(17, 123, 191, 0.04);
  border-color: rgba(17, 123, 191, 0.18);
}

.todays-habit-item__info {
  flex: 1;
  min-width: 0;
}

.todays-habit-item__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todays-habit-item--completed .todays-habit-item__name {
  color: var(--text-muted);
}

.todays-habit-item__schedule {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Habit Button */
.todays-habit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.todays-habit-btn:not(.todays-habit-btn--completed) {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(17, 123, 191, 0.25);
}

.todays-habit-btn:not(.todays-habit-btn--completed):hover {
  background: #0e6aa3;
  box-shadow: 0 6px 16px rgba(17, 123, 191, 0.30);
  transform: translateY(-1px);
}

.todays-habit-btn:not(.todays-habit-btn--completed):active {
  transform: translateY(0);
}

.todays-habit-btn--completed {
  background: rgba(17, 123, 191, 0.08);
  color: var(--brand);
  border: 1px solid rgba(17, 123, 191, 0.18);
}

.todays-habit-btn--completed:hover {
  background: rgba(17, 123, 191, 0.12);
}

/* Complete Message */
.todays-habits-complete-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: linear-gradient(
    135deg,
    rgba(17, 123, 191, 0.08),
    rgba(106, 172, 176, 0.06)
  );
  border: 1px solid rgba(17, 123, 191, 0.15);
  border-radius: var(--card-radius);
  text-align: center;
}

.todays-habits-complete-message__icon {
  color: var(--brand);
  margin-bottom: 12px;
}

.todays-habits-complete-message__text {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Empty State */
.todays-habits-empty {
  text-align: center;
  padding: 32px 16px;
  background: rgba(17, 123, 191, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

.todays-habits-empty__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.todays-habits-empty__text {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.todays-habits-empty__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}


/* ── Responsive: Today's Habits ── */
@media (max-width: 480px) {
  .todays-habits-page {
    padding: 14px 10px 24px;
  }

  .todays-habits-hero {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .todays-habits-hero__title {
    font-size: 18px;
  }

  .todays-habits-section {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .todays-habit-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    gap: 8px;
  }

  .todays-habit-item__name {
    font-size: 13px;
  }

  .todays-habit-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .todays-habits-complete-message {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .todays-habits-empty {
    padding: 24px 12px;
  }
}
/* 静的ページ（プライバシーポリシー・利用規約・お問い合わせ）共通 */
.static-page {

  min-height: calc(100vh - var(--bottom-nav-height, 0px));
  padding: 20px 16px 40px;
  background: #ffffff;
}

.static-page__container {
  max-width: 680px;
  margin: 0 auto;
}

/* ヒーローセクション（タイトル） */
.static-page__hero {
  background: linear-gradient(135deg, #117BBF 0%, #1a8fd4 100%);
  border-radius: 16px;
  padding: 28px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(17, 123, 191, 0.2);
}

.static-page__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.static-page__updated {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: #ffffff;
}

/* コンテンツカード */
.static-page__content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* セクション */
.static-page__section {
  margin-bottom: 28px;
}

.static-page__section:last-child {
  margin-bottom: 0;
}

.static-page__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.static-page__section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: var(--brand);
  border-radius: 2px;
}

.static-page__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 12px;
}

.static-page__text:last-child {
  margin-bottom: 0;
}

/* リスト */
.static-page__list {
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.static-page__list li {
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  padding-left: 22px;
  margin-bottom: 10px;
}

.static-page__list li:last-child {
  margin-bottom: 0;
}

.static-page__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.static-page__list li strong {
  color: var(--text);
  font-weight: 600;
}

/* リンク */
.static-page__content a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.static-page__content a:hover {
  color: #0e6aa5;
  text-decoration: underline;
}

/* ヒーローサブタイトル */
.static-page__hero-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ステップ番号バッジ */
.static-page__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .static-page {
    padding: 16px 14px 80px;
  }

  .static-page__hero {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .static-page__title {
    font-size: 20px;
  }

  .static-page__content {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .static-page__section-title {
    font-size: 15px;

  }

  .static-page__text,
  .static-page__list li {
    font-size: 13px;
  }
}

/* お問い合わせページタイトル */
.contact-page__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
  margin: 0 0 8px;
}

.contact-page__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 20px;
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 640px;
}

.contact-form__field {
  margin-bottom: 18px;
}

.contact-form__label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.contact-form__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0e3f3;
  font-size: 14px;
  outline: none;
  background: #f8fcff;
  min-height: 44px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form__input:focus {
  border-color: #117bbf;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(17, 123, 191, 0.18);
}

.contact-form__input::placeholder {
  color: #aab;
  font-size: 13px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

.contact-form__errors {
  padding: 14px 16px;
  border: 1px solid #f5c2c0;
  background: #fef2f2;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #844;
  line-height: 1.6;
}

.contact-form__errors ul {
  margin: 0;
  padding-left: 18px;
}

.contact-form__actions {
  margin-top: 24px;
  text-align: center;
}

.contact-form__submit {
  display: inline-block;
  min-width: 220px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  background: #117bbf;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 123, 191, 0.3);
  transition:
    transform 0.1s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease;
}

.contact-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 123, 191, 0.35);
  opacity: 0.95;
}

.contact-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(17, 123, 191, 0.25);
}

.contact-form__honeypot {
  display: none;
}

/* フィールドエラー時 */
.contact-form .field_with_errors .contact-form__input {
  border-color: #f5bcbc;
  background: #fef2f2;
}

.contact-form .field_with_errors .contact-form__input:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}
