/* =============================================
   ピコっとラボつうしん 共通スタイル
   common/style.css
   ============================================= */

:root {
  /* カラーパレット（LPと統一） */
  --primary-blue: #0097d3;
  --primary-blue-dark: #007bb0;
  --primary-blue-light: #e6f4fa;
  --primary-orange: #FF6B35;
  --primary-yellow: #FFD93D;
  --accent-green: #7ED957;
  --accent-pink: #FF6B9D;

  --bg-white: #FFFFFF;
  --bg-light: #F8FAFB;
  --bg-blue-light: #E6F4FA;

  --text-dark: #2D3436;
  --text-gray: #636E72;
  --text-muted: #b2bec3;
  --white: #FFFFFF;

  /* フォント（LPと統一） */
  --font-display: 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-accent: 'Poppins', sans-serif;

  /* シャドウ（LPと統一） */
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Color Bar ===== */
.color-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green), var(--primary-yellow), var(--accent-pink), var(--primary-blue));
  background-size: 200% 100%;
  animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Header（LPと同じ：ロゴ45px） ===== */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 45px;
  width: auto;
  transition: opacity 0.3s ease;
}
.logo:hover img {
  opacity: 0.8;
}
.header-home {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  transition: all 0.3s ease;
}
.header-home:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}
.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.breadcrumb__item:not(:last-child)::after {
  content: '>';
  color: var(--text-muted);
  margin-left: 0.3rem;
  font-size: 0.8rem;
}
.breadcrumb__item a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.breadcrumb__item a:hover {
  opacity: 0.7;
  text-decoration: underline;
}
.breadcrumb__item[aria-current="page"] {
  color: var(--text-gray);
}
@media (max-width: 768px) {
  .breadcrumb { padding: 0.8rem 1.2rem 0; }
  .breadcrumb__list { font-size: 0.8rem; }
}

/* ===== TOC（目次） ===== */
.toc {
  background: var(--bg-light);
  border: 2px solid #e0e6ea;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2rem 0 2.5rem;
}
.toc__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}
.toc__list {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
}
.toc__list li {
  counter-increment: toc;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e8ecef;
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}
.toc__list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.toc__list li::before {
  content: counter(toc) '.';
  font-weight: 700;
  color: var(--primary-blue);
  margin-right: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.95rem;
}
.toc__list a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.toc__list a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .toc__list li { font-size: 0.95rem; }
}

/* ===== Article Container ===== */
.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Hero Image ===== */
.article__hero {
  margin: 2rem -2rem 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article__hero-placeholder {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .article__hero {
    margin: 2.5rem 0 0;
    border-radius: 16px;
  }
}

/* ===== Article Header ===== */
.article__header {
  padding: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--bg-blue-light);
  margin-bottom: 2.5rem;
}
.article__category {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-blue-light);
  color: var(--primary-blue);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.article__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.article__date {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}
.article__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 700;
}
.article__author-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* ===== Article Body（子ども向け・大きめ文字） ===== */
.article__body {
  padding-bottom: 3rem;
}
.article__body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin: 3rem 0 1.2rem;
  padding: 0.8rem 0 0.8rem 1.2rem;
  border-left: 5px solid var(--primary-blue);
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.article__body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.5;
}
.article__body p {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 2.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
.article__body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
}
.article__flyer {
  margin: 2rem 0;
}
.article__flyer img {
  margin-bottom: 0.5rem;
}
.article__flyer figcaption {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.article__body ul,
.article__body ol {
  margin: 1.2rem 0 1.5rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 2.2;
}
.article__body li {
  margin-bottom: 0.5rem;
}
.article__body a {
  color: var(--primary-blue);
  text-decoration: underline;
  text-decoration-color: rgba(0,151,211,0.3);
  text-underline-offset: 4px;
  font-weight: 700;
  transition: text-decoration-color 0.2s;
}
.article__body a:hover {
  text-decoration-color: var(--primary-blue);
}
.article__body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.8rem;
  background: var(--bg-blue-light);
  border-left: 5px solid var(--primary-blue);
  border-radius: 0 12px 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 2;
  color: var(--text-dark);
}
.article__body strong {
  color: var(--primary-blue-dark);
  font-weight: 800;
}

/* ===== Info Box ===== */
.info-box {
  background: #fff9e0;
  border: 2px solid var(--primary-yellow);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.info-box__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e67e22;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.info-box p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 0;
}
.info-box p + p {
  margin-top: 0.8rem;
}
.info-box__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.info-box__list li {
  font-size: 1.05rem;
  line-height: 2;
  padding-left: 0.8em;
  text-indent: -0.8em;
  margin-bottom: 0.3rem;
}
.info-box__list li::before {
  content: '・';
  font-weight: 700;
}
.info-box__list li strong {
  color: var(--primary-blue-dark);
  font-weight: 800;
}
.info-box p br {
  display: block;
  content: '';
  margin-top: 0.3rem;
}

/* ===== Voice Cards（こどもたちの声） ===== */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}
.voice-card {
  background: var(--bg-white);
  border-radius: 16px;
  border: 2px solid #f0f0f0;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.voice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.voice-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.voice-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.voice-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}
.voice-card__name span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.voice-card__body {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 2;
  color: var(--text-dark);
}
.voice-card__body strong {
  color: var(--primary-blue-dark);
  font-weight: 800;
}
.voice-card--blue .voice-card__icon { background: var(--bg-blue-light); }
.voice-card--blue { border-color: #b8e4f5; }
.voice-card--green .voice-card__icon { background: #e8faf0; }
.voice-card--green { border-color: #b8f0d0; }
.voice-card--orange .voice-card__icon { background: #fff3e0; }
.voice-card--orange { border-color: #ffd5b8; }
.voice-card--pink .voice-card__icon { background: #fce4ec; }
.voice-card--pink { border-color: #f8bbd0; }
.voice-card--purple .voice-card__icon { background: #f3e5f5; }
.voice-card--purple { border-color: #d1c4e9; }

@media (max-width: 768px) {
  .voices-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== Survey Summary（アンケート結果） ===== */
.survey-summary {
  background: var(--bg-white);
  border: 2px solid var(--primary-blue);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}
.survey-summary__title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-blue-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}
.survey-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.survey-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg-blue-light);
  border-radius: 12px;
}
.survey-stat__emoji {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}
.survey-stat__number {
  font-family: var(--font-accent);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.1;
}
.survey-stat__number span {
  font-size: 1.4rem;
}
.survey-stat__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gray);
  line-height: 1.6;
  margin-top: 0.4rem;
}
@media (max-width: 768px) {
  .survey-summary { padding: 1.5rem 1rem; }
  .survey-summary__grid { gap: 0.8rem; }
  .survey-stat__number { font-size: 2.2rem; }
  .survey-stat__number span { font-size: 1.1rem; }
  .survey-stat__label { font-size: 0.8rem; }
}

/* ===== Instructor Card（講師紹介） ===== */
.instructor-card {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  background: var(--bg-blue-light);
  border: 2px solid #b8e4f5;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
}
.instructor-card__image {
  flex-shrink: 0;
  width: 42%;
}
.instructor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.instructor-card__content {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.instructor-card__role {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent-green);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}
.instructor-card__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.instructor-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}
.instructor-card__bio {
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.instructor-card__quote {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.9;
  color: var(--text-dark);
}
@media (max-width: 768px) {
  .instructor-card { flex-direction: column; }
  .instructor-card__image { width: 100%; }
  .instructor-card__image img {
    aspect-ratio: 4 / 3;
    object-position: center top;
  }
  .instructor-card__content { padding: 1.5rem; }
  .instructor-card__name { font-size: 1.5rem; }
  .instructor-card__role { align-self: flex-start; }
}

/* ===== FAQ Accordion ===== */
.faq {
  margin: 2rem 0;
}
.faq__item {
  border: 2px solid #e0e6ea;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] {
  border-color: var(--primary-blue);
}
.faq__question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1.6;
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__question::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq__answer {
  padding: 0 1.5rem 1.2rem 4rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
  color: var(--text-gray);
}
.faq__answer a {
  color: var(--primary-blue);
  font-weight: 700;
}
@media (max-width: 768px) {
  .faq__question { padding: 1rem 1.2rem; font-size: 1rem; }
  .faq__answer { padding: 0 1.2rem 1rem 3.5rem; }
}

/* ===== CTA Box ===== */
.cta-box {
  background: linear-gradient(135deg, var(--bg-blue-light) 0%, #e8faf0 100%);
  border: 2px solid var(--primary-blue);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-box__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-blue-dark);
  margin-bottom: 0.8rem;
}
.cta-box__text {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 2;
}
.cta-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--primary-blue);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,151,211,0.3);
}
.cta-box__btn:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,151,211,0.4);
}

/* ===== Share ===== */
.share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 2px solid var(--bg-blue-light);
  margin-top: 0.5rem;
}
.share__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-gray);
}
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s;
}
.share__btn:hover { transform: scale(1.1); }
.share__btn--line { background: #06C755; color: white; }
.share__btn--x { background: #000; color: white; }

/* ===== LINE CTA ===== */
.line-cta {
  background: linear-gradient(135deg, #06C755 0%, #04a847 100%);
  margin-top: 1.5rem;
  padding: 3.5rem 2rem;
}
.line-cta__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.line-cta__icon {
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.line-cta__icon svg {
  width: 44px;
  height: 44px;
  fill: #06C755;
}
.line-cta__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.line-cta__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 2;
  margin-bottom: 1.2rem;
}
.line-cta__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.line-cta__list li {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}
.line-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: #06C755;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.line-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.line-cta__btn-icon { flex-shrink: 0; }

/* ===== Footer（LPと同じダークスタイル） ===== */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 2rem 30px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  transition: opacity 0.3s ease;
}
.footer-logo:hover {
  opacity: 0.8;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.footer-org {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-link {
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: underline;
  font-weight: 400;
  transition: opacity 0.3s ease;
}
.footer-link:hover {
  opacity: 0.8;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { padding: 0.8rem 1rem; }
  .header-home {
    font-size: 0;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-home::before {
    content: '🏠';
    font-size: 1.2rem;
  }
  .article { padding: 0 1.2rem; }
  .article__hero { margin: 2rem -1.2rem 0; }
  .article__title { font-size: 1.7rem; }
  .article__body h2 { font-size: 1.5rem; }
  .article__body h3 { font-size: 1.2rem; }
  .article__body p { font-size: 1.05rem; }
  .info-box { padding: 0.8rem; }
  .toc { padding: 0.8rem; }
  .cta-box { padding: 2rem 1.5rem; }
  .cta-box__title { font-size: 1.3rem; }
  .line-cta { padding: 3rem 1.2rem; }
  .line-cta__title { font-size: 1.5rem; }
  footer { padding: 40px 1.2rem 24px; }
}
