/* カロリー予報 紹介ページ専用スタイル */

.app-hero {
  position: relative;
  min-height: 90vh;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  background: #0a0d16;
  color: #f1ede2;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.app-hero .bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/forhero_web.jpg');
  background-size: cover;
  background-position: 50% 65%;
  filter: brightness(0.55) saturate(0.85);
}

.app-hero .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(8,10,18,0.65) 0%, rgba(8,10,18,0.35) 35%,
      rgba(8,10,18,0.60) 75%, rgba(8,10,18,0.95) 100%);
}

.app-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 144px) var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.app-hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
}

.app-hero-text .num {
  font-family: var(--serif-jp);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(241,237,226,0.55);
}

.app-hero-text .num::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
}

.app-hero-text h1 {
  font-family: var(--serif-jp);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.10em;
  margin: 0;
  white-space: nowrap;
}

.app-hero-text h1 .en {
  display: block;
  font-family: var(--serif-en);
  font-size: 0.22em;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: rgba(241,237,226,0.55);
  margin-top: 18px;
}

.app-hero-text .lead {
  font-family: var(--serif-jp);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  color: rgba(241,237,226,0.85);
  max-width: 32ch;
  margin: 0;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(16px, 2vw, 24px);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: rgba(244,237,224,0.05);
  border: 1px solid rgba(244,237,224,0.4);
  border-radius: 12px;
  color: #f1ede2;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s;
  min-width: 200px;
}

.store-badge:hover {
  background: rgba(244,237,224,0.92);
  color: #0b0f1a;
  border-color: rgba(244,237,224,0.92);
  transform: translateY(-2px);
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.store-badge .text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .text .small {
  font-family: var(--serif-jp);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(241,237,226,0.7);
  margin-bottom: 4px;
}

.store-badge:hover .text .small {
  color: rgba(11,15,26,0.6);
}

.store-badge .text .big {
  font-family: var(--sans-en);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-mock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screen {
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #14171c 0%, #0a0d16 60%, #14171c 100%);
  border-radius: 36px;
  border: 1px solid rgba(244,237,224,0.18);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55),
      0 12px 28px rgba(0,0,0,0.4),
      inset 0 0 0 6px rgba(0,0,0,0.6),
      inset 0 0 0 8px rgba(244,237,224,0.08);
  position: relative;
  overflow: hidden;
}

.app-screen::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 110px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  transform: translateX(-50%);
}

.app-screen img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: top center;
  border-radius: 30px;
  display: block;
}

.features {
  padding: clamp(80px, 11vw, 144px) 0;
  border-top: 1px solid var(--rule-soft);
}

.features-head {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: clamp(48px, 7vw, 80px);
  align-items: baseline;
}

.features-head .num {
  font-family: var(--serif-jp);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-muted);
}

.features-head h2 {
  font-family: var(--serif-jp);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-wrap: balance;
}

.features-head .lead {
  font-family: var(--serif-jp);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

.feat {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition: background .3s;
}

.feat:hover {
  background: var(--paper-2);
}

.feat .feat-num {
  font-family: var(--serif-jp);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
}

.feat h3 {
  font-family: var(--serif-jp);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
}

.feat p {
  font-family: var(--serif-jp);
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 860px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .app-mock {
    order: -1;
  }
  .app-screen {
    width: 200px;
  }
  .features-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.features-head h2 {
  color: #f4f0e4;
}

.features-head .lead {
  color: rgba(241,237,226,0.80);
}

.features-head .num {
  color: rgba(241,237,226,0.55);
}

.features-grid {
  background: rgba(244,237,224,0.14);
  border-color: rgba(244,237,224,0.14);
}

.feat {
  background: rgba(16,19,26,0.66);
}

.feat:hover {
  background: rgba(28,32,40,0.80);
}

.feat h3 {
  color: #f4f0e4;
}

.feat p {
  color: rgba(241,237,226,0.74);
}

.feat .feat-num {
  color: rgba(241,237,226,0.55);
}
