/* =========================================================
   合同会社カケアシ  style.css（E案：余白と縦組み）
   色や文字の大きさを変えるときは、まず下の「色と文字」を触ってください。
   ========================================================= */

/* ---------- 色と文字 ---------- */
:root {
  --orange: #FF8709;      /* コーポレートカラー（ボタン） */
  --orange-text: #9A3412; /* 小さな文字に使うオレンジ（読みやすい濃さ） */
  --navy: #1e293b;        /* 本文・見出し・罫線 */
  --gray: #475569;        /* 補足の文字 */
  --line: #D5D9E0;        /* 細い区切り線 */
  --font: 'Zen Kaku Gothic New', sans-serif;
  --width: 1240px;        /* 中身の最大幅 */
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .06em;
  color: var(--navy);
  background: #FFFFFF;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: #C2410C; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }

.inner { max-width: var(--width); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.rule { border: 0; border-top: 1px solid var(--navy); margin: 0; }

/* 各セクション：左に縦書きの見出し、右に本文 */
.section { display: flex; flex-wrap: wrap; gap: 40px 80px; padding-top: 120px; padding-bottom: 120px; }
.section__title {
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  letter-spacing: .4em;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}
.section__body { flex: 1 1 560px; min-width: 0; }
.section__body--narrow { max-width: 760px; }

.sub-title { font-size: 28px; font-weight: 500; letter-spacing: .12em; line-height: 1.6; margin-bottom: 12px; }
.sub-lead { font-size: 14px; margin-bottom: 28px; }
.mt-64 { margin-top: 64px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .16em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  padding: 16px 48px;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #E8590C; color: #FFFFFF; }
.btn--small { font-size: 13px; padding: 10px 24px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- ヘッダー ---------- */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.header__logo img { height: 26px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; font-size: 13px; letter-spacing: .16em; }
.nav a:not(.btn) { text-decoration: none; }

/* ---------- ファーストビュー ---------- */
.fv { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 120px; padding-bottom: 140px; }
.fv__text { flex: 0 1 640px; min-width: 0; }
.fv__title { font-size: clamp(30px, 4.6vw, 60px); font-weight: 500; line-height: 1.6; letter-spacing: .08em; }
.fv__lead { margin-top: 48px; max-width: 560px; }
.fv .btn { margin-top: 48px; }
.fv__mark { flex: 1 1 260px; display: flex; justify-content: center; }
.fv__mark img { width: 260px; }

/* ---------- 考え方 ---------- */
.philosophy__lead { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; line-height: 1.9; letter-spacing: .1em; margin-bottom: 56px; }
.philosophy p + p { margin-top: 28px; }

/* ---------- 編集でやること（階段状のステップ） ---------- */
.editing__lead { max-width: 680px; margin-bottom: 48px; }
.stairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); align-items: start; }
.stairs li { border-top: 1px solid var(--navy); border-left: 1px solid var(--navy); padding: 20px 20px 24px; }
.stairs li:nth-child(1) { margin-top: 96px; }
.stairs li:nth-child(2) { margin-top: 64px; }
.stairs li:nth-child(3) { margin-top: 32px; }
.step__num { font-size: 13px; letter-spacing: .2em; color: var(--orange-text); }
.stairs h3 { font-size: 19px; font-weight: 700; margin: 8px 0 10px; }
.stairs p:not(.step__num) { font-size: 14px; }

/* ---------- 事業内容 ---------- */
.service-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px; }
.list { border-top: 1px solid var(--navy); }
.list > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.list dt { font-weight: 700; font-size: 16px; }
.list dd { margin-top: 6px; font-size: 14px; }

/* ---------- 事例 ---------- */
.case { border-top: 1px solid var(--navy); padding: 32px 0 48px; }
.case__tag { font-size: 13px; letter-spacing: .16em; color: var(--orange-text); }
.case__title { font-size: 20px; font-weight: 700; margin: 6px 0 28px; }
.case__key { font-size: 17px; font-weight: 500; line-height: 2.1; max-width: 760px; margin-bottom: 32px; }
.case__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px 40px; font-size: 14px; }
.case__meta dt { font-weight: 700; font-size: 12px; letter-spacing: .2em; }
.case__meta dd { margin-top: 4px; }

.results { border-top: 1px solid var(--navy); }
.result { display: flex; flex-wrap: wrap; gap: 12px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.result__head { flex: 1 1 300px; }
.result__head h4 { font-size: 17px; font-weight: 700; line-height: 1.8; margin-top: 4px; }
.result dl { flex: 2 1 420px; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; font-size: 14px; }
.result dt { font-weight: 700; }

/* ---------- 代表 ---------- */
.profile__name { font-size: 26px; font-weight: 500; letter-spacing: .24em; }
.profile__en { font-size: 12px; color: var(--gray); letter-spacing: .24em; margin: 4px 0 32px; }
.profile p + p { margin-top: 24px; }

/* ---------- 会社概要 ---------- */
.company { display: grid; grid-template-columns: 112px minmax(0, 1fr); font-size: 14px; border-top: 1px solid var(--navy); }
.company dt, .company dd { padding: 18px 0; border-bottom: 1px solid var(--line); }
.company dt { font-weight: 700; }

/* ---------- お問い合わせ ---------- */
.section--contact { padding-bottom: 140px; }
.contact__lead { margin-bottom: 40px; }
.form { display: flex; flex-direction: column; gap: 32px; }
.form__row { display: flex; flex-wrap: wrap; gap: 32px; }
.field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; letter-spacing: .12em; }
.field .req { color: var(--orange-text); margin-left: 4px; }
.field input, .field textarea {
  font: inherit;
  color: var(--navy);
  background: transparent;
  border-radius: 0;
  width: 100%;
}
.field input { padding: 10px 0; border: 0; border-bottom: 1px solid var(--navy); }
.field textarea { padding: 12px; border: 1px solid var(--navy); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.form .btn { align-self: flex-start; padding: 16px 64px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__message { font-weight: 500; padding: 16px 20px; }
.form__message--ok { border: 1px solid var(--navy); }
.form__message--ng { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
[hidden] { display: none !important; }

/* ---------- フッター ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.footer img { height: 22px; width: auto; }
.footer small { font-size: 12px; letter-spacing: .16em; }

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  .inner { padding-left: 20px; padding-right: 20px; }
  .nav a:not(.btn) { display: none; }   /* スマホではお問い合わせボタンだけ表示 */
  .header__logo img { height: 22px; }
  .fv { padding-top: 64px; padding-bottom: 80px; }
  .fv__mark { display: none; }
  .section { padding-top: 72px; padding-bottom: 72px; gap: 24px; }
  .section__title { writing-mode: horizontal-tb; letter-spacing: .2em; }
  .stairs li { margin-top: 0 !important; }
  .company { grid-template-columns: 88px minmax(0, 1fr); }
  .sub-title { font-size: 21px; }   /* セクション見出しより小さく */
}
