/* ====== 株式会社Mercury コーポレートサイト v2（白基調・ネイビー少し） ====== */
:root {
  --navy: #172540;
  --text: #1a1a1a;
  --text-sub: #666;
  --line: #e5e5e5;
  --bg: #fff;
  --bg-sub: #f6f6f4;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

/* ====== ヘッダー ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 0.2s ease;
}

.header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}

.logo-mark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.logo-sub {
  padding-left: 14px;
  border-left: 1px solid var(--navy);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.nav-list a:not(.nav-contact) {
  padding: 4px 0;
  text-underline-offset: 6px;
}

.nav-list a:not(.nav-contact):hover,
.nav-list a.active {
  text-decoration: underline;
}

.nav-contact {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 500;
}

.nav-contact:hover {
  background: var(--navy);
}

.hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ====== 見出し（ネイビーの帯に白抜き） ====== */
.mark {
  display: inline;
  padding: 0.08em 0.35em;
  background: var(--navy);
  color: #fff;
  line-height: 1.9;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sec-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sec-title-plain {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-sub {
  background: var(--bg-sub);
}

/* 左に見出し・右に本文の2段組み（5:7） */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.split + .split {
  margin-top: 96px;
}

.lead {
  font-size: 15px;
}

.lead p + p {
  margin-top: 1.4em;
}

.note {
  font-size: 13px;
  color: var(--text-sub);
}

/* ====== ボタン（細い枠線＋矢印） ====== */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 12px 24px;
  border: 1px solid var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-line::after {
  content: "→";
}

.btn-line:hover {
  background: var(--text);
  color: #fff;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ====== トップ：冒頭 ====== */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.hero-text {
  margin-top: 28px;
  max-width: 34em;
  color: #333;
}

.hero-figure {
  justify-self: end;
  width: 100%;
  max-width: 380px;
}

/* ====== 事業の行 ====== */
.biz-label {
  font-size: 13px;
  color: var(--text-sub);
}

.biz-title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}

/* ====== お知らせ ====== */
.news {
  border-top: 1px solid var(--line);
}

.news li {
  display: grid;
  grid-template-columns: 7em 6em 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.news time {
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.news .tag {
  justify-self: start;
  padding: 0 8px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  line-height: 1.9;
}

/* ====== 下層ページの見出し ====== */
.page-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.breadcrumb {
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-sub);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ====== 罫線の表（会社情報・お問い合わせ） ====== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--text);
}

.info-table th,
.info-table td {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.info-table th {
  width: 11em;
  padding-right: 24px;
  font-weight: 500;
  color: var(--text-sub);
}

.contact-big {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.contact-big:hover {
  text-decoration: underline;
}

/* ====== 代表挨拶 ====== */
.message-sign {
  margin-top: 32px;
  font-size: 14px;
}

.message-sign strong {
  display: block;
  font-size: 18px;
}

/* ====== 事業の流れ（横線でつなぐ4段階） ====== */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--text);
}

.flow li {
  position: relative;
  padding: 28px 24px 0 0;
}

.flow li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
}

.flow h3 {
  font-size: 16px;
  font-weight: 700;
}

.flow p {
  margin-top: 8px;
  font-size: 13px;
  color: #444;
}

/* ====== 出店店舗の一覧 ====== */
.shop-list {
  border-top: 1px solid var(--text);
}

.shop-list a {
  display: grid;
  grid-template-columns: 12em 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: padding 0.2s ease;
}

.shop-list a::after {
  content: "→";
}

.shop-list a:hover {
  padding-left: 8px;
}

.shop-list .shop-mall {
  color: var(--text-sub);
}

.shop-list .shop-name {
  font-weight: 500;
}

/* ====== 地図 ====== */
.map-wrap {
  margin-top: 32px;
  aspect-ratio: 16 / 7;
  background: var(--bg-sub);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

/* ====== 本文ページ（プライバシーポリシー） ====== */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 48px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.prose p,
.prose li {
  font-size: 14px;
}

.prose ul {
  margin-left: 1.2em;
  list-style: disc;
}

.prose-date {
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ====== 404 ====== */
.notfound {
  padding: clamp(96px, 14vw, 160px) 0;
}

.notfound-code {
  font-size: 13px;
  color: var(--text-sub);
}

/* ====== フッター ====== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 40px;
}

.footer-company {
  margin-top: 20px;
  line-height: 1.9;
  color: #444;
}

.footer h4 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
}

.footer li + li {
  margin-top: 6px;
}

.footer li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-sub);
}

/* ====== 会社概要の上部画像 ====== */
.page-visual {
  padding-top: clamp(32px, 4vw, 48px);
}

.page-visual svg,
.page-visual img {
  width: 100%;
  height: clamp(180px, 26vw, 300px);
  object-fit: cover;
}

/* ====== 運営サイトの画像 ====== */
.site-shot {
  display: block;
  /* 2段組みの右の列（7/12）と同じ幅にそろえる */
  width: calc((100% - 48px) * 7 / 12);
  margin: 48px 0 0 auto;
}

.site-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.site-shot-caption {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-sub);
}

.site-shot:hover .site-shot-caption {
  text-decoration: underline;
}

/* ====== お問い合わせフォーム ====== */
.form {
  border-top: 1px solid var(--text);
}

.form-row {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.form-row label {
  font-size: 14px;
  font-weight: 500;
}

.req {
  margin-left: 10px;
  padding: 0 6px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  vertical-align: 1px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1a1a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
  border-color: var(--navy);
}

.form textarea {
  resize: vertical;
  min-height: 180px;
}

.form .is-invalid {
  border-color: #b3261e;
}

/* ロボット判定用の欄（画面外に置いて人には見せない） */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  cursor: pointer;
}

.form-agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.cf-turnstile {
  margin-top: 24px;
}

.form-error {
  margin-top: 16px;
  font-size: 14px;
  color: #b3261e;
}

.btn-submit {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.form-done {
  padding: 40px 0 8px;
  border-top: 1px solid var(--text);
}

.form-done p {
  margin-top: 12px;
}

.form-done + .split {
  margin-top: 96px;
}

/* ====== 採用ページ ====== */
.job-list {
  border-top: 1px solid var(--text);
}

.job-list li {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.job-name {
  font-weight: 700;
}

.job-note {
  margin-top: 20px;
}

.dot-list li {
  position: relative;
  padding-left: 1.2em;
}

.dot-list li + li {
  margin-top: 8px;
}

.dot-list li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--navy);
}

/* ====== 写真（取り組みの例・採用） ====== */
.photo {
  width: calc((100% - 48px) * 7 / 12);
  margin: 40px 0 0 auto;
}

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ====== モールのロゴの帯（トップ） ====== */
.mall-band {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mall-band-title {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
}

.mall-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 56px;
  margin-top: 24px;
}

.mall-item {
  display: flex;
  align-items: center;
  height: 40px;
}

a.mall-item:hover {
  opacity: 0.7;
}

/* 元画像が小さいので、引き伸ばさない高さにとどめる */
.mall-logo {
  height: 28px;
  width: auto;
}

/* 2段組みのロゴ（楽天ラクマ公式）は大きめに */
.mall-logo[src*="rakuma"] {
  height: 40px;
}

.shop-logo .mall-logo[src*="rakuma"] {
  height: 44px;
}

.mall-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ====== 事業の3つ（トップ） ====== */
.biz-list {
  border-top: 1px solid var(--text);
}

.biz-list li {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.biz-list p {
  margin-top: 8px;
  font-size: 14px;
}

.biz-list .btn-line {
  margin-top: 20px;
}

/* ====== 出店店舗（グレーの枠＋ロゴ＋店舗名） ====== */
.shops-title {
  margin-top: 96px;
}

.shop-grid2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.shop-card2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 160px;
  padding: 28px 16px;
  background: #fff;
  text-align: center;
  transition: background 0.2s ease;
}

.section-sub .shop-card2 {
  background: #fff;
}

a.shop-card2:hover {
  background: #ececec;
}

.shop-grid2 + .split {
  margin-top: 96px;
}

.shop-logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.shop-logo .mall-logo {
  height: 30px;
}

.shop-logo .mall-name {
  font-size: 20px;
}

.shop-card2 .shop-name {
  font-size: 13px;
}

@media (max-width: 640px) {
  .mall-strip {
    gap: 20px 32px;
  }

  .shop-grid2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .shop-card2 {
    min-height: 130px;
    padding: 20px 8px;
  }

  .shop-logo .mall-logo {
    height: auto;
    max-height: 28px;
    max-width: 100%;
  }

  .shop-logo .mall-name {
    font-size: 16px;
  }
}

/* ====== 事業のアイコン ====== */
.icon {
  width: 28px;
  height: 28px;
  flex: none;
}

/* 事業内容ページ上部の切り替え帯 */
.biz-tabs {
  border-bottom: 1px solid var(--line);
}

.biz-tabs ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.biz-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 8px 24px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.biz-tabs a:hover {
  border-bottom-color: var(--text);
}

.biz-tabs .icon {
  width: 32px;
  height: 32px;
}

/* 見出しの前にアイコン */
.biz-title-icon,
.sec-title-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-title-icon .icon {
  width: 32px;
  height: 32px;
}

.lead > .biz-title {
  margin: 0 0 12px;
}

@media (max-width: 640px) {
  .biz-tabs a {
    padding: 20px 4px 16px;
    font-size: 13px;
  }

  .biz-tabs .icon {
    width: 26px;
    height: 26px;
  }
}

/* ====== スマホ ====== */
@media (max-width: 860px) {
  .split,
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split + .split {
    margin-top: 64px;
  }

  .hero-figure {
    display: none;
  }

  .site-shot {
    width: 100%;
  }

  .photo {
    width: 100%;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .logo-sub {
    display: none;
  }

  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter);
    background: #fff;
    font-size: 15px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav-list.is-open {
    transform: translateX(0);
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list a:not(.nav-contact) {
    display: block;
    padding: 16px 0;
  }

  .nav-list li:last-child {
    border-bottom: none;
    padding-top: 24px;
  }

  .nav-contact {
    display: block;
    text-align: center;
    padding: 12px;
  }

  .hamburger {
    display: block;
  }


  .news li {
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
  }

  .news li > span:last-child {
    grid-column: 1 / -1;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding: 18px 0 0;
    border-bottom: none;
  }

  .info-table td {
    padding: 2px 0 18px;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .job-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .shop-list a {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
  }

  .shop-list .shop-mall {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .map-wrap {
    aspect-ratio: 4 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
