/* TOP ページ：写真が主役。白と生成りの余白、見出しは明朝 */

.top {
  --paper: #f7f3ec;
  --paper-deep: #efe8dc;
  --ink: #1c2533;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  background: #fff;
}

.top h1, .top h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; color: var(--navy); }

.eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .28em; color: #9a7b55; }

.btn-ghost { background: rgba(255, 255, 255, .7); }
.btn-primary { box-shadow: 0 6px 18px rgba(19, 32, 58, .18); }

/* 日本語の見出しは、言葉の切れ目で折り返す */
.ph { display: inline-block; }
.pc { display: none; }

/* ヘッダー */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 600; letter-spacing: .1em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo small { font-weight: 400; color: var(--muted); letter-spacing: .02em; margin-left: 2px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.site-nav a { color: var(--ink); text-decoration: none; opacity: .8; }
.site-nav a:hover { opacity: 1; }

/* はじめに */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; overflow: hidden; background: var(--paper); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(247, 243, 236, .96) 0%, rgba(247, 243, 236, .82) 38%, rgba(247, 243, 236, 0) 64%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
}
.hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.45; }
.lead { margin: 28px 0 0; color: #4a5568; font-size: 16px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-phone { justify-self: center; width: min(300px, 70%); transform: rotate(4deg); }
.hero-phone .phone { box-shadow: 0 40px 80px rgba(40, 30, 20, .28), 0 8px 20px rgba(40, 30, 20, .18); }

/* スマホの枠 */
.phone {
  position: relative; padding: 9px; border-radius: 46px; background: #121316;
  box-shadow: 0 24px 50px rgba(28, 37, 51, .18), 0 4px 12px rgba(28, 37, 51, .1);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; z-index: 1; width: 30%; height: 22px; border-radius: 12px; background: #121316; transform: translateX(-50%); }
.phone img { width: 100%; height: auto; border-radius: 37px; }

/* 区切り */
.section { padding: 112px 24px; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin: 0; text-align: left; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.6; }
.section-head p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); }

/* お客様の画面 */
.screens { background: #fff; }
.screen-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.screen-list li { text-align: center; }
.screen-list .phone { max-width: 270px; margin: 0 auto 28px; }
.screen-list li:nth-child(2) .phone { transform: translateY(32px); }
.screen-list li:nth-child(2) h3 { margin-top: 32px; }
.screen-list h3, .steps h3 { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.screen-list h3 span, .steps h3 span { font-family: var(--serif); font-size: 14px; color: #9a7b55; letter-spacing: .1em; }
.screen-list p { max-width: 20em; margin: 0 auto; color: var(--muted); font-size: 15px; }

/* 撮影者の使い方 */
.howto { background: var(--paper); }
.howto-inner { display: grid; grid-template-columns: 340px 1fr; grid-template-areas: "head shot" "steps shot"; gap: 40px 64px; max-width: 1200px; margin: 0 auto; align-items: start; }
.howto .section-head { grid-area: head; }
.steps { grid-area: steps; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding: 22px 0; border-top: 1px solid #e2d9cb; }
.steps li:last-child { border-bottom: 1px solid #e2d9cb; }
.steps h3 { justify-content: flex-start; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.browser { grid-area: shot; margin: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 30px 70px rgba(60, 45, 25, .18), 0 6px 16px rgba(60, 45, 25, .08); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1ede6; border-bottom: 1px solid #e4ddd1; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8cfc1; }
.browser-bar span { margin-left: 14px; padding: 3px 14px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--muted); }
.browser img { width: 100%; height: auto; }

/* できること */
.features { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.feature-grid li { padding: 28px 24px; border-radius: 16px; background: var(--paper); }
.feature-grid svg { width: 32px; height: 32px; margin-bottom: 14px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid svg .fill { fill: #d9c7ad; stroke: none; }
.feature-grid h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* いまのところ */
.closing { padding-top: 32px; }
.closing-card {
  max-width: 960px; margin: 0 auto; padding: 64px 48px; border-radius: 24px; text-align: center;
  background: var(--navy); color: #e8ecf3;
}
.closing-card h2 { margin: 0 auto; max-width: 30em; color: #fff; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.8; }
.closing-card p { margin: 18px 0 0; color: #b9c3d3; }
.closing-card .hero-actions { justify-content: center; }
.closing-card .btn-primary { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
.closing-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

.site-footer { padding: 48px 24px 64px; text-align: center; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--muted); text-decoration: none; letter-spacing: .14em; }

/* ---------------- タブレット・スマホ ---------------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-inner { grid-template-columns: 1fr; grid-template-areas: "head" "steps" "shot"; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header { justify-content: space-between; padding: 14px 16px; }
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero-photo img { position: static; width: 100%; height: 300px; object-position: 50% 50%; }
  .hero-inner { grid-template-columns: 1fr; padding: 36px 16px 64px; gap: 48px; }
  .hero-text { text-align: left; }
  .hero h1 { font-size: 32px; }
  .lead br { display: none; }
  .hero-phone { width: 62%; max-width: 260px; margin-top: -8px; }
  .section { padding: 80px 16px; }
  .section-head { margin-bottom: 44px; }
  .screen-list { grid-template-columns: 1fr; gap: 56px; }
  .screen-list .phone { max-width: 240px; }
  .screen-list li:nth-child(2) .phone { transform: none; }
  .screen-list li:nth-child(2) h3 { margin-top: 0; }
  .closing-card { padding: 44px 22px; border-radius: 18px; }
}

@media (max-width: 860px) {
  /* ヘッダーは写真の上に重なるので、読めるように薄い白を敷く */
  .site-header { position: absolute; background: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 861px) { .pc { display: inline; } }

/* スマホ：画面3枚は横に送って見る・できることは横並びのカードに */
.swipe-hint { display: none; margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .hero-phone { display: none; }
  .hero-inner { padding-bottom: 56px; }
  .screen-list {
    display: flex; gap: 20px; margin: 0 -16px; padding: 8px 16px 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .screen-list::-webkit-scrollbar { display: none; }
  .screen-list li { flex: 0 0 72%; scroll-snap-align: center; }
  .screen-list .phone { max-width: none; margin-bottom: 20px; }
  .swipe-hint { display: block; }
}
@media (max-width: 520px) {
  .feature-grid li { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 20px 18px; }
  .feature-grid svg { grid-row: span 2; margin: 2px 0 0; }
}
