/* トリミングサロン専門LP — スタイルシート（機能）
   設計の正本: design/pages/lp-trimming.md
   見た目の下敷き: design/mockups/20260906_lp-trimming-full_v1.png
   */

/* ============ CSS変数 ============ */
:root {
  /* カラー — theme.css で上書き */
  --brand-600: #997B66;
  --brand-700: #83674F;
  --brand-050: #F1EFEC;
  --ink: #211F1F;
  --ink-body: #6E6C6B;
  --ink-mute: #8A8886;
  --bg: #FCFCFC;
  --bg-warm: #F2F2F2;
  --bg-cool: #EDF1F6;
  --line: #E6E4E1;
  --footer: #4C5760;
  --white: #FFFFFF;

  /* フォント */
  --font-serif: "Noto Serif JP", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Parisienne", cursive;

  /* 寸法 */
  --container: 1280px;
  --gutter: clamp(20px, 2.7vw, 40px);
  --section-y: clamp(56px, 6vw, 96px);
}

/* ============ リセット ============ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button, a[role="button"] {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* ============ コンテナ ============ */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

/* ============ ヘッダー ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(237, 241, 246, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo {
  width: 32px;
  height: 32px;
  color: var(--brand-600);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-grow: 1;
  font-size: 14px;
}

.site-nav a {
  color: var(--ink-body);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--brand-600);
}

/* ============ ボタン ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-700);
}

.btn-sm {
  height: 40px;
  padding: 0 24px;
  font-size: 13px;
}

.btn-outline {
  border: 1px solid var(--brand-600);
  color: var(--brand-600);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(153, 123, 102, 0.05);
}

.btn-text {
  color: var(--brand-600);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  display: inline;
}

.btn-text:hover {
  color: var(--brand-700);
}

/* ============ S1 ヒーロー ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 80px;
}

.hero-content {
  max-width: 500px;
}

.hero-eyebrow {
  display: block;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.7;
}

.hero-title {
  /* 54pxだと「Before / After写真が、」が列幅に収まらず、<br>で3行にしても
     実測5行（高さ391px）に割れた。44pxで3行に収まる（2026-09-06 実測） */
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.45;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.hero-media-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.media-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-body);
  transition: color 0.2s;
}

.media-icon:hover {
  color: var(--brand-600);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.5;
  color: var(--ink-mute);
  font-weight: 400;
  transform: rotate(-6deg);
  margin-top: 24px;
}

/* ヒーローバッジ */
.hero-badge {
  position: absolute;
  bottom: 60px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 999px;
  padding: 12px 16px 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--brand-600);
}

.badge-text {
  font-size: 12px;
  line-height: 1.4;
}

.badge-name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

.badge-name-jp {
  font-size: 11px;
  color: var(--ink-body);
}

.badge-note {
  font-size: 10px;
  color: var(--ink-mute);
}

/* ============ S2 デモ動画 ============ */
.section-demo {
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(56px, 6vw, 96px);
}

.demo-inner {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.5fr;
  gap: 32px;
  align-items: center;
}

.demo-left {
  position: relative;
}

.demo-video {
  position: relative;
  aspect-ratio: 1.5;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.demo-video video,
.demo-video .demo-still {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand-600);
  cursor: pointer;
  z-index: 2;
}

.play-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-script);
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--white);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.demo-right h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  margin-bottom: 16px;
}

.demo-right p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.demo-caption {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* スマホモック */
.demo-phone {
  position: relative;
}

.phone-frame {
  width: 100%;
  height: auto;
  color: #333;
}

.phone-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  border-radius: 8px;
  overflow: hidden;
}

.phone-still {
  display: block;
  width: 100%;
  height: auto;
}

/* 縦動画のテロップ。Parisienne（--font-script）は欧文専用で日本語の字を持たないため、
   ここでは使わない。使うと別フォントに落ちて字間が崩れる（2026-09-07 実測） */
.phone-text {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--white);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  margin: 0;
  pointer-events: none;
}

/* ============ S3 特徴 ============ */
.section-title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.feature-card {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.feature-card:last-child {
  border-right: none;
}

.feature-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 16px;
  color: var(--ink);
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-body);
}

/* ============ S4 ギャラリー ============ */
#gallery {
  text-align: center;
}

.gallery-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 0;
  margin: 0 calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}

/* スマホで横スクロール */
@media (max-width: 768px) {
  .gallery-scroll {
    gap: 16px;
  }
}

/* PCは5枚すべてを並べて見せる。
   横スクロールのままだと 5枚中2枚（New Story / To You）が画面外に出て、
   実測で right:1572 / 1944 と到達しにくくなっていた（2026-09-06）。
   仕様（TRIMMING_LP_SPEC §3 グリッド）は「PC=5カラム／スマホ=横スクロール」。 */
@media (min-width: 769px) {
  .gallery-scroll {
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 16px;
    margin-inline: 0;
    padding-inline: 0;
  }
  .gallery-item {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
  .gallery-arrow {
    flex: 0 0 auto;
  }
}

.gallery-item {
  position: relative;
  flex-shrink: 0;
  width: min(300px, 25vw);
  aspect-ratio: 1;
  scroll-snap-align: center;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真が高明度（warm high-key）なので、白いキャプションが下地に負ける。
   下端だけに暗いグラデーションを敷いて読めるようにする（2026-09-07 実写差し替えで発生） */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(33, 31, 31, 0.55), rgba(33, 31, 31, 0));
  pointer-events: none;
  z-index: 1;
}

.gallery-label {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 4px;
  margin: 0;
  letter-spacing: 0.08em;
}

.gallery-caption {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-size: 13px;
  color: var(--white);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.gallery-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--ink-mute);
  margin: auto 0;
  display: none;
}

/* PCで矢印を表示 */
@media (min-width: 769px) {
  .gallery-arrow {
    display: block;
  }
}

/* ============ S5 想い ============ */
.story-inner {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.story-script {
  position: absolute;
  bottom: 24px;
  left: 0;
  font-family: var(--font-script);
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink-mute);
  font-weight: 400;
  margin: 0;
}

.story-content h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  margin-bottom: 24px;
}

.story-content p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.story-quote {
  padding: 32px 24px;
  background: var(--brand-050);
  border-radius: 6px;
}

.story-quote blockquote {
  margin: 0;
  padding: 0;
}

.story-quote p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.story-quote p:last-child {
  margin-bottom: 0;
}

/* ============ S6 料金 ============ */
.pricing-lead {
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 48px;
  color: var(--ink-body);
}

.pricing-monitor {
  background: var(--bg-warm);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 48px;
}

.pricing-monitor-inner {
  max-width: 600px;
}

.pricing-monitor h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 15px;
  margin-bottom: 8px;
}

.price {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--brand-600);
}

.unit {
  font-size: 13px;
  margin-left: 4px;
}

.pricing-limit {
  font-size: 13px;
  color: var(--brand-600);
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-condition {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-body);
}

/* 料金表グリッド */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  position: relative;
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.pricing-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  transform: rotate(3deg);
}

.pricing-description {
  font-size: 13px;
  color: var(--ink-body);
  margin-bottom: 16px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}

.pricing-features li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* ============ S7 FAQ ============ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary:hover {
  color: var(--brand-600);
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-600);
  transition: transform 0.2s;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-body);
}

/* ============ フッター ============ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer);
  color: var(--white);
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-inner {
  position: relative;
  z-index: 1;
  /* footer-sea は「中央が平坦で暗い」前提で生成してある。0.85 だと海が完全に消えるので 0.62 */
  background: rgba(76, 87, 96, 0.62);
  padding: clamp(56px, 6vw, 96px) 0;
  text-align: center;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer-brand {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.3;
  margin-bottom: 32px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 13px;
}

.footer-info {
  margin: 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s;
  font-size: 13px;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-note {
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ レスポンシブ ============ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 24px;
    justify-self: start;
  }

  .demo-inner {
    grid-template-columns: 1fr;
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .hero-inner {
    padding-block: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    border-left: none;
    border-right: none;
  }

  .feature-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 16px;
  }

  .feature-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .btn-sm span.long {
    display: none;
  }

  .hero-content {
    max-width: none;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-badge {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 20px;
    gap: 8px;
  }

  .badge-logo {
    width: 32px;
    height: 32px;
  }

  .badge-text {
    font-size: 10px;
  }

  .demo-inner {
    gap: 16px;
  }
}

/* ============ フォーム（contactセクション） ============ */
.form-wrap {
  max-width: 760px;
}

.form {
  margin-top: 28px;
}

/* 罠の欄。**display:none にしない**（自動投稿は非表示を見て避けることがある） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.req {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--brand-600);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-600);
  outline: 2px solid rgba(153, 123, 102, 0.1);
  outline-offset: 0;
}

.field .is-bad {
  border-color: #c0392b;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.radios span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.radios label {
  font-size: 14.5px;
}

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 13.5px !important;
  line-height: 1.8;
}

.check input {
  flex: none;
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-600);
}

.hint {
  margin: 6px 0 0;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.8;
}

.err {
  margin: 6px 0 0;
  color: #c0392b;
  font-size: 12.5px;
  font-weight: 700;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 700;
}

.form-status.is-bad {
  color: #c0392b;
}

/* 送信できたときは、フォームを消してここだけ出す */
.form-done {
  margin-top: 28px;
  padding: 26px 28px;
  border: 2px solid var(--brand-600);
  border-radius: 14px;
  background: var(--brand-050);
}

.form-done h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.form-done p {
  margin: 0;
  font-size: 14.5px;
}

@media (max-width: 768px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
