@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* フォームのページ共通のデザイン。新しいLP（lp2/style.css）と同じ色・形にそろえる */
:root {
  --ink: #1f2d3d;
  --text: #3b4654;
  --muted: #5c6673;
  --green: #004a98;
  --green-dark: #003a7a;
  --green-soft: #e6eff9;
  --leaf: #5ba3dc;
  --blue: #004a98;
  --sky: #cfe8f6;
  --sky-pale: #eef7fb;
  --cream: #fbf8ee;
  --yellow: #f6c64f;
  --sun: #fdf5d8;
  --line: #e0e6ed;
  --field-line: #b6c3d2;
  --white: #ffffff;
  --error: #a33326;
  --error-soft: #fff0eb;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --shadow: 0 12px 32px rgba(20, 40, 70, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: linear-gradient(180deg, #d6ecf7 0, #eaf5f6 240px, var(--cream) 560px) no-repeat, var(--cream); color: var(--text); font-family: var(--sans); line-height: 1.85; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font-family: var(--sans); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* ヘッダー：LPと同じ白い帯とロゴ */
header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(20, 40, 70, .06); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand > span { min-width: 0; }
.brand img { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; }
.brand strong { display: block; font-size: 15px; letter-spacing: .12em; line-height: 1.2; }
.brand small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.company { color: var(--muted); font-size: 12px; letter-spacing: .06em; }

/* 本文：左に説明、右に入力欄 */
main { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.intro { position: sticky; top: 112px; padding-top: 24px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .24em; }
h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.45; letter-spacing: .04em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.rule { width: 72px; height: 5px; margin: 26px 0; border-radius: 5px; background: linear-gradient(90deg, var(--leaf) 0 60%, var(--yellow) 60%); }
.lead { margin: 0; font-size: 16px; line-height: 2; text-align: justify; text-justify: inter-character; line-break: strict; }
.detail { margin: 28px 0 0; padding: 18px 22px; border-radius: 20px; background: rgba(255, 255, 255, .75); color: var(--ink); font-size: 14px; line-height: 1.9; box-shadow: var(--shadow); }
.detail a { color: var(--blue); font-weight: 700; }

/* 入力欄のカード */
.form-panel { min-width: 0; padding: clamp(28px, 4.4vw, 56px); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.panel-kicker { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .22em; }
h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(22px, 2.2vw, 26px); font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.panel-note { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--sky-pale); color: var(--ink); font-size: 14px; line-height: 1.75; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 36px 0 0; padding: 0 0 6px; color: var(--green); font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.section-title::before { content: ""; width: 28px; height: 3px; flex: none; border-radius: 3px; background: var(--leaf); }
.field { padding: 24px 0; border-top: 1px solid var(--line); }
form > .field:first-of-type, .section-title + .field { border-top: 0; }
fieldset.field { min-width: 0; margin: 0; padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 0; border-left: 0; }
.field-title { display: block; margin-bottom: 12px; color: var(--ink); font-size: 16px; font-weight: 700; }
.field-help { margin: -4px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.required, .optional { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 2px; letter-spacing: .04em; }
.required { background: var(--green); color: var(--white); }
.optional { background: var(--cream); color: var(--muted); border: 1px solid var(--line); }
input[type="email"], input[type="text"], input[type="tel"], select, textarea { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 0 16px; border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
input[type="email"], input[type="text"], input[type="tel"], select { height: 56px; }
textarea { min-height: 120px; padding: 14px 16px; line-height: 1.7; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #8ea2b8; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 74, 152, .12); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[readonly] { background: var(--cream); color: var(--muted); }
input::placeholder, textarea::placeholder { color: #8a95a3; opacity: 1; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--error); }
.row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.row > *, .choices > *, .choice > span { min-width: 0; }
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--white); cursor: pointer; color: var(--ink); font-size: 15px; line-height: 1.55; transition: border-color .2s, background .2s; }
.choice:hover { border-color: #8ea2b8; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); }
.privacy { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.85; }
.privacy a, .field-help a { color: var(--blue); font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 送信ボタン：LPの申込ボタンと同じ緑 */
.submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; margin-top: 26px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--green); color: var(--white); font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .06em; cursor: pointer; box-shadow: 0 10px 22px rgba(0, 74, 152, .28); transition: background .2s, transform .2s; }
.submit::after { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.submit:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-2px); }
.submit:disabled { background: #dde4ec; color: var(--muted); box-shadow: none; cursor: not-allowed; }
.submit:disabled::after { display: none; }
.status { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; }
.status.error { padding: 13px 16px; border: 1.5px solid var(--error); border-radius: 14px; background: var(--error-soft); color: var(--error); text-align: left; font-size: 14px; }
.notice { margin: 0 0 24px; padding: 14px 18px; border-left: 4px solid var(--yellow); border-radius: 0 16px 16px 0; background: var(--sun); color: var(--ink); font-size: 14px; line-height: 1.8; }
#link-notice { padding: 14px 18px; border-left: 4px solid var(--error); border-radius: 0 16px 16px 0; background: var(--error-soft); color: var(--error); }

/* 送信後の画面 */
.success .rule { margin: 22px 0; }
.success p { color: var(--text); font-size: 15px; line-height: 1.9; }
.success .code { display: inline-block; max-width: 100%; margin: 6px 0; padding: 10px 18px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-size: 22px; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere; }
.link-box { max-width: 100%; margin: 6px 0; padding: 12px 16px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.return-link { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 54px; margin-top: 22px; padding: 0 26px; border: 2px solid var(--green); border-radius: 999px; background: var(--white); color: var(--green-dark); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s; }
.return-link:hover { background: var(--green-soft); }
.line-share { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; min-height: 58px; margin-top: 16px; padding: 0 26px; border-radius: 999px; background: #06c755; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(6, 199, 85, .3); transition: transform .2s; }
.line-share:hover { transform: translateY(-2px); }
.line-share .line-mark { padding: 2px 8px; border-radius: 8px; background: #fff; color: #06c755; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.line-note { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footnote { margin-top: 30px; padding: 20px 22px; border-radius: 18px; background: var(--cream); color: var(--muted); font-size: 13px; line-height: 1.9; }
.footnote p { margin: 0 0 12px; }
.footnote p:last-child { margin-bottom: 0; }
.footnote a { color: var(--blue); font-weight: 700; }

/* フッター：LPと同じ町のイラストと深い緑の帯 */
footer { position: relative; padding: 0 0 30px; background: #0d2b52; color: rgba(255, 255, 255, .85); font-size: 13px; text-align: center; }
footer::before { content: ""; display: block; height: clamp(110px, 12vw, 180px); margin-bottom: 26px; background: url("lp2/town.svg") 50% 100% / cover no-repeat, linear-gradient(180deg, var(--cream) 0%, #d8eef7 100%); }
footer a { color: var(--white); }

@media (prefers-reduced-motion: reduce) { .submit, .return-link, input, select, textarea, .choice { transition: none; } }

@media (max-width: 860px) {
  main { grid-template-columns: 1fr; gap: 28px; }
  .intro { position: static; padding-top: 0; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 9px; }
  .company { font-size: 10px; letter-spacing: 0; text-align: right; }
  main { padding: 32px 0 56px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: .16em; }
  h1 { font-size: clamp(23px, 6.6vw, 30px); line-height: 1.42; }
  .rule { margin: 18px 0; }
  .lead { font-size: 15px; line-height: 1.9; }
  .detail { margin-top: 18px; padding: 14px 16px; font-size: 13px; }
  .form-panel { padding: 26px 18px 30px; border-radius: 22px; }
  .field { padding: 22px 0; }
  .choice { font-size: 14px; }
  .row, .choices.two { grid-template-columns: 1fr; }
  .submit { min-height: 60px; font-size: 16px; }
  .return-link { width: 100%; }
}

/* ご紹介キャンペーンのフォーム（campaign フォルダの3ページ）は、キャンペーンの案内ページと同じオレンジ系にして見分けられるようにする */
body.campaign {
  --ink: #3a2c22;
  --text: #4b3d33;
  --muted: #6e5f54;
  --green: #b8521a;
  --green-dark: #9a4314;
  --green-soft: #fdebdc;
  --leaf: #f0a04b;
  --blue: #a3481a;
  --sky-pale: #fff3e8;
  --cream: #fdf8f1;
  --line: #eee3d8;
  --field-line: #cdbcae;
  background: linear-gradient(180deg, #fbdcc3 0, #fde9d8 240px, var(--cream) 560px) no-repeat, var(--cream);
}
body.campaign .submit { box-shadow: 0 10px 22px rgba(184, 82, 26, .28); }
body.campaign input:focus, body.campaign select:focus, body.campaign textarea:focus { box-shadow: 0 0 0 4px rgba(184, 82, 26, .14); }
body.campaign footer { background: #3a2c22; }
body.campaign footer::before { background: url("lp2/town.svg") 50% 100% / cover no-repeat, linear-gradient(180deg, var(--cream) 0%, #fbdcc3 100%); }

/* 本人確認書類のアップロード */
input[type="file"] { display: block; width: 100%; max-width: 100%; padding: 14px 16px; border: 1.5px dashed var(--field-line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; }
input[type="file"]:focus { outline: none; border-color: var(--green); }
.field .notice { margin: 0 0 12px; }
