/* ============================================================
   Chepics — トップページ（index.html）専用
   contact.html / 404.html は引き続き style.css を使う。

   Font
     Arial（和文は端末のゴシック体）。ABOUT US 背景の英字のみ Cormorant Garamond

   Palette
     bg           #FFFFFF
     tint         #F5F4F2  (薄いグレーの面)
     text         #1A1A1A
     primary      #F65B0A  (サービスのプライマリーカラー。ボタン・数字・強調)
     dark         #161514  (濃色セクション・フッター)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --tint: #F5F4F2;
  --text: #1A1A1A;
  --muted: #5F5F5F;
  --rule: #D9D6D2;

  /* primary（#F65B0A）。色味を変えるときはこの3つをまとめて直す */
  --accent: #F65B0A;
  --accent-hover: #DB4E05;
  --accent-deep: #C2450A;    /* 白地の小さな文字用（#F65B0A のままだと白地でコントラスト不足） */


  --dark: #161514;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, .72);

  /* 欧文は Arial、和文は Arial に字形がないので端末のゴシック体で表示される */
  --font: Arial, "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic ProN",
          "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-ghost: "Cormorant Garamond", "Times New Roman", serif;

  --gutter: 24px;
  --max: 1320px;
}

/* ---------- reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;     /* 文節単位で折り返す（未対応ブラウザでは無視される） */
  line-break: strict;
}

h1, h2, h3, .about-title, .card-title, .flow-title, .merit-title,
.stat-label, .item-name, .faq-q { text-wrap: balance; }

.about-lead, .card-body, .flow-text, .merit-text, .section-head-text,
.contact-band-text, .faq-a p, .bullets li, .source { text-wrap: pretty; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.45; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* <span class="nb"> の中では改行しない（語の途中で折り返さないため） */
.nb { display: inline-block; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--on-dark); }

/* 英字の見出し + 右に伸びる細い罫 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.2;
}
.eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.section-head {
  display: grid;
  gap: 16px 48px;
  margin-bottom: 48px;
}
.section-head-text {
  color: var(--muted);
  font-size: .875rem;
  line-height: 2;
}
.section--dark .section-head-text { color: var(--on-dark-muted); }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .section-head-text { justify-self: end; max-width: 34em; }

  /* 見出しのすぐ右に説明文を置く。幅が足りる限り1行で表示する */
  .section-head--inline { grid-template-columns: auto auto; justify-content: start; }
  .section-head--inline .section-head-text { justify-self: start; max-width: none; }
}


/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 10px 32px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
  color: #FFFFFF;
  transition: background-color .2s;
}
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* 白文字 × #F65B0A はコントラストが低めなので、太字・18px 以上で読みやすさを確保する */
.btn--accent {
  min-width: 260px;
  min-height: 60px;
  padding-inline: 40px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--accent);
}
.btn--accent:hover { background: var(--accent-hover); color: #FFFFFF; }

/* CONTACT の READ MORE。以前の半透明白（写真の上で見えていた色）を不透明にしたもの */
.btn--solid {
  min-width: 180px;
  background: #504E4A;
}
.btn--solid:hover { background: #63605B; color: #FFFFFF; }

/* ---------- header ---------- */

/* ヒーローの上に重ねる透明ヘッダー */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--on-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
}
.brand { line-height: 0; }
.brand-logo { height: clamp(38px, 3.6vw, 52px); width: auto; }   /* スマホ38px〜PC52px */

.global-nav-list {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
}
.global-nav-list a {
  font-size: .8125rem;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  opacity: .92;
}
.global-nav-list a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle { display: none; }

/* スマホ：ハンバーガーで開閉するメニュー */
@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 2;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s, background-color .25s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before,
  .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(22, 21, 20, .96);
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility .25s;
  }
  .global-nav.is-open { visibility: visible; opacity: 1; }
  .global-nav-list { flex-direction: column; align-items: center; gap: 28px; }
  .global-nav-list a { font-size: 1rem; }
  .nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 72vh, 760px);
  padding: 160px 0 80px;   /* 上はヘッダー（112px）＋余白 */
  overflow: hidden;
  color: var(--on-dark);
  background: var(--dark);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
/* 左から右へ暗さが抜けるグラデーション。文字の読みやすさを確保する */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, .55) 38%, rgba(10, 9, 8, .1) 70%),
    linear-gradient(180deg, rgba(10, 9, 8, .45) 0%, rgba(10, 9, 8, 0) 22%);
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
}
.hero-title .nb { display: block; }
.hero-desc {
  margin-top: 28px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .1em;
}
.hero-actions { margin-top: 40px; }

@media (max-width: 600px) {
  .hero { align-items: flex-end; min-height: 600px; }
  .hero-image { object-position: 78% center; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(10, 9, 8, .5) 0%, rgba(10, 9, 8, .25) 35%, rgba(10, 9, 8, .82) 75%);
  }
}

/* ---------- about ---------- */

.about { padding-bottom: 64px; }
.about-body {
  text-align: center;
  padding-top: 40px;
}
/* 背景に薄く敷く大きな英字。幅に収まらなければカンマの後で2行に折り返す。
   下端に見出しが少し掛かるよう、負のマージンで見出しを引き上げる */
.about-ghost {
  position: relative;
  margin-bottom: -.28em;
  font-family: var(--font-ghost);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  color: #F0EFED;
  pointer-events: none;
  user-select: none;
}
.about-title {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
}
.about-lead {
  position: relative;
  max-width: 40em;
  margin: 28px auto 0;
  color: #3A3A3A;
  font-size: .9375rem;
  line-height: 2.1;
}
.about-lead + .about-lead { margin-top: 4px; }

/* ---------- services ---------- */

.services { padding-top: 64px; }

.cards {
  display: grid;
  gap: 48px 28px;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
}
.card { display: flex; flex-direction: column; }
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tint);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.card:hover .card-image { transform: scale(1.03); }
/* 縦長の写真は 4:3 の枠で上寄りに切り抜き、顔と手元を残す */
.card-media--portrait .card-image { object-position: center 22%; }
.card-title {
  margin-top: 24px;
  font-size: 1.1875rem;
  letter-spacing: .1em;
}
/* 本文を伸ばして、下の箱の位置をカード同士で揃える */
.card-body {
  flex: 1;
  margin-top: 12px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.9;
}
.card-points {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--tint);
  font-size: .8125rem;
  line-height: 1.8;
}
.card-points li {
  position: relative;
  padding-left: 1.1em;
}
.card-points li + li { margin-top: 4px; }
.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
}

/* ---------- flow ---------- */

.flow {
  display: grid;
  gap: 40px 24px;
}
@media (min-width: 600px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr); } }

.flow-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #E8E6E3;
}
.flow-image { width: 100%; height: 100%; object-fit: cover; }
.flow-num {
  display: block;
  margin-top: 20px;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--accent-deep);
}
.flow-title {
  margin-top: 10px;
  font-size: 1.0625rem;
  letter-spacing: .08em;
}
.flow-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.8;
}

/* ---------- items ---------- */

/* 10品目を PC・タブレットでは 5列×2段、スマホでは 2列×5段で並べる */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
}
@media (min-width: 760px) {
  .items-grid { grid-template-columns: repeat(5, 1fr); gap: 40px 24px; }
}
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.item-image {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--tint);
}
.item-name {
  margin-top: 12px;
  font-size: .8125rem;
  line-height: 1.6;
  letter-spacing: .06em;
}

/* ---------- merit ---------- */

.merits {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .14);   /* セルの隙間を罫線として見せる */
  border: 1px solid rgba(255, 255, 255, .14);
}
@media (min-width: 760px) { .merits { grid-template-columns: repeat(3, 1fr); } }
.merit {
  padding: 36px 32px;
  background: var(--dark);
}
.merit-num {
  font-size: .8125rem;
  letter-spacing: .2em;
  color: var(--accent);
}
.merit-title {
  margin-top: 12px;
  font-size: 1.125rem;
  letter-spacing: .08em;
}
.merit-text {
  margin-top: 12px;
  color: var(--on-dark-muted);
  font-size: .875rem;
  line-height: 1.9;
}

.data { margin-top: 72px; }
.data-title {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  font-size: 1rem;
  letter-spacing: .08em;
}
.stats {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--accent);
}
.stat-label { color: var(--on-dark-muted); font-size: .875rem; line-height: 1.7; }

.bullets {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.bullets li {
  position: relative;
  padding-left: 1.2em;
  font-size: .9375rem;
  line-height: 1.9;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.bullets strong {
  font-size: 1.25em;
  font-weight: 500;
  color: var(--accent);
}
.source {
  margin-top: 20px;
  color: rgba(255, 255, 255, .5);
  font-size: .75rem;
  line-height: 1.7;
}

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--text); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-heading { font-size: inherit; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  cursor: pointer;
}
.faq-q-text::before {
  content: "Q.";
  margin-right: .8em;
  font-weight: 500;
  color: var(--accent-deep);
}
.faq-icon {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 4px 24px 2.2em; }
.faq-a p { color: var(--muted); font-size: .9375rem; line-height: 1.95; }

/* ---------- contact band ---------- */

/* 元画像（エントランスラウンジ）が明るいので、左を濃くしたグラデーションで白文字を読ませる */
.contact-band {
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 80px 0;
  color: var(--on-dark);
  background-color: #2A2723;
  background-image:
    linear-gradient(90deg, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, .55) 50%, rgba(10, 9, 8, .3) 100%),
    url("images/contact-bg.jpg");
  background-image:
    linear-gradient(90deg, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, .55) 50%, rgba(10, 9, 8, .3) 100%),
    image-set(url("images/contact-bg-2000.webp") type("image/webp"), url("images/contact-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 70%;   /* ソファ周りが見える位置 */
}
@media (max-width: 760px) {
  .contact-band {
    min-height: 360px;
    background-image:
      linear-gradient(90deg, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, .6) 100%),
      image-set(url("images/contact-bg-1200.webp") type("image/webp"), url("images/contact-bg.jpg") type("image/jpeg"));
  }
}
.contact-band-text {
  margin: 20px 0 28px;
  font-size: .9375rem;
  line-height: 2;
  letter-spacing: .08em;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  padding: 72px 0 40px;
  color: var(--on-dark);
  background-color: var(--dark);
  /* 画像差し替え: images/lp/footer.jpg（デスク・資料など暗めの写真） */
  background-image:
    linear-gradient(90deg, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .7) 55%, rgba(10, 9, 8, .45) 100%),
    url("images/lp/footer.jpg");
  background-size: cover;
  background-position: center;
}
.footer-inner {
  display: grid;
  gap: 48px;
}
.footer-logo { height: 26px; width: auto; }
.footer-company {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin-top: 24px;
  font-size: .8125rem;
  line-height: 1.8;
}
.footer-company dt { color: var(--on-dark-muted); }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.footer-nav a {
  font-size: .8125rem;
  letter-spacing: .06em;
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .75rem;
  color: var(--on-dark-muted);
}
.footer-copy small { font-size: inherit; letter-spacing: .08em; }

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .about-lead { text-align: left; }
  .merit { padding: 28px 24px; }
  .data { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
