/* ======================================================================
   Seitaro Arai — Horticulture Page Styles
   Path: /in/css/pages/bonsai.css
   目的:
   - 可読性の向上（整形・用途コメント）
   - ブレークポイント統一（max-width: 920px / 768px に集約, min-width 撤廃）
   - ロングハンド化（省略記法の排除）
   ====================================================================== */


/* -------------------------------------------------------------
   1) Design Tokens（テーマ変数）
   ------------------------------------------------------------- */
:root {
  --horti-bg: #ffffff;
  --horti-fg: #0f172a;
  --horti-sub: #475569;
  --horti-line: #e5e7eb;
  --horti-accent: #2563eb;
  --horti-accent-ink: #ffffff;
  --horti-soft: #f8fafc;

  --radius: 16px;
  --shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
}


/* -------------------------------------------------------------
   2) Base（土台: 色・箱モデル）
   ------------------------------------------------------------- */
.horti {
  background-color: var(--horti-bg);
  color: var(--horti-fg);
}

.horti * {
  box-sizing: border-box;
}


/* -------------------------------------------------------------
   3) Hero（キービジュアル）
   - .has-image で外部から background-image を付与する前提
   ------------------------------------------------------------- */
.horti-hero.has-image {
  position: relative;

  background-color: transparent;
  background-image: none;              /* 画像は外部から設定 */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  color: #ffffff;
  text-align: center;

  min-height: 520px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* コントラスト確保のオーバーレイ */
.horti-hero__overlay {
  position: absolute;
  inset: 0;

  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.3));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  z-index: 0;
}

/* ヒーロー内のコンテンツ枠（最大幅制御） */
.horti-hero__inner {
  position: relative;
  z-index: 1;

  max-width: 880px;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  padding-top: 0;
  padding-right: 16px;
  padding-bottom: 0;
  padding-left: 16px;
}

/* アイブロウ（小見出し） */
.horti-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #93c5fd;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 8px;
  margin-left: 0;
}

/* タイトル */
.horti-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 16px;
  margin-left: 0;
}

/* リード文 */
.horti-lead {
  font-size: clamp(14px, 2vw, 18px);
  color: #e2e8f0;
  max-width: 720px;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
}

/* CTAボタン群（ヒーロー内） */
.horti-cta .btn {
  display: inline-block;

  margin-top: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
  margin-left: 4px;

  padding-top: 4px;
  padding-right: 15px;
  padding-bottom: 4px;
  padding-left: 15px;

  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  border-bottom-left-radius: 999px;

  background-color: #ffffff;
  color: inherit;

  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-underline-offset: 0.15em;

  border-top-width: 0;
  border-right-width: 0;
  border-bottom-width: 0;
  border-left-width: 0;

  border-top-style: none;
  border-right-style: none;
  border-bottom-style: none;
  border-left-style: none;
}

/* プライマリの配色（ヒーロー上） */
.horti-hero.has-image .btn.btn-primary {
  background-color: var(--horti-accent);
  color: var(--horti-accent-ink);
}

/* ヒーロー上のボタン共通境界線（淡色） */
.horti-hero.has-image .btn {
  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;

  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;

  border-top-color: rgba(255, 255, 255, 0.3);
  border-right-color: rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.3);
  border-left-color: rgba(255, 255, 255, 0.3);

  background-color: #ffffff;
  color: #9933cc; /* 元の #93c を16進6桁へ展開（明示） */
}


/* -------------------------------------------------------------
   4) KPIs（主要指標のカードグリッド）
   ------------------------------------------------------------- */
.horti-kpis {
  list-style-type: none;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  column-gap: 8px;
  row-gap: 8px;

  max-width: 960px;

  margin-top: 24px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.horti-kpis li {
  display: flex;
  flex-direction: column;

  column-gap: 0;
  row-gap: 4px;

  padding-top: 12px;
  padding-right: 14px;
  padding-bottom: 12px;
  padding-left: 14px;

  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;

  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;

  border-top-color: var(--horti-line);
  border-right-color: var(--horti-line);
  border-bottom-color: var(--horti-line);
  border-left-color: var(--horti-line);

  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* KPI: 見出し */
.kpi-h {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

/* KPI: 数値 */
.kpi-b {
  font-weight: 600;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}


/* -------------------------------------------------------------
   5) Filters（検索入力とチップ）
   ------------------------------------------------------------- */
.horti-filters {
  background-color: #ffffff;

  padding-top: 20px;
  padding-right: 16px;
  padding-bottom: 20px;
  padding-left: 16px;

  border-top-width: 0;
  border-right-width: 0;
  border-bottom-width: 1px;
  border-left-width: 0;

  border-top-style: none;
  border-right-style: none;
  border-bottom-style: solid;
  border-left-style: none;

  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: var(--horti-line);
  border-left-color: transparent;
}

/* フィルタ内コンテナ（中央寄せ） */
.horti-filters__inner {
  max-width: 1080px;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

/* テキスト入力 */
.horti-input {
  width: 100%;
  max-width: 520px;

  display: block;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 12px;
  margin-left: auto;

  padding-top: 12px;
  padding-right: 14px;
  padding-bottom: 12px;
  padding-left: 14px;

  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;

  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;

  border-top-color: var(--horti-line);
  border-right-color: var(--horti-line);
  border-bottom-color: var(--horti-line);
  border-left-color: var(--horti-line);

  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  border-bottom-left-radius: 999px;

  outline-width: 0;
  outline-style: none;
  outline-color: transparent;
}

/* フォーカスリング */
.horti-input:focus {
  border-top-color: var(--horti-accent);
  border-right-color: var(--horti-accent);
  border-bottom-color: var(--horti-accent);
  border-left-color: var(--horti-accent);

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* チップ群 */
.horti-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  column-gap: 8px;
  row-gap: 8px;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

/* チップ */
.chip {
  display: inline-block;

  padding-top: 8px;
  padding-right: 14px;
  padding-bottom: 8px;
  padding-left: 14px;

  background-color: #ffffff;

  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;

  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;

  border-top-color: var(--horti-line);
  border-right-color: var(--horti-line);
  border-bottom-color: var(--horti-line);
  border-left-color: var(--horti-line);

  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  border-bottom-left-radius: 999px;

  cursor: pointer;
}

/* チップ: アクティブ */
.chip.is-active {
  background-color: var(--horti-accent);
  color: #ffffff;

  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}


/* -------------------------------------------------------------
   6) Cards Grid（カード一覧）
   ------------------------------------------------------------- */
.horti-grid {
  max-width: 1200px;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  padding-top: clamp(28px, 6vw, 60px);
  padding-right: 16px;
  padding-bottom: clamp(28px, 6vw, 60px);
  padding-left: 16px;

  display: grid;
  grid-template-columns: repeat(12, 1fr);

  column-gap: 16px;
  row-gap: 16px;
}

/* カード（PC基準: 2カラム = 6/12） */
.horti-card {
  grid-column: span 6;

  display: grid;
  grid-template-columns: 1fr 1.2fr;

  min-height: 220px;

  background-color: #ffffff;
  color: inherit;

  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;

  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;

  border-top-color: var(--horti-line);
  border-right-color: var(--horti-line);
  border-bottom-color: var(--horti-line);
  border-left-color: var(--horti-line);

  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);

  overflow-x: hidden;
  overflow-y: hidden;

  box-shadow: var(--shadow);
}

/* サムネイル（左側） */
.horti-thumb {
  background-color: #f3f4f6;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

.horti-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  display: block;
}

/* 本文側 */
.horti-card__body {
  padding-top: 18px;
  padding-right: 18px;
  padding-bottom: 18px;
  padding-left: 18px;
}

/* カードタイトル */
.horti-card__title {
  font-size: clamp(16px, 2vw, 20px);

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 8px;
  margin-left: 0;
}

/* テキスト */
.horti-card__text {
  color: var(--horti-sub);

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 10px;
  margin-left: 0;
}

/* スペック（箇条書き） */
.horti-spec {
  color: #334155;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 18px;
}

.horti-spec li {
  margin-top: 2px;
  margin-right: 0;
  margin-bottom: 2px;
  margin-left: 0;
}


/* -------------------------------------------------------------
   7) Contact Strip（問い合わせ導線セクション）
   ------------------------------------------------------------- */
.horti-contact {
  text-align: center;

  padding-top: clamp(40px, 8vw, 80px);
  padding-right: 16px;
  padding-bottom: clamp(40px, 8vw, 80px);
  padding-left: 16px;

  background-image: linear-gradient(180deg, #f8fafc, #ffffff);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  border-top-width: 1px;
  border-right-width: 0;
  border-bottom-width: 0;
  border-left-width: 0;

  border-top-style: solid;
  border-right-style: none;
  border-bottom-style: none;
  border-left-style: none;

  border-top-color: #e5e7eb;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

/* 中央寄せレイアウト */
.horti-contact__inner {
  max-width: 880px;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

/* 見出し・説明文 */
.horti-contact__title {
  color: #0f172a;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 12px;
  margin-left: 0;
}

.horti-contact__text {
  color: #475569;
  font-size: clamp(14px, 1.8vw, 18px);

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 24px;
  margin-left: 0;
}

/* CTAボタン（問い合わせ） */
.horti-contact .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 24px;

  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  border-bottom-left-radius: 999px;

  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;

  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;

  border-top-color: #2563eb;
  border-right-color: #2563eb;
  border-bottom-color: #2563eb;
  border-left-color: #2563eb;

  background-color: #2563eb;
  color: #ffffff;

  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-underline-offset: 0.15em;

  font-weight: 600;

  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);

  transition-property: box-shadow, background-color, color, transform, opacity;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

.horti-contact .btn:hover {
  background-color: #1d4ed8;

  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}


/* -------------------------------------------------------------
   8) Accessibility helpers（視覚的非表示）
   ------------------------------------------------------------- */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;

  width: 1px;
  height: 1px;

  overflow-x: hidden;
  overflow-y: hidden;
}


/* =====================================================================
   9) Responsive — メディアクエリを末尾へ集約
   ルール: 640→768 / 860→920 / min-width 撤廃
   ===================================================================== */

/* --- ≤ 920px: タブレット（カードは1列化, 内部2カラム→1カラム） --- */
@media (max-width: 920px) {
  .horti-card {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }
}

/* --- ≤ 768px: モバイル（KPI 1列, CTA縦並び, ボタン幅統一） --- */
@media (max-width: 768px) {
  .horti-kpis {
    grid-template-columns: 1fr;
  }

  .horti-hero {
    padding-top: 20px;
    padding-right: 0;
    padding-bottom: 20px;
    padding-left: 0;
  }

  .horti-cta {
    display: flex;
    flex-direction: column;
    align-items: center;

    column-gap: 0;
    row-gap: 12px;
  }

  .horti-cta .btn {
    width: 100%;
    max-width: 280px;
  }
}
