@charset "UTF-8";
/* =========================================================
   お問い合わせフォーム（contact.html）
   Figma: StellaEdition_LP / 村川さんへご依頼
     contactform_pc（入力）・個人情報保護方針_モーダル_pc・contactform_success_pc（送信完了）
   PC : 768px〜（デザイン基準 1440px） / SP : 〜767px
   style.css のトークン（--c-*）とBEM命名を踏襲
   ========================================================= */

:root {
  --c-form-bg: #183952;
  --c-placeholder: #5d7ba3;
  --c-req: #ff0000;
  --c-table-line: #c0d3eb;
}

.page-contact { background: var(--c-form-bg); }
/* 入力画面はデザイン通りコピーライトのみ。送信完了画面でフルフッターを表示 */
.page-contact.is-footer-compact .footer__inner { display: none; }
.page-contact.is-footer-compact .footer__copy { padding: 15px 0 16px; }

/* ---------- アイコン（style.css の .icon を拡張） ---------- */
.icon--mail-navy { --icon: url("../images/icon_mail_navy.svg"); }
.icon--back { --icon: url("../images/icon_back.svg"); }
.icon--check-on { --icon: url("../images/icon_checkbox_on.svg"); width: 15px; height: 15px; }

/* =========================================================
   共通：見出し
   ========================================================= */
.contact { padding: 80px 0 120px; background: var(--c-form-bg); }
.contact__inner { width: min(996px, calc(100% - 80px)); margin-inline: auto; }
.contact__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.contact__en { font-family: var(--font-en); font-weight: 200; font-size: 24px; line-height: 1.5; letter-spacing: .18em; }
.contact__title { margin-top: -15px; font-size: 32px; font-weight: 700; line-height: 1.5; letter-spacing: .05em; }
.contact__note { font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: .05em; }

/* =========================================================
   入力フォーム
   ========================================================= */
.form { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.form__row { display: grid; grid-template-columns: 304px 1fr; align-items: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__row:not(.form__row--top) > .form__label { min-height: 60px; }
.form__row--top { align-items: start; }
.form__row--top .form__label { padding-left: 2px; }
.form__row--top .form__field { margin-left: 6px; }

.form__label { display: flex; align-items: center; gap: 20px; }
.form__row--top .form__label { flex-direction: column; align-items: flex-start; gap: 13px; }
.form__label-main { display: flex; align-items: center; gap: 20px; }
.form__label-text { font-size: 18px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.form__label-sub { font-size: 14px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.form__badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 24px; border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.form__badge--req { background: var(--c-req); }
.form__badge--opt { background: var(--c-blue-shadow); }
.form__badge--done { background: var(--c-teal); }

.form__field { min-width: 0; }
.form__input {
  display: block; width: 100%; height: 60px; padding: 0 30px; border: 2px solid transparent; border-radius: 3px;
  background: #fff; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .08em; color: var(--c-navy-dark);
  transition: border-color .2s, box-shadow .2s;
}
.form__input::placeholder { color: var(--c-placeholder); opacity: 1; }
.form__input:focus { outline: 0; border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(0,159,185,.3); }
.form__input[aria-invalid="true"] { border-color: var(--c-req); }
.form__textarea { height: 250px; padding: 22px 30px; line-height: 1.5; resize: vertical; }

/* select（矢印は Figma の Vector 66） */
.form__select-wrap { position: relative; }
.form__select { -webkit-appearance: none; appearance: none; padding-right: 60px; cursor: pointer; }
.form__select:invalid, .form__select.is-empty { color: var(--c-placeholder); }
.form__select option { color: var(--c-navy-dark); }
.form__select-wrap::after { content: ""; position: absolute; right: 27px; top: 50%; width: 14px; height: 7px; margin-top: -3px; background: url("../images/icon_select_arrow.svg") center / contain no-repeat; pointer-events: none; }

/* ラジオ（Figma: Ellipse 34 = 22px 白丸） */
.form__radios { display: flex; flex-direction: column; gap: 20px; }
.form__radio { position: relative; display: flex; align-items: center; gap: 15px; cursor: pointer; }
.form__radio input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.form__radio-mark { position: relative; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: box-shadow .2s; }
.form__radio-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--c-teal); transform: scale(0); transition: transform .2s; }
.form__radio input:checked + .form__radio-mark::after { transform: scale(1); }
.form__radio input:focus-visible + .form__radio-mark { box-shadow: 0 0 0 3px var(--c-teal); }
.form__radio-text { font-size: 24px; font-weight: 500; letter-spacing: .08em; line-height: 1.2; }

/* 同意チェック（Figma: Rectangle 226 = 15px 白角丸2px） */
.form__agree { margin-top: -20px; }
.form__check { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form__check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.form__check-mark { position: relative; flex-shrink: 0; width: 15px; height: 15px; border-radius: 2px; background: #fff; transition: box-shadow .2s; }
.form__check-mark::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border-right: 2px solid var(--c-teal); border-bottom: 2px solid var(--c-teal); transform: rotate(45deg) scale(0); transition: transform .15s; }
.form__check input:checked + .form__check-mark::after { transform: rotate(45deg) scale(1); }
.form__check input:focus-visible + .form__check-mark { box-shadow: 0 0 0 3px var(--c-teal); }
.form__check-text { font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.form__policy-link { font: inherit; text-decoration: underline; text-underline-offset: 4px; transition: color .2s; }
.form__policy-link:hover { color: var(--c-teal); }

.form__hr { width: 100%; height: 0; margin: 0; border: 0; border-top: 1px solid #fff; }

.form__back { display: flex; justify-content: flex-end; margin-top: -31px; }
.form__back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: .08em; line-height: 1.5; transition: opacity .2s; }
.form__back-link:hover { opacity: .7; }

.form__submit { display: flex; justify-content: center; margin-top: -20px; }
.cta--send { height: 73px; background: #fff; color: var(--c-navy-dark); letter-spacing: .2em; }
.cta--send:hover { background: var(--c-navy-dark); color: #fff; }
.cta--send:hover .icon { filter: invert(1) hue-rotate(180deg); }
.cta--send:disabled { opacity: .5; cursor: wait; }

/* ハニーポット：画面外に退避（display:none だとボットが無視するため） */
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* エラー表示（Figmaに定義なし：赤バッジ色に合わせる） */
.form__error { display: none; margin-top: 8px; font-size: 14px; font-weight: 700; letter-spacing: .05em; color: #ffb3b3; }
.form__error.is-visible { display: block; }

/* =========================================================
   送信完了（入力確認）画面
   ========================================================= */
.contact__view--done .contact__head { max-width: 717px; margin-inline: auto; }
.done { display: flex; flex-direction: column; gap: 40px; margin: 120px 0 0; }
.done__row { display: grid; grid-template-columns: 304px 1fr; align-items: center; min-width: 0; }
.done__row--top { align-items: start; }
.done__row--top .form__label, .done__row--plain .form__label { padding-left: 2px; }
.done__row--top .form__label { flex-direction: column; align-items: flex-start; gap: 13px; }
.done__row--plain { align-items: start; }
.done__value {
  display: flex; align-items: center; min-height: 60px; margin: 0; padding: 0 30px; border: 1px solid #fff; border-radius: 3px;
  font-size: 16px; font-weight: 700; letter-spacing: .08em; color: var(--c-teal); overflow-wrap: anywhere;
}
.done__value:empty::before { content: "―"; color: rgba(255,255,255,.5); }
.done__value--plain { min-height: 0; padding: 0; border: 0; font-size: 18px; font-weight: 500; line-height: 24px; }
.done__value--textarea { display: block; min-height: 250px; padding: 22px 30px; line-height: 1.5; white-space: pre-wrap; }
.done__agree { display: flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 16px; font-weight: 700; letter-spacing: .08em; color: var(--c-teal); }

/* =========================================================
   個人情報保護方針モーダル
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 1000; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.modal__close { position: absolute; top: 56px; right: 120px; width: 25px; height: 25px; background: url("../images/icon_close.svg") center / contain no-repeat; }
.modal__close::before { content: ""; position: absolute; inset: -12px; }
.modal__panel {
  position: absolute; top: 89px; right: 120px; bottom: 69px; left: 115px; overflow-y: scroll; overscroll-behavior: contain;
  background: #fff; color: var(--c-navy-dark); -webkit-overflow-scrolling: touch;
  scrollbar-width: auto; scrollbar-color: #bababa #f0f0f0;
}
.modal__panel::-webkit-scrollbar { width: 24px; }
.modal__panel::-webkit-scrollbar-track { background: #f0f0f0; }
.modal__panel::-webkit-scrollbar-thumb { background: #bababa; border: 5px solid #f0f0f0; border-radius: 100px; }
.modal__panel::-webkit-scrollbar-button:vertical:decrement { height: 24px; background: #e3e3e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12.5 5l6.5 11.25h-13z' fill='%23bababa'/%3E%3C/svg%3E") center / 24px no-repeat; }
.modal__panel::-webkit-scrollbar-button:vertical:increment { height: 24px; background: #e3e3e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12.5 19L6 7.75h13z' fill='%23bababa'/%3E%3C/svg%3E") center / 24px no-repeat; }
body.is-modal-open { overflow: hidden; }

.policy { max-width: 995px; margin-inline: auto; padding: 42px 20px 60px; font-size: 16px; font-weight: 400; line-height: 1.2; letter-spacing: .08em; }
.policy__title { font-size: 24px; font-weight: 700; letter-spacing: .08em; text-align: center; }
.policy__chapter { margin-top: 70px; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.policy__section { margin-top: 30px; }
.policy__chapter + .policy__section { margin-top: 25px; }
.policy__section h4 { font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.policy__section h5 { margin: 1.2em 0 0; font-size: 16px; font-weight: 700; }
.policy__section h4 + * { margin-top: 10px; }
.policy__section p + p { margin-top: 1.2em; }
.policy__section h5 + p { margin-top: 0; }
.policy__section ol { margin: .6em 0; padding-left: 1.6em; }
.policy__section ol li { margin: .2em 0; }
.policy__lead { line-height: 1.5; }
.policy__table { width: 100%; margin: 10px 0 10px; border-collapse: collapse; table-layout: fixed; color: #000; }
.policy__table th, .policy__table td { padding: 8px 10px; border: 1px solid var(--c-table-line); text-align: left; vertical-align: top; font-weight: 400; }
.policy__table th { padding: 3px 10px; line-height: 1.5; }
.policy__table col:nth-child(1), .policy__table tr > :nth-child(1) { width: 30.7%; }
.policy__table tr > :nth-child(2) { width: 28.3%; }
.policy__end { text-align: right; }

/* =========================================================
   PC幅の可変対応（768〜1279px）
   ========================================================= */
@media (max-width: 1279px) and (min-width: 768px) {
  .form__row, .done__row { grid-template-columns: 250px 1fr; }
  .form__radio-text { font-size: clamp(18px, 2vw, 24px); }
  .modal__close { right: 40px; top: 24px; }
  .modal__panel { top: 60px; right: 40px; bottom: 40px; left: 40px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .form__row, .done__row { grid-template-columns: 1fr; gap: 14px; }
  .form__row--top .form__field { margin-left: 0; }
}

/* =========================================================
   SP（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  .page-contact { padding-top: 0; }
  .contact { padding: 50px 0 60px; }
  .contact__inner { width: calc(100% - 40px); }
  .contact__head { gap: 14px; }
  .contact__en { font-size: 20px; }
  .contact__title { margin-top: -10px; font-size: 24px; }
  .contact__note { font-size: 15px; line-height: 1.7; }

  .form { gap: 28px; margin-top: 30px; }
  .form__row, .done__row { grid-template-columns: 1fr; gap: 10px; }
  .form__row--top .form__label, .form__row--top .form__field { padding-left: 0; margin-left: 0; }
  .form__label { gap: 12px; }
  .form__row--top .form__label, .done__row--top .form__label { gap: 6px; }
  .form__label-text { font-size: 16px; }
  .form__label-sub { font-size: 12px; }
  .form__badge { width: 36px; height: 22px; font-size: 11px; }
  .form__row:not(.form__row--top) > .form__label { min-height: 0; }
  .form__input { height: 50px; padding: 0 16px; font-size: 16px; }
  .form__textarea { height: 200px; padding: 14px 16px; }
  .form__select { padding-right: 44px; }
  .form__select-wrap::after { right: 16px; }
  .form__radios { gap: 14px; }
  .form__radio-mark { width: 20px; height: 20px; }
  .form__radio-mark::after { inset: 5px; }
  .form__radio-text { font-size: 16px; line-height: 1.4; }
  .form__agree { margin-top: -8px; }
  .form__check-text { font-size: 14px; }
  .form__hr { margin-top: 4px; }
  .form__back { justify-content: center; margin-top: -8px; }
  .form__back-link { font-size: 16px; }
  .form__submit { margin-top: -4px; }
  .cta--send { width: min(330px, 100%); height: 60px; font-size: 18px; font-weight: 700; }

  .done { gap: 28px; margin-top: 50px; }
  .done__value { min-height: 50px; padding: 12px 16px; font-size: 15px; }
  .done__value--plain { min-height: 0; padding: 0; font-size: 16px; }
  .done__value--textarea { min-height: 200px; padding: 14px 16px; }
  .done__agree { margin-top: 28px; font-size: 14px; }

  .modal__close { top: 14px; right: 16px; width: 22px; height: 22px; }
  .modal__panel { top: 50px; right: 12px; bottom: 12px; left: 12px; scrollbar-width: thin; }
  .modal__panel::-webkit-scrollbar { width: 8px; }
  .modal__panel::-webkit-scrollbar-thumb { border-width: 2px; }
  .modal__panel::-webkit-scrollbar-button { display: none; }
  .policy { padding: 28px 16px 40px; font-size: 14px; line-height: 1.5; letter-spacing: .04em; }
  .policy__title { font-size: 20px; }
  .policy__chapter { margin-top: 30px; font-size: 16px; }
  .policy__section h4 { font-size: 16px; }
  .policy__section h5 { font-size: 14px; }
  .policy__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .policy__table { min-width: 640px; font-size: 13px; }
}
