/* 極楽ヨガ 公式ホームページ 共通スタイル
   色を変えたいときは、下の :root の値だけ直せば全ページに反映されます。 */
:root {
  --bg: #fbf8f1;
  --bg-soft: #f1f6f3;
  --card: #ffffff;
  --text: #33423f;
  --text-soft: #5b6b67;
  --teal: #2f7773;
  --teal-dark: #235c59;
  --teal-light: #e1f0ed;
  --peach: #f6d9c6;
  --line: #dfe7e3;
  --todo: #fff1a8;
  --radius: 16px;
  --sidebar-w: 270px;
  --shadow: 0 6px 20px rgba(47, 119, 115, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: auto-phrase; /* 対応ブラウザでは、文節の区切りで改行されます */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
p { margin: 0 0 1.1em; }
h1, h2, h3 { line-height: 1.5; margin: 0; }
ul { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }

/* ---------- レイアウト ---------- */
.layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 28px 22px 24px;
  overflow-y: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.brand { text-decoration: none; display: block; margin-bottom: 26px; }
.brand-logo { max-width: 180px; }
.brand-text {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.brand-sub { display: block; font-size: 12.5px; color: var(--text-soft); letter-spacing: 0.06em; margin-top: 6px; line-height: 1.5; }

.nav { list-style: none; padding: 0; margin: 0; }
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 11px 14px;
  margin-bottom: 4px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
}
.nav a:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav a[aria-current="page"] {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}
.sidebar-foot { margin-top: auto; padding-top: 24px; font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }

.main { margin-left: var(--sidebar-w); }
.content { max-width: 920px; margin: 0 auto; padding: 56px 36px 40px; }

/* スマホ用の上部バー */
.topbar { display: none; }

/* ---------- ヒーロー（トップ） ---------- */
.hero { position: relative; background: var(--bg); }
.hero img { width: 100%; aspect-ratio: 1600 / 819; object-fit: cover; }
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  right: 4%;
  transform: translateY(-50%);
  color: #2e403c;
}
.hero-eyebrow { font-size: clamp(13px, 1.3vw, 16px); letter-spacing: 0.1em; color: var(--teal-dark); margin-bottom: 0.8em; }
.hero h1 { margin: 0 0 0.6em; }
.hero-brand { display: block; font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: 0.16em; color: var(--teal-dark); line-height: 1.2; }
.hero-catch { display: block; font-size: clamp(18px, 2.3vw, 31px); font-weight: 700; margin-top: 0.5em; line-height: 1.55; }
.hero-sub { font-size: clamp(13px, 1.35vw, 17px); line-height: 1.9; margin: 0; color: #3f524e; }

/* ---------- 見出し・本文パーツ ---------- */
.page-title {
  font-size: 30px;
  color: var(--teal-dark);
  margin-bottom: 0.9em;
  padding-bottom: 0.5em;
  position: relative;
}
.page-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 72px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--peach));
}
.section { margin-top: 64px; }
.section:first-child { margin-top: 0; }
.section h2 {
  font-size: 25px;
  color: var(--teal-dark);
  margin-bottom: 0.8em;
}
.section h2 small { display: block; font-size: 13px; letter-spacing: 0.14em; color: var(--text-soft); font-weight: 400; margin-bottom: 4px; }
.section h3 { font-size: 19px; color: var(--teal-dark); margin: 1.6em 0 0.5em; }
.lead { font-size: 18px; }
.soft-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.page-banner {
  margin: -56px -36px 40px;
  overflow: hidden;
}
.page-banner img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }

/* ボタン */
.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(47, 119, 115, 0.22);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal); box-shadow: none; }
.btn-outline:hover { background: var(--teal-light); color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feature-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-light); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 40%; }
.feature-ph {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 700; color: var(--teal); letter-spacing: 0;
  background: linear-gradient(135deg, var(--teal-light), var(--peach));
}
.feature-body { padding: 18px 20px 22px; }
.feature-body h3 { font-size: 18px; margin: 0 0 0.5em; color: var(--teal-dark); }
.feature-body p { font-size: 15.5px; line-height: 1.85; margin: 0; }

/* 入口カード */
.entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.entry {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px 26px;
  display: flex; flex-direction: column;
  border-top: 6px solid var(--teal);
}
.entry:nth-child(2) { border-top-color: #e9a97f; }
.entry:nth-child(3) { border-top-color: #8fb8d8; }
.entry:nth-child(4) { border-top-color: #b6a1d3; }
.entry:nth-child(5) { border-top-color: #e8c76b; }
.entry-for { font-size: 14px; color: var(--text-soft); margin-bottom: 4px; }
.entry h3 { font-size: 21px; margin: 0 0 0.5em; color: var(--teal-dark); }
.entry p { font-size: 15.5px; line-height: 1.85; flex: 1; }
.entry .btn { align-self: flex-start; padding: 11px 24px; font-size: 15px; }

/* 新着・お知らせ */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: flex; gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); margin: 0; line-height: 1.7; }
.news-date { flex: 0 0 8.5em; color: var(--text-soft); font-size: 15px; }

/* 本・講座カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card-cover {
  aspect-ratio: 2 / 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px;
  font-size: 14px; line-height: 1.6;
  color: #55655f;
  background: var(--teal-light);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover.is-wide { aspect-ratio: 16 / 9; }
.cover-green { background: #dcefd9; }
.cover-blue { background: #d9e8f5; }
.cover-peach { background: #f9e1d0; }
.cover-purple { background: #e6def2; }
.cover-cream { background: #f7efc8; }
.cover-pink { background: #f5dce6; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 16.5px; margin: 0 0 0.4em; line-height: 1.55; }
.card-body p { font-size: 14.5px; line-height: 1.75; flex: 1; }
.card-body .btn { padding: 9px 18px; font-size: 14.5px; align-self: flex-start; }
.card.is-course { max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 4px 14px; background: var(--teal-light); border-radius: 999px; font-size: 14.5px; color: var(--teal-dark); }

/* 仮の文字（差し替え箇所） */
.todo { background: var(--todo); padding: 0 4px; border-radius: 4px; }

/* 注意書き */
.notice {
  margin-top: 56px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-soft);
}
.notice strong { color: var(--text); }

.site-footer { padding: 28px 24px 36px; text-align: center; font-size: 13.5px; color: var(--text-soft); border-top: 1px solid var(--line); background: var(--card); }
.site-footer a { color: var(--text-soft); }

.dl { margin: 0 0 1.2em; }
.dl dt { font-weight: 700; color: var(--teal-dark); margin-top: 1em; }
.dl dd { margin: 0.2em 0 0; }

/* ---------- タブレット ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 240px 1fr; }
  .feature-img { aspect-ratio: auto; min-height: 150px; }
}

/* ---------- スマホ・小さい画面 ---------- */
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 60;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }
  .topbar .brand { margin: 0; }
  .topbar .brand-text { font-size: 22px; }
  .topbar .brand-sub { display: none; }
  .menu-btn {
    width: 68px; height: 52px;
    border: 2px solid var(--teal); border-radius: 12px;
    background: #fff; color: var(--teal-dark);
    font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    line-height: 1; padding: 0;
  }
  .menu-label { display: block; }
  .menu-btn .bars { width: 22px; height: 14px; position: relative; }
  .menu-btn .bars span { position: absolute; left: 0; right: 0; height: 2.5px; background: var(--teal-dark); border-radius: 2px; transition: transform 0.25s, opacity 0.2s, top 0.25s; }
  .menu-btn .bars span:nth-child(1) { top: 0; }
  .menu-btn .bars span:nth-child(2) { top: 6px; }
  .menu-btn .bars span:nth-child(3) { top: 12px; }
  .menu-btn[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .sidebar {
    top: 73px; bottom: 0; left: 0; right: 0; width: auto;
    border-right: none;
    padding: 18px 16px 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .sidebar.is-open { transform: none; opacity: 1; visibility: visible; }
  .sidebar > .brand { display: none; }
  .nav a { font-size: 18px; padding: 15px 16px; }
  .sidebar-foot { margin-top: 24px; }
  body.menu-open { overflow: hidden; }

  .main { margin-left: 0; }
  .content { padding: 36px 20px 28px; }
  .page-banner { margin: -36px -20px 28px; }
  .page-banner img { aspect-ratio: 16 / 8; }

  /* ヒーロー：画像の下に文字を出す */
  .hero-text { position: static; transform: none; padding: 28px 22px 30px; background: var(--bg); color: var(--text); }
  .hero-eyebrow { font-size: 14px; }
  .hero-brand { font-size: 44px; }
  .hero-catch { font-size: 22px; }
  .hero-sub { font-size: 16px; }
  .hero img { aspect-ratio: 16 / 10; object-position: 22% 50%; }

  .page-title { font-size: 25px; }
  .section { margin-top: 48px; }
  .section h2 { font-size: 22px; }
  .entries { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { aspect-ratio: 16 / 10; min-height: 0; }
  .news-list li { flex-direction: column; gap: 2px; }
  .news-date { flex: none; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 12px 16px; }
  .card-body h3 { font-size: 15px; }
  .btn { padding: 14px 26px; }
}

@media (max-width: 420px) {
  .hero-brand { font-size: 38px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- ロゴ画像 ---------- */
.brand-logo { width: 190px; max-width: 100%; height: auto; display: block; margin: 0 auto 10px; }
.brand-sub { text-align: center; }
.brand-logo-h { height: 38px; width: auto; display: block; }
@media (max-width: 900px) {
  .topbar .brand-logo-h { height: 34px; }
}

/* ヒーローの「極楽ヨガ」をロゴと同じ明朝系の書体にそろえる */
.hero-brand { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "BIZ UDPMincho", serif; color: #001c46; font-weight: 600; }

/* ---------- 本・講座・プロフィールの追加スタイル ---------- */
.card-tag { display: inline-block; align-self: flex-start; margin-bottom: 6px; padding: 2px 10px; font-size: 12.5px; color: var(--teal-dark); background: var(--teal-light); border-radius: 999px; }
.card-cover { padding: 0; }
.card-cover img { display: block; }
.cards.course-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card.is-course { max-width: none; }
.small { font-size: 14px; color: var(--text-soft); }
.profile { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 1em; }
.profile-photo { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.profile-text p:first-child { margin-top: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.thumb { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.thumb img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  .profile { flex-direction: column; align-items: center; text-align: left; }
  .profile-photo { width: 120px; height: 120px; }
  .cards.course-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: 1fr; }
}
.card-cover.is-book { aspect-ratio: 5 / 8; }
.card-cover.is-book img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .cards:not(.course-grid) { grid-template-columns: 1fr; gap: 16px; }
  .cards:not(.course-grid) .card { flex-direction: row; }
  .cards:not(.course-grid) .card-cover.is-book { flex: 0 0 36%; width: 36%; aspect-ratio: 5 / 8; align-self: flex-start; }
}
@media (max-width: 600px) {
  .page-banner img { aspect-ratio: 16 / 10; }
}
