/*
  株式会社ミナモ製作所（06-corp）
  ジャンル：整った多ページ。装飾より整列。同じ型が6ページで繰り返される。
  「会社案内のPDFをそのままWebにしたもの」という方向。角丸4px・影なし・グラデーションなし。
*/

:root {
  --navy: #143d6b;
  --sub: #5b7c99;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --border: #d8e0e8;
  --ink: #1a1a1a;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;
  --content-max: 1120px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

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;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
}

h1, h2, h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(24px, 3.4vw, 38px);
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
}

p {
  margin: 0 0 16px;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
}

.button--primary {
  background: var(--navy);
  color: var(--bg);
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== ヘッダー ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo__mark {
  width: 10px;
  height: 10px;
  background: var(--navy);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__jp {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

.logo__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sub);
}

.nav {
  display: none;
}

.nav__list,
.nav-details__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__list a,
.nav-details__list a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.nav__list a[aria-current="page"],
.nav-details__list a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--sub);
}

.header__tel {
  display: none;
  margin: 0;
  font-family: var(--font-en);
  font-weight: 600;
  text-align: right;
}

.header__tel a {
  text-decoration: none;
  font-size: 16px;
}

.header__tel-note {
  display: block;
  font-size: 11px;
  color: var(--sub);
  font-family: var(--font-jp);
  font-weight: 400;
}

.nav-details {
  width: 100%;
  order: 3;
}

.nav-details__summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.nav-details__summary::-webkit-details-marker {
  display: none;
}

.nav-details__summary::after {
  content: "＋";
  float: right;
}

.nav-details[open] .nav-details__summary::after {
  content: "－";
}

/* ===== パンくず ===== */
.breadcrumb {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 16px 16px 0;
}

.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
  flex-wrap: wrap;
}

.breadcrumb__list li + li::before {
  content: "\203A";
  margin-right: 8px;
}

.breadcrumb__list a {
  color: var(--sub);
  text-decoration: none;
}

.breadcrumb__list [aria-current="page"] {
  color: var(--ink);
}

/* ===== ページ見出し（下層ページ共通） ===== */
.page-head {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 24px 16px 8px;
}

.page-head__lead {
  color: #444;
}

/* ===== ヒーロー（トップ） ===== */
.hero {
  position: relative;
}

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero__content {
  padding: 24px 16px;
}

.hero__lead {
  color: #333;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ===== セクション共通 ===== */
.section {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 40px 16px;
}

.section--soft {
  background: var(--bg-soft);
  max-width: none;
}

.section--soft > * {
  max-width: var(--content-max);
  margin-inline: auto;
}

.section__title {
  margin-bottom: 24px;
}

.section__text {
  max-width: 68ch;
}

.section__note {
  font-size: 13px;
  color: var(--sub);
}

.section__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* ===== できること（3カード） ===== */
.can-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.can-card {
  min-width: 0;
}

.can-card img {
  border-radius: var(--radius);
  margin-bottom: 12px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.can-card__number {
  font-family: var(--font-en);
  color: var(--sub);
  font-weight: 600;
  margin-bottom: 4px;
}

.can-card__title {
  margin-bottom: 8px;
}

.can-card__text {
  font-size: 15px;
  color: #333;
}

/* ===== 数字で見る ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.stat__label {
  color: var(--sub);
  margin: 0;
}

/* ===== 実績カード ===== */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.works-card {
  /* CSS Grid の子は既定で min-width:auto のため、中の表（.table 最小幅480px）が
     はみ出したままページ全体を横に広げてしまう。0 にして .table-wrap の
     overflow-x:auto に横スクロールの処理を任せる（390px実測で確認済み） */
  min-width: 0;
}

.works-card img {
  border-radius: var(--radius);
  margin-bottom: 12px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.works-card__category {
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.works-card__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.works-card--detail .table-wrap {
  margin-top: 12px;
}

/* ===== お知らせ ===== */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.news-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.news-list time {
  font-family: var(--font-en);
  color: var(--sub);
  flex: 0 0 auto;
}

/* ===== 表（6ページ共通の1つのスタイル） ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table thead th {
  background: var(--bg-soft);
  font-weight: 700;
}

.table tbody th {
  background: var(--bg-soft);
  width: 9em;
  font-weight: 700;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: none;
}

.table--compact th {
  width: 6em;
}

/* ===== 選考の流れ ===== */
.steps {
  padding-left: 1.4em;
}

.steps li {
  margin-bottom: 8px;
}

/* ===== フォーム ===== */
.contact-form {
  max-width: 640px;
}

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 700;
  font-size: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  min-height: 44px;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__done {
  max-width: 640px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.contact-form__done-note {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 0;
}

/* ===== CTA（共通） ===== */
.cta {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.cta__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px 16px;
  text-align: center;
}

.cta__text {
  max-width: 48ch;
  margin-inline: auto;
}

.cta__note {
  font-size: 13px;
  color: var(--sub);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 40px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.site-footer__name {
  font-weight: 700;
  color: var(--navy);
}

.site-footer__heading {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

.site-footer__bottom {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 16px 16px 32px;
  font-size: 12px;
  color: var(--sub);
}

.site-footer__bottom p {
  margin-bottom: 4px;
}

/* ===== 600px 以上 ===== */
@media (min-width: 600px) {
  .can-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 1024px 以上 ===== */
@media (min-width: 1024px) {
  .nav {
    display: block;
    order: 2;
  }

  .nav__list {
    flex-direction: row;
    gap: 28px;
  }

  .nav__list a {
    padding: 4px 0;
  }

  .header__tel {
    display: block;
    order: 3;
  }

  .nav-details {
    display: none;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .hero__media img {
    aspect-ratio: auto;
    height: 100%;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px;
  }

  .can-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}
