/* 合同会社創乗 公式サイト 共通スタイル
   レイアウト：左揃えの一段組み。白地に墨色の文字、アクセントは藍色1色。
   色を変えるときは :root の --accent だけを書き換える（ロゴから色を取ったらここ）。 */

:root {
  --bg: #ffffff;
  --fg: #16181d;          /* 墨色（わずかに青み） */
  --muted: #5b6070;       /* 補足の文字 */
  --line: #e3e5ea;        /* 罫線 */
  --soft: #f5f6f8;        /* 区切りの面 */
  --accent: #23407a;      /* 藍色：見出しの印・リンク */

  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;

  --wrap: 960px;
  --text: 40rem;
  color-scheme: light;
}


* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ヘッダー（iPhone の上端の帯もヘッダーと同じ色で塗る） */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 12px;
}
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--fg); text-decoration: none; }
.brand-ja { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.12em; }
.brand-en { font-family: var(--font-latin); font-size: 0.95rem; color: var(--muted); letter-spacing: 0.08em; }
.brand img { height: 44px; width: auto; align-self: center; }

.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.88rem; }
.nav a { color: var(--fg); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .lang { color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; }

/* ヒーロー */
.hero { padding-block: clamp(56px, 10vw, 112px) clamp(40px, 7vw, 80px); }
.eyebrow {
  font-family: var(--font-latin); font-size: 0.95rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.2rem); line-height: 1.45;
  letter-spacing: 0.06em; margin: 0 0 24px; text-wrap: balance;
}
.hero p { max-width: var(--text); color: var(--muted); margin: 0; }

/* セクション共通 */
section { padding-block: clamp(48px, 8vw, 88px); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem); letter-spacing: 0.08em; margin: 0;
}
.section-head .en {
  font-family: var(--font-latin); font-size: 0.95rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}

/* 事業：3つの柱 */
.pillars { display: grid; gap: 0; }
.pillar {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 12px 40px; padding-block: 28px; border-bottom: 1px solid var(--line);
}
.pillar:first-child { padding-top: 0; }
.pillar h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.06em; margin: 0; line-height: 1.5; }
.pillar h3 small { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; }
.pillar p { margin: 0 0 12px; max-width: var(--text); }
.pillar .facts { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.pillar .facts li { font-size: 0.8rem; border: 1px solid var(--line); padding: 2px 10px; border-radius: 2px; color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.links a::after { content: " ↗"; font-size: 0.8em; }
.links .soon { color: var(--muted); }
.todo { font-size: 0.72rem; color: #9a3412; background: #fff1e6; padding: 0 6px; border-radius: 2px; margin-left: 4px; }

/* 代表 */
.profile { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px 40px; }
.profile .name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.12em; margin: 0; }
.profile .name small { display: block; font-family: var(--font-latin); font-size: 0.95rem; color: var(--muted); letter-spacing: 0.1em; }
.profile .role { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.timeline { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; }
.timeline time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; }
.profile h4 { font-size: 0.95rem; letter-spacing: 0.1em; color: var(--accent); margin: 24px 0 8px; }
.profile ul.works { margin: 0; padding-left: 1.2em; }
.profile ul.works li { margin-bottom: 6px; }

/* 会社概要 */
.outline { width: 100%; border-collapse: collapse; }
.outline th, .outline td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.outline th { width: 9rem; font-weight: 500; color: var(--muted); font-size: 0.9rem; padding-right: 16px; }
.outline ol { margin: 0; padding-left: 1.4em; }

/* お問い合わせ */
.contact { background: var(--soft); }
.contact p { max-width: var(--text); margin: 0 0 12px; }
.contact .mail { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 680px) {
  .pillar, .profile { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .outline th { width: 6.5rem; }
  .nav .lang { border-left: 0; padding-left: 0; }
}

/* 事業の欄に置くロゴ・アイコン */
.pillar h3 .mark { display: block; width: 140px; height: auto; margin: 0 0 14px; }
.pillar h3 .mark.wide { width: min(260px, 100%); }
