/* 合同会社下條工務店 ホームページの見た目（全ページ共通） */
:root {
  --ink: #1d232a;
  --sub: #55606c;
  --line: #e2ddd4;
  --bg: #faf8f4;
  --card: #ffffff;
  --wood: #b07a3e;      /* 木の色（アクセント） */
  --wood-dark: #8a5a26;
  --navy: #1f3b57;      /* 見出し・帯 */
  --navy-ink: #ffffff;
  --ok: #1e7b4f;
  --err: #a52a2a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Noto Sans Myanmar", "Myanmar Text", system-ui, sans-serif;
  line-height: 1.8; font-size: 16px;
}
html[lang="my"] body { line-height: 2; }
img, svg { max-width: 100%; display: block; }
a { color: var(--wood-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* テスト版の帯 */
.test-bar { background: #fff3cd; color: #7a5b00; text-align: center; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-bottom: 1px solid #f0d98a; }

/* 上の帯 */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; color: #fff; text-decoration: none; font-size: 1.05rem; letter-spacing: .02em; margin-right: auto; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .92rem; }
.nav a { color: #e6edf3; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: rgba(233,201,159,.6); color: #fff; }
.nav a[aria-current] { border-bottom: 3px solid #e9c99f; color: #fff; }
/* 目立つボタン（求人・応募、従業員専用） */
.cta { display: flex; gap: 8px; }
.hbtn { font-weight: 700; font-size: .9rem; text-decoration: none; border-radius: 999px; padding: 7px 16px; white-space: nowrap; border: 2px solid transparent; }
.hbtn.recruit { background: var(--wood); color: #fff; box-shadow: 0 2px 0 var(--wood-dark); }
.hbtn.staff { background: #fff; color: var(--navy); border-color: #fff; }
.hbtn:hover { filter: brightness(1.1); }
/* 今いる場所の印: ボタンは白い輪と下の小さな三角、帯のリンクは木の色の下線 */
.hbtn[aria-current] { position: relative; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.hbtn[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.nav a[aria-current] { font-weight: 700; }
/* 左上の三本線のメニュー */
.burger { width: 40px; height: 40px; flex: none; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
/* 言語のプルダウン */
.lang-select { font: inherit; font-size: .85rem; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.lang-select option { color: var(--ink); }
/* 左から出る一覧 */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: #fff; z-index: 61; transform: translateX(-100%); visibility: hidden;
  transition: transform .25s ease; box-shadow: 2px 0 12px rgba(0,0,0,.2); overflow-y: auto; }
.drawer.open { transform: none; visibility: visible; }
.drawer .dh { background: var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 700; }
.drawer .dh button { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer h3 { font-size: .78rem; letter-spacing: .08em; color: var(--wood-dark); margin: 16px 16px 4px; }
.drawer a { display: block; padding: 11px 16px; color: var(--ink); text-decoration: none; border-left: 4px solid transparent; }
.drawer a:hover { background: #f6f2ea; }
.drawer a[aria-current] { border-left-color: var(--wood); font-weight: 700; background: #faf6ef; }

/* トップの大きな見出し */
.hero { background: var(--navy); color: var(--navy-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.35; margin: 0 0 16px; letter-spacing: .02em; }
.hero p { margin: 0 0 28px; color: #d9e2ea; font-size: 1.05rem; }
.hero .frame { color: #e9c99f; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--wood); background: var(--wood); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn:hover { filter: brightness(1.08); }

/* 各まとまり */
section { padding: 64px 0; scroll-margin-top: var(--header-h, 72px); }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--wood-dark); font-weight: 700; font-size: .85rem; letter-spacing: .12em; margin: 0 0 4px; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 28px; color: var(--navy); line-height: 1.4; }
h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--navy); line-height: 1.5; }
.lead { color: var(--sub); max-width: 720px; margin: -12px 0 28px; }

.main-biz { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--wood); color: #fff; border-radius: 4px; padding: 1px 10px; margin-bottom: 10px; }
.tag.sub { background: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--sub); }

.strength { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.strength .big { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; color: var(--navy); line-height: 1.5; margin: 0 0 14px; }
.steps { display: flex; align-items: flex-end; gap: 10px; }
.steps div { flex: 1; text-align: center; font-size: .85rem; color: var(--sub); }
.steps .bar { background: var(--wood); border-radius: 6px 6px 0 0; margin-bottom: 6px; }

table.info { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.info th, table.info td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.info tr:last-child th, table.info tr:last-child td { border-bottom: 0; }
table.info th { width: 28%; background: #f4efe6; color: var(--navy); font-weight: 700; white-space: nowrap; }
.tbd { color: var(--err); font-weight: 700; }

.contact-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.contact-box h2 { color: #fff; margin-bottom: 8px; }
.contact-box p { margin: 0; color: #d9e2ea; }
.contact-box .lines { font-size: 1.1rem; font-weight: 700; }

/* 求人 */
.welcome { margin: 0; padding-left: 1.2em; font-weight: 700; }
.table-scroll { overflow-x: auto; }
table.grades th { width: auto; background: #f4efe6; }
table.grades td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.grades td.net { font-weight: 700; color: var(--wood-dark); }
.bonus-note { font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--wood); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
#grades { scroll-margin-top: 90px; }
table.grades td.chips { white-space: normal; min-width: 150px; }
.chip { display: inline-block; font-size: .78rem; background: #efe7da; color: var(--wood-dark); border-radius: 4px; padding: 0 6px; margin: 2px 4px 2px 0; white-space: nowrap; }
.chip.lead { background: var(--navy); color: #fff; }
.notes { color: var(--sub); font-size: .9rem; padding-left: 1.2em; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.flow li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 14px; position: relative; text-align: center; font-weight: 700; color: var(--navy); }
.flow li::before { counter-increment: step; content: counter(step); display: block; width: 30px; height: 30px; line-height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--wood); color: #fff; }
form.apply { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { display: inline-block; white-space: nowrap; color: #fff; background: var(--err); font-size: .72rem; border-radius: 3px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfc8bb; border-radius: 8px; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--sub); margin-top: 4px; }
/* 入力欄のすぐ下の但し書き（※つき・木の色）。うまくいかなかったときは赤 */
.hint.note { font-size: .8rem; color: var(--wood-dark); margin: 6px 0 0; }
.hint.note::before { content: "※ "; }
.hint.note.bad { color: var(--err); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.agree { display: flex; gap: 10px; align-items: flex-start; }
.agree input { margin-top: 7px; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.submit { font: inherit; font-weight: 700; background: var(--wood); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer; justify-self: start; }
button.submit:disabled { opacity: .6; cursor: default; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* 文章のページ */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.doc h3 { margin-top: 24px; }
.doc ul { padding-left: 1.3em; }

/* 下の帯 */
.site-footer { background: #15283b; color: #c7d3de; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.staff-link { border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 4px 14px; text-decoration: none; }

/* スマホ */
@media (max-width: 760px) {
  .site-header .wrap { gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .cta { order: 3; width: 100%; }
  .cta .hbtn { flex: 1; text-align: center; }
  table.grades { min-width: 560px; }
  .nav { display: none; } /* スマホでは帯のリンクは出さず、三本線の一覧から選ぶ */
  .hero .wrap, .main-biz, .strength, .two { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .hero .frame { max-width: 280px; margin: 0 auto; }
  .cards, .flow { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  table.info th { width: 36%; white-space: normal; }
  table.info th, table.info td { padding: 12px; }
  form.apply, .doc, .main-biz { padding: 20px; }
}
