/*
  株式会社トランスファーコーナー(trcojp.com)のホームページの見た目。
  ロゴが白黒なので、黒を基調に、倉庫の写真の台車の色(黄色)を差し色にしている。
  スマホの幅を基準に書き、広い画面のときだけ @media で並べ方を変える。
*/

:root {
  --ink: #16181d;          /* ロゴの黒・文字 */
  --ink-soft: #5c6068;     /* 薄い文字 */
  --accent: #f2b01e;       /* 差し色(黄色) */
  --accent-dark: #c78a00;  /* 押したとき */
  --bg: #f7f7f4;           /* ページの地の色 */
  --tint: #ecebe5;         /* 色つきの帯 */
  --line: #d8d6cd;         /* 罫線 */
  --ok: #1e7d3c;           /* 送信できたときの色 */
  --ng: #c0392b;           /* 送信できなかったときの色 */
  --white: #fff;
  --radius: 12px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #0b5cad; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.center { text-align: center; }
.sp-only { display: inline; }

/* 横幅をそろえる枠 */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.wrap--narrow { max-width: 780px; }

/* ---------- 上の帯 ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.site-header__logo { flex: 1 1 auto; min-width: 0; }
.site-header__logo img { width: 100%; max-width: 230px; }
.header-cta {
  flex: 0 0 auto; padding: 8px 18px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: bold; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--accent-dark); color: var(--white); }

/* メニュー(スマホでは横にスクロールできる1行) */
.site-nav { background: var(--ink); }
.site-nav__list { list-style: none; margin: 0 auto; display: flex; overflow-x: auto; padding-top: 0; padding-bottom: 0; }
.site-nav__list a {
  display: block; padding: 11px 13px; color: var(--white);
  text-decoration: none; font-size: 14px; font-weight: bold; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { background: rgba(255, 255, 255, .14); }
.site-nav__list a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- 看板 ---------- */
.hero { position: relative; background: var(--ink); }
.hero img { width: 100%; min-height: 170px; object-fit: cover; opacity: .55; }
.hero__text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.hero__catch {
  margin: 0; color: var(--white); font-weight: bold; font-size: 22px; line-height: 1.5; text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* ---------- 本文の区切り ---------- */
.section { padding: 44px 0; }
.section--tint { background: var(--tint); }
.section--lead { padding-bottom: 36px; }

h1, h2, h3 { line-height: 1.5; margin: 0; font-weight: bold; }
h1 { font-size: 23px; text-align: center; margin-bottom: 22px; }
h2 { font-size: 20px; text-align: center; margin-bottom: 26px; }
h1::after, h2::after {
  content: ""; display: block; width: 52px; height: 4px; border-radius: 2px;
  background: var(--accent); margin: 12px auto 0;
}
h3 { font-size: 17px; margin-bottom: 8px; }

.page-label { text-align: center; color: var(--ink-soft); font-size: 14px; font-weight: bold; margin-bottom: 4px; }
.lead-strong { font-weight: bold; font-size: 17px; }
.quote { background: var(--tint); border-left: 5px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: bold; }

/* ---------- ボタン ---------- */
.button {
  display: inline-block; padding: 12px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: bold; line-height: 1.4; text-decoration: none; text-align: center;
}
.button--accent { background: var(--accent); color: var(--ink); }
.button--accent:hover, .button--accent:focus-visible { background: var(--accent-dark); color: var(--white); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover, .button--dark:focus-visible { background: #33373f; }
.button--light { background: var(--white); color: var(--ink); }
.button--light:hover, .button--light:focus-visible { background: var(--tint); }
.button--big { font-size: 19px; padding: 16px 44px; }
.button[disabled] { opacity: .6; cursor: default; }
.apply-button { margin-top: 26px; }

/* ---------- 箱 ---------- */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 22px 20px;
  border-top: 5px solid var(--ink); box-shadow: 0 2px 10px rgba(22, 24, 29, .07);
}
.card--link { display: block; color: inherit; text-decoration: none; }
.card--link:hover, .card--link:focus-visible { border-top-color: var(--accent); }
.card--link h3::after { content: " →"; color: var(--accent-dark); }

.services { display: grid; gap: 16px; }
.services .card h2 { font-size: 18px; text-align: left; margin-bottom: 10px; }
.services .card h2::after { display: none; }

/* 「当社の強み」 */
.strengths { display: grid; gap: 14px; }
.strength { position: relative; background: var(--white); border-radius: var(--radius); padding: 18px 18px 18px 56px; box-shadow: 0 2px 10px rgba(22, 24, 29, .06); }
.strength::before { content: ""; position: absolute; left: 16px; top: 19px; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); }
.strength::after {
  content: ""; position: absolute; left: 25px; top: 24px; width: 7px; height: 12px;
  border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* 札(「発送の負担ゼロ！」など) */
.badges { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.badges li { background: var(--ink); color: var(--white); font-weight: bold; padding: 5px 18px; border-radius: 999px; font-size: 15px; }

/* ---------- 番号つきの流れ ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 60px; line-height: 1.6;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white);
  font-weight: bold; text-align: center; line-height: 32px;
}
.steps__title { display: block; font-weight: bold; }
.steps__text { display: block; color: var(--ink-soft); }

/* ---------- 一覧 ---------- */
.dot-list { margin: 0 0 1em; padding: 0; list-style: none; }
.dot-list li { position: relative; padding: 4px 0 4px 20px; line-height: 1.6; }
.dot-list li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-dark); }

/* ---------- よくある質問 ---------- */
.faqs { display: grid; gap: 14px; }
.faq { background: var(--white); border-radius: var(--radius); padding: 18px 18px; box-shadow: 0 2px 10px rgba(22, 24, 29, .06); }
.faq h2 { font-size: 16px; text-align: left; margin-bottom: 8px; }
.faq h2::after { display: none; }

/* ---------- 会社概要の画像 ---------- */
.company-figure { margin: 0 auto; max-width: 608px; background: var(--white); padding: 18px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(22, 24, 29, .07); }

/* ---------- 問い合わせフォーム ---------- */
.contact-form { background: var(--white); border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 2px 10px rgba(22, 24, 29, .07); }
.contact-form label { display: block; font-weight: bold; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid #a9a79e; border-radius: 8px; background: var(--white);
  font: inherit; font-weight: normal; color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.contact-form [aria-invalid="true"] { border-color: var(--ng); }
.field-error { display: block; margin-top: 4px; color: var(--ng); font-size: 14px; font-weight: normal; }
/* 人には見せない入力欄(自動送信の対策) */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-response { margin: 16px 0 0; padding: 0; }
.form-response.is-ok, .form-response.is-ng { padding: 12px 16px; border-radius: 8px; border: 2px solid; font-weight: bold; }
.form-response.is-ok { border-color: var(--ok); color: var(--ok); }
.form-response.is-ng { border-color: var(--ng); color: var(--ng); }

/* ---------- 申し込みへの帯・下の帯 ---------- */
.cta-band { background: var(--ink); color: var(--white); text-align: center; padding: 36px 0; }
.cta-band__lead { font-weight: bold; font-size: 18px; margin-bottom: 16px; }
.cta-band__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.site-footer { background: #0d0e11; color: var(--white); text-align: center; padding: 26px 0 22px; }
.site-footer__nav { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.site-footer__nav a { color: var(--white); font-size: 14px; }
.site-footer__copy { opacity: .8; }

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

/* ---------- 広い画面(タブレット・PC) ---------- */
@media (min-width: 720px) {
  body { font-size: 17px; }
  .sp-only { display: none; }
  .section { padding: 64px 0; }
  .site-header__logo img { max-width: 360px; }
  .header-cta { padding: 10px 28px; font-size: 16px; }
  .site-nav__list { justify-content: center; }
  .site-nav__list a { padding: 13px 22px; font-size: 15px; }
  .hero__catch { font-size: 34px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; margin-bottom: 32px; }
  h3 { font-size: 19px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .services .card { padding: 28px 30px; }
  .services .card h2 { font-size: 20px; }
  .faq { padding: 22px 26px; }
  .faq h2 { font-size: 18px; }
  .contact-form { padding: 34px 36px; }
}
