/* ── かわいい日記 紹介ページの配色 ───────────────────────────────────────
   iOS アプリのカラートークン（Presentation/Shared/Theme.swift）をそのまま反映。
   background #FDF8F4   card #FFFFFF   cardBorder #EEE1D3   divider #F1E7DA
   text #4A3020   subText #8A7563   muted #A98977   placeholder #C9B7A6
   accent #E2705C   accentSoft #E0938B   accentPill #FBE0D6
   （hakaru_web の構成を踏襲。あちらは dark theme、こちらはアプリに合わせて light）
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  color: #4a3020;
  background-color: #fdf8f4;
}

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

/* Header */
.header {
  background-color: rgba(255, 253, 251, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #eee1d3;
  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 #eee1d3;
}

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

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

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

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

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

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

.lang-btn:hover {
  color: #e2705c;
}

.lang-btn.active {
  color: #e2705c;
}

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

/* Hero */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(1000px 420px at 78% 8%, #fbe0d6 0%, rgba(251, 224, 214, 0) 62%),
    radial-gradient(760px 380px at 8% 34%, #f6ece0 0%, rgba(246, 236, 224, 0) 60%),
    #fdf8f4;
}

.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-date {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
  color: #a98977;
}

.hero-date-numerals {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.24em;
}

.hero-date-weekday {
  font-family: "Petit Formal Script", cursive;
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

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

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

.hero-description {
  font-size: 1.02rem;
  color: #8a7563;
  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-color 0.2s ease;
}

.btn-primary {
  background-color: #e2705c;
  color: #fff;
  box-shadow: 0 6px 18px rgba(226, 112, 92, 0.28);
}

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

.btn-outline {
  border: 1.5px solid #e0938b;
  color: #c05a47;
  background: rgba(255, 255, 255, 0.6);
}

.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 #eee1d3;
  box-shadow: 0 18px 44px rgba(74, 48, 32, 0.14);
  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: 48px;
}

.features {
  padding: 88px 0;
  background-color: #fdf8f4;
}

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

.feature-card {
  background: #fff;
  border: 1px solid #eee1d3;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 2px 8px rgba(74, 48, 32, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(74, 48, 32, 0.1);
}

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

.icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fbe0d6;
  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: #8a7563;
  line-height: 1.85;
}

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

.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: #8a7563;
}

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

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

.download-info,
.download-requirements {
  background: #fff;
  border: 1px solid #eee1d3;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 2px 8px rgba(74, 48, 32, 0.05);
}

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

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

.app-store-placeholder {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 16px;
  background: #e2705c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(226, 112, 92, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-store-placeholder:hover {
  background: #d0614e;
  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: #8a7563;
  font-size: 0.92rem;
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px solid #f1e7da;
}

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

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

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

.privacy-content {
  background: #fff;
  border: 1px solid #eee1d3;
  border-radius: 18px;
  padding: 36px 34px;
  box-shadow: 0 2px 8px rgba(74, 48, 32, 0.05);
  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: #4a3020;
}

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

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

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

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

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

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

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

.contact-method {
  background: #fff;
  border: 1px solid #eee1d3;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(74, 48, 32, 0.05);
}

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

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

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

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

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

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