@charset "utf-8";

/* ══════════════════════════════════════════════════
   Nenrin LP
   配色  背景 #EDEAE3 / 文字 #2B2926 / アクセント #A67C5B
   書体  Cormorant Garamond(欧文) × Zen Kaku Gothic New(和文)
   ══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #EDEAE3;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #2B2926;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #A67C5B; text-decoration: none; }
a:hover { color: #8C6547; }

img { max-width: 100%; display: block; }


/* ── スクロール連動フェードイン ───────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 中央寄せの translateX(-50%) を animation の transform に潰されないよう
   X 方向を含めた専用キーフレームを使う */
@keyframes heroRiseCentered {
  from { opacity: 0; transform: translate(-50%, 22px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; }
  .hero-icon-wrap, .hero-name, .hero-kana,
  .hero-lead, .hero-cta, .scroll-hint { animation: none !important; }
  .appstore { transition: opacity .3s ease; }
  .appstore:hover, .appstore:active { transform: none; }
}


/* ══ HERO ══════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  width: min(150vw, 1180px);
  height: min(150vw, 1180px);
  opacity: .5;
  pointer-events: none;
}

.hero-icon-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroRise 1.1s .05s both;
}

/* アイコン PNG は iOS の角丸マスクが焼き込み済み（四隅 alpha=0）。
   border-radius は不要、影は矩形にならないよう drop-shadow で輪郭に沿わせる */
.hero-icon {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 22px 46px rgba(43, 41, 38, .24));
}

.hero-name {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 96px;
  line-height: 1;
  letter-spacing: .02em;
  margin-top: 38px;
  animation: heroRise 1.1s .18s both;
}

.hero-kana {
  position: relative;
  font-size: 12px;
  letter-spacing: .42em;
  color: #A39C8E;
  margin-top: 18px;
  padding-left: .42em;
  animation: heroRise 1.1s .28s both;
}

.hero-lead {
  position: relative;
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 29px);
  line-height: 2;
  letter-spacing: .06em;
  margin: 44px 0 0;
  max-width: 20em;
  animation: heroRise 1.1s .4s both;
}

.hero-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 52px;
  animation: heroRise 1.1s .54s both;
}

/* Apple 公式バッジ。バッジ自身が地色と角丸を持つので背景・角丸は付けない。
   影は矩形ではなくバッジの輪郭に沿わせるため drop-shadow を使う */
.appstore {
  display: inline-block;
  line-height: 0;
  filter: drop-shadow(0 14px 30px rgba(43, 41, 38, .2));
  transition: opacity .3s ease, transform .3s ease, filter .3s ease;
}

/* 押せることが分かる程度の、ごく浅い反応にとどめる */
@media (hover: hover) {
  .appstore:hover {
    opacity: .86;
    transform: translateY(-1px);
    filter: drop-shadow(0 17px 34px rgba(43, 41, 38, .24));
  }
}
.appstore:focus-visible {
  opacity: .86;
  outline: 1px solid #C4BCAD;
  outline-offset: 8px;
}
.appstore:active {
  opacity: .9;
  transform: translateY(0);
}

.appstore img {
  width: 147px;
  height: 54px;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroRiseCentered 1.1s .8s both;
}
.scroll-hint-text { font-size: 10px; letter-spacing: .24em; color: #B5AFA4; }
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(#C4BCAD, transparent);
}


/* ══ 共通 ══════════════════════════════════════ */

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: #A67C5B;
  letter-spacing: .04em;
}
.eyebrow-sm { font-size: 20px; }

.h2 {
  font-weight: 500;
  font-size: 34px;
  letter-spacing: .06em;
  margin: 14px 0 0;
}


/* ══ ABOUT ═════════════════════════════════════ */

.sec-about {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 40px 130px;
  text-align: center;
}
.sec-about .h2 { margin-bottom: 46px; }

.about-body {
  font-weight: 300;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 2.5;
  letter-spacing: .04em;
  color: #43403A;
  margin: 0;
  text-wrap: pretty;
}


/* ══ HOW IT WORKS ══════════════════════════════ */

.sec-steps {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 40px 140px;
}

.steps-head {
  text-align: center;
  margin-bottom: 82px;
}

.steprow {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  transform: translateY(24px); /* [data-reveal] の初期値を上書き */
}
.step.is-visible { transform: none; }
.step-reverse { flex-direction: row-reverse; }

.step-shot { flex: none; position: relative; }

.phone {
  width: 248px;
  height: 512px;
  border-radius: 42px;
  background: #211F1C;
  padding: 11px;
  box-shadow: 0 30px 60px rgba(43, 41, 38, .2);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* スクリーンショット未設置時のプレースホルダー背景 */
.phone-screen-1 { background: linear-gradient(160deg, #EFEAE1, #E3DACB); }
.phone-screen-2 { background: linear-gradient(160deg, #E9E3D7, #DAD0BE); }
.phone-screen-3 { background: linear-gradient(160deg, #ECE7DC, #DED4C3); }

/* 画像を入れた場合は画面いっぱいに収める */
.phone-screen img,
.phone > img {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
}

.phone-placeholder {
  font-size: 10px;
  letter-spacing: .22em;
  color: #A39C8E;
  font-family: ui-monospace, Menlo, monospace;
}

.step-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 400px;
}

.step-no-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.step-no {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 68px;
  line-height: 1;
  color: #D8CFBE;
}
.step-rule { width: 38px; height: 1px; background: #CFC6B6; }

.step-title {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: .05em;
  margin: 22px 0 0;
}

.step-text {
  font-weight: 300;
  font-size: 15.5px;
  line-height: 2.2;
  letter-spacing: .03em;
  color: #5C574E;
  margin: 16px 0 0;
  text-wrap: pretty;
}


/* ══ PRIVACY ═══════════════════════════════════ */

.privacy {
  background: #F5F2EC;
  border-top: 1px solid #E1DACD;
  scroll-margin-top: 0;
}

.privacy-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 104px 40px 110px;
}

.privacy-h2 {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .05em;
  margin: 12px 0 10px;
  line-height: 1.5;
}

.privacy-meta {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: #A39C8E;
}

.privacy-rule {
  height: 1px;
  background: #E1DACD;
  margin: 34px 0 40px;
}

.doc p {
  font-weight: 300;
  font-size: 16px;
  line-height: 2.35;
  letter-spacing: .03em;
  color: #3A362F;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.doc > p:first-child { margin-bottom: 30px; }

.doc h3 {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .04em;
  color: #2B2926;
  margin: 44px 0 16px;
}

.doc ul {
  font-weight: 300;
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: .03em;
  color: #3A362F;
  margin: 0 0 20px;
  padding-left: 1.4em;
}
.doc li { margin-bottom: 8px; }
.doc li:last-child { margin-bottom: 0; }

.doc .note {
  border-left: 2px solid #D8CFBE;
  padding: 4px 0 4px 22px;
  margin: 40px 0;
}
.doc .note p {
  font-size: 15px;
  line-height: 2.2;
  color: #5C574E;
  margin: 0;
}

.doc strong {
  font-weight: 500;
  color: #2B2926;
}

/* 末尾の制定日・署名。本文から少し離し、やや小さく静かに置く */
.doc-dates {
  margin-top: 52px !important;
  padding-top: 30px;
  border-top: 1px solid #E1DACD;
  font-size: 14px !important;
  line-height: 2.1 !important;
  color: #6B665C !important;
}

.doc-sign {
  margin-top: 26px !important;
  font-size: 14px !important;
  line-height: 2.1 !important;
  color: #6B665C !important;
}

/* お問い合わせフォームへの導線。差し色(アクセント)を静かに一箇所だけ使う */
.doc-contact-link {
  display: inline-block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .04em;
  color: #A67C5B;
  border-bottom: 1px solid #D8CFBE;
  padding-bottom: 4px;
  transition: color .25s ease, border-color .25s ease;
}
.doc-contact-link:hover {
  color: #8C6547;
  border-color: #C2A98A;
}
.doc-contact-arrow {
  margin-left: .5em;
  font-size: .9em;
  transition: transform .25s ease;
}
.doc-contact-link:hover .doc-contact-arrow {
  transform: translateX(3px);
}

.doc > p:last-child,
.doc > ul:last-child { margin-bottom: 0; }


/* ══ FOOTER ════════════════════════════════════ */

.footer {
  border-top: 1px solid #E1DACD;
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: .06em;
  color: #8A857D;
}
.footer-item { font-size: 11.5px; letter-spacing: .1em; color: #A39C8E; }
.footer-copy { font-size: 11.5px; letter-spacing: .1em; color: #C0B7A6; }


/* ══ スマートフォン ════════════════════════════ */

@media (max-width: 720px) {
  .hero-name { font-size: 64px; }

  .sec-about,
  .sec-steps,
  .privacy-inner,
  .footer { padding-left: 24px; padding-right: 24px; }

  .h2, .privacy-h2 { font-size: 30px; }

  .steprow { gap: 44px; }

  .step,
  .step-reverse {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .step-body { align-items: center; }
}

/* 端末幅がフォトフレームより狭い場合の保険 */
@media (max-width: 320px) {
  .phone { width: 100%; height: auto; aspect-ratio: 248 / 512; }
}
