/* ========================================
   サブページ共通スタイル
   （/linen/contact, /linen/contact/thanks, /privacypolicy 用）
   フォーム部品の見た目は style.css の .l-contact__* を再利用し、
   ここではページ枠・ヘッダーバー・サンクス・プライバシーの体裁を定義する。
 ========================================= */

/* ページ全体の前提（style.css の body 設定を継承） */
.p-body {
  background-color: #f8f8f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   ヘッダーバー
   ========================= */
.p-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ebe1;
  position: sticky;
  top: 0;
  z-index: 100;
}

.p-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(56px, 4vw, 72px);
}

.p-header__logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.p-header__logo:hover {
  opacity: 0.6;
}

.p-header__logo-img {
  height: clamp(20px, 2vw, 26px);
  width: auto;
}

/* =========================
   メイン
   ========================= */
.p-main {
  flex: 1 0 auto;
  padding-top: clamp(2.5rem, 1.8rem + 3vw, 5rem);
  padding-bottom: clamp(3rem, 2.3rem + 3vw, 6rem);
}

/* FVを持つページ（リネン）はヘッダー直下にFVを密着させる */
.p-main--fv {
  padding-top: 0;
}

/* =========================
   ファーストビュー（リネン フォーム）
   ========================= */
.p-fv {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(240px, 24vw, 380px);
}

.p-fv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(../img/form_fv_pc01.webp);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}

@media screen and (max-width: 767px) {
  .p-fv__bg {
    background-image: url(../img/form_fv_sp.webp);
  }
}

/* 左を白く、右へ向けて画像が見えるグラデーション */
.p-fv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f8f8f8 16%,
    rgba(248, 248, 248, 0.7) 42%,
    rgba(248, 248, 248, 0) 75%
  );
}

.p-fv__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
  padding-bottom: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
}

.p-fv__badge {
  display: inline-block;
  margin-bottom: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  padding: 0.55em 1.4em;
  background-color: #0b5900;
  color: #fff;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.8rem, 0.74rem + 0.3vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.p-fv__title {
  margin-bottom: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  color: #25402f;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 3.25rem);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.85), 0 0 14px rgba(255, 255, 255, 0.6);
}

.p-fv__lead {
  color: #333333;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.9rem, 0.84rem + 0.3vw, 1.05rem);
  line-height: 1.8;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.7);
}

/* =========================
   特長バー（FV下の3項目カード）
   ========================= */
.p-features {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 0.3rem + 1.2vw, 1.75rem);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  background-color: #faf9f4;
}

.p-features__item {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.3rem + 0.4vw, 0.65rem);
}

.p-features__icon {
  width: clamp(22px, 1.6vw, 30px);
  height: auto;
}

.p-features__text {
  color: #222222;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.8rem, 0.74rem + 0.25vw, 0.95rem);
  font-weight: 500;
  white-space: nowrap;
}

.p-features__divider {
  align-self: stretch;
  width: 1px;
  background-color: #d8d8cf;
}

/* 特長バーはPCのみ表示（SPは縦に長くなるため非表示） */
@media screen and (max-width: 767px) {
  .p-features {
    display: none;
  }
}

/* フォーム上部の必須注記 */
.l-contact__form-intro {
  margin-bottom: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}

/* セクション見出し（CONTACT / PRIVACY POLICY 等） */
.p-section-head {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  text-align: center;
}

.p-section-head__en {
  color: #0b5900;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 4rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: clamp(0.5rem, 0.32rem + 0.75vw, 1rem);
}

.p-section-head__ja {
  color: #0b5900;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

/* =========================
   サンクスページ
   ========================= */
.p-thanks {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}

.p-thanks__icon {
  margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

.p-thanks__icon svg {
  height: auto;
  width: clamp(56px, 12vw, 88px);
}

.p-thanks__title {
  color: #0b5900;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
}

.p-thanks__lead {
  color: #222222;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.9rem, 0.86rem + 0.19vw, 1rem);
  font-weight: 500;
  margin-bottom: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
}

.p-thanks__text {
  color: #555;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.85rem, 0.82rem + 0.19vw, 0.95rem);
  line-height: 1.9;
  margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}

/* 共通ボタン（緑） */
.p-btn {
  background-color: #0b5900;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 0.83rem + 0.19vw, 1rem);
  font-weight: 500;
  min-width: 240px;
  padding: clamp(0.85rem, 0.7rem + 0.6vw, 1.1rem) 2rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.p-btn:hover {
  opacity: 0.85;
}

/* =========================
   プライバシーポリシー
   ========================= */
.p-privacy {
  margin: 0 auto;
  max-width: 880px;
}

.p-privacy__intro {
  color: #222222;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.9rem, 0.86rem + 0.19vw, 1rem);
  line-height: 1.9;
  margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}

.p-privacy__section {
  margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

.p-privacy__heading {
  border-left: 4px solid #0b5900;
  color: #0b5900;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: clamp(0.6rem, 0.5rem + 0.4vw, 1rem);
  padding-left: 0.75rem;
}

.p-privacy__text {
  color: #333333;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 0.84rem + 0.19vw, 0.975rem);
  line-height: 1.9;
}

.p-privacy__date {
  color: #777;
  font-size: clamp(0.8rem, 0.77rem + 0.13vw, 0.875rem);
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  text-align: right;
}

/* =========================
   フォームセクション（リネン問い合わせ）
   フォーム部品は style.css の .l-contact__* を再利用するため、
   ここでは外枠の余白のみ調整
   ========================= */
/* 特長バー（またはFV）とフォームの間の余白 */
.p-form-section {
  margin-top: clamp(1.25rem, 0.9rem + 1.5vw, 2.5rem);
}

.p-form-section .l-contact__form {
  background-color: #fff;
  border-radius: 12px;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 3rem);
}

/* スマホはフォーム外（左右）の余白を少し狭くする */
@media screen and (max-width: 767px) {
  .p-form-section .l-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ハニーポット（bot対策・非表示） */
.p-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   お問い合わせ種別（ラジオ・押しやすいサイズ）
   ========================= */
.l-contact__form-radio-group {
  gap: clamp(0.15rem, 0.1rem + 0.2vw, 0.3rem);
}

/* 各選択肢を行全体タップできるように余白を確保 */
.l-contact__form-radio-group .l-contact__form-checkbox {
  align-items: center;
  gap: 12px;
  padding: clamp(0.4rem, 0.35rem + 0.25vw, 0.55rem) 0;
  cursor: pointer;
}

/* ラジオ本体を大きく・テーマカラーに（自前描画でブラウザ差・中央ズレを解消） */
.l-contact__form-radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #b9c0b0;
  border-radius: 50%;
  background-color: #fff;
  display: grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

/* 中の丸（選択時に表示） */
.l-contact__form-radio-group input[type="radio"]::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #0b5900;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.l-contact__form-radio-group input[type="radio"]:checked {
  border-color: #0b5900;
}

.l-contact__form-radio-group input[type="radio"]:checked::before {
  transform: scale(1);
}

.l-contact__form-radio-group input[type="radio"]:focus-visible {
  outline: 2px solid #0b5900;
  outline-offset: 2px;
}

.l-contact__form-radio-group .l-contact__form-checkbox-text {
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

/* =========================
   フッター（style.css の .l-footer を再利用するため最小限）
   ========================= */
.p-footer {
  flex-shrink: 0;
}
