/* ===== Topic Concern v2 ===== */

/* --- Body padding for sticky CTA --- */
body.cn-v2-page {
  padding-bottom: 80px;
}

/* --- Site header: slide up on scroll --- */
body.cn-v2-page header {
  transition: transform 0.3s ease;
}
body.cn-v2-page header.cn-scrolled {
  transform: translateY(-100%);
}

/* ===== Scroll Nav ===== */
.cn-scroll-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(74, 60, 49, 0.08);
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.cn-scroll-nav.is-visible {
  transform: translateY(0);
}

.cn-nav-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-beige);
  font-size: 1rem;
  color: var(--text-medium);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.cn-nav-scroll {
  flex: 1;
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0.5rem;
  align-items: center;
}
.cn-nav-scroll::-webkit-scrollbar { display: none; }

.cn-nav-item {
  flex-shrink: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-medium);
  background: var(--bg-beige);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
}
.cn-nav-item:hover {
  background: var(--lavender-pale);
  text-decoration: none;
}
.cn-nav-item.active {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: var(--white);
}

.cn-nav-cta {
  flex-shrink: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral, #E8B4A8) 0%, #D9A093 100%);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cn-nav-cta:hover { text-decoration: none; opacity: 0.9; }

/* ===== Breadcrumb ===== */
.cn-breadcrumb {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}
.cn-breadcrumb::-webkit-scrollbar { display: none; }
.cn-breadcrumb a { color: var(--text-light); text-decoration: none; transition: color 0.3s; }
.cn-breadcrumb a:hover { color: var(--lavender); }
.cn-breadcrumb span { margin: 0 0.3rem; }

/* ===== Hero ===== */
.cn-hero {
  background: linear-gradient(180deg, var(--lavender-pale) 0%, var(--bg-cream, #FAF7F2) 100%);
  padding: 1.5rem 1rem;
}
.cn-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.cn-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--white);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--lavender);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.cn-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.cn-hero-lead {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 2;
}

/* ===== TOC ===== */
.cn-toc {
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem auto;
  max-width: 680px;
}
.cn-toc-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}
.cn-toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}
.cn-toc-list li {
  counter-increment: toc;
  margin-bottom: 0.3rem;
}
.cn-toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  color: var(--text-medium);
  border-bottom: 1px dashed var(--bg-greige);
  text-decoration: none;
}
.cn-toc-list li a:hover { color: var(--lavender); }
.cn-toc-list li a::before {
  content: counter(toc);
  width: 18px;
  height: 18px;
  background: var(--lavender-pale);
  color: var(--lavender);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Article Body ===== */
.cn-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* concern-section は body_html 内のラッパー */
.cn-article .concern-section {
  margin-bottom: 0.5rem;
}

.cn-article h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--lavender-pale);
  scroll-margin-top: 70px;
  color: var(--text-dark);
}
.cn-article h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 1.5rem 0 0.5rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--lavender);
  color: var(--text-dark);
}
.cn-article p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 2;
  margin-bottom: 1rem;
}
.cn-article ul,
.cn-article ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-medium);
}
.cn-article li { margin-bottom: 0.4rem; line-height: 1.8; }
.cn-article blockquote {
  border-left: 3px solid var(--lavender-light);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--lavender-pale);
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* concern-tellers-intro: body_html 末尾の導線文 */
.cn-article .concern-tellers-intro {
  background: var(--bg-beige);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 2rem;
}

/* ===== Section Inner (共通ラッパー) ===== */
.cn-section-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Tellers Section ===== */
.cn-tellers {
  margin: 2rem 0;
  background: var(--bg-beige);
  padding: 1.5rem 0;
}
.cn-tellers h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  scroll-margin-top: 70px;
}
.cn-section-lead {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.cn-teller-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cn-teller-card {
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  transition: box-shadow 0.3s;
}
.cn-teller-card:hover { box-shadow: 0 6px 20px rgba(74, 60, 49, 0.08); }

.cn-teller-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--rose-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cn-teller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cn-teller-info { flex: 1; min-width: 0; }
.cn-teller-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}
.cn-teller-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
.cn-teller-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.cn-teller-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral, #E8B4A8);
  text-decoration: none;
}
.cn-teller-link:hover { text-decoration: underline; }

/* ===== FAQ ===== */
.cn-faq {
  margin: 2rem 0;
}
.cn-faq h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  scroll-margin-top: 70px;
}
.cn-faq-list { margin: 0; }
.cn-faq-item {
  border-bottom: 1px solid var(--bg-greige);
}
.cn-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  gap: 0.5rem;
}
.cn-faq-icon {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.cn-faq-q.active .cn-faq-icon { transform: rotate(180deg); }
.cn-faq-a {
  display: none;
  padding: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.8;
}
.cn-faq-a.show { display: block; }
.cn-faq-a p { margin: 0; }

/* ===== CTA Section ===== */
.cn-cta-section {
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--rose-pale) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.cn-cta-section h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.cn-cta-section p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.cn-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, var(--coral, #E8B4A8) 0%, #D9A093 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232, 180, 168, 0.3);
  max-width: 320px;
  width: 100%;
}
.cn-cta-btn:hover { text-decoration: none; opacity: 0.9; }

/* ===== Related Links ===== */
.cn-related-links {
  background: var(--bg-beige);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1.5rem;
}
.cn-related-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}
.cn-related-links a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--lavender);
  border-bottom: 1px dashed var(--bg-greige);
  text-decoration: none;
}
.cn-related-links a:last-child { border-bottom: none; }
.cn-related-links a:hover { text-decoration: underline; }

/* ===== Sticky CTA ===== */
.cn-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--bg-greige);
  padding: 0.7rem 1rem;
  box-shadow: 0 -4px 15px rgba(74, 60, 49, 0.08);
  z-index: 99;
}
.cn-sticky-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.cn-sticky-cta-info { flex: 1; }
.cn-sticky-cta-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dark);
}
.cn-sticky-cta-meta {
  font-size: 0.7rem;
  color: var(--text-light);
}
.cn-sticky-cta-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral, #E8B4A8) 0%, #D9A093 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.cn-sticky-cta-btn:hover { text-decoration: none; opacity: 0.9; }

/* ===== Responsive ===== */
@media (min-width: 600px) {
  .cn-hero h1 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .cn-hero { padding: 1.2rem 1rem; }
  .cn-article h2 { font-size: 1.05rem; }
  .cn-tellers { padding: 1rem 0; }
}
