/* =========================================================
   ページ固有スタイル(home / services / works / recruit /
   about / company / contact)
   ========================================================= */

/* ---------- HOME hero ---------- */
.home-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.home-hero::after {
  content: "//"; position: absolute; left: -3%; bottom: -22%;
  font-family: var(--font-en); font-style: italic; font-weight: 800;
  font-size: clamp(280px, 46vw, 620px); color: rgba(255,255,255,.045); line-height: 1; pointer-events: none;
}
.home-hero .container { position: relative; z-index: 2; padding: clamp(72px, 11vw, 130px) 0 clamp(40px, 6vw, 70px); }
.home-hero .eyebrow { font-family: var(--font-en); font-style: italic; font-weight: 800; letter-spacing: .18em; color: #8fb6e4; text-transform: uppercase; font-size: .9rem; }
.home-hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.22; margin: 18px 0 22px; letter-spacing: .03em; }
.home-hero h1 .ul { position: relative; white-space: nowrap; }
.home-hero h1 .ul::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .14em; background: var(--red); border-radius: 2px; }
.home-hero .sub { color: rgba(255,255,255,.85); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 52ch; }

/* the "2 doors" */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.12); }
.door {
  position: relative; min-height: clamp(190px, 24vw, 280px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 4vw, 46px); overflow: hidden;
  transition: flex .4s var(--ease);
  color: #fff;
}
.door::before { content: ""; position: absolute; inset: 0; z-index: 0; transition: background .4s, transform .5s var(--ease); }
.door-corp::before { background: var(--navy-deep); }
.door-recruit::before { background: var(--red); }
/* diagonal split */
.door-corp { clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%); }
.door-recruit { clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%); margin-left: -70px; }
.door .big { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: clamp(2.4rem,6vw,4rem); opacity: .16; position: absolute; top: 14px; right: 22px; z-index: 1; line-height: 1; }
.door .tag { position: relative; z-index: 2; font-size: .78rem; letter-spacing: .14em; font-family: var(--font-en); font-style: italic; opacity: .85; }
.door h2 { position: relative; z-index: 2; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 6px 0 8px; }
.door p { position: relative; z-index: 2; font-size: .9rem; color: rgba(255,255,255,.85); margin: 0; }
.door .go { position: relative; z-index: 2; margin-top: 16px; font-weight: 800; font-family: var(--font-en); font-style: italic; display: inline-flex; align-items: center; gap: 8px; transition: transform .3s var(--ease); }
.door:hover { flex: 1.18; }
.doors:hover .door:not(:hover) { filter: brightness(.82); }
.door:hover .go { transform: translateX(6px); }
.door-corp:hover::before { background: #013a73; }
.door-recruit:hover::before { background: var(--red-deep); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-en); font-style: italic; font-weight: 800; color: var(--navy); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.stat .num .suf { font-size: .42em; margin-left: 2px; color: var(--red); }
.stat .label { margin-top: 10px; font-size: .9rem; color: var(--muted); font-weight: 700; }
.stat .note { font-size: .7rem; color: #9aa6b4; margin-top: 4px; }

/* ---------- business 2-col (home + services) ---------- */
.biz-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 36px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.biz-card .kicker { font-family: var(--font-en); font-style: italic; font-weight: 800; color: var(--red); letter-spacing: .1em; font-size: .8rem; }
.biz-card h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 8px 0 16px; }
.biz-card p { color: var(--muted); }
.biz-card .more { margin-top: 22px; font-weight: 800; color: var(--navy); font-family: var(--font-en); font-style: italic; display: inline-flex; gap: 8px; }
.biz-card .more:hover { color: var(--red); }
.biz-card .ghost { position: absolute; right: -10px; bottom: -30px; font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 9rem; color: var(--bg-navy-soft); z-index: 0; line-height: 1; }
.biz-card > * { position: relative; z-index: 1; }

/* ---------- reasons ---------- */
.reason { display: flex; gap: 22px; align-items: flex-start; }
.reason .n { flex: none; width: 58px; height: 58px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 1.4rem; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.reason h3 { font-size: 1.18rem; margin-bottom: 8px; }
.reason p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- voices ---------- */
.voice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.voice .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #2a6fb0); display: grid; place-items: center; color: #fff; font-family: var(--font-en); font-style: italic; font-weight: 800; margin-bottom: 16px; }
.voice blockquote { margin: 0 0 12px; font-weight: 700; font-size: 1.02rem; line-height: 1.7; }
.voice .who { font-size: .82rem; color: var(--muted); }

/* placeholder photo */
.ph { background: linear-gradient(135deg, var(--bg-navy-soft), #dfe9f5); border-radius: var(--radius); display: grid; place-items: center; color: #9fb4cd; font-family: var(--font-en); font-style: italic; font-weight: 800; letter-spacing: .1em; min-height: 240px; position: relative; overflow: hidden; }
.ph::after { content: "//"; position: absolute; font-size: 7rem; color: rgba(0,60,120,.06); }
.ph span { position: relative; font-size: .85rem; }

/* ---------- services detail ---------- */
.svc-block { padding-top: clamp(40px,6vw,72px); }
.svc-block + .svc-block { border-top: 1px solid var(--line); }
.svc-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.svc-head .num-tag { font-family: var(--font-en); font-style: italic; font-weight: 800; color: var(--navy); opacity: .3; font-size: 2.2rem; }
.issue-box { background: var(--bg-soft); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 28px; }
.issue-box h4 { color: var(--red-deep); margin-bottom: 14px; font-size: 1rem; }
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.flow .step { flex: 1 1 140px; background: var(--navy); color: #fff; padding: 16px; border-radius: 10px; font-size: .85rem; font-weight: 700; text-align: center; position: relative; display: grid; place-items: center; min-height: 72px; }
.flow .step:not(:last-child)::after { content: "//"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--red); font-family: var(--font-en); font-style: italic; font-weight: 800; z-index: 2; }
.flow .step .s { display: block; font-family: var(--font-en); font-style: italic; opacity: .5; font-size: .7rem; }

/* ---------- works cases ---------- */
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case .case-top { background: var(--navy); color: #fff; padding: 22px 26px; }
.case .case-top .cat { font-family: var(--font-en); font-style: italic; font-weight: 800; color: #8fb6e4; font-size: .78rem; letter-spacing: .08em; }
.case .case-top h3 { font-size: 1.18rem; margin-top: 6px; }
.case .case-body { padding: 26px; }
.case .row { margin-bottom: 16px; }
.case .row .k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.case .row.result .k { color: var(--red); }
.case .row .v { color: var(--ink); font-size: .95rem; }
.case .result .v { background: #fff0f3; border-radius: 8px; padding: 12px 14px; font-weight: 700; color: var(--red-deep); }
.badge-result { display: inline-block; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; }

/* ---------- recruit ---------- */
.recruit-hero { background: var(--red); }
.recruit-hero::before { content: "//"; color: rgba(255,255,255,.08); }
.recruit-hero .eyebrow { color: #ffd2dc; }
.recruit-hero .slash-accent { color: #ffd2dc; }
.career-path { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.career-path .node { background: #fff; border: 2px solid var(--navy); color: var(--navy); font-weight: 800; padding: 14px 22px; border-radius: 999px; font-size: .95rem; }
.career-path .node.alt { background: var(--navy); color: #fff; }
.career-path .sep { color: var(--red); font-family: var(--font-en); font-style: italic; font-weight: 800; }
.interview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 200px 1fr; }
.interview .ph { border-radius: 0; min-height: 100%; }
.interview .iv-body { padding: 30px 32px; }
.interview .meta { font-size: .8rem; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.interview .qa { margin-bottom: 14px; }
.interview .qa .q { font-weight: 800; color: var(--navy); font-size: .92rem; margin-bottom: 4px; }
.interview .qa .q::before { content: "Q. "; font-family: var(--font-en); font-style: italic; color: var(--red); }
.interview .qa .a { color: var(--muted); font-size: .92rem; }

/* schedule timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline .t { font-family: var(--font-en); font-style: italic; font-weight: 800; color: var(--navy); font-size: 1rem; }
.timeline .d { color: var(--muted); font-size: .94rem; }

/* ---------- spec / data tables ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .96rem; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table th { background: var(--bg-soft); color: var(--navy); width: 32%; font-weight: 800; white-space: nowrap; }
.data-table td { color: var(--ink); }

/* ---------- about ---------- */
.story { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(38px,5vw,64px); overflow: hidden; }
.story::before { content: "//"; position: absolute; right: 4%; top: -10%; font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 18rem; color: rgba(255,255,255,.05); line-height: 1; }
.story h2 { font-size: clamp(1.5rem,3.4vw,2.1rem); margin-bottom: 24px; position: relative; }
.story p { color: rgba(255,255,255,.88); position: relative; }
.message-card { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.message-card .sign { margin-top: 24px; font-family: var(--font-en); font-style: italic; }
.message-card .sign strong { display: block; font-style: normal; font-family: var(--font-jp); font-size: 1.2rem; color: var(--navy); }
.value-card { text-align: center; }
.value-card .vnum { font-family: var(--font-en); font-style: italic; font-weight: 800; color: var(--red); font-size: 1.1rem; letter-spacing: .1em; }
.value-card h3 { font-size: 1.3rem; margin: 8px 0 10px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 8px; color: var(--ink); }
.req { background: var(--red); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .08em; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.opt { color: var(--muted); font-size: .72rem; font-weight: 700; margin-left: 8px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; color: var(--ink); background: #fdfdfe; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,60,120,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.type-options { display: flex; gap: 12px; flex-wrap: wrap; }
.type-options label { flex: 1 1 150px; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; text-align: center; font-weight: 700; transition: .2s; margin: 0; }
.type-options input { position: absolute; opacity: 0; }
.type-options label:has(input:checked) { border-color: var(--navy); background: var(--bg-navy-soft); color: var(--navy); }
.conditional { background: var(--bg-soft); border-radius: var(--radius); padding: 24px 24px 4px; margin-bottom: 22px; border: 1px dashed var(--line); }
.conditional .cond-head { font-weight: 800; color: var(--navy); margin-bottom: 18px; font-size: .9rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 5px; }
.consent a { color: var(--navy); text-decoration: underline; }
.form-note { font-size: .82rem; color: var(--muted); }
.contact-aside { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px; }
.contact-aside h3 { font-size: 1.2rem; margin-bottom: 18px; }
.contact-aside .tel { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 1.8rem; }
.contact-aside .item { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-aside .item:last-child { border-bottom: 0; }
.contact-aside .k { font-size: .76rem; color: #9fc1e8; letter-spacing: .08em; font-family: var(--font-en); font-style: italic; }
.success-box { background: #ecfdf3; border: 1.5px solid #4ec07a; color: #18794e; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 24px; }
.success-box h3 { color: #18794e; margin-bottom: 6px; }

/* map placeholder */
.map-ph { min-height: 320px; }

/* ---------- legal / privacy ---------- */
.legal > p { color: var(--ink); margin-bottom: 1.2em; }
.legal h2 { font-size: 1.15rem; margin: 2.2em 0 .8em; padding-bottom: .5em; border-bottom: 1px solid var(--line); letter-spacing: .02em; }
.legal h2 .slash { font-size: .85em; margin-right: .3em; }
.legal h2:first-of-type { margin-top: 1.4em; }
.legal-list { margin: 0 0 1.2em; padding: 0; }
.legal-list li { position: relative; padding-left: 22px; margin-bottom: .5em; color: var(--ink); }
.legal-list li::before { content: "//"; position: absolute; left: 0; top: 0; color: var(--red); font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: .8em; }
.legal-note { font-size: .85rem; color: var(--muted); background: var(--bg-soft); border-left: 3px solid var(--red); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.legal-meta { margin-top: 3em; padding-top: 1.4em; border-top: 2px solid var(--navy); }
.legal-meta p { color: var(--muted); font-size: .9rem; margin: 0; }
.legal a { color: var(--navy); text-decoration: underline; }
.legal a:hover { color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .door-corp, .door-recruit { clip-path: none; margin-left: 0; }
  .doors { grid-template-columns: 1fr; }
  .interview { grid-template-columns: 1fr; }
  .interview .ph { min-height: 200px; }
  .message-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .flow .step:not(:last-child)::after { display: none; }
  .data-table th { width: 38%; white-space: normal; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
