/* ==========================================================
   ECCジュニア 京都嵐山教室 – リニューアルCSS
   Design: 優しめピンク / ヒアシードゥー風
   ========================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Poppins:wght@400;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --pink-50: #FFF0F3;
  --pink-100: #FFE0E8;
  --pink-200: #FFB8CC;
  --pink-300: #FF8FAF;
  --pink-400: #F472A8;
  --pink-500: #E05693;
  --pink-600: #C7357A;
  --accent-yellow: #FFD54F;
  --accent-orange: #FF9E6D;
  --brown-dark: #4A2C2A;
  --brown-text: #5C3A38;
  --text-main: #3D2524;
  --text-sub: #6B4F4E;
  --bg-cream: #FFFAF5;
  --bg-section: #FFF5F7;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(196, 90, 120, 0.10);
  --shadow-md: 0 4px 20px rgba(196, 90, 120, 0.12);
  --shadow-lg: 0 8px 32px rgba(196, 90, 120, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 50px;
  --header-h: 72px;
  --header-h-sm: 56px;
  --max-w: 1100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sm) + 20px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable; /* スクロールバー分のスペースを確保し、コンテンツが隠れないようにする */
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text-main);
  background: var(--bg-cream);
  line-height: 1.8;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

.renew-wrap {
  width: 100%;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.section-pad {
  padding: 80px 0;
}

.section-pad-sm {
  padding: 48px 0;
}

/* Render optimization disabled: prioritize immediate image visibility */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title .title-jp {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.section-title .title-jp::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-300), var(--accent-yellow));
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ---------- Header ---------- */
.rn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: height 0.4s ease, box-shadow 0.4s ease;
}

.rn-header.is-shrink {
  height: var(--header-h-sm);
  box-shadow: var(--shadow-md);
}

.rn-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rn-header__logo {
  flex-shrink: 0;
}

.rn-header__logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rn-header__logo img {
  height: 42px;
  width: auto;
  transition: height 0.4s ease;
}

.rn-header.is-shrink .rn-header__logo img {
  height: 36px;
}

.rn-header__logo .logo-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  transition: font-size 0.4s ease;
}

.rn-header.is-shrink .rn-header__logo .logo-text {
  font-size: 10px;
}

/* Desktop Nav */
.rn-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 1;
  min-width: 0;
}

.rn-nav a {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  padding: 5px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: var(--transition);
}

.rn-nav a:hover {
  background: var(--pink-50);
  color: var(--pink-500);
}

.rn-header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rn-header__tel {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  color: var(--text-sub);
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
}

.rn-header__tel strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-500);
  letter-spacing: 0.02em;
}

.btn-contact-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(228, 86, 147, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-contact-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 86, 147, 0.4);
  color: #fff;
}

/* Mobile menu toggle */
.rn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10001;

  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.rn-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: var(--transition);
}

.rn-hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.rn-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.rn-hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav overlay */
.rn-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10002;
  padding-top: calc(72px + env(safe-area-inset-top));
  text-align: center;

  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rn-mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rn-mobile-nav a {
  font-size: 18px;
  font-weight: 600;
  padding: 12px 24px;
  color: var(--text-main);
}

.rn-mobile-nav a:hover {
  color: var(--pink-500);
}

.rn-mobile-nav .mobile-tel {
  margin-top: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pink-500);
}

.rn-mobile-nav .mobile-cta {
  margin-top: 10px;
}

/* ---------- Hero / Slider ---------- */
.rn-hero {
  margin-top: var(--header-h);
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 183, 210, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(255, 213, 79, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 143, 175, 0.12) 0%, transparent 50%),
    linear-gradient(170deg, #FFF0F3 0%, #FFE8EE 40%, #FFF5F0 100%);
  padding: 40px 0 0;
  overflow: hidden;
}

/* Decorative circles */
.rn-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 168, 0.12) 0%, transparent 70%);
  z-index: 0;
}

.rn-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 2;
}

/* Extra floating decorations via box-shadows on deco images */
.rn-hero__bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rn-hero__bg-deco::before {
  content: '';
  position: absolute;
  bottom: 60px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.15) 0%, transparent 70%);
}

.rn-hero__bg-deco::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 204, 0.08) 0%, transparent 60%);
  transform: translateX(-50%);
}

/* Dot pattern overlay */
.rn-hero__dots-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(244, 114, 168, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.rn-hero__slider-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.rn-hero__slider {
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(244, 114, 168, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08);
  border: 3px solid rgba(255, 255, 255, 0.7);
}

.rn-hero__slides {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.rn-hero__slide {
  width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.rn-hero__slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Slider navigation */
.rn-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
}

.rn-hero__nav:hover {
  background: var(--pink-100);
  transform: translateY(-50%) scale(1.1);
}

.rn-hero__nav--prev {
  left: 0;
}

.rn-hero__nav--next {
  right: 0;
}

.rn-hero__nav svg {
  width: 18px;
  height: 18px;
  fill: var(--pink-500);
}

/* Slider dots */
.rn-hero__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-bottom: 80px;
}

.rn-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-200);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.rn-hero__dot.is-active {
  background: var(--pink-500);
  transform: scale(1.2);
}

/* Floating shapes */
.rn-hero__shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: floatShape 6s ease-in-out infinite;
}

.rn-hero__shape--1 {
  width: 80px;
  height: 80px;
  top: 12%;
  left: 5%;
  animation-duration: 7s;
}

.rn-hero__shape--2 {
  width: 50px;
  height: 50px;
  top: 60%;
  right: 8%;
  animation-duration: 5s;
  animation-delay: -1.5s;
}

.rn-hero__shape--3 {
  width: 36px;
  height: 36px;
  bottom: 30%;
  left: 8%;
  animation-duration: 8s;
  animation-delay: -3s;
}

.rn-hero__shape--4 {
  width: 28px;
  height: 28px;
  top: 25%;
  right: 15%;
  animation-duration: 5.5s;
  animation-delay: -2s;
}

.rn-hero__shape--5 {
  width: 22px;
  height: 22px;
  top: 70%;
  left: 18%;
  animation-duration: 6.5s;
  animation-delay: -4s;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-12px) rotate(5deg);
  }

  66% {
    transform: translateY(6px) rotate(-3deg);
  }
}

/* ==========================================================
   Scroll Reveal Animations
   ========================================================== */

/* Base hidden state — all scroll-animated elements start invisible */
[data-scroll] {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

/* Fade up (default) */
[data-scroll="fade-up"] {
  transform: translateY(40px);
}

[data-scroll="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade down */
[data-scroll="fade-down"] {
  transform: translateY(-40px);
}

[data-scroll="fade-down"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade left */
[data-scroll="fade-left"] {
  transform: translateX(-50px);
}

[data-scroll="fade-left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade right */
[data-scroll="fade-right"] {
  transform: translateX(50px);
}

[data-scroll="fade-right"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom in */
[data-scroll="zoom-in"] {
  transform: scale(0.85);
}

[data-scroll="zoom-in"].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Flip up */
[data-scroll="flip-up"] {
  transform: perspective(600px) rotateX(8deg) translateY(30px);
}

[data-scroll="flip-up"].is-visible {
  opacity: 1;
  transform: perspective(600px) rotateX(0) translateY(0);
}

/* Stagger children — adds incremental delay to child items */
[data-scroll-stagger]>* {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-scroll-stagger].is-visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* Delay utilities */
[data-scroll-delay="100"] {
  transition-delay: 0.1s;
}

[data-scroll-delay="200"] {
  transition-delay: 0.2s;
}

[data-scroll-delay="300"] {
  transition-delay: 0.3s;
}

[data-scroll-delay="400"] {
  transition-delay: 0.4s;
}

[data-scroll-delay="500"] {
  transition-delay: 0.5s;
}

[data-scroll-delay="600"] {
  transition-delay: 0.6s;
}

/* Counter animation for number elements */
.count-up {
  display: inline-block;
}

/* Parallax subtle float for sections */
.rn-section__title[data-scroll] {
  transition-duration: 0.6s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  [data-scroll],
  [data-scroll-stagger]>* {
    transition-duration: 0.01s !important;
    transform: none !important;
  }
}

/* Hero catch copy overlay */
.rn-hero__catch {
  text-align: center;
  margin-top: -30px;
  position: relative;
  z-index: 3;
  padding: 0 24px 20px;
}

.rn-hero__catch-sub {
  display: inline-block;
  font-size: 14px;
  color: var(--pink-500);
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.rn-hero__catch-main {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.4;
  margin-top: 6px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.rn-hero__catch-main span {
  color: var(--pink-500);
  background: linear-gradient(transparent 60%, rgba(255, 183, 210, 0.3) 60%);
}

/* ---------- Badges bar (flags) ---------- */
.rn-badges {
  background: var(--white);
  position: relative;
  z-index: 3;
  padding: 20px 0;
}

.rn-badges__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rn-badges__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}

.rn-badges__item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ---------- About section ---------- */
.rn-about {
  background: var(--white);
  position: relative;
}

.rn-about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.rn-about__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.rn-about__img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 4px solid var(--pink-100);
}

.rn-about__img img {
  width: 100%;
  max-height: 340px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.rn-about__text h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text-main);
}

.rn-about__text h3 span {
  color: var(--pink-500);
}

.rn-about__text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
}

.rn-about__text .highlight-box {
  background: var(--pink-50);
  border-left: 4px solid var(--pink-300);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-600);
}

/* ---------- News / お知らせ Combined Block ---------- */
.rn-news {
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.rn-news::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--white);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 1;
}

.rn-news__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.rn-news__tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  color: var(--text-sub);
  border: 2px solid var(--pink-200);
  cursor: pointer;
  transition: var(--transition);
}

.rn-news__tab:hover,
.rn-news__tab.is-active {
  background: var(--pink-400);
  color: var(--white);
  border-color: var(--pink-400);
}

.rn-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rn-news__card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.rn-news__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rn-news__card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.rn-news__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.rn-news__card:hover .rn-news__card-img img {
  transform: scale(1.05);
}

.rn-news__card-body {
  padding: 16px 20px;
}
.rn-news__card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--pink-100);
  color: var(--pink-600);
  margin-bottom: 8px;
}

.rn-news__card-date {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.rn-news__card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Link list below cards */
.rn-news__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rn-news__link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  color: var(--text-main);
  border: 2px solid var(--pink-200);
  transition: var(--transition);
}

.rn-news__link-btn:hover {
  background: var(--pink-400);
  color: var(--white);
  border-color: var(--pink-400);
}

.rn-news__link-btn::after {
  content: '\203A';
  font-size: 18px;
  font-weight: 700;
}

/* ---------- Age / Course section ---------- */
.rn-age {
  background: var(--white);
}

.rn-age__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.rn-age__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.rn-age__item:hover {
  border-color: var(--pink-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Timetable ---------- */
.rn-timetable {
  background: var(--bg-section);
}

.rn-timetable__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 12px;
}

.rn-timetable__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid var(--pink-100);
}

.rn-timetable__item:hover {
  border-color: var(--pink-300);
  box-shadow: var(--shadow-sm);
}

.rn-timetable__item .tt-icon {
  width: 36px;
  height: 36px;
  background: var(--pink-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rn-timetable__item .tt-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--pink-500);
}

.rn-timetable__item .tt-info {
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rn-timetable__item .tt-age {
  font-weight: 700;
  color: var(--text-main);
}

.rn-timetable__item .tt-course {
  color: var(--pink-500);
  font-weight: 600;
}

.rn-timetable__item .tt-time {
  color: var(--text-sub);
  font-size: 12px;
}

.rn-timetable__more {
  text-align: center;
  margin-top: 20px;
}

.rn-timetable__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 16px;
}

.hidden-tt {
  display: none;
}

/* ---------- Review banner ---------- */
.rn-review {
  background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
  position: relative;
  text-align: center;
}

.rn-review a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rn-review img {
  max-width: 180px;
  border-radius: var(--radius-sm);
}

.rn-review__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

/* ---------- Movie section ---------- */
.rn-movie {
  background: var(--white);
}

.rn-movie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.rn-movie__item {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rn-movie__item .movie-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.rn-movie__item .movie-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.rn-movie__item .movie-embed__fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #1f1f1f;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-align: center;
}

.rn-movie__item .movie-embed.is-fallback iframe {
  display: none;
}

.rn-movie__item .movie-embed.is-fallback .movie-embed__fallback {
  display: flex;
}

.rn-movie__item .movie-caption {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ---------- Etc / 備考 ---------- */
.rn-etc {
  background: var(--bg-section);
}

.rn-etc__content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.rn-etc__content p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--text-sub);
}

.rn-etc__content a {
  color: var(--pink-500);
  font-weight: 600;
}

.rn-etc__content a:hover {
  text-decoration: underline;
}

.rn-etc__content hr {
  border: none;
  height: 1px;
  background: var(--pink-100);
  margin: 20px 0;
}

.rn-etc__content img {
  border-radius: var(--radius-sm);
  margin: 10px 0;
  max-width: 480px;
  height: auto;
}

.rn-etc__content .common__title {
  font-weight: 700;
  color: var(--text-main);
}

/* ---------- Teacher ---------- */
.rn-teacher {
  background: var(--white);
}

.rn-teacher__card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.rn-teacher__photo img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.rn-teacher__sns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.rn-teacher__sns a img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.rn-teacher__sns a:hover img {
  transform: scale(1.15);
}

.rn-teacher__name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.rn-teacher__profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.rn-teacher__profile-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.rn-teacher__profile-box .pf-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-500);
  margin-bottom: 6px;
}

.rn-teacher__profile-box p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.rn-teacher__message {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.rn-teacher__message p {
  margin-bottom: 10px;
}

/* ---------- News / お知らせ (campaigns) ---------- */
.rn-campaign {
  background: var(--bg-section);
}

.rn-campaign__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.rn-campaign__item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.rn-campaign__item p {
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.rn-campaign__item img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

/* Awards */
.rn-awards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.rn-awards img {
  width: 120px;
  height: auto;
}

/* ---------- Q&A ---------- */
.rn-qa {
  background: var(--white);
}

.rn-qa__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.rn-qa__item {
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.rn-qa__q {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  background: var(--white);
}

.rn-qa__q:hover {
  background: var(--pink-50);
}

.rn-qa__q::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink-400);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.rn-qa__a {
  padding: 0 24px 18px 68px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  display: none;
}

.rn-qa__item.is-open .rn-qa__a {
  display: block;
}

/* ---------- CTA (体験) ---------- */
.rn-cta {
  background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
  color: var(--white);
  text-align: center;
}

.rn-cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.rn-cta p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.rn-cta__flow {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.rn-cta__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rn-cta__step-num {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.rn-cta__step-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rn-cta__step-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.rn-cta__step-text {
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--white);
  color: var(--pink-500);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 4px 16px rgba(228, 86, 147, 0.3);
  transition: var(--transition);
  cursor: pointer;
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(228, 86, 147, 0.4);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--white);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid var(--pink-200);
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--pink-400);
  color: var(--white);
  border-color: var(--pink-400);
}

/* ---------- Gallery ---------- */
.rn-gallery {
  background: var(--white);
  overflow: hidden;
}

.rn-gallery__slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 16px;
}

.rn-gallery__slider::-webkit-scrollbar {
  display: none;
}

.rn-gallery__item {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rn-gallery__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.rn-gallery__link {
  text-align: center;
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.rn-footer {
  background: var(--text-main);
  color: rgba(255, 255, 255, 0.8);
}

/* Access section in footer */
.rn-access {
  background: var(--bg-section);
  color: var(--text-main);
}

.rn-access__table {
  width: 100%;
  border-collapse: collapse;
}

.rn-access__table th,
.rn-access__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--pink-100);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.rn-access__table th {
  width: 120px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--pink-50);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.rn-access__table td {
  color: var(--text-sub);
}

.rn-access__tel {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-500);
}

/* Footer nav */
.rn-footer__nav {
  padding: 40px 0;
}

.rn-footer__nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.rn-footer__nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.rn-footer__nav a:hover {
  color: var(--white);
}

.rn-footer__feature {
  max-width: 800px;
  margin: 0 auto 24px;
  text-align: center;
}

.rn-footer__feature-ttl {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 8px;
}

.rn-footer__feature-txt {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.rn-footer__cert {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

.rn-footer__copy {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
}

/* Back to top */
.rn-totop {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink-400);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 9000;
  border: none;

}

.rn-totop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rn-totop:hover {
  background: var(--pink-500);
  transform: translateY(-3px);
}

.rn-totop svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .rn-nav a {
    font-size: 10px;
    padding: 4px 5px;
  }

  .rn-header__tel strong {
    font-size: 13px;
  }

  .rn-header__tel {
    font-size: 8px;
  }

  .btn-contact-header {
    font-size: 10px;
    padding: 8px 12px;
  }

  .rn-header__logo img {
    height: 36px;
  }
}

@media (max-width: 1024px) {
  .rn-teacher__card {
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
    --header-h-sm: 56px;
  }

  .rn-nav {
    display: none;
  }

  .rn-header__tel {
    display: none;
  }
  .rn-hamburger {
    display: flex;
  }

  body.is-nav-open .rn-header {
    z-index: 10004;
  }

  body.is-nav-open .rn-header__inner > *:not(.rn-hamburger) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.is-nav-open .rn-hamburger {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: 16px;
    z-index: 10003;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  .btn-contact-header {
    font-size: 11px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .section-pad {
    padding: 48px 0;
  }

  .section-title .title-jp {
    font-size: 22px;
  }

  /* Hero */
  .rn-hero {
    padding: 24px 0 0;
  }

  .rn-hero__slider-wrap {
    padding: 0 16px;
  }

  .rn-hero__slide img {
    width: 100%;
    height: auto;
  }

  .rn-hero__catch-main {
    font-size: 22px;
  }

  .rn-hero__dots {
    padding-bottom: 60px;
  }

  /* About */
  .rn-about__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* News */
  .rn-news__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Age */
  .rn-age__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timetable */
  .rn-timetable__list {
    grid-template-columns: 1fr;
  }

  /* Teacher */
  .rn-teacher__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rn-teacher__photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .rn-teacher__profile {
    grid-template-columns: 1fr;
  }

  /* Movie */
  .rn-movie__grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .rn-gallery__item {
    width: 200px;
  }

  .rn-gallery__item img {
    height: 140px;
  }

  /* CTA */
  .rn-cta h2 {
    font-size: 22px;
  }

  .rn-cta__flow {
    gap: 20px;
  }

  /* Campaign */
  .rn-campaign__grid {
    grid-template-columns: 1fr;
  }

  /* Access */
  .rn-access__table th,
  .rn-access__table td {
    display: block;
    width: 100%;
  }

  .rn-access__table th {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .rn-header__inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .rn-header__logo a {
    gap: 6px;
  }

  .rn-header__logo img {
    height: 30px;
  }

  .rn-header__logo .logo-text {
    font-size: 9px;
  }

  .rn-header__cta {
    gap: 6px;
  }

  .btn-contact-header {
    font-size: 10px;
    padding: 7px 10px;
  }

  .rn-hero__nav {
    display: none;
  }

  .rn-age__grid {
    grid-template-columns: 1fr;
  }

  .rn-badges__list {
    gap: 10px;
  }

  .rn-badges__item img {
    width: 32px;
    height: 32px;
  }

  .rn-news__tabs {
    gap: 6px;
  }

  .rn-news__tab {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* ==========================================================
   SUB PAGE COMMON STYLES
   ========================================================== */

/* Page hero banner (smaller than index hero) */
.rn-page-hero {
  margin-top: var(--header-h);
  background:
    radial-gradient(ellipse 80% 60% at 10% 40%, rgba(255, 183, 210, 0.25) 0%, transparent 60%),
    linear-gradient(170deg, #FFF0F3 0%, #FFE8EE 50%, #FFF5F0 100%);
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rn-page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.rn-page-hero h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
}

.rn-page-hero .page-hero-sub {
  font-size: 13px;
  color: var(--pink-500);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* Breadcrumb */
.rn-breadcrumb {
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-sub);
}

.rn-breadcrumb a {
  color: var(--pink-500);
  text-decoration: none;
}

.rn-breadcrumb a:hover {
  text-decoration: underline;
}

.rn-breadcrumb span {
  margin: 0 6px;
}

/* Sub-page main content wrapper */
.rn-subpage {
  background: var(--white);
  padding: 40px 0 60px;
}

/* ---------- Article list (letter / event / achievement) ---------- */
.rn-article-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rn-article-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.rn-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 画像エリア: 左側40% */
.rn-article-card__img {
  flex: 0 0 40%;
  max-width: 40%;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  background: var(--pink-50);
}

/* 案② 本文中の画像サイズを制限 */
.rn-post-content img,
.b_article_img img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: var(--radius-sm);
}

.rn-article-card__body {
  flex: 1;
  min-width: 0;
  padding: 24px;
}
.rn-article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.rn-article-card__date {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}

.rn-article-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  background: var(--pink-400);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.rn-article-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.5;
}

.rn-article-card__title a {
  color: inherit;
  text-decoration: none;
}

.rn-article-card__title a:hover {
  color: var(--pink-500);
}

.rn-article-card__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
}

.rn-article-card__text p {
  margin-bottom: 12px;
}

.rn-article-card--clickable {
  cursor: pointer;
}

.rn-article-card--clickable:focus-visible {
  outline: 3px solid rgba(224, 86, 147, 0.45);
  outline-offset: 2px;
}

/* 一覧カードは抜粋表示にして「続きはクリック」を見せる */
.rn-article-card:not(.rn-article-card--detail) .rn-article-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rn-article-card__more {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-500);
}

.rn-article-card__images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.rn-article-card__images img {
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.rn-article-card__images img:hover {
  opacity: 0.85;
}

/* 詳細ページのarticleカードは縦並び（横並びにしない） */
.rn-article-card--detail {
  flex-direction: column;
}

.rn-article-card--detail .rn-article-card__img {
  flex: none;
  max-width: 100%;
  max-height: 350px;
}

/* Pagination */
.rn-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.rn-pagination a,
.rn-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.rn-pagination a {
  background: var(--pink-50);
  color: var(--pink-500);
}

.rn-pagination a:hover {
  background: var(--pink-400);
  color: var(--white);
}

.rn-pagination .current {
  background: var(--pink-500);
  color: var(--white);
}

/* ---------- Course page ---------- */
.rn-course-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.rn-course-filters select {
  padding: 10px 16px;
  border: 2px solid var(--pink-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}

.rn-course-filters select:focus {
  outline: none;
  border-color: var(--pink-400);
}

.rn-course-age {
  margin-bottom: 48px;
}

.rn-course-age__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
  border-left: 4px solid var(--pink-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.rn-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.rn-course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s, box-shadow 0.3s;
}

.rn-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rn-course-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.rn-course-card__body {
  padding: 16px;
  flex: 1;
}
.rn-course-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pink-500);
}

.rn-course-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ---------- QA full page ---------- */
.rn-qa-full .rn-qa__item {
  margin-bottom: 16px;
}

.rn-qa-full .rn-qa__category {
  font-size: 18px;
  font-weight: 700;
  color: var(--pink-500);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink-200);
}

/* ---------- Gallery page ---------- */
.rn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.rn-gallery-grid__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.rn-gallery-grid__item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.rn-gallery-grid__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* ---------- Contact form ---------- */
.rn-form {
  max-width: 720px;
  margin: 0 auto;
}

.rn-form__row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.rn-form__label {
  flex: 0 0 180px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  padding-top: 10px;
}

.rn-form__label .req {
  display: inline-block;
  font-size: 10px;
  color: var(--white);
  background: var(--pink-500);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: middle;
}

.rn-form__field {
  flex: 1;
}

.rn-form__field input[type="text"],
.rn-form__field input[type="tel"],
.rn-form__field input[type="email"],
.rn-form__field select,
.rn-form__field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.2s;
  font-family: inherit;
}

.rn-form__field input:focus,
.rn-form__field select:focus,
.rn-form__field textarea:focus {
  outline: none;
  border-color: var(--pink-400);
}

.rn-form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.rn-form__field .hint {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

.rn-form__field .inline-inputs {
  display: flex;
  gap: 8px;
}

.rn-form__field .inline-inputs input,
.rn-form__field .inline-inputs select {
  flex: 1;
}

.rn-form__radio,
.rn-form__checkbox {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.rn-form__radio label,
.rn-form__checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.rn-form__submit {
  text-align: center;
  margin-top: 32px;
}

.rn-form__privacy {
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ---------- Inline contact form in articles ---------- */
.rn-inline-form {
  background: var(--pink-50);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.rn-inline-form h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-500);
  margin-bottom: 16px;
  text-align: center;
}

.rn-inline-form .rn-form__row {
  margin-bottom: 16px;
}

.rn-inline-form .rn-form__label {
  flex: 0 0 140px;
  font-size: 13px;
}

/* Sub-page responsive */
@media (max-width: 768px) {
  .rn-page-hero {
    padding: 32px 0 28px;
  }

  .rn-page-hero h1 {
    font-size: 22px;
  }

  .rn-form__row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
  }

  .rn-form__label {
    flex: none;
    padding-top: 0;
  }

  .rn-form__field input[type="text"],
  .rn-form__field input[type="tel"],
  .rn-form__field input[type="email"],
  .rn-form__field select,
  .rn-form__field textarea {
    font-size: 16px;
  }

  .rn-inline-form .rn-form__row {
    flex-direction: column;
    gap: 6px;
  }

  .rn-inline-form .rn-form__label {
    flex: none;
  }

  .rn-course-grid {
    grid-template-columns: 1fr;
  }

  .rn-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rn-article-card__images {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 横並びカード → スマホで縦並び */
  .rn-article-card {
    flex-direction: column;
  }

  .rn-article-card__img {
    flex: none;
    max-width: 100%;
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .rn-form__field .inline-inputs {
    flex-direction: column;
  }

  .rn-form__radio,
  .rn-form__checkbox {
    gap: 12px;
  }

  .rn-form__submit .btn-primary {
    width: 100%;
  }

  .rn-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- View Transitions (Subtle Fade) ---------- */
@supports (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    @view-transition {
      navigation: auto;
    }

    .rn-mobile-nav {
      view-transition-name: rn-mobile-nav;
    }

    ::view-transition-old(root) {
      animation: 0.2s cubic-bezier(0.2, 0, 0, 1) both rn-vt-old;
    }

    ::view-transition-new(root) {
      animation: 0.25s cubic-bezier(0.2, 0, 0, 1) 0.02s both rn-vt-new;
    }

    ::view-transition-old(rn-mobile-nav) {
      animation: 0.25s cubic-bezier(0.3, 0, 1, 1) both rn-vt-menu-old;
    }

    ::view-transition-new(rn-mobile-nav) {
      animation: 0.25s cubic-bezier(0.2, 0, 0, 1) both rn-vt-menu-new;
    }
  }
}

@keyframes rn-vt-old {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes rn-vt-new {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rn-vt-menu-old {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.985); }
}

@keyframes rn-vt-menu-new {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
