/* 仁サロン Phase 1 デザインシステム
   中立デザイン。ブランド確定後は --accent と /images の差し替えで反映できる。 */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #1f2329;
  --ink-soft: #646a73;
  --ink-faint: #a7adb3;
  --line: #e6e8eb;
  /* 暫定色。「リハビリテーション／自立から共生」に合う落ち着いた青緑。
     白文字とのコントラスト比 6.90:1（WCAG AA 合格）。ブランドカラー確定後はここだけ差し替える。 */
  --accent: #3d6156;
  --accent-soft: #eef3f1;
  --line-green: #06c755;      /* LINE ブランド色 */
  --radius-sm: 8px;
  --radius: 12px;
  --header-h: 60px;
  --maxw: 1120px;
  --font: "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: .5px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .03em; }
.header-spacer { flex: 1; }
.btn-line {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--line-green); color: #fff; border: none;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
}
.btn-line:hover { filter: brightness(.96); }
.btn-line .line-icon { font-size: 15px; }
.hamburger { display: none; flex-direction: column; gap: 4px; border: none; background: none; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== 3カラムレイアウト ===== */
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 28px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px 20px 64px;
  align-items: start;
}

/* ===== 左ナビ ===== */
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.nav-list li a, .nav-list li span.locked {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; transition: background .15s;
}
.nav-list li a:hover { background: var(--accent-soft); }
.nav-list li a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav-list .nav-icon { width: 20px; text-align: center; font-size: 16px; }
.nav-divider { margin: 14px 4px 8px; font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.nav-list li span.locked { color: var(--ink-faint); cursor: not-allowed; }
.nav-list li span.locked .lock { margin-left: auto; font-size: 12px; }

/* ===== 中央 ===== */
.col-center { min-width: 0; }

/* ヒーロー */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--accent); color: #fff;
  padding: 56px 32px; margin-bottom: 28px;
  background-size: cover; background-position: center;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)); }
.hero.has-image { color: #fff; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 10px; font-size: 34px; font-weight: 700; letter-spacing: .04em; }
.hero p { margin: 0; font-size: 16px; opacity: .95; max-width: 36em; }

/* セクション */
.section { background: var(--surface); border: .5px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; }
.section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.section .body { font-size: 15px; color: #353b41; }
/* 本文は段落ごとに <p>。段落間を1行分あけて、長文でも切れ目が見えるようにする */
.section .body p { margin: 0 0 1.1em; }
.section .body p:last-child { margin-bottom: 0; }
.section-image { width: 100%; border-radius: var(--radius-sm); margin-bottom: 14px; display: block; }

/* 会員限定ティーザー */
.teaser {
  background: linear-gradient(160deg, var(--accent-soft), #fff);
  border: .5px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; margin-top: 8px;
}
.teaser .lock-badge { font-size: 32px; }
.teaser h2 { margin: 10px 0 6px; font-size: 19px; }
.teaser p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }

/* ===== 右 aside ===== */
.col-right { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--surface); border: .5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.aside-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.news-list li { padding: 11px 0; border-bottom: .5px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list .n-date { font-size: 11px; color: var(--accent); font-weight: 700; }
.news-list .n-title { font-size: 14px; font-weight: 500; }
.news-list .n-body { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.news-more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 700; }
.login-card { background: var(--surface); border: .5px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.login-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }

/* お知らせ一覧（/announcements） */
.ann-item { background: var(--surface); border: .5px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.ann-item .a-date { font-size: 12px; color: var(--accent); font-weight: 700; }
.ann-item .a-title { margin: 4px 0 8px; font-size: 18px; font-weight: 700; }
.ann-item .a-body { font-size: 14px; color: #353b41; }
.ann-item .a-body p { margin: 0 0 1em; }
.ann-item .a-body p:last-child { margin-bottom: 0; }

/* ===== ボタン ===== */
.btn { display: inline-flex; align-items: center; gap: 7px; border: .5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(.95); }
.btn-block { width: 100%; justify-content: center; }

/* ===== フッター ===== */
.site-footer { border-top: .5px solid var(--line); background: var(--surface); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.footer-inner a:hover { color: var(--accent); }

/* ===== ドロワー背景 ===== */
.nav-backdrop { display: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 1023px) {
  /* タブレット：2カラム。右asideは中央下に全幅 */
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  /* 横並びにしたとき、カードが最も高いものに引き伸ばされて余白が間延びしないようにする */
  .col-right { position: static; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .col-right > * { flex: 1; min-width: 240px; }
}
@media (max-width: 639px) {
  /* スマホ：1カラム。左ナビはドロワー */
  .layout { grid-template-columns: 1fr; padding: 16px 14px 48px; }
  .hamburger { display: flex; }
  .btn-line .btn-line-label { display: none; }
  .side-nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: 260px; background: var(--bg); padding: 20px 16px;
    transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
  }
  .nav--open .side-nav { transform: translateX(0); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.35); }
  .nav--open .nav-backdrop { display: block; }
  /* 縦積みでは幅いっぱいに戻す（タブレット用の flex-start が効いたままだと
     カードが内容幅まで縮んでしまう） */
  .col-right { flex-direction: column; align-items: stretch; }
  .col-right > * { min-width: 0; }
  .hero { padding: 40px 22px; }
  .hero h1 { font-size: 27px; }
}
