/* ============================================================================
 * shared.css — 大西海運 サイト共通
 * snishi-code.com の shared.css を基に、読みやすさ（本文 16px・濃い本文色・
 * タップ領域 44px 以上）と採用中心の導線に合わせて組み直したもの。
 * ========================================================================== */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;          /* 見出し */
  --body: #334155;          /* 本文（slate-700。旧 muted より濃くして長文を読みやすく） */
  --muted: #64748b;         /* 補足・ラベルだけに使う */
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);

  --navy: #1e3a8a;
  --navy-deep: #172554;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;
  --teal: #0d9488;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --line: #06c755;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  background: var(--bg);
  color: var(--body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
strong { color: var(--text); }

/* ── Demo banner（試作の断り。本採用時に外す） ── */
.demo-banner {
  background: var(--amber-light);
  border-bottom: 1px solid #fcd34d;
  color: #78350f;
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 20px;
  text-align: center;
}
.demo-banner strong { color: inherit; }

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  flex-shrink: 0; min-height: 44px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { display: block; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .02em; line-height: 1.25; }
.brand-name small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .1em; }

nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 600;
  color: var(--body);
  text-decoration: none; white-space: nowrap;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-link.active { color: var(--navy); background: var(--blue-light); }
.nav-cta {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  font-size: 15px; font-weight: 700;
  color: #fff; background: var(--navy);
  border-radius: 10px; text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { background: var(--blue); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  font-size: 16px; font-weight: 700;
  border-radius: 12px; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Hero（トップ・全幅） ── */
.hero {
  position: relative;
  color: #fff;
  min-height: 560px;
  display: flex; align-items: flex-end;
  background: var(--navy-deep) url("/images/hero.jpg") center 40% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,37,84,.9) 0%, rgba(23,37,84,.45) 55%, rgba(23,37,84,.05) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); width: 100%;
  margin: 0 auto; padding: 96px 24px 56px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 99px;
  background: var(--amber); color: #fff;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800; letter-spacing: .02em; line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero p { font-size: 17px; max-width: 600px; line-height: 1.85; margin-bottom: 28px; }

/* ── Main / sections ── */
main {
  max-width: var(--wrap); width: 100%;
  margin: 0 auto;
  padding: 56px 24px 96px;
  flex: 1;
}
.section { margin-top: 72px; }
.section:first-child { margin-top: 0; }
.section-head { margin-bottom: 24px; }
.section-kicker { font-size: 14px; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.section-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; color: var(--text); line-height: 1.35; }
.section-sub { margin-top: 10px; max-width: 720px; }
.more { margin-top: 20px; font-weight: 700; }
.more a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ── Page head（下層） ── */
.page-head { margin-bottom: 48px; }
.page-head .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--teal); margin-bottom: 6px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 42px); font-weight: 800; color: var(--text); line-height: 1.25; }
.page-head p { font-size: 17px; margin-top: 14px; max-width: 720px; }
.prose p + p { margin-top: 14px; }
.prose { max-width: 760px; }

/* ── Stats（数字で見る働き方） ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px;
}
.stat-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.stat-value { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; }
.stat-value small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.stat-note { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

/* ── Definition table ── */
.dl {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.dl > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px;
  padding: 18px 24px; border-top: 1px solid var(--border);
}
.dl > div:first-child { border-top: 0; }
.dl dt { font-weight: 700; color: var(--text); }
.dl dd ul { padding-left: 20px; margin-top: 4px; }
.dl .note { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── Placeholder（素材待ちの枠） ── */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ph {
  background: var(--surface);
  border: 2px dashed #cbd5e1; border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.ph-badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  color: #92400e; background: #fef3c7;
  padding: 3px 10px; border-radius: 99px;
}
.ph-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #94a3b8;
}
.ph-title { font-size: 17px; font-weight: 800; color: var(--text); }
.ph-text { font-size: 15px; color: var(--muted); line-height: 1.75; }
.ph-wide { min-height: 160px; justify-content: center; }

/* ── Ships ── */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff; }
.thumb img { aspect-ratio: 960 / 460; object-fit: cover; width: 100%; transition: transform .3s; }
.thumb:hover img { transform: scale(1.04); }
.thumb span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 8px;
  font-size: 14px; font-weight: 700;
  background: linear-gradient(to top, rgba(15,23,42,.75), rgba(15,23,42,0));
}
.ship-group { margin-top: 40px; }
.ship-group:first-child { margin-top: 0; }
.ship-group-title {
  display: inline-block; font-size: 15px; font-weight: 800;
  color: var(--navy); background: var(--blue-light);
  padding: 5px 14px; border-radius: 99px; margin-bottom: 16px;
}
.ship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.ship {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.ship img { aspect-ratio: 960 / 460; object-fit: cover; width: 100%; }
.ship-body { padding: 18px 22px 22px; }
.ship-name { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.4; }
.ship-name small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.spec { margin-top: 12px; font-size: 15px; }
.spec div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--border); }
.spec div:first-child { border-top: 0; }
.spec dt { color: var(--muted); font-weight: 700; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 10px;
}
.step h3 { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.step p { font-size: 15px; }

/* ── Box ── */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.box + .box { margin-top: 14px; }
.box h3 { font-size: 17px; font-weight: 800; color: var(--text); margin: 22px 0 6px; }
.box h3:first-child { margin-top: 0; }
.box ul { padding-left: 20px; }
.box p + p { margin-top: 10px; }

/* ── 法人向け帯 ── */
.band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px;
}
.band-title { font-size: 18px; font-weight: 800; color: var(--text); }
.band p { font-size: 15px; margin-top: 4px; max-width: 620px; }

/* ── Contact CTA ── */
.cta { margin-top: 72px; background: var(--navy-deep); color: #fff; border-radius: var(--radius); padding: 40px 36px; }
.cta h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 8px; }
.cta > p { font-size: 16px; opacity: .9; margin-bottom: 24px; }
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cta-btn {
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--text);
  border-radius: 12px; padding: 14px 18px; min-height: 68px;
  text-decoration: none; font-weight: 800; font-size: 18px; line-height: 1.4;
  transition: transform .15s, box-shadow .15s;
}
a.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cta-btn small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.cta-btn .ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.cta-btn.is-off { opacity: .75; }
.ico-tel { background: var(--amber); }
.ico-mail { background: var(--blue); }
.ico-line { background: var(--line); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 24px; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.footer-company { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.footer-links { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.footer-links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; }

/* ── スマホ下部の固定ボタン（PC では出さない） ── */
.mobile-bar { display: none; }

@media (max-width: 820px) {
  header { padding: 0 14px; }
  .header-inner { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .nav-cta { display: none; }
  nav { width: 100%; margin-left: 0; justify-content: space-between; border-top: 1px solid var(--border); }
  .nav-link { flex: 1; justify-content: center; padding: 0 4px; font-size: 14px; border-radius: 0; }
  .nav-link.active { background: none; box-shadow: inset 0 -3px 0 var(--navy); }
  main { padding: 40px 18px 72px; }
  .section { margin-top: 56px; }
  .hero { min-height: 520px; background-image: url("/images/hero-sp.jpg"); }
  .hero-inner { padding: 72px 18px 36px; }
  .hero p { font-size: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 18px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .box, .band { padding: 20px; }
  .cta { padding: 28px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 14px; }
  .stat-value { font-size: 26px; }
  .stat-value small { font-size: 14px; }
  .demo-banner { font-size: 13px; padding: 8px 14px; }
  .hero::after { background: linear-gradient(to top, rgba(23,37,84,.92) 0%, rgba(23,37,84,.6) 60%, rgba(23,37,84,.15) 100%); }

  body { padding-bottom: 76px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 52px; border-radius: 12px;
    font-size: 16px; font-weight: 800; text-decoration: none;
  }
  .mb-tel { background: var(--amber); color: #fff; }
  .mb-apply { background: var(--navy); color: #fff; }
}
