/* =========================================================================
   formx.co.jp common stylesheet
   全ページ共通。各 HTML から <link rel="stylesheet" href="/assets/styles.css">
   で読み込む。
   ======================================================================== */

/* ─── reset / base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .7; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }
ul, ol { list-style: none; }

/* ─── layout ─────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1280px; }

/* ─── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #f0f0f0;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-header__logo img { height: 30px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 32px; }
.site-header__nav-list { display: flex; gap: 28px; }
.site-header__nav-list a { font-size: 15px; font-weight: 500; color: #333; }
.btn-recruit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  color: #1a1a1a;
  border: 1px solid #1a1a1a; border-radius: 4px;
}
.btn-recruit .material-icons { font-size: 14px; }
.menu-toggle { display: none; }

@media (max-width: 768px) {
  .site-header__inner { height: 56px; }
  .site-header__nav { display: none; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
  }
  .menu-toggle .material-icons { font-size: 26px; color: #1a1a1a; }
}

/* mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 0;
  background: #fff; z-index: 100;
  display: none; flex-direction: column;
  padding: 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__head img { height: 28px; }
.mobile-menu__list { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.mobile-menu__list a { font-size: 19px; font-weight: 500; color: #1a1a1a; }
.mobile-menu__cta { margin-top: auto; padding-bottom: 32px; }

/* ─── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 112px 0 128px; }
.hero__title {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 36px;
}
.hero__lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 2.1;
  color: #1a1a1a;
  max-width: 860px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 80px; }
  .hero__title { font-size: 36px; line-height: 1.4; margin-bottom: 28px; }
  .hero__lead { font-size: 14px; line-height: 1.95; }
}

/* page-hero (subpage 用) ─────────────────────────────────────────────── */
.page-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid #e5e5e5;
}
.page-hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}
.page-hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}
.page-hero__lead {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: #555;
  max-width: 720px;
}

@media (max-width: 768px) {
  .page-hero { padding: 56px 0 40px; }
  .page-hero__title { font-size: 26px; }
}

/* ─── section common ─────────────────────────────────────────────────── */
.section { padding: 96px 0; border-top: 1px solid #e5e5e5; }
.section--first { border-top: none; }
.section--dark { background: #1a1a1a; color: #fff; padding: 96px 0; border-top: 1px solid #333; }
.section__head { margin-bottom: 56px; }
.section__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}
.section--dark .section__eyebrow { color: #888; }
.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.005em;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--dark { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: 24px; }
}

/* ─── 事業内容 (index) ───────────────────────────────────────────────── */
.business__panel {
  background: #1a1a1a;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #fff;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  border-radius: 4px;
}
.business__mockup {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
}
.business__mockup img { max-height: 280px; width: auto; }
.business__text { display: flex; flex-direction: column; gap: 24px; }
.business__desc { font-size: 16px; line-height: 1.95; color: #e5e5e5; }

.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  background: #fff; color: #1a1a1a;
  border-radius: 4px;
  font-size: 14px; font-weight: 500;
  align-self: flex-start;
  transition: transform .2s;
}
.read-more:hover { transform: translateY(-2px); opacity: 1; }
.read-more .material-icons { font-size: 18px; }

.read-more--inline {
  background: transparent; color: #1a1a1a;
  padding: 0;
  align-self: auto;
  gap: 4px;
  font-size: 15px;
}
.read-more--inline .material-icons { font-size: 18px; }

@media (max-width: 768px) {
  .business__panel {
    grid-template-columns: 1fr; gap: 32px;
    padding: 32px 24px;
  }
  .business__mockup { padding: 20px; }
  .business__mockup img { max-height: 200px; }
}

/* ─── 会社概要 (index) ───────────────────────────────────────────────── */
.about__panel {
  position: relative;
  min-height: 460px;
  background-image: url('about-bg.webp');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
}
.about__card {
  position: absolute; left: 56px; bottom: 56px;
  max-width: 520px;
  background: #fff;
  padding: 36px 32px;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.about__desc {
  font-size: 15px; line-height: 1.95; color: #1a1a1a;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about__panel { min-height: 240px; }
  .about__card {
    position: static; max-width: none;
    margin: -32px 16px 0;
    padding: 24px;
  }
}

/* ─── お知らせ ───────────────────────────────────────────────────────── */
.news__list { display: flex; flex-direction: column; }
.news__item {
  display: grid;
  grid-template-columns: 110px 110px 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid #e5e5e5;
}
.news__item:last-child { border-bottom: 1px solid #e5e5e5; }
.news__date {
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: #666;
}
.news__cat {
  font-size: 12px; font-weight: 500;
  padding: 4px 10px;
  border: 1px solid #ccc; border-radius: 2px;
  text-align: center;
  color: #555;
  width: fit-content;
}
.news__title { font-size: 15px; line-height: 1.7; color: #1a1a1a; }

@media (max-width: 768px) {
  .news__item {
    grid-template-columns: auto auto;
    grid-template-areas: "date cat" "title title";
    row-gap: 8px; column-gap: 12px;
    padding: 16px 0;
  }
  .news__date { grid-area: date; font-size: 13px; }
  .news__cat { grid-area: cat; font-size: 11px; padding: 2px 8px; }
  .news__title { grid-area: title; font-size: 14px; }
}

/* ─── メディア (index) ───────────────────────────────────────────────── */
.media__panel {
  background: #1a1a1a;
  color: #fff;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 56px;
  border-radius: 4px;
}
.media__desc { font-size: 15px; line-height: 1.95; color: #e5e5e5; margin-bottom: 24px; }
.media__visual {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}
.media__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .media__panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }
}

/* ─── We are hiring ──────────────────────────────────────────────────── */
.hiring {
  background: #1a1a1a;
  color: #fff;
  padding: 112px 24px;
  text-align: center;
  border-top: 1px solid #333;
}
.hiring__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hiring__desc {
  font-size: 15px; line-height: 2;
  color: #ccc;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hiring__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-size: 14px; font-weight: 500;
  color: #fff;
  border: 1px solid #fff; border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: #fff; color: #1a1a1a; opacity: 1; }
.btn-outline .material-icons { font-size: 16px; }

@media (max-width: 768px) {
  .hiring { padding: 64px 24px; }
  .hiring__title { font-size: 36px; }
  .hiring__buttons { flex-direction: column; align-items: center; }
  .btn-outline { width: 100%; max-width: 280px; justify-content: center; }
}

/* ─── footer ─────────────────────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid #e5e5e5;
  color: #666;
  font-size: 14px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 56px;
}
.site-footer__brand img { height: 28px; margin-bottom: 16px; }
.site-footer__sns { display: flex; gap: 12px; }
.site-footer__sns a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1a1a1a;
}
.site-footer__sns svg { width: 18px; height: 18px; }
.site-footer__nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; justify-content: end;
  max-width: 360px; margin-left: auto;
}
.site-footer__nav ul { display: flex; flex-direction: column; gap: 14px; }
.site-footer__nav a { color: #1a1a1a; font-size: 14px; }
.site-footer__copy {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #999;
  letter-spacing: .04em;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__nav { margin-left: 0; max-width: none; }
}

/* ─── content (subpage 用) ───────────────────────────────────────────── */
.content {
  font-size: 16px;
  line-height: 2;
  color: #1a1a1a;
}
.content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 56px 0 20px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin: 36px 0 16px;
}
.content p { margin-bottom: 16px; }
.content ul, .content ol { margin: 0 0 16px 24px; }
.content ul li { list-style: disc; margin-bottom: 8px; }
.content ol li { list-style: decimal; margin-bottom: 8px; }
.content a { color: #007cff; text-decoration: underline; }
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.content table th,
.content table td {
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}
.content table th {
  background: #fafafa;
  font-weight: 700;
  width: 200px;
  white-space: nowrap;
}
.content blockquote {
  border-left: 3px solid #ccc;
  padding: 8px 16px;
  margin: 16px 0;
  color: #666;
  font-style: italic;
}
.content img { margin: 24px auto; border-radius: 4px; }
.content hr {
  border: none; border-top: 1px solid #e5e5e5;
  margin: 48px 0;
}

/* ─── info list (about_us 用) ────────────────────────────────────────── */
.info-list {
  border-top: 1px solid #1a1a1a;
}
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 16px;
  border-bottom: 1px solid #e5e5e5;
  align-items: start;
}
.info-row dt {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.info-row dd {
  font-size: 15px;
  line-height: 1.95;
  color: #333;
}

@media (max-width: 768px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 8px;
  }
  .info-row dt { font-size: 13px; color: #666; }
  .info-row dd { font-size: 14px; }
}

/* ─── biz-row (business-detail 用) ───────────────────────────────────── */
.biz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.biz-row:nth-child(even) {
  /* 偶数行は visual を左に */
}
.biz-row__text {}
.biz-row__visual {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.biz-row__visual--dark {
  background: #1a1a1a;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 48px;
}
.biz-row__visual--dark img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 24px;
  object-fit: contain;
}
.biz-row__visual--photo {
  background: #2a2a2a;
}
.biz-row__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .biz-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .biz-row__visual--dark { padding: 24px; }
  .biz-row__visual--dark img { padding: 12px; }
}

/* ─── breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: #888;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.breadcrumb a { color: #888; }
.breadcrumb .material-icons { font-size: 16px; }

/* ─── form ───────────────────────────────────────────────────────────── */
.form-field { margin-bottom: 28px; }
.form-field__label {
  display: block;
  font-size: 14px; font-weight: 500;
  margin-bottom: 8px;
}
.form-field__required {
  display: inline-block;
  font-size: 11px;
  color: #c0364c;
  margin-left: 6px;
}
.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=tel],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}
.form-field textarea { min-height: 200px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #1a1a1a;
  outline-offset: -2px;
}
.form-checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.form-submit {
  width: 100%;
  padding: 16px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  font-size: 16px; font-weight: 700;
  text-align: center;
  margin-top: 16px;
}
.form-submit:hover { opacity: .85; }
