/*
 * Business 欄を「3つの柱」で見せる（2026-11-22）。
 *
 * 旧テーマの index.css / sp.css には手を入れず、このファイルで足している。
 * 旧 CSS は全要素に font-size:62.5% を掛けていて入れ子で縮むので、
 * 文字の大きさはすべて rem（1rem = 10px）で指定すること。
 *
 * /assets/* は1年キャッシュ。中身を変えたらファイル名かクエリを進める。
 */

/* ------------------------------------------------------------ PC（横スクロール） */

/*
 * 画面の高さにかかわらず、Business 欄が上下に切れずに収まるようにする。
 *   - カードの文字部分は高さ固定（名前1行・説明2行・リンク1行）。文の長さで揃いが崩れない
 *   - 写真（4:5）の幅は「画面の高さ − 写真以外の高さ」から決める
 * --biz-rest は写真以外に使う縦の長さ（見出し・柱の頭・説明・カードの文字・上下の余白）。
 * 実測で決めた値。見出しや文字の大きさを変えたら測り直すこと。
 */
.biz {
  --biz-text: 9.6rem;          /* カードの文字部分 */
  --biz-rest: 430px;
  --biz-card: clamp(140px, calc((100vh - var(--biz-rest)) * .8), 216px);
  min-width: 0;
  padding-right: 200px;
}
.biz .business__title {
  left: 0;
  font-size: min(7.2rem, 9vh);
  line-height: 1.3;
}
.biz__pillars {
  display: flex;
  align-items: flex-start;
  gap: 88px;
  margin-top: min(28px, 2.6vh);
}
.biz__pillar {
  flex-shrink: 0;
  border-top: 1px solid #000;
  padding-top: min(20px, 2vh);
}
.biz__head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.biz__no {
  font-size: min(6.4rem, 8vh);
  line-height: .9;
}
.biz__name {
  font-size: 2.4rem;
  line-height: 1.2;
  letter-spacing: .12em;
  font-weight: 400;
  white-space: nowrap;
}
/* 柱の説明は2行まで。幅は柱の中のカード列に合わせる（はみ出して柱を広げない） */
.biz__lead {
  font-size: 1.3rem;
  line-height: 1.9;
  height: calc(1.3rem * 1.9 * 2);
  overflow: hidden;
  color: #444;
  margin-top: 12px;
  width: 0;
  min-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: Futura, 游ゴシック, "Yu Gothic", YuGothic, sans-serif;
}
.biz__items {
  display: flex;
  gap: 28px;
  margin-top: min(20px, 2vh);
}
.biz__card {
  display: flex;
  flex-direction: column;
  width: var(--biz-card);
  color: #000;
  text-decoration: none;
  flex-shrink: 0;
}
.biz__img {
  position: relative;
  background: #f1f1f1;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.biz__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.biz__card:hover .biz__img img {
  transform: scale(1.04);
}
/* 文字部分: 名前1行・説明2行・リンク1行の固定の箱。文の長さで高さが変わらない */
.biz__text {
  height: var(--biz-text);
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  box-sizing: border-box;
}
.biz__title {
  font-size: 1.5rem;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz__desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: Futura, 游ゴシック, "Yu Gothic", YuGothic, sans-serif;
}
.biz__host {
  margin-top: auto;
  font-size: 1.1rem;
  line-height: 1.6;
  letter-spacing: .06em;
  color: #555;
  padding-top: 6px;
  border-top: 1px solid #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 背の低い画面（ノートPCで縦 680px 未満）では柱の説明を省いて写真に回す */
@media screen and (max-height: 679px) {
  .biz { --biz-rest: 370px; }
  .biz__lead { display: none; }
}

/* ------------------------------------------------------------ スマホ（縦積み） */

.spbiz {
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  padding: 0 20px 64px;
}
.spbiz__intro {
  font-size: 1.4rem;
  line-height: 2;
  color: #444;
  text-align: center;
  margin-top: 8px;
  font-family: Futura, 游ゴシック, "Yu Gothic", YuGothic, sans-serif;
}
.spbiz__pillar {
  margin-top: 48px;
  border-top: 1px solid #000;
  padding-top: 18px;
}
.spbiz__head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.spbiz__no {
  font-size: 4.8rem;
  line-height: .9;
}
.spbiz__name {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: .1em;
  font-weight: 400;
}
.spbiz__lead {
  font-size: 1.3rem;
  line-height: 1.9;
  color: #444;
  margin-top: 12px;
  font-family: Futura, 游ゴシック, "Yu Gothic", YuGothic, sans-serif;
}
.spbiz__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
  margin-top: 20px;
}
.spbiz__card {
  display: flex;
  flex-direction: column;
  color: #000;
  text-decoration: none;
  min-width: 0;
}
/* 文字部分は名前1行・説明3行・リンク1行の固定の箱にして、隣のカードと揃える */
.spbiz__text {
  height: 11.6rem;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  box-sizing: border-box;
}
.spbiz__img {
  position: relative;
  background: #f1f1f1;
}
.spbiz__img:after {
  display: block;
  content: "";
  padding-top: 125%;
}
.spbiz__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spbiz__title {
  font-size: 1.4rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spbiz__desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #444;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: Futura, 游ゴシック, "Yu Gothic", YuGothic, sans-serif;
}
.spbiz__host {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .04em;
  color: #555;
  margin-top: auto;
  padding-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid #ddd;
}
