/*
 * スタンプ手帳のサイト。
 *
 * 方針
 *  ・アイコンの羅列と冷たいグラデーションは使わない。
 *    地は写真か単色。見出しは大きく、余白を広く取る。
 *  ・機能の説明は、文章より実際の画面で見せる。
 *  ・ページはツリー。どこにいるかが分かるよう、常にパンくずを出す。
 */

:root {
  --pink: #FF6FA5;
  --pink-dark: #E23C77;
  --ink: #3B2A33;
  --ink-sub: #7A6270;
  --line: #F0DDE6;
  --cream: #FFF9F5;
  --paper: #FFFFFF;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pink-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── 上のナビ ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; flex-wrap: nowrap; }
/* 題字・項目・ボタンは、どれも途中で折らない。
   折ると「スタンプ手／帳」のように語の途中で切れて読めなくなる。 */
.nav .brand, .nav a.item, .nav .cta { white-space: nowrap; }
.nav .menu { display: flex; gap: 28px; align-items: center; }
.nav .brand { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.nav a.item { color: var(--ink-sub); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a.item:hover { color: var(--pink-dark); }
.nav .spacer { flex: 1; }
.nav .cta {
  background: var(--pink); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
}

/* 狭い画面では1段に収まらない。題字とボタンを上、項目を下の段に回す。
   項目の段は横に送れるようにして、増えても崩れないようにする。 */
@media (max-width: 760px) {
  .nav .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px; padding-bottom: 8px;
    gap: 0;
  }
  .nav .brand { font-size: 17px; }
  .nav .cta { margin-left: auto; padding: 8px 15px; font-size: 13.5px; }
  .nav .spacer { display: none; }
  /* 項目はまとめて次の段へ。横に送れるようにして、増えても崩れない。 */
  .nav .menu {
    order: 3;
    flex: 0 0 100%;
    margin-top: 8px;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav .menu::-webkit-scrollbar { display: none; }
  .nav a.item { font-size: 14.5px; }
}
@media (max-width: 380px) {
  .nav .wrap { padding-left: 16px; padding-right: 16px; gap: 0 12px; }
  .nav a.item { font-size: 13.5px; }
}

/* ── 写真バナー ─────────────────────── */
.banner {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center;
  background: #E9D8E1 center/cover no-repeat;
  color: #fff;
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,20,30,.62) 0%, rgba(40,20,30,.30) 55%, rgba(40,20,30,.10) 100%);
}
.banner.right::after {
  background: linear-gradient(270deg, rgba(40,20,30,.62) 0%, rgba(40,20,30,.30) 55%, rgba(40,20,30,.10) 100%);
}
.banner .wrap { position: relative; z-index: 1; width: 100%; }
.banner.right .wrap { text-align: right; }
.banner h1, .banner h2 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.25; margin: 0 0 14px; letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.banner p { font-size: clamp(16px, 2vw, 21px); margin: 0; max-width: 30em; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.banner.right p { margin-left: auto; }
.banner .btns { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.banner.right .btns { justify-content: flex-end; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; font-size: 16px;
}
.btn.pink { background: var(--pink); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.92); color: var(--ink); }

/* 写真が入るまでの地。単色で持たせる。 */
.banner.no-photo { background: #F3DDE8; color: var(--ink); }
.banner.no-photo::after { display: none; }
.banner.no-photo h1, .banner.no-photo h2, .banner.no-photo p { text-shadow: none; }

/* ── パンくず ───────────────────────── */
.crumb { font-size: 14px; color: var(--ink-sub); padding: 18px 0 0; }
.crumb a { color: var(--ink-sub); text-decoration: none; }
.crumb a:hover { color: var(--pink-dark); }

/* ── 見出し ─────────────────────────── */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
h2.big { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.35; margin: 0 0 10px; }
h3 { font-size: 22px; margin: 40px 0 10px; }
.lead { font-size: 18px; color: var(--ink-sub); margin: 0 0 34px; max-width: 42em; }

/* ── 機能タイル ─────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 20px; }
.tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px 24px; transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(226,60,119,.12); }
.tile .num { font-size: 13px; font-weight: 800; color: var(--pink); letter-spacing: .12em; }
.tile h3 { font-size: 21px; margin: 8px 0 8px; line-height: 1.4; }
.tile p { font-size: 15px; color: var(--ink-sub); margin: 0; line-height: 1.75; }
.tile .more { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--pink-dark); }

/* ── 画面の並べ方 ───────────────────── */
.shots { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.shot { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { padding: 14px 18px 18px; font-size: 14.5px; color: var(--ink-sub); }
.shot.phone { max-width: 330px; margin: 0 auto; }

.step { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin: 44px 0; }
.step.flip > :first-child { order: 2; }
.step h3 { margin-top: 0; }
.step p { color: var(--ink-sub); margin: 0 0 10px; }

@media (max-width: 780px) {
  .step, .step.flip { grid-template-columns: 1fr; }
  .step.flip > :first-child { order: 0; }
  .banner { min-height: 320px; }
}

/* ── 表 ─────────────────────────────── */
table.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.spec th, table.spec td { border-bottom: 1px solid var(--line); padding: 13px 10px; text-align: left; vertical-align: top; }
table.spec th { width: 32%; color: var(--ink-sub); font-weight: 700; }

/* ── 下 ─────────────────────────────── */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 46px 0 60px; margin-top: 40px; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.foot h4 { font-size: 14px; color: var(--ink-sub); margin: 0 0 12px; letter-spacing: .06em; }
.foot a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; padding: 4px 0; }
.foot a:hover { color: var(--pink-dark); }
.foot .note { margin-top: 34px; font-size: 13px; color: var(--ink-sub); }

/* ── ノートPCの写真に、実際の画面をはめる ─────────
   写真のモックに UI を合成して見せるのは、実物と違うものを
   見せることになりやすい。ここでは実際に撮った画面をそのまま
   白い画面の位置に置くだけにする。位置は写真から実測した値。 */
.laptop { position: relative; }
.laptop img.photo { width: 100%; }
.laptop img.inset {
  position: absolute;
  left: 31.87%; top: 15.82%; width: 36.71%; height: 57.97%;
  object-fit: cover; object-position: top center;
}
