/* ============================================================
   soukyu.com「デザイン書道オンライン教室 会員さんの感想」
   online-lesson.html と同じゴールドの学び系トーン。
   感想は約3行のプレビュー＋「続きを読む」で全文表示する
   native <details> ベースのアコーディオン方式。
   サイト共通のヘッダー・フッターは css/common.css をそのまま使用。
   ============================================================ */
:root {
  --gold: #c8a96e;
  --gold-light: #e8d5a8;
  --gold-dark: #a9884f;
  --lesson-cream: #f8f6f2;
  --accent-red: #cf3a2b;
  --lesson-text: #333;
  --lesson-text-light: #666;
}

body {
  font-family: 'Noto Serif JP', serif;
  background: #fff;
  color: var(--lesson-text);
  overflow-x: hidden;
}

/* 教室ヘッダーの見た目は common.css に一本化した（ページごとに複製しない） */

/* ---------- スクロールで浮かび上がる演出 ---------- */
html.rv-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal, .reveal.visible, html.rv-reveal-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.rv-reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- ヒーロー ---------- */
.review-hero-shell { background: var(--lesson-cream); }
.review-hero-shell .page-breadcrumb-wrap { padding-top: 24px; padding-bottom: 0; }
.review-hero-shell .breadcrumb { padding-top: 0; margin-bottom: 0; }
.rv-hero { background: var(--lesson-cream); padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 24px) clamp(40px, 5vw, 56px); text-align: center; }
.rv-hero-inner { max-width: 760px; margin: 0 auto; }
.rv-kicker {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}
.rv-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.55;
  color: #222;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.rv-gold-line { width: 40px; height: 2px; background: var(--gold); margin: 0 auto 20px; }
.rv-hero-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.05;
  color: #555;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- 社会的証明の一行 ---------- */
.rv-proof {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 22px 0 0;
}

/* ---------- 感想カードのグリッド ---------- */
.rv-section { padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 24px); }
.rv-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}
.rv-card {
  background: #fff;
  border: 1px solid var(--gold-light);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(200, 169, 110, 0.10);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.rv-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 26px rgba(169, 136, 79, 0.16);
}

/* details / summary */
/* #mn などのアンカーで飛んできたとき、追従ヘッダーの下に隠れないようにする */
.rv-item { width: 100%; scroll-margin-top: 100px; }
.rv-summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: center;
  position: relative;
  padding: 26px 26px 22px;
}
.rv-summary::-webkit-details-marker { display: none; }
.rv-headline {
  grid-column: 1 / -1;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.08rem, 1.7vw, 1.2rem);
  font-weight: 700;
  color: #222;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
/* 見出しの下：写真・名前・期生の横並び */
.rv-meta {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rv-photo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: var(--lesson-cream);
}
.rv-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rv-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #333;
}
.rv-term {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  background: var(--lesson-cream);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  padding: 4px 12px;
}
.rv-more {
  grid-column: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}
.rv-more::after {
  content: "\25bc";
  font-size: 0.62rem;
  transition: transform 0.3s ease;
}
.rv-item.is-open .rv-more::after { transform: rotate(180deg); }
/* 開いているときはラベルを「閉じる」に差し替え */
.rv-item.is-open .rv-more .rv-more-text { display: none; }
.rv-more .rv-more-text-close { display: none; }
.rv-item.is-open .rv-more .rv-more-text-close { display: inline; }

/* 感想本文：閉じた状態でも約3行を見せ、下端をフェードアウト */
.rv-a {
  --rv-preview-height: 126px;
  position: relative;
  max-height: var(--rv-preview-height);
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv-item:not(.is-open) .rv-a { cursor: pointer; }
.rv-a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}
.rv-a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
  opacity: 1;
  transition: opacity 0.25s ease;
}
.rv-item.is-open .rv-a::after { opacity: 0; }
.rv-a-in {
  min-height: 0;
}
.rv-body {
  border-top: 1px solid var(--gold-light);
  padding: 20px 26px 26px;
}
.rv-body p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16.5px;
  line-height: 2;
  color: #4a4a46;
  margin-bottom: 14px;
}
.rv-body p:last-child { margin-bottom: 0; }
.rv-work-placeholder {
  min-height: 150px;
  margin: 22px 0;
  padding: 24px;
  border: 1.5px dashed #c8a96e;
  border-radius: 10px;
  background: #fbf8f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.rv-work-placeholder strong {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.98rem;
  color: #5f4825;
}
.rv-work-placeholder span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #756b5b;
}
.rv-work-image {
  margin: 22px 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.rv-body ul { list-style: none; margin: 10px 0 14px; padding: 0; }
.rv-body ul li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #4a4a46;
  padding-left: 16px;
  position: relative;
}
.rv-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 2px;
  background: var(--gold);
}
/* 先頭の飾り線はリスト項目のマーカーと見分けが付かないため付けない */
.rv-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 22px 0 8px;
}
.rv-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--gold-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.rv-link {
  display: inline-flex;
  align-items: center;
}
.rv-link-arrow {
  color: var(--gold);
  margin-right: 6px;
  font-weight: 700;
}
.rv-links a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.rv-links a:hover { color: var(--accent-red); text-decoration-color: var(--accent-red); }
.rv-link-note {
  flex-basis: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  color: #999;
  margin-top: -2px;
}

/* ---------- CTA ---------- */
.rv-cta { background: var(--lesson-cream); padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 24px); text-align: center; }
.rv-cta-inner { max-width: 620px; margin: 0 auto; }
.rv-cta h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: #222;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.rv-cta p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 2;
  margin-bottom: 28px;
}
.rv-btn-primary {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(207, 58, 43, 0.3);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rv-btn-primary:hover { background: #a52f22; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(207, 58, 43, 0.4); }

.footer-sub a:hover { color: #fff; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 760px) {
  .rv-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .rv-summary { grid-template-columns: minmax(0, 1fr); }
  .rv-headline, .rv-meta, .rv-more { grid-column: 1; }
  .rv-more { justify-self: start; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-card, .rv-a, .rv-a::after, .rv-more::after { transition: none; }
}
