/* TRADE SQUARE 日本側サイト（/ja） デザイン案 v0.1
   スマホ（390px）を基準に作り、PCは広げる形にしています。
   色は :root の値を変えると全体が変わります（差し色は仮置き）。 */

:root {
  --accent: #0047bb;        /* 差し色：ロゴの青（案C・2026-11-23に決定） */
  --accent-dark: #00378f;   /* ボタンを押したとき */
  --accent-soft: #e9effa;   /* 薄い青のカード */
  --bg: #ffffff;
  --bg-off: #f4f7fa;        /* 青みのごく薄いグレー（2026-11-23 薄茶色から変更） */
  --bg-beige: #eaf0f5;      /* 薄い青みグレーのカード（旧ベージュ） */
  --text: #262a30;          /* 濃いグレー */
  --text-sub: #59616b;
  --line: #dde3ea;
  --error: #b3261e;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  line-break: strict;
  overflow-wrap: anywhere;
}
h1, h2, h3, .phrase { word-break: auto-phrase; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 上部メニュー（画面を下に送っても残る） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 10px; height: 60px; }
.header-cta { white-space: nowrap; }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 136px; height: auto; }
.gnav { display: none; }
.header-cta { margin-left: auto; }
.menu-btn {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.sp-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.sp-nav.open { display: block; }
.sp-nav a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }

@media (min-width: 960px) {
  .header-inner { height: 72px; gap: 28px; }
  .logo img { width: 210px; }
  .gnav { display: flex; gap: 24px; margin-left: auto; }
  .gnav a { color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; }
  .gnav a:hover, .gnav a[aria-current="page"] { color: var(--accent); }
  .header-cta { margin-left: 0; }
  .menu-btn, .sp-nav { display: none !important; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
  font-family: inherit;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.btn-outline { background: #fff; color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- トップの最初の画面 ---------- */
.hero { background: var(--bg-off); border-bottom: 1px solid var(--line); padding: 36px 0 32px; }
.hero-eyebrow { font-size: 13px; color: var(--text-sub); margin: 0 0 10px; letter-spacing: .08em; }
.hero h1 { font-size: 28px; line-height: 1.45; margin: 0 0 16px; letter-spacing: .03em; }
.hero-lead { margin: 0 0 24px; color: var(--text-sub); font-size: 15px; }
.entries { display: grid; gap: 12px; }
.entry {
  display: block; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.entry:hover { border-color: var(--accent); }
.entry-dir { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .06em; }
.entry-title { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 700; margin: 2px 0 6px; }
.entry-title::after { content: "→"; color: var(--accent); font-size: 18px; }
.entry p { margin: 0; font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.hero-photos { display: none; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 16px; max-width: 34em; }
  .entries { grid-template-columns: 1fr 1fr; }
  .hero-photos { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .hero-photos .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* 写真が入るまでの仮の枠（商品写真だけを入れる予定） */
.ph {
  background: var(--bg-beige); border: 1px dashed #cfc6b6; border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center;
  color: #6a604f; font-size: 12px; padding: 8px;
}
.ph svg { width: 28px; height: 28px; margin: 0 auto 4px; stroke: #a89c8a; }

/* ---------- 共通のセクション ---------- */
.section { padding: 56px 0; }
.section-off { background: var(--bg-off); }
.section-head { margin-bottom: 28px; }
.section-head .en { font-size: 12px; color: var(--accent); letter-spacing: .12em; font-weight: 700; margin: 0 0 4px; }
.section h2 { font-size: 23px; line-height: 1.5; margin: 0; }
.section-head p { margin: 10px 0 0; color: var(--text-sub); font-size: 15px; }
@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .section h2 { font-size: 32px; }
}

/* ---------- 特徴 01・02・03 ---------- */
.features { display: grid; gap: 16px; }
.feature { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 20px; }
.feature-num { font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: 0; }
.feature h3 { font-size: 18px; line-height: 1.55; margin: 10px 0 12px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin: 6px 0; font-size: 15px; line-height: 1.7; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (min-width: 960px) {
  /* 横並び3枚にせず、番号＋見出しを左、箇条書きを右に置く */
  .feature { display: grid; grid-template-columns: 90px 1fr 1.25fr; gap: 28px; align-items: start; padding: 32px 36px; }
  .feature-num { font-size: 44px; }
  .feature h3 { margin: 4px 0 0; font-size: 21px; }
}

/* ---------- ご依頼の例 ---------- */
.note { font-size: 13px; color: var(--text-sub); background: var(--bg-beige); border-radius: 6px; padding: 8px 12px; margin: 0 0 20px; display: inline-block; }
.cases { display: grid; gap: 14px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case .ph { border-radius: 0; border: 0; border-bottom: 1px dashed #cfc6b6; aspect-ratio: 16 / 7; }
.case-body { padding: 16px 18px 18px; }
.case-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.case-who { font-size: 13px; color: var(--text-sub); margin: 8px 0 2px; }
.case h3 { font-size: 17px; line-height: 1.55; margin: 0 0 10px; }
.case dl { margin: 0; font-size: 14px; line-height: 1.7; }
.case dt { font-weight: 700; color: var(--text-sub); font-size: 12px; margin-top: 8px; }
.case dd { margin: 0; }
@media (min-width: 720px) { .cases { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---------- ご利用いただける方 ---------- */
.who { display: grid; gap: 20px; }
.who-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.who-box h3 { margin: 0 0 8px; font-size: 17px; }
.who-alt { background: var(--bg-beige); border-radius: var(--radius); padding: 18px 20px; font-size: 14px; }
.who-alt strong { display: block; margin-bottom: 4px; }
.badge-wait { display: inline-block; font-size: 11px; font-weight: 700; color: #7a6a52; border: 1px solid #c9b998; border-radius: 4px; padding: 0 6px; margin-left: 4px; vertical-align: 2px; }
@media (min-width: 960px) { .who { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }

/* ---------- 取引の流れ ---------- */
.flow { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: step; display: grid; gap: 8px; }
.flow li {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px 12px 52px; font-weight: 700; font-size: 15px;
}
.flow li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px;
}
.flow li small { display: block; font-weight: 400; font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-top: 2px; }
@media (min-width: 960px) {
  .flow.flow-row { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .flow.flow-row li { padding: 48px 12px 14px; text-align: center; font-size: 14px; }
  .flow.flow-row li::before { left: 50%; top: 14px; transform: translateX(-50%); }
}

/* ---------- 下層ページの見出し ---------- */
.page-head { background: var(--bg-off); border-bottom: 1px solid var(--line); padding: 32px 0 28px; }
.crumb { font-size: 12px; color: var(--text-sub); margin: 0 0 10px; }
.crumb a { color: var(--text-sub); }
.page-head h1 { font-size: 26px; line-height: 1.45; margin: 0 0 10px; }
.page-head p { margin: 0; color: var(--text-sub); font-size: 15px; }
@media (min-width: 960px) { .page-head { padding: 56px 0 48px; } .page-head h1 { font-size: 38px; } }

.two-col { display: grid; gap: 28px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }
.box-soft { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 20px; }
.box-soft h2, .box-soft h3 { margin-top: 0; }
.box-caution { border: 1px solid #d8c9a8; background: #fbf6ea; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; }

/* ---------- フォーム ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; }
@media (min-width: 960px) { .form-wrap { padding: 40px 48px; max-width: 820px; margin: 0 auto; } }
.field { margin-bottom: 22px; }
.field > label, .field > .label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.req { background: var(--accent); color: #fff; }
.opt { background: #e6ecf2; color: var(--text-sub); }
.hint { font-size: 13px; color: var(--text-sub); margin: 4px 0 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid #cfc8bc; border-radius: 8px; padding: 11px 12px; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfc8bc; border-radius: 8px; padding: 9px 14px; min-height: 44px; cursor: pointer; font-size: 15px; }
.choice input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); }
.err { display: none; color: var(--error); font-size: 13px; margin-top: 6px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.is-hidden { display: none; }
.form-submit { text-align: center; margin-top: 30px; }
.form-submit .btn { width: 100%; max-width: 360px; min-height: 54px; font-size: 17px; }
.form-submit p { font-size: 13px; color: var(--text-sub); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- 表（会社情報） ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table th { width: 34%; color: var(--text-sub); font-weight: 700; background: var(--bg-off); }
@media (max-width: 520px) {
  .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: 0; padding-bottom: 4px; }
  .table td { padding-top: 4px; }
}

.prose h2 { font-size: 20px; margin: 36px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 15px; }

.draft-flag { font-size: 12px; background: #fff3c4; color: #6b5200; border-radius: 4px; padding: 2px 8px; display: inline-block; }

/* ---------- フッター（明るい背景） ---------- */
.site-footer { background: var(--bg-off); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
.footer-logo img { width: 180px; }
.footer-grid h2 { font-size: 13px; color: var(--text-sub); margin: 0 0 10px; letter-spacing: .06em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-markets li { margin-bottom: 12px; line-height: 1.6; }
.footer-markets span { display: block; color: var(--text-sub); font-size: 13px; }
.footer-markets span.badge-wait { display: inline-block; font-size: 11px; color: #7a6a52; }
.copy { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--text-sub); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 48px; } }

/* 見出しの書体：大きな見出しだけ明朝体（2026-11-23）。本文・小見出し・ボタンはゴシックのまま */
:root { --font-head: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; }
h1, h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: .04em; }
.footer-grid h2, .sp-nav h2, .form-wrap h2 { font-family: inherit; font-weight: 700; letter-spacing: .06em; }

/* ---------- 2026-11-28 デザインチェックを受けての直し ---------- */
/* ファイルを選ぶボタンを、ほかの入力欄と同じくらい押しやすく */
input[type="file"] { font-size: 14px; }
input[type="file"]::file-selector-button { min-height: 44px; padding: 10px 16px; margin-right: 12px; font: inherit; font-weight: 700; color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: 8px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--accent-soft); }
/* ヘッダーとフッターの左右の端を、本文（1240px・左右40px）にそろえる */
@media (min-width: 960px) { .header-inner.wrap, #site-footer .wrap { max-width: 1240px; padding: 0 40px; } }
