/* =========================
   Base
========================= */
:root{
  --text: #0f172a;
  --muted: #475569;
  --white: #ffffff;
  --line: rgba(15, 23, 42, .12);
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --bg: #f8fafc;

  /* 上品さ＝“一定の間隔” */
  --r-1: 10px;
  --r-2: 16px;
  --r-3: 22px;
  --r-4: 32px;
  --r-5: 44px;

  --radius: 18px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: .01em;
}

.wrap{
  width: min(1120px, 94vw);
  margin: 0 auto;
}

/* “カード内”の読み心地（見出しと本文の余白を安定させる） */
p{ margin: 0 0 var(--r-2); }
p:last-child{ margin-bottom: 0; }

/* =========================
   Top Nav (shared)
========================= */
.topnav{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 0;
  z-index: 10;
}

.topnav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--r-2);
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 750;
}

.brand__logo{
  display: block;
  height: 40px;
  width: auto;
}

.brand__name{
  position: relative;
  top: 1px;
}

.topnav__links{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ナビ：リンクをアウトライン統一（上品＝薄く） */
.topnav__links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

/* CTA（共通） */
.topnav__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1;
  border: 2px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.topnav .topnav__cta{
  background: rgba(56, 189, 248, .16);
  color: #334155;
  border-color: rgba(56, 189, 248, .55);
}

/* =========================
   ヘッダー（写真上）専用のCTA上書き
========================= */
.topnav .topnav__cta{
  background: transparent;                /* 白つぶれ防止 */
  color: #ffffff;                         /* 白文字 */
  border: 2px solid rgba(255,255,255,.9); /* 白枠 */
}

/* hover時 */
.topnav .topnav__cta:hover{
  background: rgba(255,255,255,.15);
}

.topnav .topnav__cta:hover{
  background: rgba(56, 189, 248, .26);
  border-color: rgba(56, 189, 248, .78);
  transform: translateY(-1px);
}

/* 白背景上のCTA（index下段・business下・contact下など） */
.contact__cta .topnav__cta,
.biz-cta .topnav__cta,
.home-lower .topnav__cta{
  background: #fff;
  color: #111;
  border-color: #e5e7eb;
}

.contact__cta .topnav__cta:hover,
.biz-cta .topnav__cta:hover,
.home-lower .topnav__cta:hover{
  transform: translateY(-1px);
}

/* =========================
   Hero (index)
========================= */
.hero{
  position: relative;
  min-height: min(48vh, 440px); /*“短め”を正式値に */
  display: grid;
  place-items: center;
  padding: 44px 0;
  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, .18),  /* slate-900系 */
    rgba(15, 23, 42, .06)
  );
}


.hero__inner{
  position: relative;
  width: min(980px, 92vw);
  z-index: 1;
  text-align: center;
}

/* ここは“上品さ”の核：文字サイズと行間を抑える */
.hero__lead{
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  line-height: 1.9;
  letter-spacing: .05em;
  max-width: 44ch;
  margin: 0 auto;
  text-align: center;
  font-weight: 520;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* =========================
   Index 下段（home-lower / home-card）
========================= */
.home-lower{
  padding: var(--r-5) 0 calc(var(--r-5) + 10px);
}

.home-card{
  width: min(920px, 92vw);
  margin: 0 auto;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow:
    0 22px 50px rgba(0,0,0,.12),
    0 0 0 1px rgba(15,23,42,.08);
}

/* カード内の見出し：左揃えで統一＆余白を固定 */
.home-card h2{
  text-align: center;
  margin: 0 0 var(--r-1);
  font-size: 1.12rem;
  letter-spacing: .02em;
}

.home-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-list li{
  padding: 8px 0;
  border-bottom: 1px dashed rgba(15,23,42,.10);
  text-align: center;
}

/* “ちょっとした〜”は中央に */
.home-note{
  text-align: center;
  margin: 0 0 12px;
  color: var(--muted);
}

/* ボタン列：中央 + 折り返し（上品＝間隔一定） */
.home-btns{
  margin: var(--r-2) 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-sep{
  margin: var(--r-3) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* =========================
   Shared: photo background + center white card
   (contact / business / flow)
========================= */
.contact-hero{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 0 60px;
  position: relative;
  background-color: #0b0f14;
  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  z-index: 0;
}

.contact-card{
  position: relative;
  z-index: 1;
  width: min(920px, 92vw);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 40px 38px 34px;
  box-shadow:
    0 30px 70px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.25);
}

/* ページ見出し（h1）：上品に“詰めすぎない” */
.contact-title{
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(26px, 3.1vw, 36px);
  letter-spacing: .06em;
}

/* リード：少しだけ薄く */
.contact-lead{
  margin: 0 0 var(--r-4);
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
}

/* ページ内セクションの縦リズムを統一 */
.contact-card section{
  margin-top: var(--r-4);
  padding-top: var(--r-3);
  border-top: 1px solid var(--line);
}
.contact-card section:first-of-type{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* CTA下段 */
.contact__cta{
  text-align: center;
  margin-top: var(--r-5);
}

/* =========================
   Contact Form
========================= */
.formgrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
}

.field--full{ grid-column: 1 / -1; }

.choicegrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid rgba(0,0,0,.08);
  cursor: pointer;
  user-select: none;
}

.choice input{ transform: scale(1.1); }

.choice:hover{ background: #eef2f7; }

.field__head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.field__label{
  font-weight: 750;
  color: var(--text);
  letter-spacing: .02em;
}

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.badge--req{
  background: #e11;
  color: #fff;
}

.field__input,
.field__textarea{
  width: 100%;
  background: #f3f4f6;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  outline: none;
}

.field__textarea{
  min-height: 240px;
  line-height: 1.75;
  resize: vertical;
}

.field__input:focus,
.field__textarea:focus{
  background: #fff;
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.field__help{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.noticebox{
  background: #f6f6f6;
  border-radius: 12px;
  padding: 14px 16px;
}

.noticebox__text{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.actions{
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

/* ハニーポット */
.hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   Business Page（読みやすさ統一）
========================= */
.page-business .contact-card{
  text-align: center;
}

.page-business .contact-title,
.page-business .contact-lead{
  text-align: center;
}

/* business の見出しは統一ルールで少し控えめに */
.biz-h2{
  margin: 0 0 var(--r-1);
  font-size: 1.12rem;
  text-align: center;
  letter-spacing: .02em;
}

.biz-list{
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.85;
}

.biz-list li{
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15,23,42,.10);
  text-align: center;
}

.biz-list strong{
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: .01em;
}

.biz-text{
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}

.biz-cta{
  text-align: center;
  margin: var(--r-4) 0 0;
}

/* =========================
   Flow（縦フロー：矢じり）
========================= */
.flow{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.flow__item{
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: #f8fafc;
}

.flow__item:not(:last-child)::after{
  content: "";
  position: absolute;
  left: 24px;
  bottom: -12px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid rgba(15,23,42,.12);
}

.flow__item:not(:last-child)::before{
  content: "";
  position: absolute;
  left: 24px;
  bottom: -11px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #f8fafc;
}

.flow__badge{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 850;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
}

.flow__title{
  font-weight: 850;
  margin-bottom: 4px;
  letter-spacing: .01em;
}

.flow__text{
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}

/* =========================
   Responsive
========================= */
@media (max-width: 860px){
  .contact-card{ padding: 28px 18px 22px; }
  .formgrid{ grid-template-columns: 1fr; }
  .choicegrid{ grid-template-columns: 1fr; }
}
