/* ==========================================================
   Mentoshi — TOP page stylesheet
   Concept: 検査プレート / 証明タグ（Industrial inspection plate）
   ========================================================== */

:root {
  --bg: #F6F6F3;
  --bg-alt: #EDEDE9;
  --ink: #17181A;
  --ink-soft: #4B4E52;
  --accent: #E4570F;
  --accent-dark: #B8460C;
  --silver: #9AA0A6;
  --silver-light: #C7CBCE;
  --line: #D8D9D5;
  --white: #FFFFFF;

  --font-jp: 'Zen Kaku Gothic New', -apple-system, 'Hiragino Sans', sans-serif;
  --font-en: 'Oswald', sans-serif;

  --container-w: 1080px;
  --section-pad: 88px;
}

@media (max-width: 720px) {
  :root { --section-pad: 56px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 246, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  gap: 36px;
  font-size: 14.5px;
}
.primary-nav a { position: relative; padding: 4px 0; }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] {
  color: var(--accent);
}
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex: 0 0 32px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 320px; }
  .primary-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Corner-tag frame (structural motif) ---------- */
.tag-frame {
  position: relative;
  padding: 56px 48px;
}
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

@media (max-width: 720px) {
  .tag-frame { padding: 40px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--silver-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--silver-light) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-frame {
  position: relative;
  background: var(--white);
  max-width: 720px;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 56px;
  animation: hero-rise 0.7s ease both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-mark {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-copy {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 2;
  max-width: 30em;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-store-slot {
  height: 0;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .hero-copy { font-size: 28px; }
  .hero-frame { padding-top: 48px; padding-bottom: 48px; }
}

/* ---------- Buttons (cut-corner "plate" style) ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Sections (general) ---------- */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }

/* 黒い芯（アプリとのブランド連続性） */
.section-dark {
  background: var(--ink);
  color: var(--bg);
}
.section-dark .section-heading { color: var(--white); }
.section-dark .section-lead { color: var(--silver-light); }

.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--silver);
  margin-bottom: 20px;
}

.section-heading {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 18em;
}

.section-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 2;
  max-width: 34em;
}
.section-lead-end { margin-top: 40px; }

/* ---------- Section 02: issues ---------- */
.issue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.issue-title {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}
.issue-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.8;
}
.issue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--silver);
}

@media (max-width: 820px) {
  .issue-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Section 03: stack lines ---------- */
.stack-lines {
  margin: 40px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.stack-lines p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.stack-lines p:last-child { margin-bottom: 0; }

/* ---------- Section 04: pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.pillar-card {
  background: var(--white);
  text-align: center;
  padding: 56px 32px;
}
.pillar-kanji {
  font-size: 72px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 20px;
}
.pillar-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}
.pillar-desc {
  color: var(--ink-soft);
  font-size: 15px;
}

@media (max-width: 640px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ---------- Item chips (worker/company: 積み上がる情報の一覧) ---------- */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.item-chip {
  border: 1px solid var(--line);
  padding: 18px 16px;
  font-size: 14.5px;
  font-weight: 500;
}
.section-dark .item-chip {
  border-color: #3a3b40;
  color: var(--bg);
}

@media (max-width: 640px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); }
}
.flow-list {
  position: relative;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.flow-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.flow-num {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--accent);
  width: 24px;
  flex-shrink: 0;
}
.flow-text { font-size: 16px; font-weight: 500; }

.flow-tagline {
  margin-top: 40px;
  font-size: 19px;
  font-weight: 700;
}

/* ---------- Section 06 / 07: split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-text .btn { margin-top: 32px; }

.split-visual {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, var(--silver-light) 0 1px, transparent 1px 18px);
  background-color: var(--white);
  border: 1px solid var(--line);
  position: relative;
}
.split-visual::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid var(--accent);
  opacity: 0.4;
}

.split-visual-dark {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(135deg, #33343a 0 1px, transparent 1px 18px);
  border-color: var(--ink);
}
.split-visual-dark::after { opacity: 0.55; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; aspect-ratio: 16 / 9; }
}

/* ---------- Section 08: status ---------- */
.status-frame {
  background: var(--white);
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.status-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  margin-bottom: 24px;
}
.status-frame .section-lead { margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 72px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #33343a;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-copy {
  color: var(--silver-light);
  font-size: 14px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 40px;
  font-size: 14px;
}
.footer-links a { color: var(--silver-light); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
  padding-top: 24px;
}

@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* ==========================================================
   Phase 3 — 利用規約 / プライバシーポリシー / お問い合わせ / 運営情報
   ========================================================== */

/* ---------- Page intro (規約・プライバシー・お問い合わせ・運営情報の見出し部) ---------- */
.page-intro {
  padding: 64px 0 8px;
}
.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}
.page-lead {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2;
  max-width: 34em;
}

@media (max-width: 560px) {
  .page-title { font-size: 26px; }
}

/* ---------- Legal content（利用規約・プライバシーポリシー） ---------- */
.legal {
  max-width: 680px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 700;
  padding-top: 40px;
  margin-top: 40px;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.legal p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2;
  margin-bottom: 16px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}
.legal ul li {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
  margin-bottom: 8px;
}
.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-size: 13.5px;
}

/* ---------- Contact form (UI only) ---------- */
.notice-box {
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 620px;
}
.notice-box a { color: var(--accent); text-decoration: underline; }

.contact-form {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 14.5px;
  font-weight: 500;
}
.form-field .optional {
  color: var(--silver);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.form-field textarea {
  min-height: 160px;
  resize: vertical;
}
.form-field select { appearance: auto; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.form-check input { margin-top: 4px; }

.form-submit-note {
  font-size: 13px;
  color: var(--silver);
}

/* ---------- Operator info (運営情報) ---------- */
.info-list {
  max-width: 640px;
  border-top: 1px solid var(--line);
}
.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.info-row dt {
  font-size: 13.5px;
  color: var(--silver);
  letter-spacing: 0.04em;
}
.info-row dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.9;
}
.info-row dd a { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .info-row { grid-template-columns: 1fr; gap: 4px; }
}
