/* --- ベース設定 --- */
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #fff8f5;
  color: #444;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
.container {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0.6rem;
  box-sizing: border-box;
}

/* --- ヘッダー --- */
header {
  background-color: #f7c8d7;
  padding: 1rem 0;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e11e80;
}
.logo ruby rt {
  font-size: 0.6em;
}

/* --- ナビゲーション --- */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
}
nav ul li a {
  text-decoration: none;
  color: #444;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
nav ul li a:hover {
  color: #fff;
  background-color: #d95b96;
}

/* --- ヒーローセクション --- */
.hero {
  background-image: url('image/AdobeStock_454854796.jpeg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: white;
  padding: 4rem 1rem;
  position: relative;
  margin-bottom: 3rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
.hero .btn {
  display: inline-block;
  background-color: #d95b96;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 1rem;
  position: relative;
  transition: background-color 0.3s, transform 0.3s;
}
.hero .btn:hover {
  background-color: #b8487c;
  transform: scale(1.05);
}

/* --- ヒーロースライダー --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 3rem;
}
.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}
.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.hero-slider .slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
  pointer-events: none;
}
.hero-slider .container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}
.hero-slider h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  line-height: 1.3;
}
.hero-slider p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
  line-height: 1.7;
}
.hero-slider .btn {
  display: inline-block;
  background-color: #d95b96;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background-color 0.3s, transform 0.3s;
  position: relative;
  z-index: 2;
}
.hero-slider .btn:hover {
  background-color: #b8487c;
  transform: scale(1.05);
}

/* --- キャッチコピー欄 --- */
.catchcopy {
  text-align: center;
  margin-bottom: 2.5em;
}
.catchcopy h2 {
  font-size: 2.2rem;
  color: #e11e80;
  margin-bottom: 0.8em;
}
.catchcopy .catchcopy-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  max-width: 900px;
  margin: 0 auto;
}
.catchcopy .catchcopy-item {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 400px;
  border-radius: 1.5em;
  padding: 2em 1.5em;
  margin-bottom: 1.5em;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px #f8e1f5;
  background: #fff0fa;
}
.catchcopy .catchcopy-item.parent {
  background: #eafff3;
  box-shadow: 0 2px 12px #e1f8f5;
}
.catchcopy .catchcopy-item.kawaii {
  background: #fffbe7;
  box-shadow: 0 2px 12px #f8f5e1;
}
.catchcopy .catchcopy-item.want {
  background: #e7f3ff;
  box-shadow: 0 2px 12px #e1eaf8;
}
.catchcopy .catchcopy-item strong {
  display: inline-block;
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 0.5em;
  letter-spacing: 0.08em;
  text-shadow: 1px 2px 8px #fff5, 0 1px 0 #fff;
  border-bottom: 3px double #eec6e9;
  border-radius: 0.5em;
  padding: 0.1em 0.6em;
  background: linear-gradient(90deg, #fff6fb 60%, #ffe6f7 100%);
  color: #e11e80;
}
.catchcopy .catchcopy-item.parent strong {
  border-bottom: 3px double #b6f2e2;
  background: linear-gradient(90deg, #f6fffa 60%, #e6fff7 100%);
  color: #1ec8a7;
}
.catchcopy .catchcopy-item.kawaii strong {
  border-bottom: 3px double #f2e9b6;
  background: linear-gradient(90deg, #fffdf6 60%, #fffbe6 100%);
  color: #e1b81e;
}
.catchcopy .catchcopy-item.want strong {
  border-bottom: 3px double #b6d2f2;
  background: linear-gradient(90deg, #f6faff 60%, #e6f3ff 100%);
  color: #1e7be1;
}

/* --- キャッチコピー欄 2・4を下にずらす（下の余白は他と同じ）--- */
.catchcopy .catchcopy-item.parent,
.catchcopy .catchcopy-item.want {
  margin-top: 2.5em;
  margin-bottom: 0 !important;
}

/* --- カテゴリー --- */
.categories {
  width: 100%;
  margin-bottom: 2rem;
}
.categories h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #444;
  letter-spacing: 0.3rem;
}
.categories h3,
.popular-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.category-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.category-item {
  flex: 1;
  padding: 1rem;
  border: none;
  background-color: #f7c8d7;
  text-align: center;
  transition: transform 0.3s, background-color 0.3s;
}
.category-item:hover {
  background-color: #d95b96;
  color: #fff;
  transform: scale(1.05);
}
.category-item.kawaii {
  background: #fff0fa;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(217,91,150,0.10);
  margin: 0 0.5rem 1.5rem 0.5rem;
  padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  border: 2px solid #f7c8d7;
  transition: box-shadow 0.3s, transform 0.2s;
  min-width: 180px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-item.kawaii:hover {
  box-shadow: 0 8px 24px rgba(217,91,150,0.18);
  transform: translateY(-4px) scale(1.03);
}
.category-link {
  display: inline-block;
  background: linear-gradient(90deg, #ffe1f0 0%, #e1f7ff 100%);
  color: #d95b96;
  font-weight: bold;
  font-size: 1.18rem;
  border: none;
  border-radius: 2em;
  padding: 0.7em 2em;
  box-shadow: 0 2px 8px rgba(217,91,150,0.10);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.15s, box-shadow 0.3s;
  letter-spacing: 0.04em;
  position: relative;
}
.category-link::before {
  content: "🌷";
  margin-right: 0.6em;
  font-size: 1.2em;
  vertical-align: middle;
}
.category-link:hover, .category-link:focus {
  background: linear-gradient(90deg, #ffd6ec 0%, #d6f6ff 100%);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(217,91,150,0.18);
  outline: none;
}

/* --- アコーディオン --- */
.categories .accordion {
  display: inline-block;
  width: 90%;
  margin: 0 1%;
  padding: 1rem;
  text-align: center;
  background-color: #f7c8d7;
  color: #444;
  cursor: pointer;
  border: none;
  border-radius: 18px;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.categories .accordion:hover,
.categories .accordion[aria-expanded="true"] {
  background-color: #d95b96;
  color: #fff;
  transform: scale(1.05);
}
.categories .accordion .arrow {
  margin-left: 0.5em;
  font-size: 1.1em;
}

/* --- サブカテゴリパネル --- */
.panel {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}
.panel a {
  display: inline-block;
  background: #fff8f5;
  color: #d95b96;
  border-radius: 12px;
  padding: 0.4em 1em;
  margin: 0.3em 0.2em;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(217,91,150,0.07);
  transition: background 0.2s, color 0.2s;
}
.panel a:hover {
  background: #f7c8d7;
  color: #b8487c;
}

/* --- モバイル：画像を上、文字を下に統一 --- */
@media (max-width: 768px) {
  /* よく使われる親要素を縦並びにして、画像とテキストをスタックする */
  section, article, .card, .post, .entry, .item, .media, .box, .catchcopy .catchcopy-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* 画像は常に上に来るよう順序を設定 */
  section img, article img, .card img, .post img, .entry img, .item img, .media img, .box img, .catchcopy img {
    order: -1;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 0.6rem 0;
    object-fit: cover;
  }

  /* テキスト要素は画像の下に来るようにする（既定） */
  section p, article p, .card .text, .post .text, .entry .text, .item .text, .media .text, .box .text, .catchcopy .catchcopy-item > * {
    order: 0;
  }

  /* 画像の直後の要素のマージン調整 */
  img + * {
    margin-top: 0.6rem;
  }

  /* キャッチコピー欄 */
  .catchcopy .catchcopy-list {
    display: block;
    text-align: center;
  }

  .catchcopy .catchcopy-item {
    display: block;
    margin-right: 1rem;
    margin-left: 1rem;
  }
}

/* --- ジャンプ先ボタンリスト --- */
.jump-btn-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  margin-bottom: 2em;
  margin-top: 0.5em;
}

.jump-btn-list a {
  display: inline-block;
  background: linear-gradient(90deg, #ffe1f0 0%, #e1f7ff 100%);
  color: #d95b96;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 2em;
  padding: 0.6em 1.5em;
  box-shadow: 0 2px 8px rgba(217,91,150,0.10);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.15s, box-shadow 0.3s;
  letter-spacing: 0.04em;
  position: relative;
}

.jump-btn-list a::before {
  content: "🌷";
  margin-right: 0.5em;
  font-size: 1.1em;
  vertical-align: middle;
}

.jump-btn-list a:hover, .jump-btn-list a:focus {
  background: linear-gradient(90deg, #ffd6ec 0%, #d6f6ff 100%);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(217,91,150,0.18);
  outline: none;
}

/* --- グリッド（人気記事など） --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.grid a,
.grid .card {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #444;
  transition: box-shadow 0.3s;
}
.grid a:hover,
.grid .card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- 人気記事 --- */
.popular-posts {
  margin-top: 2rem;
}

/* --- 動画の作成理念（movie-philosophy） --- */
.movie-philosophy {
  max-width: 900px;
  margin: 3em auto 2em;
  text-align: center;
}
.movie-philosophy h2 {
  font-size: 2.2rem;
  color: #e11e80;
  margin-bottom: 0.7em;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.movie-philosophy p {
  font-size: 1.3rem;
  color: #555;
  line-height: 2;
  background: linear-gradient(90deg, #fff0fa 60%, #e7f3ff 100%);
  border-radius: 1.2em;
  padding: 1.5em 1.2em;
  box-shadow: 0 2px 12px #f8e1f5;
  font-weight: bold;
  letter-spacing: 0.03em;
}

/* --- フッター --- */
footer {
  background-color: #f7c8d7;
  padding: 1rem 0;
  text-align: center;
  margin-top: 3rem;
}
.footer {
  font-size: 0.9rem;
}
.footer nav a {
  margin: 0 0.5rem;
  color: #444;
  text-decoration: none;
}
.footer nav a:hover {
  color: #d95b96;
}

/* --- ハンバーガーメニュー --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #d95b96;
  cursor: pointer;
  margin-left: auto;
  margin-right: 1rem;
  z-index: 1001;
}

/* --- ジャンプセクション --- */
.jump-section {
  display: none;
}
.jump-section.active {
  display: block;
}
.jump-section {
  display: none !important;
}
.jump-section.active {
  display: block !important;
}

/* --- 視聴者の声 --- */
.voices {
  max-width: 900px;
  margin: 3em auto 2em;
  text-align: center;
}
.voices h2 {
  font-size: 2rem;
  color: #e11e80;
  margin-bottom: 1em;
  letter-spacing: 0.1em;
}
.voices-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  justify-content: center;
}
.voice-item {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 1.5em;
  padding: 1.7em 1.2em 1.2em 1.2em;
  margin-bottom: 0.5em;
  box-shadow: 0 2px 14px #f8e1f5;
  font-size: 1.5rem;
  color: #d95b96;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  font-weight: bold;
}

.voice-item p {
  margin: 0 0 0.7em 0;
  font-weight: bold;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  background: #fff;
  border-radius: 0.5em;
  padding: 0.2em 0.5em;
  display: inline-block;
  box-sizing: border-box;
  letter-spacing: 0.03em;
  line-height: 1.5;
  position: relative;
}

.voice-item p::after {
  content: "";
  display: block;
  margin: 0.5em auto 0 auto;
  width: 60%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffd6ec 0%, #b6d2f2 100%);
}

/* --- 追加: 人気記事スライダー用 */
.popular-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.popular-slider .slider-btn {
  background: #fff0fa;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  color: #e11e80;
  width: 2.2em;
  height: 2.2em;
  cursor: pointer;
  box-shadow: 0 2px 8px #f8e1f5;
  transition: background 0.2s, color 0.2s;
}
.popular-slider .slider-btn:hover {
  background: #e11e80;
  color: #fff;
}
.popular-slider .slider-track {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popular-slider .card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: none;
}
.popular-slider .card iframe {
  width: 100%;
  height: 315px;
  border-radius: 1em;
  margin-bottom: 0.7em;
}
.popular-slider .card h4 {
  font-size: 1.2rem;
  margin: 0.5em 0 0.2em 0;
  color: #e11e80;
}
.popular-slider .card p {
  font-size: 1rem;
  color: #555;
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav.nav_content {
    display: none;
    width: 100%;
    background: #fff0fa;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 16px rgba(217,91,150,0.10);
    z-index: 1000;
    padding: 1em 0;
  }
  nav.nav_content.active { display: block; }
  nav ul, .nav_list {
    flex-direction: column;
    gap: 1em;
    align-items: flex-start;
    width: 100%;
  }
  nav ul li, .nav_list li {
    width: 100%;
    margin: 0.2em 0;
  }
  nav ul li a, .nav_list li a {
    display: block;
    width: 100%;
    padding: 1em 2em;
    border-radius: 0;
    border-bottom: 1px solid #f7c8d7;
  }
  .container.header, .container.footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em 0.5em;
  }
  .logo { margin-bottom: 0.7em; font-size: 1.1em; }
  nav ul, .nav_list { flex-direction: column; gap: 0.5em; padding-left: 0; }
  nav ul li, .nav_list li { margin: 0.2em 0; }
  .hero-slider .slide {
    min-height: 220px;
    padding: 2em 0.5em;
    background-size: cover;
  }
  .hero-slider .container { padding: 0 0.5em; }
  .hero-slider h2 { font-size: 1.2em; }
  .hero-slider p { font-size: 1em; }
  .hero-slider .btn { font-size: 1em; padding: 0.5em 1.2em; }
  .category-list { flex-direction: column; gap: 1em; }
  .category-item { width: 100%; min-width: 0; }
  .popular-posts .grid { grid-template-columns: 1fr; gap: 1em; }
  .card img { width: 100%; height: auto; }
  .container { padding: 0 0.5em; }
  .footer nav { flex-direction: column; gap: 0.5em; align-items: flex-start; }
  /* モバイルではテキスト中の改行タグを非表示にする */
  .container br,
  .video-text br,
  section br,
  article br,
  .post br,
  .entry br,
  .card br,
  .grid br,
  p br,
  h1 br,
  h2 br,
  h3 br,
  h4 br {
    display: none !important;
  }
  /* キャッチコピーをスマホで中央寄せにする */
  .catchcopy {
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .catchcopy .catchcopy-list {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.8em;
    padding: 0;
    max-width: 100%;
  }
  .catchcopy .catchcopy-item {
    margin: 0.6rem auto;
    width: 100%;
    max-width: 360px;
    text-align: center;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}
@media (max-width: 600px) {
  html { 
    font-size: 15px;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow-x: hidden;
  }
  body {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow-x: hidden;
  }
  .container {
    width: 100%;
    max-width: none;
    padding: 0.5rem;
    box-sizing: border-box;
    margin: 0;
  }
  .hero-slider h2 { font-size: 1em; }
  .hero-slider .btn { font-size: 0.95em; padding: 0.4em 1em; }
  .category-list { 
    font-size: 0.98em;
    width: 360px;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
  }
  .category-item, .panel, .popular-posts, .card { font-size: 0.98em; }
  .category-item.kawaii {
    min-width: auto;
    max-width: 350px;
    width: 350px;
    margin: 0;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  }
 .catchcopy {
    text-align: center;
  }

  .catchcopy .catchcopy-list {
    display: block;
  }

  .catchcopy .catchcopy-item {
    width: 330px;
    max-width: 330px;
    margin: 16px auto;
  }

  .catchcopy .catchcopy-item.parent,
  .catchcopy .catchcopy-item.want {
    width: 330px;
    max-width: 330px;
    margin: 0 auto;
  }
}

/* --- スクロール時ポップアップ（右→左スライド） --- */
@media (prefers-reduced-motion: no-preference) {
  .scroll-popup {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 600ms ease-out, transform 600ms cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
    visibility: visible;
  }
  .scroll-popup.in-view {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-popup { transition: none; transform: none; }
}

/* 初期隠し（JSが無効な場合は非表示にしない） */
.scroll-popup[aria-hidden="true"] { opacity: 0; }

