/* =========================================================
   be with — 共通シェル（構造・レイアウト・コンポーネント）
   色・フォント・角丸などの「雰囲気」は theme-*.css 側の
   CSS変数で差し替える。ここには直書きの色を置かない。
   ========================================================= */

:root {
  --maxw: 1080px;
  --gap: clamp(1rem, 2vw, 1.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.3;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}

h2.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  text-align: center;
  margin-bottom: .2em;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 32em;
}

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ---- tone switch bar (顧客比較用・本採用後は削除) ---- */
.toneswitch {
  background: #111;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .04em;
}
.toneswitch .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding-top: .55rem; padding-bottom: .55rem;
}
.toneswitch .label { opacity: .7; }
.toneswitch .opt { color: #fff; text-decoration: none; opacity: .55; }
.toneswitch .opt.active { opacity: 1; font-weight: 700; border-bottom: 2px solid var(--accent); }
.toneswitch .opt:hover { opacity: 1; }
.toneswitch .spacer { flex: 1; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: saturate(1.1) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1.25rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--header-text);
}
.site-header nav { display: flex; gap: clamp(.8rem, 2.2vw, 1.8rem); }
.site-header nav a {
  text-decoration: none; color: var(--header-text);
  font-size: .92rem; opacity: .85;
}
.site-header nav a:hover { opacity: 1; color: var(--accent); }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(4rem, 12vw, 8rem) 0; }
.hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin-bottom: .5em;
}
.hero .lead { font-size: clamp(1rem, 2.2vw, 1.2rem); margin: 0 0 2rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: .95rem;
  text-decoration: none;
  padding: .8em 1.6em;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-contrast); }

/* ---- mission / 想い ---- */
.mission .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.mission .portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-muted); font-size: .85rem; text-align: center;
  overflow: hidden;
}
.mission .portrait img { width: 100%; height: 100%; object-fit: cover; }
.mission h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.mission .sign { margin-top: 1.4rem; color: var(--text-muted); font-size: .9rem; }
.mission .sign strong { color: var(--text); font-size: 1.05rem; }

/* ---- 事業カード ---- */
.business { background: var(--surface-alt); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card .cat { font-size: .75rem; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.card h3 { font-size: 1.25rem; margin: 0; }
.card p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.card .more { margin-top: auto; padding-top: .8rem; font-size: .85rem; color: var(--accent); font-weight: 700; }
.card.soon { opacity: .6; pointer-events: none; }
.card.soon .badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .68rem; letter-spacing: .08em;
  background: var(--border); color: var(--text-muted);
  padding: .2em .6em; border-radius: 999px;
}

/* ---- 採用 ---- */
.recruit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-bottom: 2rem; }
.recruit-item {
  border-left: 3px solid var(--accent);
  padding: .3rem 0 .3rem 1rem;
}
.recruit-item strong { display: block; }
.recruit-item span { color: var(--text-muted); font-size: .88rem; }
.center { text-align: center; }

/* ---- contact ---- */
.contact { background: var(--surface-alt); }
.contact .wrap { text-align: center; max-width: 640px; }
.contact .mail {
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: var(--accent); text-decoration: none;
}

/* ---- footer ---- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 3rem 0; font-size: .88rem; line-height: 1.9;
}
.site-footer strong { font-size: 1.05rem; }
.site-footer .ops { opacity: .7; margin-top: .8rem; }
.site-footer .copy { opacity: .5; margin-top: 1.5rem; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mission .wrap { grid-template-columns: 1fr; }
  .mission .portrait { max-width: 320px; }
  .recruit-list { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .site-header nav { gap: .9rem; }
  .site-header nav a.hide-sm { display: none; }
}
