/* 採用サイトの見た目。数字は デザインの決まり.md の番号どおり */

:root {
  --text: #1d1d1f;
  --sub: #6b6b6b;
  --line: #e2e2de;
  --bg: #f6f6f4;
  --accent: #1f7a80;
  --input-line: #c9c9c4;
  --placeholder: #a3a39e;
  --sec: 56px;      /* 1-1 */
  --head-gap: 20px; /* 1-3 */
  --gap: 24px;      /* 1-4 */
  --pad: 32px;      /* 1-5 */
  --header: 64px;
}
@media (max-width: 768px) {
  :root { --sec: 40px; --head-gap: 16px; --gap: 16px; --pad: 20px; --header: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;        /* 4-1 */
  line-height: 1.8;
  letter-spacing: 0.02em;
  background: #fff;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p + p { margin-top: 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.inner { width: min(1200px, 100% - 48px); margin: 0 auto; }
.inner.narrow { width: min(800px, 100% - 40px); }
@media (max-width: 768px) { .inner { width: calc(100% - 40px); } }

/* ---- 区切り（1-1・5） ---- */
.sec { padding: var(--sec) 0; }
.sec-white { background: #fff; }
.sec-gray { background: var(--bg); }

/* ---- 見出し（1-2・1-3・4-4） ---- */
.ttl { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--head-gap); }
.ttl-en { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.ttl-ja { font-size: 32px; font-weight: 700; line-height: 1.4; }
@media (max-width: 768px) { .ttl-ja { font-size: 24px; } }

/* ---- ヘッダー ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header); padding: 0 24px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-logo img { width: auto; height: 30px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-insta img { width: 24px; height: 24px; }
.header-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  background: var(--accent); color: #fff; border-radius: 4px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-menu {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px; padding: 0 8px; border: 0; background: none; cursor: pointer;
}
.header-menu > span:not(.visually-hidden) { display: block; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.header-menu[aria-expanded="true"] > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header-menu[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.header-menu[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 768px) {
  .header { padding: 0 12px 0 16px; }
  .header-logo img { height: 22px; }
  .header-right { gap: 8px; }
  .header-btn { height: 34px; padding: 0 10px; font-size: 12px; }
}

.menu {
  position: absolute; top: var(--header); right: 0; left: 0;
  max-height: calc(100vh - var(--header)); overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
}
.menu ul { width: min(800px, 100% - 40px); margin: 0 auto; padding: 8px 0 16px; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; flex-direction: column; padding: 14px 0; text-decoration: none; }
.menu-en { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.menu-ja { font-size: 12px; color: var(--sub); }
.menu-tags { display: flex; gap: 8px; font-size: 12px; color: var(--sub); }
.menu-job { font-size: 15px; font-weight: 700; }

/* ---- パンくず ---- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--sub); }
.breadcrumb li + li::before { content: "＞"; margin-right: 8px; }
.breadcrumb a { color: var(--accent); }
.kv + .breadcrumb { width: min(1200px, 100% - 48px); margin: 16px auto 0; }
.ttl + .breadcrumb { margin-bottom: var(--gap); }
@media (max-width: 768px) { .kv + .breadcrumb { width: calc(100% - 40px); } }

/* ---- フッター ---- */
.footer {
  position: relative; padding: 24px; text-align: center;
  background: var(--text); color: #fff; font-size: 12px;
}
.pagetop {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent);
}
.pagetop::before {
  content: ""; position: absolute; top: 18px; left: 15px;
  width: 12px; height: 12px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg);
}

/* ---- 札（4-2） ---- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 2px 8px; font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 2px; line-height: 1.6; }

/* ---- 文と写真を横に並べる（7-2） ---- */
.media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.media + .media { margin-top: var(--gap); }
.media-text { max-width: 40em; }
.media-text h3 { font-size: 18px; margin-bottom: 8px; }
.media-img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; border-radius: 4px; }
@media (max-width: 768px) {
  .media { grid-template-columns: 1fr; gap: 16px; }
  .media-img { order: -1; height: auto; aspect-ratio: 3 / 2; min-height: 0; }
}

/* =========================================================
   トップ
   ========================================================= */

/* 6-1 一番上の写真：幅いっぱい、白い文字を左下に */
.hero { position: relative; height: min(640px, 80vh); min-height: 420px; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 65%); }
.hero-text {
  position: absolute; z-index: 1; left: max(24px, calc((100% - 1200px) / 2)); right: 24px; bottom: 48px;
}
.hero-label { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; }
.hero-ttl { margin: 8px 0 12px; font-size: 44px; line-height: 1.35; font-weight: 700; }
.hero-ttl span, .hero-lead span { display: inline-block; }
.hero-lead { font-size: 18px; }
.hero-btn {
  display: inline-flex; align-items: center; height: 48px; margin-top: 20px; padding: 0 24px;
  background: var(--accent); color: #fff; border-radius: 4px; font-weight: 700; text-decoration: none;
}
@media (max-width: 768px) {
  .hero { height: 72vh; min-height: 440px; }
  .hero-text { left: 20px; right: 20px; bottom: 32px; }
  .hero-ttl { font-size: 30px; }
  .hero-lead { font-size: 15px; }
}

/* 7-1 インタビュー：パソコン 3 列、スマホ縦。名前は写真の下 */
.interviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.interviews a { display: block; text-decoration: none; }
.interviews img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.interview-name { display: block; margin-top: 8px; font-size: 13px; color: var(--sub); }
@media (max-width: 768px) { .interviews { grid-template-columns: 1fr; } }

/* 7-3 採用情報：カード 3 列 */
.job-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.job-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 4px; overflow: hidden; text-decoration: none; }
.job-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.job-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.job-card h3 { margin: 12px 0 4px; font-size: 18px; line-height: 1.5; }
.job-card-lead { font-size: 14px; color: var(--sub); }
.job-card-spec { margin: 16px 0; border-top: 1px solid var(--line); }
.job-card-spec div { display: grid; grid-template-columns: 5.5em 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.job-card-spec dt { color: var(--sub); }
.more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 14px; }
@media (max-width: 768px) { .job-cards { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .job-card-body { padding: 20px; } }

/* 7-4 会社概要：パソコンは 2 列、地図は下に横長。5-3 白い箱に入れない */
.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.company div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.company dt { font-weight: 700; }
.company .asr { width: 200px; }
.map { width: 100%; height: 360px; margin-top: var(--gap); border: 0; border-radius: 4px; }
@media (max-width: 768px) {
  .company { grid-template-columns: 1fr; }
  .company div { grid-template-columns: 1fr; gap: 4px; }
  .map { height: 280px; }
}

/* =========================================================
   求人ページ
   ========================================================= */

/* 7-15 一番上の動画：パソコンは高さ 480px まで */
.kv { background: #000; }
.kv-video { width: 100%; height: min(480px, 56vh); object-fit: cover; }
@media (max-width: 768px) { .kv-video { height: auto; aspect-ratio: 16 / 9; } }

.job-intro { padding-top: 24px; }
.job-ttl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: var(--head-gap); font-size: 32px; line-height: 1.4; }
.job-ttl span { font-size: 13px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 0 8px; border-radius: 2px; }
@media (max-width: 768px) { .job-ttl { font-size: 24px; } }
.job-intro-text { max-width: 40em; }
.job-intro-text p + p { margin-top: 0.4em; }
.intro-strong { font-size: 17px; }
.page-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: var(--gap); }
.page-links a {
  display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px;
  text-decoration: none; font-weight: 700;
}
.page-links-en { font-size: 11px; color: var(--accent); font-weight: 700; }
@media (max-width: 768px) { .page-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 7-5 募集要項・5-3 */
.table { border-top: 1px solid var(--line); }
.table div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 700; }
@media (max-width: 768px) { .table div { grid-template-columns: 1fr; gap: 4px; } }

/* 7-6 求める人材：写真は上に横長、文はパソコンで 2 段 */
.request-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 4px; margin-bottom: var(--gap); }
.request-text { columns: 2; column-gap: 48px; }
.request-text p { break-inside: avoid; }
@media (max-width: 768px) { .request-img { aspect-ratio: 3 / 2; } .request-text { columns: 1; } }

/* 7-7 待遇・福利厚生：3 列の白いカード。6-3 認証マークは薄いオレンジ */
.welfare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.welfare-card { display: flex; flex-direction: column; background: #fff; border-radius: 4px; overflow: hidden; }
.welfare-img { aspect-ratio: 3 / 2; }
.welfare-img img { width: 100%; height: 100%; object-fit: cover; }
.welfare-img-mark { display: flex; align-items: center; justify-content: center; background: #fdf1e4; }
.welfare-img-mark img { width: 50%; height: auto; object-fit: contain; }
.welfare-card h3 { margin: 24px 24px 8px; font-size: 18px; }
.welfare-card p { margin: 0 24px 24px; }
@media (max-width: 768px) { .welfare { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .welfare-card h3 { margin: 20px 20px 8px; } .welfare-card p { margin: 0 20px 20px; } }

/* 7-16 アピールポイント：文 58%・写真 42% */
.points { display: grid; gap: var(--gap); }
.point { display: grid; grid-template-columns: 58fr 42fr; border-radius: 4px; overflow: hidden; }
.point-text { padding: 32px; background: var(--bg); }
.point-label { font-size: 13px; font-weight: 700; color: var(--accent); }
.point h3 { margin: 4px 0 12px; font-size: 18px; line-height: 1.5; }
.point-img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .point { grid-template-columns: 1fr; }
  .point-img { order: -1; aspect-ratio: 3 / 2; height: auto; }
  .point-text { padding: 20px; }
}

/* 7-8 こだわり条件 */
.conditions { display: flex; flex-wrap: wrap; gap: 8px; }
.conditions li { padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }

/* 応募の帯（5：緑） */
.entry-band { background: var(--accent); }
.entry-band a {
  display: flex; flex-direction: column; align-items: center; padding: 24px 40px;
  color: #fff; text-decoration: none;
}
.entry-band .ttl-en { color: #fff; opacity: .85; }
.entry-band-ja { font-size: 22px; font-weight: 700; }
@media (max-width: 768px) { .entry-band a { padding: 20px; } .entry-band-ja { font-size: 18px; } }

/* 7-9 代表インタビュー・7-17 動画 */
.ceo { max-width: 40em; }
.interview-video { width: 100%; max-width: 800px; margin-top: var(--gap); border-radius: 4px; background: #000; }
.ceo-name { margin-top: 12px; font-weight: 700; }
.ceo-name span { margin-right: 8px; font-size: 13px; font-weight: 400; color: var(--sub); }
.ceo .interview-video { max-width: 800px; width: 800px; }
@media (max-width: 860px) { .ceo .interview-video { width: 100%; } }

/* 7-10 働く人の声 */
.voices { margin-top: calc(var(--sec)); }
.voice { display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.voice-person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 4px; }
.voice-name { margin-top: 8px; font-weight: 700; }
.voice-name span { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--sub); }
.qa + .qa { margin-top: var(--gap); }
.qa h3 { font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
@media (max-width: 768px) { .voice { grid-template-columns: 1fr; gap: 16px; } }

/* =========================================================
   エントリーフォーム（7-11〜7-14・7-19・7-20・7-21）
   ========================================================= */
.form-lead { margin-bottom: var(--gap); }
.entry-form { max-width: 800px; }
.field { margin-bottom: 16px; }
.field-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.req { font-size: 12px; font-weight: 400; color: var(--accent); }
.entry-form input[type="text"], .entry-form input[type="email"], .entry-form input[type="tel"], .entry-form select, .entry-form textarea {
  display: block; width: 100%; height: 36px; padding: 4px 12px;
  font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid var(--input-line); border-radius: 4px; appearance: none;
}
.entry-form select {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.entry-form select:has(option[value=""]:checked) { color: var(--placeholder); }
.entry-form select option { color: var(--text); }
.entry-form textarea { height: 80px; resize: vertical; }
.entry-form ::placeholder { color: var(--placeholder); }
.entry-form input:focus, .entry-form select:focus, .entry-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.entry-form .field [aria-invalid="true"] { border-color: #c62828; }
.field-fage input { max-width: 120px; }
.prefixed { position: relative; }
.field-fzip .prefixed { max-width: 140px; }
.prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sub); pointer-events: none; }
.prefixed input { padding-left: 32px !important; }
.field-error, .form-error { margin-top: 4px; font-size: 13px; color: #c62828; }
.form-error { margin: 0 0 12px; }
.agree { margin: 24px 0 16px; }
.agree label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.agree a { color: var(--accent); }
.turnstile { margin-bottom: 16px; }
.submit {
  display: block; min-width: 258px; height: 50px; padding: 0 32px;
  background: var(--accent); color: #fff; border: 0; border-radius: 4px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.submit:disabled { opacity: .4; cursor: not-allowed; }
.sending .submit { opacity: .5; pointer-events: none; }
@media (max-width: 768px) { .submit { width: 100%; min-width: 0; } }

/* =========================================================
   プライバシーポリシー・送信完了・サイトマップ
   ========================================================= */
.policy h2 { font-size: 20px; margin-bottom: 16px; }
.policy h3 { margin: 24px 0 8px; font-size: 17px; }
.policy ul { list-style: disc; padding-left: 1.5em; margin-top: 8px; }
.thanks { text-align: left; }
.thanks h2 { font-size: 20px; margin-bottom: 12px; }
.back {
  display: inline-flex; align-items: center; height: 48px; margin-top: var(--gap); padding: 0 24px;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; font-weight: 700; text-decoration: none;
}
.sitemap li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sitemap a { color: var(--accent); }
