/* ── パズルちゃん 紹介ページの配色 ─────────────────────────────────────
   iOS アプリのカラートークン（puzzlechan/Core/Theme.swift）をそのまま反映。
   page #F4F8FF→#DCE7F7   bg #EAF1FB   card #FFFFFF   border #E4EBF7
   navy #2B3A55   ink #3A4A66   subText #7C8CA6   subText3 #9AAAC3
   blueVivid #5B8DEF   blueText #3A6FC4   chipBg #DCEAFF   lockedBg #DEE5F2
   divider #F1F4FA   hairline #E9EEF7   shadow #7896C8
   （かわいい日記の styles.css の構成を踏襲。あちらはクリーム地、こちらは淡い青）

   文字はアプリと同じ「丸ゴシック」。アプリは M PLUS Rounded 1c の代わりに
   system rounded を使っているので、ここでは本家のほうを読み込む。
*/
* {
  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: #2b3a55;
  background-color: #eaf1fb;
}

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

/* Header */
.header {
  background-color: rgba(247, 250, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #e4ebf7;
  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: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e4ebf7;
}

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

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

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

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

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

.lang-btn {
  background: none;
  border: none;
  color: #9aaac3;
  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: #3a6fc4;
}

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

/* Hero */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(1000px 420px at 78% 8%, #dceaff 0%, rgba(220, 234, 255, 0) 62%),
    radial-gradient(760px 380px at 8% 34%, #f4f8ff 0%, rgba(244, 248, 255, 0) 60%),
    linear-gradient(#f4f8ff, #dce7f7);
}

.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-mark {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #2b3a55;
  margin-bottom: 14px;
}

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

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

.hero-title-accent {
  color: #3a6fc4;
}

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

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  /* アプリの主ボタン（Grad.accent）と同じ傾き */
  background: linear-gradient(135deg, #7db3fa, #4a85e8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(120, 150, 200, 0.42);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6ba6f7, #3d78dc);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid #c7dbf5;
  color: #3a6fc4;
  background: rgba(255, 255, 255, 0.7);
}

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

.hero-image {
  display: flex;
  justify-content: center;
}

.app-icon-placeholder {
  width: 232px;
  height: 232px;
  border-radius: 52px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4ebf7;
  box-shadow: 0 18px 44px rgba(120, 150, 200, 0.34);
  transform: rotate(-2deg);
}

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

/* 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: #7c8ca6;
  font-size: 0.96rem;
  max-width: 46em;
  margin: 0 auto 40px;
  /* 最後の行に一語だけ落ちないよう、行の長さをそろえてもらう */
  text-wrap: balance;
}

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

/* Puzzles */
.puzzles {
  padding: 88px 0;
  background-color: #eaf1fb;
}

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

.puzzle-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid #e4ebf7;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(120, 150, 200, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.puzzle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(120, 150, 200, 0.22);
}

/* 絵はそれ自体で形が立っているので、下に面は敷かない（アプリの一覧と同じ） */
.puzzle-mark {
  width: 46px;
  height: 46px;
  flex: none;
  display: block;
}

.puzzle-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.puzzle-body p {
  font-size: 0.88rem;
  color: #7c8ca6;
  line-height: 1.75;
}

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

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

.feature-card {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid #e4ebf7;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 2px 8px rgba(120, 150, 200, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(120, 150, 200, 0.22);
}

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

.icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dceaff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* Screenshots */
.screenshots {
  padding: 88px 0;
  background-color: #eaf1fb;
}

.screenshots-grid {
  display: grid;
  /* 画面が広いときは 5 枚を 1 行に収める（枠の内寸 1080px に対して 200×5 + 隙間 20×4） */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.screenshot-item {
  text-align: center;
}

/* 画像が端末のフレームと影を持っているので、こちらでは枠を描かない */
.screenshot-placeholder {
  margin-bottom: 10px;
}

.screenshot-placeholder img {
  width: 100%;
  display: block;
}

.screenshot-item p {
  font-size: 0.88rem;
  color: #7c8ca6;
}

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

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

.download-info,
.download-requirements {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid #e4ebf7;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 2px 8px rgba(120, 150, 200, 0.12);
}

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

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

.app-store-placeholder {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7db3fa, #4a85e8);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(120, 150, 200, 0.42);
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-store-placeholder:hover {
  background: linear-gradient(135deg, #6ba6f7, #3d78dc);
  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: #7c8ca6;
  font-size: 0.92rem;
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px solid #f1f4fa;
}

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

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

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

.privacy-content {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid #e4ebf7;
  border-radius: 18px;
  padding: 36px 34px;
  box-shadow: 0 2px 8px rgba(120, 150, 200, 0.12);
  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: #2b3a55;
}

.privacy-content p {
  color: #7c8ca6;
  font-size: 0.93rem;
}

.privacy-content a {
  color: #3a6fc4;
}

.privacy-update {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #f1f4fa;
  font-size: 0.84rem !important;
  color: #9aaac3 !important;
}

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

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

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

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

.contact-method {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid #e4ebf7;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(120, 150, 200, 0.12);
}

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

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

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

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

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

.footer-bottom {
  text-align: center;
  color: #9aaac3;
  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: 128px 0 72px;
    text-align: center;
  }

  .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;
  }

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