@charset "UTF-8";

/* =========================================
   CONTACT PAGE STYLES (CF7対応版)
   ========================================= */

/* Common Section Padding */
.contact-form-sec {
  padding: 0 0 clamp(80px, 10vw, 160px);
  position: relative;
}

/* ----------------------------------
   INTRO
   ---------------------------------- */
.form-intro {
  margin-bottom: clamp(60px, 8vw, 100px);
  max-width: 800px;
}
.form-intro p {
  font-size: 16px;
  line-height: 2.2;
  font-weight: 500;
}
.note {
  font-size: 13px;
  color: #888;
  display: block;
  margin-top: 10px;
}

/* ----------------------------------
   FORM LAYOUT (BASE)
   ---------------------------------- */
.stylish-form {
  width: 100%;
  border-top: 1px solid #111;
}

/* Row Style */
.form-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s;
}
.form-row:hover,
.form-row:focus-within {
  background-color: #fcfcfc;
}

/* Head (Left Column) */
.form-head {
  width: clamp(200px, 25vw, 300px);
  padding: 40px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.label-en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  color: #111;
}
.label-jp {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}
.req-mark {
  position: absolute;
  top: 42px;
  right: 40px;
  font-size: 8px;
  color: var(--c-green);
}

/* Body (Right Column) */
.form-body {
  flex-grow: 1;
  padding: 40px 0 40px 40px;
  border-left: 1px solid #e0e0e0;
}

/* Input Styles */
.input-underline {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #111;
  font-family: var(--font-jp);
  padding: 5px 0;
  border-radius: 0;
  outline: none;
  transition: all 0.3s;
}
.input-underline::placeholder {
  color: #ccc;
}
.textarea-box {
  height: 150px;
  resize: vertical;
  line-height: 1.8;
}

/* ----------------------------------
   CONTACT FORM 7 SPECIFIC STYLES
   ---------------------------------- */

/* 1. Reset standard inputs (青い丸などを消す) */
.wpcf7-list-item input[type="radio"],
.wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* 透明にする */
  z-index: 10; /* 最前面に配置してクリックを受け止める */
  cursor: pointer;
}

/* 2. Base List Item Layout */
.wpcf7-list-item {
  display: inline-block;
  margin: 0 20px 10px 0;
  position: relative; /* ★重要：inputを絶対配置するための基準にする */
}
.wpcf7-list-item-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
  line-height: 1.5;
  z-index: 1; /* inputより後ろ（見た目だけ担当） */
}

/* /* ----------------------------------
   3. Radio Buttons (カテゴリ用 - 丸)
   ---------------------------------- */

/* ★重要：ズレ防止のため box-sizing を指定 */
.wpcf7-radio .wpcf7-list-item-label::before,
.wpcf7-radio .wpcf7-list-item-label::after {
  box-sizing: border-box;
}

/* 外枠 */
.wpcf7-radio .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* 縦方向の中央揃え */
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.3s;
}

/* 選択時の外枠色 */
.wpcf7-radio input:checked + .wpcf7-list-item-label::before {
  border-color: var(--c-green);
}

/* 中の点 */
.wpcf7-radio .wpcf7-list-item-label::after {
  content: "";
  position: absolute;

  /* ★修正：中心座標を「外枠の中心（10px）」に合わせる */
  left: 10px;
  top: 50%;

  /* ★修正：自身の中心を基準点に合わせて拡大縮小する */
  transform: translate(-50%, -50%) scale(0);

  width: 10px;
  height: 10px;
  background-color: var(--c-green);
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 選択時の点表示 */
.wpcf7-radio input:checked + .wpcf7-list-item-label::after {
  /* scale(1) になる際も translate(-50%, -50%) を維持する */
  transform: translate(-50%, -50%) scale(1);
}
/* 4. Checkbox (プライバシーポリシー用 - 四角) */
/* 外枠 */
.wpcf7-acceptance .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 0; /* 四角にする */
  background: #fff;
  transition: all 0.3s;
}
/* 選択時の背景色 */
.wpcf7-acceptance input:checked + .wpcf7-list-item-label::before {
  border-color: var(--c-green);
  background-color: var(--c-green);
}
/* チェックマーク（レ点） */
.wpcf7-acceptance .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 45%;
  transform: translateY(-50%) rotate(-45deg);
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
/* 選択時のレ点表示 */
.wpcf7-acceptance input:checked + .wpcf7-list-item-label::after {
  opacity: 1;
}

/* プライバシーポリシーのリンク調整 */
.wpcf7-acceptance a {
  color: #111;
  text-decoration: underline;
  position: relative;
  z-index: 20; /* ★重要：透明input(10)より大きくして、クリックできるようにする */
  pointer-events: auto; /* 念のためクリックを許可 */
}
/* =========================================
   BUG FIX: プライバシーポリシーのリンク対応
   ========================================= */

/* 同意項目の時だけ、文字（とリンク）を透明inputより手前に配置する */
.wpcf7-acceptance .wpcf7-list-item-label {
  z-index: 15; /* input(10) より大きくする */
}
/* ----------------------------------
   SUBMIT AREA
   ---------------------------------- */
.form-submit-area {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* Big Submit Button */
.submit-big-btn {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 80px;
  background-color: #111;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  overflow: hidden;
  /* buttonタグのデフォルトスタイル打ち消し */
  appearance: none;
  font-family: inherit;
}
.s-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.1em;
  transition: color 0.4s;
}
.s-arrow {
  position: relative;
  z-index: 2;
  font-size: 24px;
  transition: transform 0.4s;
}
.s-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--c-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}
.submit-big-btn:hover .s-bg {
  transform: scaleX(1);
}
.submit-big-btn:hover .s-arrow {
  transform: translateX(10px);
}
/* =========================================
   THANKS MESSAGE STYLES
   ========================================= */

/* 1. CF7標準の完了メッセージ（黄色や緑の枠）を非表示にする */
.wpcf7-response-output {
  display: none !important;
}

/* 2. カスタム完了画面のデザイン */
.contact-thanks {
  padding: 80px 0;
  text-align: center;
}

.thanks-title {
  font-family: var(--font-en);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-green); /* ブランドカラー */
  margin-bottom: 30px;
}

.thanks-text {
  font-size: 15px;
  line-height: 2;
  font-weight: 500;
  margin-bottom: 50px;
}
.thanks-note {
  display: block;
  font-size: 13px;
  color: #888;
  margin-top: 10px;
}

/* トップへ戻るボタン */
.back-top-btn {
  display: inline-block;
  padding: 15px 50px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-family: var(--font-en);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}
.back-top-btn:hover {
  background: #111;
  color: #fff;
}
/* ----------------------------------
   RESPONSIVE MANAGER
   ---------------------------------- */

/* --- 950px --- */
@media (max-width: 950px) {
  .form-row {
    flex-direction: column;
    padding: 30px 0;
  }
  .form-head {
    width: 100%;
    padding: 0 0 20px 0;
    flex-direction: row;
    align-items: baseline;
    gap: 15px;
  }
  .req-mark {
    position: static;
    font-size: 10px;
  }

  .form-body {
    padding: 0;
    border-left: none;
  }

  /*ラジオボタンを縦積みにする */
  span.wpcf7-list-item {
    display: block; /* ブロック要素にして縦積みに */
    margin-right: 0;
    margin-bottom: 20px; /* 項目ごとの間隔 */
  }
}

/* --- 480px --- */
@media (max-width: 480px) {
  .submit-big-btn {
    height: 65px;
  }
}
