/* ============================================================
   かけはし舎 — style.css
   構成はワイヤーフレーム 2a のまま、C案（やわらかい・手づくり感）の見た目で仕上げる
   ============================================================ */

/* ---------- 配色（若草と珊瑚） ---------- */
:root {
  --ink: #34383d;
  --ink-2: #686e74;
  --accent: #e0705a;
  --accent-soft: #fdebe6;
  --in: #e0705a;
  --in-soft: #fdebe6;
  --out: #5b9a6c;
  --out-soft: #e5f1e7;
  --bg: #fdfcf9;
  --tint: #eff5ee;
  --surface: #fff;
  --line: #dfe6dc;
  --highlight: #fdf0d2;
  --marker: #fbe0a0;
  --shadow: 52, 56, 61;
}

:root {
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --container: 1080px;
  --gutter: 24px;
  --header-h: 68px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --shadow-card: 0 18px 36px -26px rgba(var(--shadow), .55), 0 2px 6px -4px rgba(var(--shadow), .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.95;
  font-feature-settings: "palt";
  letter-spacing: .02em;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main { overflow-x: clip; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; flex: none; }
.brand__name { font-weight: 900; font-size: 21px; letter-spacing: .06em; }

.audience {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}
.audience__item { padding: 5px 16px; border-radius: 999px; line-height: 1.5; text-decoration: none; color: var(--ink-2); }
.audience__item:hover { color: var(--ink); }

/* ページ切り替え（JS なしでも :target で動く） */
.page--senior { display: none; }
#senior:target { display: block; }
body:has(#senior:target) #company { display: none; }
.audience__item--company,
body:has(#senior:target) .audience__item--senior { background: var(--ink); color: var(--surface); }
body:has(#senior:target) .audience__item--company { background: transparent; color: var(--ink-2); }
.page { scroll-margin-top: var(--header-h); }

/* ---------- 画像（ファイルがなければプレースホルダー） ---------- */
.media { position: relative; overflow: hidden; background: var(--tint); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--tint) 0 10px, color-mix(in srgb, var(--tint) 70%, var(--line)) 10px 12px);
}
.media.is-missing img { display: none; }
.media.is-missing::after { content: attr(data-label); padding: 0 12px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- ヒーロー ---------- */
.hero { padding: 72px 0 88px; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 32px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  flex-wrap: wrap;
  gap: 0;
}
.hero__eyebrow span { white-space: nowrap; }
.hero__copy {
  font-weight: 900;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.7;
  letter-spacing: .04em;
  text-wrap: pretty;
}
/* イラストは縁が背景色に溶けるように描いてあるので、枠や影はつけない */
.hero__visual { aspect-ratio: 3 / 2; background: transparent; }
.hero__visual img {
  object-fit: contain;
  /* 絵の地の色とページの背景色の差が四隅に出ないよう、外周をぼかして消す */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
}

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section__title {
  position: relative;
  display: inline-block;
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.5;
  margin-bottom: 40px;
  padding-bottom: 16px;
}
/* 見出し下の筆で引いたような太い線（装飾） */
.section__title::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 0;
  width: 104px;
  height: 14px;
  background: var(--accent);
  -webkit-mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14'%3E%3Cpath d='M4 8.5 C 22 4.5, 52 3, 96 4.5 C 98.5 4.6, 98.8 8, 96.2 8.3 C 62 9.5, 30 10.5, 5.5 12.6 C 1.8 12.9, 0.9 9, 4 8.5 Z'/%3E%3C/svg%3E");
  mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14'%3E%3Cpath d='M4 8.5 C 22 4.5, 52 3, 96 4.5 C 98.5 4.6, 98.8 8, 96.2 8.3 C 62 9.5, 30 10.5, 5.5 12.6 C 1.8 12.9, 0.9 9, 4 8.5 Z'/%3E%3C/svg%3E");
}
.section__sub { font-size: .55em; font-weight: 700; margin-left: .3em; color: var(--ink-2); }
.subhead { font-size: 17px; font-weight: 900; margin: 48px 0 16px; }
.lead { font-weight: 700; font-size: clamp(18px, 2vw, 21px); line-height: 1.9; }

/* 大事な一文に引くマーカー */
mark {
  background: linear-gradient(transparent 56%, var(--marker) 56% 94%, transparent 94%);
  color: var(--ink);
  font-weight: 700;
  padding: 0 .1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 取り組みの内容 ---------- */
.points {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 12px 40px;
  box-shadow: var(--shadow-card);
}
.point {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
}
.point + .point { border-top: 2px dashed var(--line); }
.point__title { font-size: 18px; font-weight: 900; line-height: 1.6; }
.point--accent .point__title { color: var(--accent); }
.point__body { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.point__lead {
  margin-top: 4px;
  padding: 16px 22px;
  border-radius: var(--r-sm);
  background: var(--highlight);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

/* ---------- 図：役割と仕事の循環（AI生成の画像） ---------- */
.cycle { margin-top: 56px; }
.cycle__caption { font-size: 17px; font-weight: 900; margin-bottom: 18px; }
.cycle__picture {
  display: block;
  padding: 16px;
  border-radius: var(--r-lg);
  background: #fcfbf5; /* 画像の地の色に合わせる */
  box-shadow: var(--shadow-card);
}
.cycle__picture img { width: 100%; height: auto; }

/* 「中」「外」の印 */
.tag {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.tag--inside { background: var(--in); }
.tag--outside { background: var(--out); }

/* ---------- 一緒にやりたいこと ---------- */
/* 「仕事の翻訳」「役割の設計」の補足 */
.explain {
  margin-top: 32px;
  padding: 28px 32px 30px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
}
.explain__title { font-size: 18px; font-weight: 900; }
.explain__lead { margin-top: 6px; font-size: 15.5px; }
.explain__steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.explain__steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 60px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.explain__steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.explain__steps b { display: block; font-size: 16px; font-weight: 900; color: var(--ink); }
.collab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* 協働の形の例：上の色帯で「中」「外」を見分ける */
.collab__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-top: 6px solid var(--ink-2);
  font-size: 15px;
  color: var(--ink-2);
}
.collab__item--inside { border-top-color: var(--in); }
.collab__item--outside { border-top-color: var(--out); }
.collab__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; line-height: 1.5; color: var(--ink); }

/* 企業にとってのメリット：強調色（黄）の帯にまとめて、カードとは別物として目立たせる */
.merits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--r-lg);
  background: var(--highlight);
}
.merit {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 30px 34px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.merit + .merit { border-left: 2px dashed color-mix(in srgb, var(--highlight) 60%, var(--ink-2)); }
.merit__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 6px 14px -10px rgba(var(--shadow), .6);
}
.merit__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.merit__title { font-size: 20px; font-weight: 900; line-height: 1.5; margin-bottom: 4px; }

/* ---------- これまでの活動 ---------- */
.activities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
/* 写真立て風のカード */
.activity {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 0;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
}
.activity:nth-child(even) { transform: rotate(1deg); }
.activity::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--highlight) 80%, transparent);
  box-shadow: 0 1px 2px rgba(var(--shadow), .12);
}
.activity__photo { aspect-ratio: 4 / 3; border-radius: 2px; }
.activity__body { padding: 16px 8px 20px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.activity__title { font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }

/* ---------- 私たち ---------- */
.founder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.founder__photo {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 10px solid var(--surface);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
}
.founder__message {
  position: relative;
  padding: 30px 34px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 16px;
  line-height: 2;
}
.founder__message p + p { margin-top: .9em; }
/* 吹き出しのしっぽ */
.founder__message::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 52px;
  border: 12px solid transparent;
  border-right: 16px solid var(--surface);
  border-left: 0;
}
.founder__name { margin-top: 16px; padding-left: 10px; font-size: 20px; font-weight: 900; }
.founder__role { display: inline-block; margin-right: .8em; font-size: 14px; font-weight: 700; color: var(--ink-2); }

.members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; }
.member__photo {
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.member__name { font-size: 16px; font-weight: 900; }

.note-box {
  margin-top: 48px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

/* ---------- お問い合わせ ---------- */
.section--contact { background: var(--tint); }
.contact {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 56px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.contact__intro { font-size: 16px; color: var(--ink-2); }
.contact__list { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; font-weight: 700; }
.contact__list li { position: relative; padding-left: 34px; }
.contact__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}
.contact__actions { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 22px -12px var(--accent);
  transition: transform .15s;
}
.button:hover { color: #fff; transform: translateY(-2px); }
.button__note { margin-left: .4em; font-size: 12px; font-weight: 700; opacity: .85; }
.text-link { font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 2px dotted currentColor; }

/* ---------- シニア向け（準備中） ---------- */
.coming-soon {
  min-height: calc(100vh - var(--header-h) - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.coming-soon__title { font-size: 28px; font-weight: 900; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--surface) 80%, var(--ink)); font-size: 13px; }
.site-footer__inner { display: flex; gap: 20px; padding-top: 22px; padding-bottom: 22px; }

/* ============================================================
   タブレット以下
   ============================================================ */
@media (max-width: 900px) {
  .cycle__picture { max-width: 560px; margin: 0 auto; }
  .collab, .activities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explain__steps { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 16px; }
  .hero__visual { max-width: 680px; width: 100%; margin: 0 auto; }
}

/* ============================================================
   スマートフォン
   ============================================================ */
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 58px; --r-lg: 22px; }
  body { font-size: 15px; }
  .pc-only { display: none; }

  .brand__logo { width: 36px; height: 36px; }
  .brand__name { font-size: 18px; }
  .audience { font-size: 12px; }
  .audience__item { padding: 4px 10px; }

  .hero { padding: 32px 0 48px; }
  .hero__visual { margin: 0 -8px; width: calc(100% + 16px); max-width: none; }
  .hero__eyebrow { font-size: 13px; padding: 6px 14px; margin-bottom: 14px; border-radius: 14px; }
  .hero__copy { font-size: 25px; }

  .section { padding: 56px 0; }
  .section__title { margin-bottom: 26px; }
  .section__sub { display: block; margin-left: 0; font-size: .6em; }

  .points { padding: 4px 20px; }
  .point { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .point__body { font-size: 15px; }
  .point__lead { font-size: 15px; padding: 14px 16px; }

  .cycle { margin-top: 40px; }
  .explain { padding: 22px 18px; }
  .cycle__picture { padding: 8px; }
  .collab, .activities, .merits { grid-template-columns: 1fr; }
  .merit { padding: 24px 22px; column-gap: 16px; grid-template-columns: 52px minmax(0, 1fr); }
  .merit__icon { width: 52px; height: 52px; }
  .merit + .merit { border-left: none; border-top: 2px dashed color-mix(in srgb, var(--highlight) 60%, var(--ink-2)); }
  .collab { gap: 14px; }
  .collab__item { padding: 18px 20px 20px; }
  .activity, .activity:nth-child(even) { transform: none; }

  .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder__photo { width: min(240px, 70%); margin: 0 auto; }
  .founder__message { padding: 22px 20px; font-size: 15px; }
  .founder__message::before { left: 50%; top: -14px; transform: translateX(-50%); border: 12px solid transparent; border-bottom: 16px solid var(--surface); border-top: 0; }

  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; gap: 12px; }
  .member__photo { width: 76px; border-width: 4px; }
  .member__name { font-size: 14px; }
  .note-box { border-radius: var(--r-md); font-size: 14px; padding: 14px 18px; }

  .contact { padding: 30px 22px; }
  .contact__list { font-size: 14.5px; }
  .contact__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .contact__actions .text-link { align-self: center; }

  .site-footer__inner { gap: 12px; flex-wrap: wrap; }
}
