/* ========= Base ========= */
:root{
  --contact-gap: clamp(16px, 2.5vw, 28px);
  --contact-radius: 14px;
  --contact-border: 1px;
  --contact-bg: #fff;
  --contact-line: #ccc;
  --contact-accent: #111;
  --req-badge-bg: #0e5b77;
  --req-badge-fg: #fff;
}

.l-container {
    width: 75vw;
    margin-inline: auto;
    background: #f9f9f9;
    padding: 5%;
    border-radius: 35px;
    margin-bottom: 10%;
}
/* ========= Layout ========= */
.contact{ display:grid; grid-template-columns:1fr; gap:var(--contact-gap); }
@media (min-width:768px){
  .contact{ grid-template-columns: minmax(0,1fr) 320px; }
}
@media (min-width:1024px){
    .contact {
        grid-template-columns: auto;
        gap: calc(var(--contact-gap) * 1.2);
        margin-bottom: 5%;
    }
}
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row textarea, .form-row select {
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px;
    transition: box-shad;
}

.contact__aside{ position:relative; }

/* ========= Form UI ========= */
.contact form{ display:grid; gap:clamp(14px,2.2vw,30px); }
.contact label{ color:#222; font-weight:600; margin-bottom:6px; display:inline-block; }

.contact input[type="text"],
.contact input[type="email"],
.contact textarea,
.contact select{
  width:100%; background:#fff;
  border:var(--contact-border) solid #f4f4f4;
  border-radius:6px; padding:8px 14px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .02s ease;
  outline:none;
}
.contact input:focus,
.contact textarea:focus,
.contact select:focus{
  border-color: color-mix(in oklab, var(--contact-accent) 24%, #999);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--contact-accent) 12%, transparent);
}
@media (hover:hover) and (pointer:fine){
  .contact input:hover,
  .contact textarea:hover,
  .contact select:hover { transform: translateY(-0.5px); }
}
.contact textarea{ min-height:10rem; resize:vertical; }

/* エラーブロック丸み整え */
.mb-4.p-3{ border-radius:12px !important; }

/* ボタン */
.btn-primary{
  margin-top: 5%;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 25px 20px;
  border-radius: 12px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease;
}
@media (hover:hover) and (pointer:fine){
  .btn-primary:hover{ transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,0,0,.15); background:#000; }
}
.btn-primary:active{ transform:translateY(0); box-shadow:none; }

/* ========= Sidebar Nav ========= */
.contact-nav{ display:grid; gap:10px; }
.contact-nav__title{ font-weight:500; margin-bottom:6px; }
.contact-nav a{
  display:flex; align-items:center; gap:.6em;
  padding:10px 12px; border-radius:10px;
  border:var(--contact-border) dashed transparent;
  text-decoration:none; color:#222;
  transition: background-color .2s ease, border-color .2s ease, transform .02s ease;
}
@media (hover:hover) and (pointer:fine){
  .contact-nav a:hover{ background:#f6f6f6; border-color:var(--contact-line); transform:translateY(-0.5px); }
}

/* そのページだけのリセットは .contact 配下に限定 */
.contact button,
.contact input,
.contact optgroup,
.contact select,
.contact textarea{
  -webkit-appearance:none;
  appearance:none;
  vertical-align:middle;
  color:inherit;
  font:inherit;
  background:transparent;
  padding:0;
  margin:0;
  border-radius:0;
  text-align:inherit;
  text-transform:inherit;
  line-height:2rem;
}

main{ min-height: fit-content!important; }

/* ========= Small ========= */
@media (max-width:374px){
  .l-container{ width:92vw; }
  .btn-primary{ width:100%; }
}

/* ========= Dark ========= */
@media (prefers-color-scheme:dark){
  :root{ --contact-bg:#121212; --contact-line:rgba(255,255,255,.12); }
  body{ color:#e9e9e9; }
  .contact__main,.contact__card{ box-shadow:0 10px 28px rgba(0,0,0,.4); }
  .contact input,.contact textarea,.contact select{ background:#0f0f0f; color:#eee; }
  .contact-nav a{ color:#e9e9e9; }
}

/* ラベル左・フィールド右の2カラム */
.contact .form-row{
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: clamp(20px, 3vw, 35px);
    align-items: center;

}
@media (max-width: 767px){
  .contact .form-row{ grid-template-columns: 1fr; }
}

/* ラベルは左寄せ（テキストは左、バッジは右端へ） */
.contact .form-row > label{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  justify-content:flex-start;
}


.contact .form-row:has(input[required]) > label::after,
.contact .form-row:has(textarea[required]) > label::after,
.contact .form-row:has(select[required]) > label::after{
  content:"必須";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 24px;
  width: 65px;
  padding: 0 9px;
  margin-left: auto;
  border-radius: 999px;
  background: #22a5bf;
  color: var(--req-badge-fg);
  font-size:0.8rem;
  font-weight:500;
  line-height:1;
  letter-spacing:.02em;
  transform: translateY(1px);
  text-align:center;
}
@media (max-width: 767px){
  .contact .form-row:has(input[required]) > label::after,
  .contact .form-row:has(textarea[required]) > label::after,
  .contact .form-row:has(select[required]) > label::after{
    margin-left:12px; /* スマホは文字の右隣に */
  }
}

/* 既存のアスタリスクは非表示（HTMLは触らなくてOK） */
.contact .form-row > label .text-red-500{ display:none; }

/* テキストエリアなど上揃えしたい行に付与 */
.form-row--top{ align-items:start; }

/* ラベル体裁（Tailwind上書きOK） */
.form-row > label{
    margin: 0;
    font-weight: 500;
    color: #333;
    font-size: 0.94rem;
    letter-spacing: 1px;
}

/* 入力を横幅いっぱいに */
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select{ width:100%; }

/* 小さめ端末は縦積み */
@media (max-width: 767px){
  .form-row{
    grid-template-columns: 1fr;
    align-items:start;
  }
}

/* --- Hero --- */
.hero{
  height: 40vh;
  min-height: 400px;
  display:flex;
  background:#fff;
  text-align:left;
  align-items:center;
  margin-bottom:0%;
}
.contact-inner{
  width:90vw;
  margin:0 auto;
  padding:0;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.contact-inner h1,
.contact-inner h3{ margin:.3em 0; }
h3.ds{
  font-family:"Bebas Neue", sans-serif;
  font-size:3rem;
  letter-spacing:5px;
  color:#333;
}
h1.c-h1.text-2xl.font-bold.mb-6 {
    font-weight: 500;
    font-size: 1.1rem;
    color: #333;
    letter-spacing: 3px;
}
@media (max-width: 480px){
  .hero{ height:40vh; min-height:200px; }
  .contact-inner{ width:92vw; padding:1.2rem; }
  .contact-inner h1{ font-size:1.4rem; }
  .contact-inner h3{ font-size:.85rem; }
}
textarea#content {
    border-radius: 12px;
    padding: 12px 14px;
}
p.lead-contact {
    width: 75vw;
    margin: -4% auto 5%;
    font-size: 0.98rem;
    line-height: 2rem;
    font-weight: 500;
    color: #333;
}
.conact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 1rem;
}

.conact .vside {
  flex: 0 0 300px; /* サイド固定幅 */
}



/* ───── STEP NAV (入力 — 確認 — 送信) ───── */
/* ===== 左にタイトル／右にステップ ===== */
.vside {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.vside {
    border-bottom: 1px solid #868686;
    padding: 0 0 4%;
}
.titleform {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: #333;
    -webkit-text-stroke: 0.02vw;
}
/* タイプミス注意：HTMLが conact__aside ならここも揃える */
.conact__aside {             
  margin-left: auto;         /* 右端へ寄せる */
}

/* ===== STEP NAV（入力 — 確認 — 送信） ===== */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.8rem;               /* ラベル間隔 */
  padding-bottom: 0.8rem;    /* 下ドット分の余白 */
  font-size: 0.8rem;
  letter-spacing: .04em;
}
.step {
  display: flex;
  align-items: center;
  position: relative;
}
/* 仕切りのダッシュ */
.step + .step::before {
  content: "—";
  margin: 0 .8rem;
  color: #cfcfcf;
  font-weight: 400;
}
/* ラベル色（デフォ薄グレー） */
.step-label {
  position: relative;
  color: #b7b7b7;
  line-height: 1.2;
  white-space: nowrap;
}
/* 現在位置だけ黒字＋下に黒い点 */
.step.current-step .step-label {
  color: #111;
  font-weight: 500;
}
.step.current-step .step-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.85em;
  width: 6px;
  height: 6px;
  background: #111;
  border-radius: 50%;
  transform: translateX(-50%);
}
textarea#content {
    border-radius: 8px;
    padding: 7px 14px;
    background: #fff;
        font-size: 1rem;
    font-weight: 400;
}
/* ===== スマホ ===== */
@media (max-width: 768px) {
  .vside {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .stepper {
    gap: 0.6rem;
    font-size: 0.9rem;
    padding-bottom: 0.7rem;
  }
  .step + .step::before {
    margin: 0 .6rem;
  }
  .step.current-step .step-label::after {
    width: 5px;
    height: 5px;
    bottom: -0.8em;
  }
}
