/* ======================================================================
   Seitaro Arai — Unified Stylesheet (with lant- prefix)
   Path: /in/css/loom.css
   ====================================================================== */

/* -----------------------------------------------
   01) CSS Variables (scope: :root)
   ----------------------------------------------- */
:root {
  --loom-bg: #ffffff;      /* Base background */
  --loom-ink: #0f172a;     /* Primary text color */
  --loom-muted: #64748b;   /* Muted text color */
  --loom-line: #e5e7eb;    /* Divider/line color */
  --loom-brand: #1e40af;   /* Brand accent color */
  --loom-chip: #f1f5f9;    /* Chip background */
}


/* -----------------------------------------------
   02) Base
   ----------------------------------------------- */
main {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

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

  background-color: var(--loom-bg);
  color: var(--loom-ink);

  font-size: 16px;
  line-height: 1.7;
  font-family:
    system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI",
    sans-serif;
}

main .container {
  max-width: 1100px;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  /* padding: clamp(16px, 3vw, 32px) (all sides) をロングハンドに */
  padding-top: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
  padding-bottom: clamp(16px, 3vw, 32px);
  padding-left: clamp(16px, 3vw, 32px);
}


/* -----------------------------------------------
   03) Hero (共通)
   ----------------------------------------------- */
.hero {
  /* padding: clamp(32px, 6vw, 72px) 0; */
  padding-top: clamp(32px, 6vw, 72px);
  padding-right: 0;
  padding-bottom: clamp(32px, 6vw, 72px);
  padding-left: 0;

  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(--loom-line);
  border-left-color: transparent;
}

.hero small {
  display: block;
  letter-spacing: 0.08em;

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

.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;

  margin-top: 0.25em;
  margin-right: 0;
  margin-bottom: 0.2em;
  margin-left: 0;

  line-height: 1.15; /* 読みやすい行高に調整 */
}

.hero p {
  color: #000000;
  /* margin:.25em 0; のタイプミス修正・ロングハンド化 */
  margin-top: 0.25em;
  margin-right: 0;
  margin-bottom: 0.25em;
  margin-left: 0;
}


/* -----------------------------------------------
   04) Hero (Loom専用：背景画像＋白ベール)
   ----------------------------------------------- */
.loom-hero {
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.loom-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.loom-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 全面トリミング填め込み */
  object-position: center center;
}

.loom-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  /* 上下白ベール（薄いホワイトオーバーレイ） */
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.30),
    rgba(255, 255, 255, 0.30)
  );
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  z-index: 0;
}

.loom-hero .container {
  position: relative;
  z-index: 1;
}

.loom-hero .hero__kicker {
  letter-spacing: 0.08em;
}


/* -----------------------------------------------
   05) Contact Card（強調カード）
   ----------------------------------------------- */
.card.loom-contact-card {
  /* 立ち上がりとブランド強調 */
  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(--loom-brand);
  border-right-color: var(--loom-brand);
  border-bottom-color: var(--loom-brand);
  border-left-color: var(--loom-brand);

  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.card.loom-contact-card h3 {
  color: var(--loom-brand);
  font-weight: 700;
  margin-top: 0.2rem;
  margin-right: 0;
  margin-bottom: 0.5rem;
  margin-left: 0;
}

.card.loom-contact-card p {
  font-weight: 600;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

.card.loom-contact-card .subtle {
  color: #000000;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 1.2rem;

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


/* -----------------------------------------------
   06) Catalog Download CTA（中央配置）
   ----------------------------------------------- */
.loom-catalog-dl {
  text-align: center;

  /* padding: clamp(32px, 5vw, 56px) 0; */
  padding-top: clamp(32px, 5vw, 56px);
  padding-right: 0;
  padding-bottom: clamp(32px, 5vw, 56px);
  padding-left: 0;

  background-color: #ffffff;

  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: var(--loom-line);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.loom-catalog-dl h2 {
  color: var(--loom-ink);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;

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

.loom-catalog-dl p {
  color: var(--loom-muted);

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

.loom-catalog-dl a.loom-btn--download {
  display: inline-block;

  padding-top: 1rem;
  padding-right: 1.6rem;
  padding-bottom: 1rem;
  padding-left: 1.6rem;

  background-color: var(--loom-brand);
  color: #ffffff;

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

  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-underline-offset: 0;

  font-weight: 700;

  transition-property: filter;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

.loom-catalog-dl a.loom-btn--download:hover {
  filter: brightness(1.05);
}


/* -----------------------------------------------
   07) Chips（タグ/フィルタ）
   ----------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0.5rem;

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

.chip {
  display: inline-block;

  padding-top: 0.35rem;
  padding-right: 0.6rem;
  padding-bottom: 0.35rem;
  padding-left: 0.6rem;

  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(--loom-line);
  border-right-color: var(--loom-line);
  border-bottom-color: var(--loom-line);
  border-left-color: var(--loom-line);

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

  background-color: var(--loom-chip);
  color: var(--loom-ink);

  font-size: 0.875rem;
}


/* -----------------------------------------------
   08) Sections / Headings（セクションの枠と見出し）
   ----------------------------------------------- */
section {
  /* padding: clamp(24px, 5vw, 48px) 0; */
  padding-top: clamp(24px, 5vw, 48px);
  padding-right: 0;
  padding-bottom: clamp(24px, 5vw, 48px);
  padding-left: 0;

  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(--loom-line);
  border-left-color: transparent;
}

.sec-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 0.75rem;
  row-gap: 0.75rem;

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

.sec-h h2 {
  font-size: clamp(20px, 3.6vw, 28px);

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

.sec-h p {
  color: var(--loom-muted);

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


/* -----------------------------------------------
   09) Tables（仕様/価格表）
   ----------------------------------------------- */
.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;

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

.tbl th,
.tbl td {
  vertical-align: top;

  padding-top: 0.6rem;
  padding-right: 0.7rem;
  padding-bottom: 0.6rem;
  padding-left: 0.7rem;

  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(--loom-line);
  border-right-color: var(--loom-line);
  border-bottom-color: var(--loom-line);
  border-left-color: var(--loom-line);
}

.tbl th {
  background-color: #fafafa;
  text-align: left;
  white-space: nowrap;
}

.tbl tfoot td {
  color: var(--loom-muted);
  font-size: 0.9rem;
}


/* -----------------------------------------------
   10) Notes / Helpers
   ----------------------------------------------- */
.note {
  color: var(--loom-muted);
  font-size: 0.92rem;
}

.price {
  font-variant-numeric: tabular-nums;
}

.subtle {
  color: var(--loom-muted);
}


/* -----------------------------------------------
   11) Grid / Cards（一覧カード）
   ----------------------------------------------- */
.grid {
  display: grid;
  /* gap: clamp(12px, 2vw, 16px); */
  column-gap: clamp(12px, 2vw, 16px);
  row-gap: clamp(12px, 2vw, 16px);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background-color: #ffffff;

  /* padding: clamp(12px, 2.2vw, 18px) */
  padding-top: clamp(12px, 2.2vw, 18px);
  padding-right: clamp(12px, 2.2vw, 18px);
  padding-bottom: clamp(12px, 2.2vw, 18px);
  padding-left: clamp(12px, 2.2vw, 18px);

  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(--loom-line);
  border-right-color: var(--loom-line);
  border-bottom-color: var(--loom-line);
  border-left-color: var(--loom-line);

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

.card h3 {
  font-size: 1.05rem;

  margin-top: 0.2rem;
  margin-right: 0;
  margin-bottom: 0.5rem;
  margin-left: 0;
}

.card  a.btn {
  color: #ffffff;
}
.card a {
  color: var(--loom-brand);
  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-underline-offset: 0;
}

.card a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: auto;
  text-underline-offset: 3px;
}


/* -----------------------------------------------
   12) Gallery（製品ギャラリー）
   ----------------------------------------------- */
.loom-gallery {
  display: grid;
  column-gap: 12px;
  row-gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}

.loom-gallery figure {
  grid-column: span 4;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  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(--loom-line);
  border-right-color: var(--loom-line);
  border-bottom-color: var(--loom-line);
  border-left-color: var(--loom-line);

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

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

.loom-gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
}

.loom-gallery figcaption {
  color: var(--loom-muted);
  font-size: 0.9rem;

  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;

  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: var(--loom-line);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.loom-gallery a {
  display: block;
  color: inherit;
  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-underline-offset: 0;
}


/* -----------------------------------------------
   13) Loom CTA（フッター手前のセクション）
   ----------------------------------------------- */
.loom-cta {
  margin-top: 48px;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  /* padding: clamp(24px, 5vw, 48px) 0; */
  padding-top: clamp(24px, 5vw, 48px);
  padding-right: 0;
  padding-bottom: clamp(24px, 5vw, 48px);
  padding-left: 0;

  /* 上下のボーダー */
  border-top-width: 1px;
  border-right-width: 0;
  border-bottom-width: 1px;
  border-left-width: 0;

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

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

  /* 淡いグラデーション背景 */
  background-color: #ffffff;
  background-image: linear-gradient(#ffffff, #f7fafc 60%, #eef3f9);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.loom-cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;

  column-gap: 14px;
  row-gap: 14px;

  /* 既存 container の padding は main 側に依存 */
}

.loom-cta h2 {
  font-size: clamp(20px, 3.4vw, 28px);

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

.loom-cta p {
  color: var(--loom-muted);

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

.loom-cta__copy {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 460px;
  min-width: 260px;
}

.loom-cta__actions {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;

  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 12px;

  min-width: 260px;
  justify-content: flex-end;
}

.loom-btn {
  display: inline-block;

  padding-top: 0.75rem;
  padding-right: 1.2rem;
  padding-bottom: 0.75rem;
  padding-left: 1.2rem;

  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(--loom-line);
  border-right-color: var(--loom-line);
  border-bottom-color: var(--loom-line);
  border-left-color: var(--loom-line);

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

  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-underline-offset: 0;

  font-weight: 700;

  color: var(--loom-ink);
  background-color: #ffffff;
}

.loom-btn:hover {
  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-underline-offset: 0;
  filter: brightness(0.98);
}

.loom-btn--primary {
  background-color: var(--loom-brand);
  color: #ffffff;

  border-top-color: var(--loom-brand);
  border-right-color: var(--loom-brand);
  border-bottom-color: var(--loom-brand);
  border-left-color: var(--loom-brand);
}


/* =========================================================
   14) Media Queries (collected to bottom)
   統一ポリシー：
   - 640px → 768px
   - 800/860/960px → 920px
   - 921px(min) → 920px(min)
   - 1100px → 1200px
   ========================================================= */

/* --- ≤920px で2カラム→1カラム、CTA中央寄せ、ギャラリー列調整 --- */
@media (max-width: 920px) {
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .loom-cta .container {
    justify-content: center;
    text-align: center;
  }

  .loom-cta__actions {
    justify-content: center;
  }

  .loom-gallery figure {
    grid-column: span 6;
  }

  .loom-gallery img {
    height: 200px;
  }
}

/* --- ≤768px でギャラリーを1列化 --- */
@media (max-width: 768px) {
  .loom-gallery figure {
    grid-column: span 12;
  }

  .loom-gallery img {
    height: 200px;
  }

  .loom-cta__actions {
    display: grid;
  }
}