/* =========================================================
   HAMAROBO 2026 — Teaser site
   ========================================================= */

/* ----- Tokens ----- */
:root {
  /* Brand */
  --c-blue-deep:  #1f3a93;
  --c-blue:       #2466c4;
  --c-blue-mid:   #3a8dc4;
  --c-blue-light: #5fbfd9;
  --c-cyan:       #76d2e6;
  --c-blue-pale:  #d6ecf3;
  --c-blue-paler: #e8f4f8;
  --c-catch:      #0065a2;   /* キャッチコピーカラー */

  /* Base */
  --c-bg:         #ffffff;
  --c-text:       #1a1a1a;
  --c-text-mute:  #555;
  --c-line:       #b8d8e2;

  /* Typography */
  --f-jp:    "Zen Kaku Gothic New", "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  --f-body:  "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;

  /* Layout */
  --container: 1100px;
}

/* ----- Reset ----- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  font-size: 16px;
  font-feature-settings: "palt";
  overflow-x: hidden;
}


/* =========================================================
   KEY VISUAL — 写真コラージュ画像(コンテンツ幅)
   ========================================================= */
.kv {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  line-height: 0;
}
.kv__img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .kv { padding: 0; }
}


/* =========================================================
   TITLE BLOCK
   ========================================================= */
.title {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 56px;
  text-align: center;
}

.title__catch {
  margin: 0 0 36px;
  font-family: var(--f-jp);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .55em;
  color: var(--c-catch);
  text-indent: .55em;
}

/* メインロゴ (HAMAROBO + 第3回 + ハマロボ展 + 2026) は1枚のSVG */
.title__logo {
  margin: 0 auto;
  max-width: 520px;
  padding: 0 8px;
}
.title__logo img {
  width: 100%;
  height: auto;
}

/* 日付・会場 SVG */
.title__date {
  margin: 44px auto 32px;
  max-width: 370px;
  padding: 0 8px;
}
.title__date img {
  width: 100%;
  height: auto;
}

/* リード本文 */
.title__lead {
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 2.15;
  letter-spacing: .03em;
  color: var(--c-text);
  max-width: 780px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */
.cats {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 24px;
}

.cats__head {
  margin: 0 auto 36px;
  max-width: 490px;
  padding: 0 8px;
  text-align: center;
}
.cats__head img {
  width: 100%;
  height: auto;
}

.cats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 12px;
  align-items: start;
}

/* base card */
.cat {
  position: relative;
  padding-top: 6px;
}

/* ribbon-style title — ピル型(両端円弧) */
.cat__ribbon {
  background-image: linear-gradient(90deg, #4dbaa7, #0c708e);
  color: #fff;
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-align: center;
  padding: 10px 12px;
  line-height: 1.35;
  border-radius: 999px;
  position: relative;
  z-index: 2;
}
.cat__ribbon--two-lines { padding: 6px 12px; }
.cat__ribbon span { display: inline-block; }

/* body list */
.cat__list {
  font-family: var(--f-jp);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--c-text);
  padding: 14px 6px 10px 18px;
  letter-spacing: .02em;
  border-left: 1px solid var(--c-blue-light);
  margin-left: 8px;
  min-height: 130px;
}
.cat__list li {
  position: relative;
  padding-left: 0;
}
.cat__list li::before {
  content: "・";
  margin-left: -.7em;
  color: var(--c-text);
}

.cat__prose {
  font-family: var(--f-jp);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--c-text);
  padding: 14px 6px 10px 18px;
  letter-spacing: .02em;
  border-left: 1px solid var(--c-blue-light);
  margin: 0 0 0 8px;
  min-height: 130px;
}

/* hero category — 目玉カテゴリー
   カード全体(背景・リボン・テキスト)を -3deg 傾ける */
.cat--hero {
  background: var(--c-blue-pale);
  border-radius: 14px;
  padding: 6px 14px 18px;
  border-left: none;
  transform: rotate(-3deg);
  transform-origin: center center;
}
.cat__ribbon--hero {
  background-image: linear-gradient(90deg, #4dbaa7, #0c708e);
  font-size: 15px;
  margin: 0 -6px;
}
.cat__list--hero {
  border-left: none;
  margin-left: 0;
  padding: 14px 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.85;
  min-height: 0;
}
.cat__list--hero li::before {
  content: "・";
  color: var(--c-blue-deep);
  margin-left: 0;
  margin-right: 2px;
}
.cat__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-mute);
  letter-spacing: .02em;
}


/* =========================================================
   EXHIBITOR RECRUITMENT
   ========================================================= */
.recruit {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 40px 24px 24px 60px;  /* 左にバッジ用の余裕 */
}

.recruit__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 24px;
  align-items: center;
  background: #ffffff;
  /* 左上の角だけ大きく丸めて、円形バッジに馴染ませる */
  border-radius: 80px 8px 8px 8px;
  padding: 32px 28px 32px 200px;  /* 左にバッジ被り分の余白 */
  border: 2px solid #0c708e;
  outline: 1px solid #0c708e;
  outline-offset: 6px;
}

/* 出展社募集 SVG バッジ — 左上に被さるように配置 */
.recruit__badge {
  position: absolute;
  top: -36px;
  left: -36px;
  width: 180px;
  height: 180px;
  margin: 0;
  flex-shrink: 0;
  z-index: 3;
}
.recruit__badge img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(12, 112, 142, .25));
}

.recruit__body {
  font-family: var(--f-jp);
}
.recruit__text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .02em;
  color: var(--c-text);
}
.recruit__text:last-child { margin-bottom: 0; }

/* 出展料無料 / 募集締切 SVG バッジ */
.recruit__ticket {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.recruit__ticket img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 6px rgba(12, 112, 142, .15));
}


/* お申し込みボタン — 横長バナー型(SVG) */
.apply-btn-wrap {
  text-align: center;
  padding-top: 60px;
}
.apply-btn {
  display: inline-block;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  transition: transform .25s ease, filter .25s ease;
}
.apply-btn img {
  width: 100%;
  height: auto;
  display: block;
}
.apply-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 18px rgba(31, 58, 147, .3));
}


/* =========================================================
   BG WRAP — 「お申し込みはこちら」以降〜最下部のラッパー
   背景は白 + フッター画像
   footer-bg.jpg は 1837×450(縦横比 4.08:1)
   - 高さ指定により画像は自然サイズで配置
   - 通常: 画像中央が表示され、左右ははみ出す
   - ブラウザ幅 > 1837px: repeat-x で横方向に繰り返し
   ========================================================= */
.bg-wrap {
  position: relative;
  width: 100%;
  margin-top: 24px;
  background-color: #ffffff;
  background-image: url("../img/footer-bg.jpg");
  background-size: auto 450px;
  background-position: center bottom;
  background-repeat: repeat-x;
  padding-bottom: 0;  /* 下余白なし(画像がそのまま下端まで) */
}


/* =========================================================
   DOWNLOAD (背景の上)
   ========================================================= */
.dl {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 24px;
  position: relative;
}
.dl__panel {
  background-image: url("../img/dl__panel_bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
  padding: 22px 32px 24px;
  text-align: center;
}
.dl__head {
  margin: 0 0 14px;
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .16em;
  color: var(--c-blue-deep);
}
.dl__buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.dl__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: .04em;
  padding: 4px 8px;
  transition: color .2s ease;
}
.dl__btn-text {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dl__btn-ext {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--c-blue-deep);
  color: #fff;
  text-decoration: none;
}
.dl__btn:hover {
  color: var(--c-blue-deep);
}
.dl__btn:hover .dl__btn-ext {
  background: var(--c-blue);
}


/* =========================================================
   INFO LIST (背景の上)
   ========================================================= */
.info {
  max-width: var(--container);
  margin: 36px auto 0;
  padding: 0 24px;
  position: relative;
}
.info__inner {
  padding: 12px 12px 0 12px;
}
.info__list {
  margin: 0;
}
.info__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px;
  padding: 4px 0;
  align-items: start;
}
.info__row dt {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--c-text);
  line-height: 1.95;
}
.info__row dd {
  margin: 0;
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: .03em;
  color: var(--c-text);
}
.info__row dd a {
  color: var(--c-blue-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.info__row dd a:hover { border-bottom-color: currentColor; }


/* =========================================================
   FOOTER — コピーライト表示のみ
   背景画像は .bg-wrap 側で設定済み
   ========================================================= */
.foot {
  position: relative;
  margin-top: 200px;  /* 概要テキストとシルエットの間に余白(縮小) */
  padding: 16px 24px 20px;
  text-align: center;
}
.foot__copy {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 3px rgba(0, 20, 50, .8);
}


/* =========================================================
   SCROLL FADE-IN — セクション単位でふわっと表示
   JS(IntersectionObserver)で .is-visible が付与される
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  will-change: opacity, transform;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* JS無効時のフォールバック — 内容が見えない事故を防ぐ */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .title { padding: 40px 16px; }
  .title__catch { font-size: 16px; letter-spacing: .3em; }
  .title__logo { max-width: 320px; }
  .title__date { max-width: 360px; margin: 32px auto 24px; }
  /* SPでは左寄せ */
  .title__lead {
    font-size: 13px;
    line-height: 2;
    text-align: left;
    padding: 0 4px;
  }
  .title__lead br { display: none; }

  .cats { padding: 0 16px 16px; }
  .cats__head { max-width: 370px; margin-bottom: 24px; }

  /* SPでは均等2列(目玉カテゴリーも他と同じ幅) */
  .cats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .cat--hero {
    grid-column: span 1;   /* 他のカテゴリと同じ1列分の幅 */
    padding: 6px 10px 14px;
  }
  /* hero カードの中身も他と並びを揃える */
  .cat__list--hero {
    display: block;        /* SPでは縦並びに戻す */
    font-size: 15px;
  }

  .recruit { padding: 60px 16px 20px 40px; }
  .recruit__inner {
    grid-template-columns: 1fr;
    padding: 110px 18px 24px;  /* 上にバッジが被るので top 余白を確保 */
    gap: 18px;
    text-align: center;
  }
  .recruit__badge {
    /* SPでもデスクトップと同じく左上に被せる */
    position: absolute;
    top: -28px;
    left: -20px;
    transform: none;
    width: 120px;
    height: 120px;
  }
  .recruit__ticket {
    width: 140px; height: 140px;
    margin: 0 auto;
  }
  .recruit__body { text-align: left; }

  .apply-btn-wrap { padding-top: 40px; }
  .apply-btn { max-width: 88%; }

  .dl { margin-top: 32px; }
  .dl__buttons { flex-direction: column; gap: 14px; }

  .info__row {
    grid-template-columns: 110px 1fr;
    gap: 4px 10px;
    font-size: 13px;
  }
  .info__row dt, .info__row dd { font-size: 13px; line-height: 1.85; }

  .bg-wrap {
    background-size: auto 280px;
    padding-bottom: 0;
  }
  .foot {
    margin-top: 160px;
    padding: 14px 16px 16px;
  }
}

@media (max-width: 480px) {
  .info__row { grid-template-columns: 96px 1fr; }
  .info__row dt { font-size: 12px; }
  .info__row dd { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
