/* ============================================
   ヌリエル LP — style.css
   ============================================ */

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

:root {
  /* コーラル（暖色）パレット */
  --primary: #D2735C;
  --primary-dark: #B85A3D;
  --primary-light: #F0C4B8;
  --primary-pale: #FDF1ED;
  --cream: #FFFAF6;
  --text: #3D3330;
  --text-light: #7A6E6A;
  --border: #E8DDD8;
  --radius: 12px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
}

/* --- fade-in（CTA1箇所だけ） --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- CTAボタン --- */
.btn-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* --- ヘッダー --- */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.lp-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.lp-header .container {
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.lp-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.lp-nav { display: flex; gap: 1.5rem; align-items: center; }
.lp-nav a {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}
.lp-nav a:hover { color: var(--primary); text-decoration: none; }
.header-cta {
  padding: 0.45rem 1.1rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}
.header-cta:hover { background: var(--primary-dark); text-decoration: none; }

@media (max-width: 640px) {
  .lp-nav a:not(.header-cta) { display: none; }
  .lp-header .container { height: 48px; }
  .hero { padding-top: 68px; padding-bottom: 2.5rem; }
  .hero h1 { font-size: 2rem; margin-top: 1rem; }
  .hero-sub { font-size: 0.95rem; line-height: 1.8; }
}

/* --- ヒーロー --- */
.hero {
  padding-top: 76px;
  padding-bottom: 3.5rem;
  text-align: center;
  background: var(--primary-pale);
  position: relative;
  overflow: hidden;
}

/* 浮遊アニマル背景 */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
/* 額縁付き浮遊ペット写真 */
.floating-frame {
  position: absolute;
  opacity: 0.35;
  animation: floatPhoto ease-in-out infinite;
  user-select: none;
  background: var(--primary-pale);
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  isolation: isolate;
  mix-blend-mode: multiply;
}
.floating-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
@keyframes floatPhoto {
  0%, 100% { translate: 0 0; }
  25% { translate: 0 -12px; }
  50% { translate: 0 -4px; }
  75% { translate: 0 -18px; }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

/* ビフォーアフター */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem auto;
  max-width: 520px;
}
.hero-card {
  flex: 1;
  max-width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-card-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-card-photo {
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-card-line {
  border: 3px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-card-lineart {
  display: none;
}
.hero-card-line {
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  width: 100%;
  height: auto;
  display: block;
}
.hero-canvas-line {
  position: relative;
  z-index: 1;
}
.hero-canvas-colored {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* 色鉛筆アニメーション */
.hero-pencil {
  position: absolute;
  font-size: 1.8rem;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  top: 35%;
  left: calc(50% - 25%);
}
.hero-pencil.animating {
  opacity: 1;
  animation: pencilWiggle 0.15s ease-in-out infinite alternate;
}
@keyframes pencilWiggle {
  from { transform: rotate(-8deg) translateY(-2px); }
  to { transform: rotate(-12deg) translateY(2px); }
}
.hero-arrow {
  font-size: 1.5rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* 犬猫切り替えボタン */
.hero-pet-switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pet-switch-btn {
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.pet-switch-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pet-switch-btn:hover:not(.active) {
  border-color: var(--primary-light);
}

.hero .btn-cta { margin-top: 0.5rem; }
.hero-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* モバイル小画面対応 */
@media (max-width: 400px) {
  .hero-visual { gap: 0.5rem; }
  .hero-card { max-width: 130px; }
  .hero-arrow { font-size: 1.2rem; }
  .hero-pencil { font-size: 1.4rem; }
  .floating-frame { opacity: 0.2; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 0.88rem; }
  .section-title { font-size: 1.35rem; }
  .howto-item { font-size: 0.95rem; }
  .styles-list-item dd { font-size: 0.9rem; }
  .plan-card { padding: 1.5rem 1.25rem; }
  .plan-price { font-size: 1.6rem; }
  .final-cta-title { font-size: 1.4rem; }
  .btn-cta { padding: 0.85rem 2rem; font-size: 1rem; }
}

@media (max-width: 640px) {
  .hero-visual { max-width: 340px; }
  .hero-card { max-width: 150px; }
  .howto { padding: 2.5rem 0; }
  .styles { padding: 2.5rem 0; }
  .pricing { padding: 3rem 0; }
  .faq { padding: 2.5rem 0; }
  .final-cta { padding: 2.5rem 0; }
  .floating-frame { opacity: 0.25; }
  .footer-links { gap: 1rem; }
  .footer-links a { font-size: 0.8rem; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.2rem; }
  .hero-card { max-width: 240px; }
  .hero-visual { max-width: 580px; }
}

/* --- 使い方（リスト形式） --- */
.howto {
  padding: 4rem 0;
  background: #fff;
}
.howto-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
}
.howto-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.9;
}
.howto-item:last-child {
  border-bottom: none;
}
.howto-item strong {
  color: var(--text);
  font-weight: 700;
}

/* --- スタイル（説明リスト） --- */
.styles {
  padding: 3.5rem 0;
  background: var(--cream);
}
.styles-intro {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}
.styles-list {
  max-width: 640px;
  margin: 0 auto;
}
.styles-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.styles-list-item:last-child {
  border-bottom: none;
}
.styles-list-item dt {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.styles-list-item dd {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}
.plan-label {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* --- 料金 --- */
.pricing {
  padding: 4.5rem 0;
  background: #fff;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  background: #fff;
}
.plan-card:hover {
  border-color: var(--primary-light);
}
.plan-card.popular {
  border-color: var(--primary);
  border-width: 2px;
  background: var(--primary-pale);
}
.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.plan-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}
.plan-annual {
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 0.25rem;
  font-weight: 500;
}
.plan-features {
  list-style: none;
  margin: 1.25rem 0;
  text-align: left;
}
.plan-features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
}
.plan-features li::before {
  content: '・';
  margin-right: 0.25rem;
}

.btn-sub {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--primary-light);
}
.btn-sub:hover {
  background: var(--primary-light);
  text-decoration: none;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1.5rem;
}

/* --- FAQ --- */
.faq {
  padding: 3.5rem 0;
  background: var(--cream);
}
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  width: 100%;
  padding: 1.1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-family: inherit;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--text-light);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.9;
}

/* --- 最終CTA --- */
.final-cta {
  padding: 4rem 0;
  text-align: center;
  background: var(--primary);
}
.final-cta-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.final-cta-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.final-cta-btn {
  background: #fff;
  color: var(--primary-dark);
}
.final-cta-btn:hover {
  background: var(--cream);
}

/* --- フッター --- */
.lp-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.lp-footer .container {
  max-width: 1120px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* --- モバイルタッチ最適化 --- */
@media (pointer: coarse) {
  .btn-cta, .btn-sub, .header-cta {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .faq-question {
    min-height: 52px;
  }
  .pet-switch-btn {
    min-height: 44px;
    padding: 0.5rem 1.4rem;
  }
}

/* --- iOS Safari / PWA 対応 --- */
@supports (padding: env(safe-area-inset-bottom)) {
  .lp-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}
