/* ========================================
   comicfeel - lp05-common.css
   電子コミック配信サイト 共通スタイル
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  color: #333;
  background: #faf8f5;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--register {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  font-weight: bold;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(238, 90, 36, 0.45);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn--register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(238, 90, 36, 0.55);
}

.btn--register-lg {
  padding: 18px 48px;
  font-size: 1.125rem;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(238, 90, 36, 0.45); }
  50% { box-shadow: 0 4px 32px rgba(238, 90, 36, 0.65); }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 12px 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 32px;
  width: auto;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  appearance: none;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 999px;
  margin: 0 auto;
}

body.is-open {
  overflow: hidden;
}

.header__nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 320px);
  height: 100dvh;
  padding: 88px 24px 24px;
  background: #fff;
  z-index: 1200;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.header__nav.is-active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__nav-list a {
  display: block;
  padding: 10px 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

.header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.header__overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Header (PC) --- */
@media (min-width: 768px) {
  .header__hamburger {
    display: none;
  }

  .header__nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .header__nav-list {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .header__nav-list a {
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: 999px;
  }

  .header__nav-list a:hover {
    background: #f8f2ea;
  }

  .header__overlay {
    display: none !important;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 80px 16px 0;
  overflow: hidden;
  min-height: 520px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("/images/lp05-hero-bg.png") center center / cover no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 245, 238, 0.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero__character {
  width: 220px;
  animation: character-float 3s ease-in-out infinite;
}

.hero__character-img {
  width: 100%;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
  animation: character-bounce 3s ease-in-out infinite;
}

@keyframes character-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes character-bounce {
  0%, 100% { transform: rotate(-1deg); }
  25% { transform: rotate(1deg); }
  75% { transform: rotate(-0.5deg); }
}

.hero__catch {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d2d2d;
  line-height: 1.5;
}

.hero__sub {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 8px;
}

.hero__register {
  margin-top: 8px;
}

/* --- Carousel --- */
.carousel {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding: 24px 0 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.carousel__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 20s linear infinite;
}

.carousel__track:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel__item {
  flex-shrink: 0;
  text-align: center;
  width: 100px;
}

.carousel__item img {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.carousel__item img:hover {
  transform: scale(1.05);
}

.carousel__title {
  font-size: 0.6875rem;
  color: #555;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Section Common --- */
.section {
  padding: 48px 16px;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__heading {
  text-align: center;
  margin-bottom: 32px;
}

.section__heading-en {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #ee5a24;
  font-weight: bold;
  margin-bottom: 4px;
}

.section__heading-ja {
  display: block;
  font-size: 1.375rem;
  font-weight: bold;
  color: #2d2d2d;
}

/* --- Recommend Grid --- */
.section--recommend {
  background: #fff;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}

.comic-card__link {
  display: block;
  transition: transform 0.2s;
}

.comic-card__link:hover {
  transform: translateY(-4px);
}

.comic-card__thumb {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.comic-card__title {
  font-size: 0.8125rem;
  text-align: center;
  margin-top: 8px;
  color: #444;
}

/* --- Ranking --- */
.section--ranking {
  background: linear-gradient(180deg, #faf8f5 0%, #fff5ee 100%);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ranking-item__rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  color: #999;
  background: #f5f5f5;
  border-radius: 50%;
}

.ranking-item__rank--1 {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #fff;
  font-size: 1rem;
}

.ranking-item__rank--2 {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  color: #fff;
}

.ranking-item__rank--3 {
  background: linear-gradient(135deg, #cd7f32, #b8732e);
  color: #fff;
}

.ranking-item__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ranking-item__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.ranking-item__info {
  min-width: 0;
}

.ranking-item__title {
  font-size: 0.9375rem;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item__desc {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- CTA Register --- */
.cta-register {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  padding: 48px 16px;
  text-align: center;
}

.cta-register__text {
  color: #fff;
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-register .btn--register {
  background: #fff;
  color: #ee5a24;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: none;
}

.cta-register .btn--register:hover {
  background: #fff5f0;
}

/* --- User Menu --- */
.section--menu {
  background: #fff;
}

.user-menu__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.user-menu__link {
  display: block;
  padding: 16px 20px;
  font-size: 0.9375rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.user-menu__link:last-child {
  border-bottom: none;
}

.user-menu__link::after {
  content: "&#8250;";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 1.25rem;
}

.user-menu__link:hover {
  background: #fff5f0;
  color: #ee5a24;
}

/* --- Footer --- */
.footer {
  background: #2d2d2d;
  padding: 32px 16px;
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__register {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  padding: 12px 36px;
}

.footer__copy {
  color: #999;
  font-size: 0.75rem;
}

/* ========================================
   Responsive - Tablet & PC
   ======================================== */
@media (min-width: 768px) {
  .hero {
    padding-top: 100px;
    min-height: 600px;
  }

  .hero__content {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 48px;
  }

  .hero__character {
    width: 300px;
    order: 2;
  }

  .hero__text {
    order: 1;
    max-width: 400px;
  }

  .hero__catch {
    font-size: 2rem;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .comic-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .comic-card__thumb {
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 100 / 150;
  }

  .ranking-item__thumb {
    width: 80px;
    height: 120px;
  }

  .user-menu__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-menu__link:nth-last-child(2) {
    border-bottom: none;
  }

  .header__hamburger {
    display: none;
  }

  .header__nav {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    padding: 0;
    background: transparent;
    display: block !important;
    right: auto;
  }

  .header__nav-list {
    display: flex;
    gap: 4px;
  }

  .header__nav-list li {
    border-bottom: none;
  }

  .header__nav-list a {
    padding: 8px 14px;
    font-size: 0.8125rem;
    border-radius: 20px;
  }

  .header__overlay {
    display: none;
  }

  .cta-register__text {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .hero__character {
    width: 360px;
  }

  .hero__catch {
    font-size: 2.25rem;
  }

  .comic-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .ranking-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .user-menu__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   comicfeel - lp05-common2.css
   index2.html 専用スタイル（追加２）
   ======================================== */

/* --- Web Icon Base --- */
.icon {
  display: inline-block;
  margin-right: 0.4em;
  color: #ee5a24;
}

.icon--white {
  color: #fff;
}

.icon--heading {
  font-size: 1.1em;
  margin-right: 0.35em;
}

/* --- Hero Background (ファンタジー書店) --- */
.page-v2 .hero__bg {
  background-image: url("/images/lp05-hero-bg2.png");
}

.page-v2 .hero__bg::after {
  background: linear-gradient(
    180deg,
    rgba(30, 20, 50, 0.25) 0%,
    rgba(60, 40, 80, 0.15) 50%,
    rgba(255, 245, 238, 0.35) 100%
  );
}

.page-v2 .hero__catch {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-v2 .hero__sub {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.page-v2 .carousel {
  background: rgba(255, 255, 255, 0.75);
}

/* --- Section Heading Icons --- */
.page-v2 .section__heading-en .icon {
  color: #ee5a24;
}

/* --- Recommend: 可変サムネイル --- */
.page-v2 .section--recommend {
  padding: 40px 12px;
}

.page-v2 .comic-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
}

.page-v2 .comic-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-v2 .comic-card__thumb-wrap {
  width: 100%;
  aspect-ratio: 100 / 150;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-v2 .comic-card__thumb {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: none;
}

.page-v2 .comic-card__title {
  font-size: 0.75rem;
  margin-top: 6px;
  line-height: 1.3;
}

/* --- Ranking Icons --- */
.page-v2 .ranking-item__rank--1 .icon,
.page-v2 .ranking-item__rank--2 .icon,
.page-v2 .ranking-item__rank--3 .icon {
  color: inherit;
  margin-right: 0;
}

/* --- User Menu Icons --- */
.page-v2 .user-menu__link {
  padding-left: 16px;
}

.page-v2 .user-menu__link .icon {
  width: 1.25em;
  text-align: center;
  color: #ee5a24;
}

.page-v2 .user-menu__link::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
}

/* --- CTA & Footer Icons --- */
.page-v2 .btn--register .icon {
  color: inherit;
}

.page-v2 .cta-register__text .icon {
  color: #ffd93d;
  margin-right: 0.5em;
}

/* --- Header Nav Icons --- */
.page-v2 .header__nav-list .icon {
  font-size: 0.85em;
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .page-v2 .comic-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
  }

  .page-v2 .section--recommend {
    padding: 48px 16px;
  }
}

@media (min-width: 1024px) {
  .page-v2 .comic-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
  }
}

@media (min-width: 1200px) {
  .page-v2 .comic-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
  }
}
