/* ==========================================================================
   株式会社キャメル ca6.jp
   STUDIO版からの移植。タイポグラフィ実測値は docs/ca6jp-復旧仕様.md に準拠。
   フォントのみ A1ゴシック(モリサワ) → 無料フォントへ差し替え。
   ========================================================================== */

:root {
  /* --- フォント -----------------------------------------------------------
     旧 A1ゴシック(モリサワ)はSTUDIOのプラン特典のため持ち出せず、無料フォントへ差し替え。
     A1の個性(角丸・墨だまりの温かさ)は大きい文字で出るので、見出しだけ角丸系にする。
       --font-display … 見出し。'Zen Maru Gothic' がA1の質感に最も近い
       --font-jp      … 本文・会社概要。可読性優先で端正な 'Zen Kaku Gothic New'
     全部を統一したい場合は両方に同じ値を入れる('Noto Sans JP' なら完全に中立)。
     -------------------------------------------------------------------- */
  --font-display: 'Zen Maru Gothic', 'Zen Kaku Gothic New', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-en: 'Rubik', sans-serif;

  --navy: #050f77;
  --ink: #000;
  --ink-soft: #333;
  --footer-bg: #333;

  --rail-w: 50px;
  --col-w: 600px;
  --label-gap: 120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-jp);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }

/* --- ヘッダー ------------------------------------------------------------ */

.site-header {
  padding: 30px 0 0;
  text-align: center;
}

.brand {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--ink-soft);
}

.site-nav {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 110px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  letter-spacing: 1.6px;
}

/* --- 左端の縦書きレール -------------------------------------------------- */

.rail {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.rail p {
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 500;
  line-height: 16.8px;
  letter-spacing: 1.8px;
  text-align: center;
}

/* --- ヒーロー ------------------------------------------------------------ */

.hero { padding: 0 var(--rail-w); }

.hero-img {
  position: relative;
  aspect-ratio: 1323 / 660;
  background: url('../img/hero-desert.webp') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img h1 {
  margin: 0;
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  line-height: 43.2px;
  letter-spacing: 1.8px;
  color: #fff;
}

/* --- セクション共通 ------------------------------------------------------ */

.section {
  position: relative;
  padding: 105px 0;
}

.content {
  width: var(--col-w);
  max-width: calc(100% - var(--rail-w) * 2);
  margin: 0 auto;
}

/* 縦書きのセクション見出し。コンテンツカラムの左外に置く */
.vlabel {
  position: absolute;
  top: 105px;
  left: 50%;
  margin: 0 0 0 calc(var(--col-w) / -2 - var(--label-gap));
  writing-mode: vertical-rl;
  font-size: 18px;
  font-weight: 500;
  line-height: 25.2px;
  letter-spacing: .9px;
  text-align: center;
  padding-right: 14px;
  border-right: 1px solid var(--ink);
  min-height: 69px;
}

/* --- ご挨拶 -------------------------------------------------------------- */

.lead {
  margin: 0 0 60px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 42px;
  letter-spacing: 2.8px;
}

.poem {
  width: 260px;
  margin: 0 auto;
}

.poem p {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 400;
  line-height: 26.6px;
  letter-spacing: .7px;
}

.poem p:last-child { margin-bottom: 0; }

.figure-wide {
  width: 774px;
  max-width: calc(100% - var(--rail-w) * 2);
  margin: 90px auto 0;
}

/* 元画像は縦位置。STUDIO版と同じ横長比にクロップし、地平線のラクダを画角に残す */
.figure-wide img {
  width: 100%;
  height: auto;
  aspect-ratio: 774 / 456;
  object-fit: cover;
  object-position: center 72%;
}

/* --- 業務内容 ------------------------------------------------------------ */

.biz + .biz { margin-top: 80px; }

.biz-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 0 4px;
  margin-bottom: 24px;
}

.num {
  font-family: var(--font-en);
  font-size: 23px;
  font-weight: 400;
  line-height: 32.2px;
  color: var(--navy);
  align-self: start;
}

/* 番号と見出しの間の斜めライン。STUDIO版の linear-gradient をそのまま再現 */
.slash {
  width: 22px;
  height: 42px;
  background: linear-gradient(135deg,
    rgb(255, 255, 255) 49%,
    var(--navy) 49%,
    var(--navy) 51%,
    rgb(255, 255, 255) 40%);
}

.biz-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 33.6px;
  letter-spacing: 2.4px;
}

.desc {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 26.6px;
  letter-spacing: .7px;
  text-align: justify;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photos img {
  width: 100%;
  aspect-ratio: 192 / 126;
  object-fit: cover;
}

/* --- 会社情報 ------------------------------------------------------------ */

.greeting {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 80px;
}

.greeting-img {
  width: 182px;
  height: 120px;
  object-fit: cover;
  flex: none;
}

.greeting-text p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 26.6px;
  letter-spacing: .7px;
}

.greeting-text .rep { margin-top: 26px; }

.profile {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 60px;
}

.profile .row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
}

.profile dt {
  font-size: 14px;
  font-weight: 500;
  line-height: 27.02px;
  letter-spacing: .7px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.profile dd {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 26.6px;
  letter-spacing: .7px;
}

/* 所在地は2列ぶち抜きにせず、左列で高さを持たせる */
.profile .row:nth-child(5) { grid-row: span 2; }

/* --- フッター ------------------------------------------------------------ */

.site-footer {
  margin-top: 120px;
  background: var(--footer-bg);
  color: #fff;
  padding: 34px var(--rail-w);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.foot-nav { display: flex; gap: 34px; }

.foot-nav a,
.site-footer .legal a {
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  letter-spacing: 1.4px;
}

.site-footer .copy {
  position: absolute;
  right: var(--rail-w);
  margin: 0;
  font-size: 11px;
  letter-spacing: .5px;
  opacity: .85;
}

.site-footer .legal { margin: 0; }

/* --- 規約系ページ(プライバシーポリシー等) ------------------------------ */

.prose {
  width: 720px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.prose h1 {
  margin: 0 0 48px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 42px;
  letter-spacing: 2.8px;
  text-align: center;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 17px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: .9px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.prose p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 26.6px;
  letter-spacing: .7px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.6em;
}

.prose li {
  font-size: 14px;
  font-weight: 400;
  line-height: 26.6px;
  letter-spacing: .7px;
  margin-bottom: 4px;
}

.prose a { text-decoration: underline; }

.prose .contact {
  margin-top: 18px;
  padding: 20px 24px;
  border-left: 2px solid var(--navy);
  background: #fafafa;
}

.prose .enacted {
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: right;
}

.brand a:hover { opacity: .6; }

/* --- スクロール演出 ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- レスポンシブ -------------------------------------------------------- */

@media (max-width: 1180px) {
  /* 縦書きラベルを置く余白がなくなるので、カラム上部へ回す */
  .vlabel {
    position: static;
    margin: 0 auto 40px;
    writing-mode: horizontal-tb;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: 0 0 10px;
    min-height: 0;
    width: fit-content;
  }
  .section { padding: 80px 0; }
}

@media (max-width: 900px) {
  .rail { display: none; }
  :root { --rail-w: 24px; }
  .site-nav { gap: 48px; }
}

@media (max-width: 700px) {
  .hero-img h1 { font-size: 26px; letter-spacing: 1.2px; }
  .lead { font-size: 22px; line-height: 34px; letter-spacing: 1.6px; margin-bottom: 44px; }
  .biz-head h3 { font-size: 19px; line-height: 28px; letter-spacing: 1.4px; }
  .greeting { flex-direction: column; gap: 20px; }
  .profile { grid-template-columns: 1fr; gap: 18px; }
  .profile .row:nth-child(5) { grid-row: auto; }
  .site-footer {
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px;
  }
  .site-footer .copy { position: static; }
  .figure-wide { margin-top: 60px; }
}
