/* ── かわいい買い物メモ 紹介ページの配色 ─────────────────────────────────
   iOS アプリの配色（Shared/Palette.swift）をそのまま反映。
   paper #FFF9F3   ink #4A3020   inkSoft #8C7564   inkFaint #BCA99A   line #EADDD1
   mint #9FD3C7   mintInk #3E8E7C   mintTint #E8F5F1   gold #F3CA89   goldTint #FFF3DC
   rose #E58C86   cheek #F9D2CC
   （パズルちゃんの紹介ページ tsudatech/puzzle_chan_web・かわいい体重きろくの web/ の構成を踏襲。
     カードはアプリと同じく白地に淡い茶色のふち、主なボタンは「ついか」と同じこげ茶。アクセントはミント）

   文字はデモと同じ Zen Maru Gothic（本文）と Baloo 2（数字）を Google Fonts から読む。
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.85;
  color: #4a3020;
  background-color: #fff9f3;
}

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

/* Header */
.header {
  background-color: rgba(255, 249, 243, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1.5px 0 #eaddd1;
  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: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid #eaddd1;
}

.nav-logo h1 {
  font-size: 1.1rem;
  font-weight: 900;
  color: #4a3020;
  letter-spacing: 0.02em;
}

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

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

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

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

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

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

/* Hero */
.hero {
  padding: 140px 0 90px;
  background:
    radial-gradient(900px 420px at 82% 12%, #e8f5f1 0%, rgba(232, 245, 241, 0) 62%),
    radial-gradient(760px 380px at 8% 34%, #fff3dc 0%, rgba(255, 243, 220, 0) 60%),
    linear-gradient(#f3faf7, #fff9f3);
}

.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-eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  color: #8c7564;
  background: #fff;
  border: 2px solid #eaddd1;
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 16px;
}

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

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

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

.hero-description {
  font-size: 1.02rem;
  font-weight: 500;
  color: #8c7564;
  margin-bottom: 32px;
  max-width: 34em;
}

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

/* ボタンはアプリの「きろくする」と同じ、こげ茶の丸いピル（下に影） */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.2s ease;
}

.btn-primary {
  background: #4a3020;
  color: #fff6ee;
  box-shadow: 0 5px 0 #2b1c12;
}

.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #2b1c12;
}

.btn-outline {
  background: #fff;
  color: #4a3020;
  border: 2px solid #eaddd1;
  box-shadow: 0 5px 0 #eaddd1;
}

.btn-outline:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #eaddd1;
}

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

/* アプリのリスト画面と同じ、白いカードにキャラとふきだし（マスキングテープつき） */
.hero-stage {
  width: min(360px, 100%);
  padding: 22px 22px 24px;
  border-radius: 32px;
  background: #fff;
  border: 2px solid #eaddd1;
  box-shadow: 0 18px 40px rgba(62, 142, 124, 0.14);
  text-align: center;
  position: relative;
}

.hero-stage::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 24px;
  background: rgba(243, 202, 137, 0.75);
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 3px;
}

.hero-bubble {
  position: relative;
  display: inline-block;
  background: #fff;
  border: 2px solid #4a3020;
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.hero-bubble::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 2px solid #4a3020;
  border-bottom: 2px solid #4a3020;
  transform: translateX(-50%) rotate(45deg) scaleY(0.8);
}

.hero-chara {
  display: block;
  width: 190px;
  height: 190px;
  margin: 4px auto 0;
  transform-origin: 50% 90%;
  animation: breathe 3.2s ease-in-out infinite;
}

/* キャラの下の、ちいさな かいものリスト */
.hero-list {
  list-style: none;
  margin: 10px auto 0;
  padding: 10px 16px;
  max-width: 260px;
  text-align: left;
  border-top: 2px dashed #eaddd1;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 0.98rem;
}

.hero-list .ck {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid #4a3020;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
}

.hero-list li.done .ck {
  background: #9fd3c7;
}

.hero-list li.done .nm {
  color: #bca99a;
  text-decoration: line-through;
  text-decoration-color: #9fd3c7;
}

.hero-list .qty {
  margin-left: auto;
  font-family: "Baloo 2", sans-serif;
  font-size: 0.9rem;
  background: #fff3dc;
  border-radius: 8px;
  padding: 0 8px;
}

@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.02, 0.98); }
}

/* ほかの表情が、ふわふわ並ぶ */
.hero-faces {
  display: flex;
  gap: 12px;
}

.hero-faces img {
  width: 60px;
  height: 60px;
  padding: 4px;
  border-radius: 18px;
  background: #e8f5f1;
  animation: bob 2.4s ease-in-out infinite;
}

.hero-faces img:nth-child(2) { animation-delay: 0.2s; }
.hero-faces img:nth-child(3) { animation-delay: 0.4s; }
.hero-faces 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: 900;
  margin-bottom: 14px;
}

.section-lead {
  text-align: center;
  color: #8c7564;
  font-size: 0.96rem;
  font-weight: 500;
  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;
}

/* カードの共通の見た目（アプリのカードと同じく、白地に淡い茶色のふち） */
.face-card,
.feature-card,
.download-info,
.download-requirements,
.privacy-content,
.contact-method {
  background: #fff;
  border: 2px solid #eaddd1;
  border-radius: 28px;
}

/* Faces */
.faces {
  padding: 88px 0;
  background-color: #fff9f3;
}

.faces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.face-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 22px;
  transition: transform 0.2s ease;
}

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

.face-card img {
  width: 64px;
  height: 64px;
  flex: none;
  padding: 4px;
  border-radius: 18px;
  background: #e8f5f1;
}

.face-body h3 {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.4;
}

.face-body p {
  font-size: 0.86rem;
  color: #8c7564;
  line-height: 1.6;
}

.faces-note {
  text-align: center;
  color: #8c7564;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 28px;
  text-wrap: balance;
}

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

.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: 16px;
  background: #e8f5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

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

.feature-card p {
  font-size: 0.92rem;
  font-weight: 500;
  color: #8c7564;
  line-height: 1.85;
}

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

.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: 900;
  margin-bottom: 8px;
}

.download-info p {
  color: #8c7564;
  font-size: 0.94rem;
  font-weight: 500;
  margin-bottom: 26px;
}

.app-store-placeholder {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  background: #3e8e7c;
  color: #fff9f3;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  box-shadow: 0 5px 0 #2c6b5d;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.app-store-placeholder:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #2c6b5d;
}

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

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

.download-requirements li {
  color: #8c7564;
  font-size: 0.92rem;
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1.5px dashed #eaddd1;
}

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

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

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

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

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

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

.privacy-content p {
  color: #8c7564;
  font-size: 0.93rem;
  font-weight: 500;
}

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

.privacy-update {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1.5px dashed #eaddd1;
  font-size: 0.84rem !important;
  color: #bca99a !important;
}

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

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

.contact-content > p {
  color: #8c7564;
  font-weight: 500;
  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: 900;
  margin-bottom: 8px;
}

.contact-method p,
.contact-method a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #8c7564;
}

.contact-method a {
  color: #3e8e7c;
  font-weight: 700;
  text-decoration: none;
}

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

/* Footer */
.footer {
  background: #fff9f3;
  border-top: 1.5px solid #eaddd1;
  padding: 30px 0;
}

.footer-bottom {
  text-align: center;
  color: #bca99a;
  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-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;
  }

  .hero-chara {
    width: 150px;
    height: 150px;
  }

  .hero-faces img {
    width: 50px;
    height: 50px;
  }

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