/*
  フォーム送信機能のための追加スタイル（両ページ共通）
  既存デザイン（style.css / recruitment.css）には手を加えず、送信状態の表示だけをここに置く。
  色は各ページの CSS 変数（--ink, --muted, --line など）を使う。
*/

/* 背景の基本色は白（両ページ共通）。元デザインの生成り色（--paper）を上書きする */
:root { --paper: #ffffff; --white: #ffffff; --olive: #5f7341; } /* --olive：白地の小さな文字でもコントラスト比4.5:1以上になる濃さ（元 #788b57 は3.73） */
.header { background: rgba(255, 255, 255, .97); } /* 採用ページの固定ヘッダー */
/* 薄い色のついた区画も白に（濃い色の区画はデザインのアクセントとして残す） */
.services, .recruitment, .person-section, .process-section { background: #ffffff; }

/* data-when で切り替える要素や .solid など display を持つ要素も確実に隠す */
[hidden] { display: none !important; }

/* スパム対策の隠し入力欄（画面外に出す。display:none だと一部のボットが無視するため） */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 送信中・エラーのメッセージ */
.send-status { font-size: 12px; margin: 14px 0 0; line-height: 1.8; min-height: 1em; }
.send-status:empty { margin: 0; }
.send-status.is-error { color: #8e342a; background: #fff0e9; padding: 12px; border-left: 3px solid #8e342a; }

/* 送信ボタンが処理中のとき */
button[aria-busy="true"] { opacity: .6; cursor: progress; }

/* 送信完了パネル */
.form-complete { padding: 24px 0 8px; outline: none; }
.form-complete h3, .form-complete h4 { font-size: 20px; font-weight: 500; margin: 6px 0 16px; }
.form-complete p { font-size: 13px; margin: 0 0 10px; }
.form-complete strong { font-family: monospace; font-size: 12px; letter-spacing: .5px; word-break: break-all; }
.form-complete a { text-decoration: underline; text-underline-offset: 3px; }

/* ── メインサイト：ご相談ダイアログ ── */
.review-actions { display: flex; flex-direction: column; }
.review-actions .solid { width: 100%; }
.review-actions #edit-request { background: transparent; color: var(--ink); border: 1px solid var(--ink); margin-top: 12px; }
.review-actions #edit-request:hover { background: var(--ink); color: white; }
.privacy-note { margin-top: 18px; color: var(--muted); }

/* ── 採用ページ：応募フォーム ── */
.consent-field { margin-top: 18px; }
.consent-field .radio { align-items: flex-start; line-height: 1.7; }
/* 採用ページの「.field input（幅100%・高さ47px）」がチェックボックスにも効くので打ち消す */
.field.consent-field .radio input[type=checkbox] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.consent-field .radio > span { color: #8a6430; font-size: 9px; margin-left: 4px; }
.form-send { width: 100%; margin-top: 10px; }
.form-send:disabled { background: #69756e; border-color: #69756e; }

/* ご相談フォーム：選択肢つきの追加質問（例：伴走支援の「希望する支援分野」） */
.extra-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.extra-choices legend { font-size: 12px; padding: 0; margin-bottom: 8px; }
.extra-choices label { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 12px; margin-bottom: 6px; background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.extra-choices label:has(input:checked) { border-color: var(--ink); }
.extra-choices input { width: 16px; height: 16px; margin: 0; padding: 0; flex-shrink: 0; accent-color: var(--ink); }

/* 追加質問の複数行記入欄（例：伴走支援の「現在の課題」）は横幅いっぱいに */
.service-extra .extra-wide { grid-column: 1 / -1; }
.service-extra .extra-wide textarea { resize: vertical; }

/* Turnstile（ロボットではないことの確認）の表示枠 */
.turnstile-box { margin: 16px 0 4px; min-height: 65px; }

/* サイト更新のお知らせ（更新の自動検知） */
.update-banner { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 70; display: flex; gap: 14px; align-items: center; background: var(--ink); color: var(--white, #fff); padding: 10px 16px; font-size: 12px; box-shadow: 0 6px 24px #0003; }
.update-banner button { background: transparent; color: inherit; border: 1px solid currentColor; padding: 5px 10px; font-size: 12px; cursor: pointer; }

/* 実績紹介：クレジット（改行して複数行で書ける） */
#event-works .work-credit { font-size: 12px; line-height: 1.9; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }

/* 採用フォーム：職歴（1段目に「開始年〜終了年 年：」と削除の×、2段目に内容） */
.career-rows { display: grid; gap: 12px; }
.career-row { display: grid; grid-template-columns: 74px auto 74px auto 1fr; gap: 6px; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed #d6d9d0; }
.field .career-row input.career-year { width: 74px; text-align: center; padding: 8px 6px; min-height: 42px; letter-spacing: 0; }
.field .career-row input.career-content { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 44px; padding: 10px 12px; }
.career-sep { font-size: 12px; white-space: nowrap; }
.career-remove { grid-column: 5; grid-row: 1; justify-self: end; width: 32px; height: 32px; border: 1px solid #c6cfc2; background: transparent; font-size: 15px; line-height: 1; color: var(--muted); }
.career-remove:hover { border-color: var(--ink); color: var(--ink); }
.career-add { margin-top: 10px; width: 100%; padding: 10px; border: 1px dashed var(--ink); background: transparent; font-size: 12px; color: var(--ink); }
.field .career-none { margin-top: 8px; }
.field.field .career-none input[type=checkbox] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--ink); }
.career-row input:disabled { opacity: .45; }

/* ── 2026-10 改善指示書の反映（トップページ） ── */
/* ファーストビュー：補足文の2文目、主CTAと副CTA */
.hero .intro-sub { display: block; margin-top: 8px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.hero-sub-cta { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; padding: 14px 4px; border-bottom: 1px solid var(--ink); }
.hero-sub-cta:hover { color: var(--olive); }
/* WHAT WE DO：見出し右側の本文（複数段落） */
.section-heading > .section-text { max-width: 46%; font-size: 13px; color: var(--muted); line-height: 2.1; }
.section-heading > .section-text p + p { margin-top: 10px; }
/* 各区画の末尾のリンク（実績を見る／お問い合わせ など） */
.section-links { display: flex; flex-wrap: wrap; gap: 0 40px; margin-top: 36px; }
.section-links .text-link { min-width: 240px; flex: 0 1 auto; gap: 24px; background: none; border-top: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0; text-align: left; cursor: pointer; color: var(--ink); }
/* 採用情報（トップは短い案内） */
.recruitment .recruit-summary { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 2; }
.recruitment .demo-notice { margin-top: 20px; }
@media (max-width: 760px) {
  .section-heading > .section-text { max-width: none; margin-top: 20px; }
  .section-links { gap: 0; }
  .section-links .text-link { width: 100%; }
}
/* 実績カード：地域・時期、担当タグ、詳細（背景・目的／実施内容／成果） */
#event-works .work-meta { font-size: 12px; color: var(--muted); }
.work-tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags li { font-size: 11px; border: 1px solid var(--line); padding: 2px 10px; color: var(--ink); }
.work-details { margin-top: 14px; font-size: 12px; }
.work-details summary { cursor: pointer; padding: 6px 0; border-bottom: 1px solid var(--line); }
.work-details dt { font-size: 11px; color: var(--muted); margin-top: 12px; }
.work-details dd { margin: 4px 0 0; line-height: 1.9; }
/* サービス詳細：関連する実績 */
.related-works { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.related-works li { border-bottom: 1px solid var(--line); }
.related-works button { width: 100%; text-align: left; background: none; border: 0; padding: 12px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--ink); }
.related-works small { color: var(--muted); }

/* 採用ページ「働き方」の A・B・C：白地でコントラスト比4.5:1以上に（元 #967445 は4.30） */
.style-index { color: #836439; }

/* 建築写真：スマホは高さ固定（330px）なので16:9の比率を外す（外さないと横幅がはみ出す） */
@media (max-width: 760px) { .landscape { aspect-ratio: auto; } }

/* スマホ：見出し「らしさを未来へ。」が「へ。」だけ次の行に落ちないよう、画面幅に合わせた大きさに */
@media (max-width: 480px) { .hero h1 { font-size: clamp(30px, 10vw, 46px); } .hero h1 span { white-space: nowrap; } }
