/* ============================================================
   合同会社JAPANICARE 法人サイト
   テイスト：ミニマル・モダン（ゴシック主体／余白広め／大きなステートメント）
   ※ 色はニュートラル（後で確定）。変える時は下の Design tokens だけ触ればOK
   ============================================================ */

/* ---------- Design tokens（色は後で確定） ---------- */
:root {
  --bg:        #ffffff;
  --bg-soft:   #faf5f6;   /* 江別トーンに合わせた、ごく淡いローズの地 */
  --bg-deep:   #f3e9ec;
  --ink:       #16181d;
  --ink-soft:  #4b5158;
  --ink-muted: #9aa0a8;
  --accent:    #C45B79;   /* 江別サイトのローズピンクに合わせた基調色 */
  --accent-deep: #A84561;
  --rule:      #e6e7ea;
  --rule-soft: #f0f0ee;
  --font-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --maxw:        1080px;
  --maxw-narrow: 720px;
  --gutter:    clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 11vw, 140px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 11px; line-height: 1.05; }
.brand__logo { color: var(--accent); height: 34px; width: auto; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.brand__latin {
  font-size: 10px; letter-spacing: 0.34em; margin-top: 4px; color: var(--ink-muted);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; padding: 0; margin: 0; display: flex; gap: 26px; }
.nav__link {
  font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft);
  padding: 6px 0; white-space: nowrap; transition: color .2s;
}
.nav__link:hover { color: var(--ink); }
.nav__cta {
  font-size: 12px; letter-spacing: 0.12em; font-weight: 500;
  background: var(--accent); color: #fff;
  padding: 11px 22px; border-radius: 2px;
  transition: opacity .2s;
}
.nav__cta:hover { opacity: 0.82; }

.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-toggle {
    display: block; background: transparent; border: 0;
    width: 34px; height: 34px; position: relative;
  }
  .nav-toggle span {
    position: absolute; left: 5px; right: 5px; height: 2px;
    background: var(--ink); transition: .25s;
  }
  .nav-toggle span:nth-child(1) { top: 11px; }
  .nav-toggle span:nth-child(2) { top: 17px; }
  .nav-toggle span:nth-child(3) { top: 23px; }
  .nav-toggle.is-open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }
  .nav__list {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav__list.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list li { border-bottom: 1px solid var(--rule-soft); }
  .nav__link { display: block; padding: 14px 0; font-size: 15px; }
  .nav__cta { order: 2; }
}

/* ---------- Hero（大きなステートメント・写真なし） ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(120px, 16vh, 200px) var(--gutter) clamp(72px, 10vh, 120px);
  background-image: url("../images/hero_kv_candle.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
/* 写真の上にかぶせる白の幕（透過45%） */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(255, 255, 255, 0.45);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; text-align: center; }
.hero__text { max-width: none; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.24em; color: var(--ink-muted);
  margin-bottom: 28px;
}
.hero__meta span { position: relative; padding-right: 18px; }
.hero__meta span:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 1px;
  background: var(--ink-muted);
}
.hero__title {
  font-size: clamp(40px, 8.5vw, 92px);
  font-weight: 900; line-height: 1.04; letter-spacing: -0.02em;
  margin: 0;
}
.hero__title span { display: inline-block; }
.hero__latin {
  font-size: 12px; letter-spacing: 0.42em; color: var(--ink-muted);
  margin: 22px 0 0; text-transform: uppercase;
}
.hero__copy {
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.85;
  color: var(--ink-soft); max-width: 640px; margin: 30px auto 0;
}
.hero__pillars {
  font-size: 15px; color: var(--ink-muted); margin: 12px 0 0; letter-spacing: 0.04em;
}
.hero .btn { margin-top: 40px; }

/* ---------- Section ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__inner--narrow { max-width: var(--maxw-narrow); margin: 0 auto; }

/* 章ラベル（ミニマル：番号＋ラテン＋日本語を1行で） */
.chapter {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 18px; margin-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--rule);
}
.chapter__num {
  order: 1;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent);
}
.chapter__ja { order: 2; font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: 0.02em; }
.chapter__latin {
  order: 3; margin-left: auto;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-muted);
}
@media (max-width: 520px) { .chapter__latin { display: none; } }

/* 見出し */
.h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.2;
  letter-spacing: -0.01em; margin: 0 0 20px;
}
.h2 {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.35;
  margin: 0 0 14px;
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 12px; font-weight: 500;
}
.lead { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.9; color: var(--ink-soft); }
.note { font-size: 13px; color: var(--ink-muted); letter-spacing: 0.02em; }
.body p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Grid / Card（ミニマル：枠なし・上罫線） ---------- */
.grid {
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  padding-top: 22px; border-top: 2px solid var(--accent);
}
.card__num {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 16px; font-weight: 600;
}
.card__title { font-size: 19px; font-weight: 700; margin: 0 0 12px; line-height: 1.4; }
.card__desc { color: var(--ink-soft); margin: 0; font-size: 14.5px; }

.card--link {
  border-top: 2px solid var(--accent); transition: transform .25s;
}
.card--link:hover { transform: translateY(-4px); }
.card--link .card__title::after { content: " →"; color: var(--ink-muted); }

/* ---------- Columns ---------- */
.cols {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr 1fr; align-items: start;
}
.cols--2-1 { grid-template-columns: 1.3fr 1fr; align-items: center; }
@media (max-width: 820px) { .cols, .cols--2-1 { grid-template-columns: 1fr; } }

.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

/* MVVスライド（全体表示・切り抜きなし） */
.mvv-slide { margin: 0; }
.mvv-slide img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); border-radius: 4px;
}
.figure__cap { font-size: 12px; color: var(--ink-muted); margin-top: 10px; letter-spacing: 0.04em; }

/* ---------- Pull quote（ミニマルな一文） ---------- */
.pull-quote {
  padding: clamp(60px, 9vw, 110px) var(--gutter);
  background: var(--accent); color: #fff; text-align: center;
}
.pull-quote__text {
  max-width: 900px; margin: 0 auto;
  font-size: clamp(24px, 4.4vw, 44px); font-weight: 800; line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ---------- 会社概要 dl ---------- */
.defs { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.defs dt {
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.defs dt small {
  display: block; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 4px; font-weight: 500;
}
.defs dd {
  margin: 0; padding: 22px 0; border-top: 1px solid var(--rule); color: var(--ink-soft);
}
@media (max-width: 640px) {
  .defs { grid-template-columns: 1fr; }
  .defs dt { padding-bottom: 4px; border-bottom: 0; }
  .defs dd { padding-top: 4px; border-top: 0; }
  .defs dd:not(:last-child) { padding-bottom: 22px; }
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; border: 1px solid var(--ink); border-radius: 2px;
  font-size: 13px; letter-spacing: 0.1em; font-weight: 500;
  background: transparent; color: var(--ink);
  transition: background .2s, color .2s;
}
.btn::after { content: "\2192"; transition: transform .2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover::after { transform: translateX(4px); }
.btn--filled { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--filled:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--rule); }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--gutter) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; gap: 28px; } }
.site-footer__brand { font-weight: 700; font-size: 17px; margin: 0; }
.site-footer__brand-latin {
  font-size: 10px; letter-spacing: 0.34em; color: var(--ink-muted); margin: 4px 0 16px;
}
.site-footer p { color: var(--ink-soft); font-size: 14px; line-height: 1.9; margin: 0; }
.site-footer h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 14px; font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.site-footer li a:hover { color: var(--ink); }
.site-footer__bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 11px; letter-spacing: 0.04em; color: var(--ink-muted);
}

/* ---------- スクロール演出 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
