/* ── ぽこりん 紹介ページの配色 ─────────────────────────────────────
   iOS アプリの配色（pocorin/Core/Theme.swift の Palette）をそのまま反映。
   bg #FFF0F6   ink #2E2A48   sub #4A4468   muted #6A6386
   red #E0456F   redTitle #E34475   pinkButton #FF8FA8   yellow #FFD86B
   green #2E9E5B   blue #82ADFB   ぽこりん #F88DA0 #FADD6A #AAE2B6 #82ADFB
   （パズルちゃんの紹介ページ tsudatech/puzzle_chan_web の構成を踏襲。
     あちらは淡い青、こちらはアプリと同じ淡いピンクで、部品は濃紺のふち取り）

   文字はアプリと同じ M PLUS Rounded 1c を Google Fonts から読む。
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "M PLUS Rounded 1c", "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.85;
  color: #2e2a48;
  background-color: #fff0f6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: rgba(255, 247, 251, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #f6d9e6;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid #2e2a48;
}

.nav-logo h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2e2a48;
  letter-spacing: 0.01em;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  color: #6a6386;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #e0456f;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  color: #a9a2be;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: #e0456f;
}

.lang-separator {
  color: #f3c4d6;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 140px 0 90px;
  background:
    radial-gradient(900px 420px at 80% 10%, #fff4d6 0%, rgba(255, 244, 214, 0) 62%),
    radial-gradient(760px 380px at 8% 34%, #ffe3ef 0%, rgba(255, 227, 239, 0) 60%),
    linear-gradient(#ffe8f2, #fff3e6);
}

.hero-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* アプリのタイトルロゴ */
.hero-logo {
  display: block;
  width: min(360px, 80%);
  height: auto;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* 語の途中で折り返らないよう、行のまとまりごとに改行させる */
.hero-title span {
  display: inline-block;
}

.hero-title-accent {
  color: #e0456f;
}

.hero-description {
  font-size: 1.02rem;
  color: #4a4468;
  margin-bottom: 32px;
  max-width: 34em;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ボタンはアプリと同じ、濃紺のふち取りの丸いピル */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  border: 2px solid #2e2a48;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: #2e2a48;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: #ff8fa8;
  box-shadow: 3px 4px 0 rgba(46, 42, 72, 0.18);
}

.btn-primary:hover {
  background: #ff7f9c;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  box-shadow: 3px 4px 0 rgba(46, 42, 72, 0.1);
}

.btn-outline:hover {
  background: #fff7fb;
  transform: translateY(-1px);
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.app-icon-placeholder {
  width: 232px;
  height: 232px;
  border-radius: 52px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #2e2a48;
  box-shadow: 6px 10px 0 rgba(46, 42, 72, 0.12);
  transform: rotate(-3deg);
}

.app-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ぽこりん4色が、ふわふわ並ぶ */
.hero-pokos {
  display: flex;
  gap: 12px;
}

.hero-pokos img {
  width: 54px;
  height: 54px;
  animation: bob 2.4s ease-in-out infinite;
}

.hero-pokos img:nth-child(2) { animation-delay: 0.2s; }
.hero-pokos img:nth-child(3) { animation-delay: 0.4s; }
.hero-pokos img:nth-child(4) { animation-delay: 0.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Sections */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-lead {
  text-align: center;
  color: #6a6386;
  font-size: 0.96rem;
  max-width: 46em;
  margin: 0 auto 40px;
  text-wrap: balance;
}

/* 見出しだけの節は、見出しの下に余白を足して本体と離す */
.features .section-title,
.download .section-title,
.privacy .section-title,
.contact .section-title {
  margin-bottom: 48px;
}

/* カードの共通の見た目（アプリの一覧カードと同じく、白地に濃紺のふち取り） */
.mode-card,
.feature-card,
.download-info,
.download-requirements,
.privacy-content,
.contact-method {
  background: #fff;
  border: 2px solid #2e2a48;
  border-radius: 22px;
  box-shadow: 3px 5px 0 rgba(46, 42, 72, 0.1);
}

/* Modes */
.modes {
  padding: 88px 0;
  background-color: #fff0f6;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

/* ホーム画面のモードのカードと同じ色分け */
.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px;
  transition: transform 0.2s ease;
}

.mode-challenge { background: #eaf5fe; border-color: #5fa5ee; }
.mode-free { background: #fef8e3; border-color: #edbe3c; }
.mode-puzzle { background: #ecfcef; border-color: #6fc794; }

.mode-card:hover {
  transform: translateY(-3px);
}

.mode-mark {
  width: 60px;
  height: 60px;
  flex: none;
  display: block;
}

.mode-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.mode-body p {
  font-size: 0.9rem;
  color: #4a4468;
  line-height: 1.8;
}

/* Features */
.features {
  padding: 88px 0;
  background-color: #ffe8f1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 26px 24px;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  margin-bottom: 14px;
}

.icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffe3ea;
  border: 1.5px solid rgba(46, 42, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.04rem;
  font-weight: 800;
  color: #e34475;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: #4a4468;
  line-height: 1.85;
}

/* Download */
.download {
  padding: 88px 0;
  background-color: #fff0f6;
}

.download-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.download-info,
.download-requirements {
  padding: 30px 28px;
}

.download-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-info p {
  color: #6a6386;
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.app-store-placeholder {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  border: 2px solid #2e2a48;
  background: #8fd8a8;
  color: #2e2a48;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 3px 4px 0 rgba(46, 42, 72, 0.18);
  transition: background 0.2s ease, transform 0.15s ease;
}

.app-store-placeholder:hover {
  background: #7fcf9b;
  transform: translateY(-1px);
}

.download-requirements h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.download-requirements ul {
  list-style: none;
}

.download-requirements li {
  color: #4a4468;
  font-size: 0.92rem;
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px solid rgba(46, 42, 72, 0.1);
}

.download-requirements li:last-child {
  border-bottom: none;
}

.download-requirements li::before {
  content: "・";
  position: absolute;
  left: 2px;
  color: #e0456f;
}

/* Privacy */
.privacy {
  padding: 88px 0;
  background-color: #ffe8f1;
}

.privacy-content {
  padding: 36px 34px;
  max-width: 860px;
  margin: 0 auto;
}

.privacy-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.privacy-content h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 26px 0 8px;
  color: #e34475;
}

.privacy-content p {
  color: #4a4468;
  font-size: 0.93rem;
}

.privacy-content a {
  color: #e0456f;
}

.privacy-update {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(46, 42, 72, 0.1);
  font-size: 0.84rem !important;
  color: #a9a2be !important;
}

/* Contact */
.contact {
  padding: 88px 0;
  background-color: #fff0f6;
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-content > p {
  color: #6a6386;
  margin-bottom: 36px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 20px;
  text-align: left;
}

.contact-method {
  padding: 24px;
}

.contact-method h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-method p,
.contact-method a {
  font-size: 0.9rem;
  color: #4a4468;
}

.contact-method a {
  color: #e0456f;
  text-decoration: none;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #fff7fb;
  border-top: 1px solid #f6d9e6;
  padding: 30px 0;
}

.footer-bottom {
  text-align: center;
  color: #a9a2be;
  font-size: 0.84rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-container,
  .download-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 0 72px;
    text-align: center;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }

  .app-icon-placeholder {
    width: 168px;
    height: 168px;
    border-radius: 38px;
  }

  .hero-pokos img {
    width: 44px;
    height: 44px;
  }

  .privacy-content {
    padding: 26px 20px;
  }
}
