/* 奥会津くらしごとフェア2026 Coming Soon
   参考：竹中大工道具館「植物×匠」展サイトのトーン
   モバイルファースト */

:root {
  --ink: #2f2f2f;
  --sub: #77766f;
  --paper: #ffffff;
  --band: #d6d5cf;
  --dark: #3a3a38;
  --line: #dddbd4;
  --terra: #b4795a;
  --sage: #6f8476;
  --taupe: #a38d6e;
  --tbc-bg: #fff2cc;
  --tbc-text: #8a6200;
  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Lato", "Noto Sans JP", sans-serif;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ja);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.defs { position: absolute; }
.sp { display: inline; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.header__logo {
  margin: 0;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.header__nav { display: none; }
.header__badge {
  margin: 0 0 0 auto;
  padding: 3px 12px;
  white-space: nowrap;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ---------- ① メインビジュアル ---------- */
.mv {
  position: relative;
  padding-top: calc(var(--header-h) + 28px);
}
.mv::before {            /* 背面のグレーの帯（PCのみ。スマホは .mv__visual::before） */
  content: "";
  position: absolute;
  inset: 230px 0 0;
  background: var(--band);
  display: none;
}
.mv__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.mv__vertical {
  position: absolute;
  top: 4px;
  right: 20px;
  margin: 0;
  writing-mode: vertical-rl;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.24em;
}

.mv__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(46px, 13vw, 132px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.mv__info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
  margin-top: 22px;
}
.mv__info p { margin: 0; line-height: 1.4; }
.mv__label {
  display: block;
  color: var(--terra);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.mv__label--sage { color: var(--sage); }
.mv__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
}
.mv__date .mv__label { width: 100%; }
.mv__num {
  font-family: var(--en);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.mv__num b { font-size: 44px; font-weight: 900; }
.mv__dow {
  font-family: var(--en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.mv__place {
  font-weight: 700;
  font-size: 16px;
}
.mv__place small {
  display: block;
  margin-top: 2px;
  color: var(--sub);
  font-weight: 500;
  font-size: 12px;
}

.mv__visual {
  position: relative;
  margin-top: 28px;
}
.mv__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18%;
  bottom: -72px;
  left: -20px;
  right: -20px;
  background: var(--band);
}
.mv__photo {
  margin: 0;
  aspect-ratio: 4 / 3.4;
  clip-path: url(#blob-mv);
}
.mv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  animation: mv-zoom 14s ease-out both;
}
@keyframes mv-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.mv__en {
  position: absolute;
  left: 6%;
  bottom: 9%;
  margin: 0;
  color: #fff;
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(30px, 8.6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.mv__chips {
  position: absolute;
  right: 0;
  bottom: -40px;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 不定形の丸バッジ */
.chip {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-align: center;
  border-radius: 56% 44% 52% 48% / 46% 54% 46% 54%;
}
.chip--sage  { border-radius: 44% 56% 45% 55% / 55% 45% 58% 42%; }
.chip--taupe { border-radius: 52% 48% 60% 40% / 42% 58% 44% 56%; }
.chip--terra { background: var(--terra); }
.chip--sage  { background: var(--sage); }
.chip--taupe { background: var(--taupe); }

/* ---------- お知らせバー ---------- */
.notice {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px 0;
}
.notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}
.notice__tag {
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- 英字の大見出し ---------- */
.en-title {
  margin: 0 0 40px;
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(44px, 11vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.en-title span {
  display: block;
  margin-top: 12px;
  font-family: var(--ja);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.en-title--light { color: #fff; }

/* ---------- ② メッセージ ---------- */
.message {
  margin-top: 96px;
  padding: 88px 0;
  background: var(--dark);
  color: #ecebe6;
}
.message__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.message__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.message__vertical {
  margin: 0;
  writing-mode: vertical-rl;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: 0.16em;
}
.message__body p { margin: 0 0 1.4em; }
.message__body p:last-child { margin-bottom: 0; }

/* ---------- ③ みどころ ---------- */
.highlights { padding: 104px 0 40px; }

.hl {
  display: grid;
  gap: 28px;
  margin-bottom: 80px;
}
.hl__photo {
  margin: 0;
  aspect-ratio: 3 / 2;
  clip-path: url(#blob-photo);
}
.hl__photo img { width: 100%; height: 100%; object-fit: cover; }

.hl__text { position: relative; padding-top: 18px; }
.hl__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 56% 44% 52% 48% / 46% 54% 46% 54%;
}
.hl__num {
  position: absolute;
  top: -22px;
  left: -10px;
  color: var(--ink);
  font-family: var(--en);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
}
.hl__cat {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.hl__title {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.hl__title br { display: none; }
.hl__desc { margin: 0; color: #4a4a47; }

/* ---------- 開催概要 ---------- */
.outline { padding: 64px 0 104px; }
.outline__list { margin: 0; border-top: 1px solid var(--ink); }
.outline__list > div {
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.outline__list dt {
  color: var(--sub);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.outline__list dd { margin: 0; line-height: 1.85; }
.outline__list a { text-underline-offset: 3px; }
.tbc {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  background: var(--tbc-bg);
  color: var(--tbc-text);
  font-size: 12px;
  line-height: 1.8;
  border-radius: 3px;
}

/* ---------- チラシ ---------- */
.flyer {
  padding: 96px 0;
  background: #f3f2ee;
}
.flyer__grid { display: grid; gap: 40px; }
.flyer__text { margin: -16px 0 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: transform 0.3s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover .btn__arrow { background: #fff; color: var(--ink); transform: translateX(3px); }
.flyer__img { margin: 0 auto; max-width: 440px; }
.flyer__img img { box-shadow: 0 16px 40px rgba(47, 47, 47, 0.16); }

/* ---------- 順次公開 ---------- */
.soon { padding: 104px 0; }
.soon__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.soon__list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 16px;
}
.soon__list span {
  color: var(--terra);
  font-family: var(--en);
  font-weight: 900;
  font-size: 20px;
}

/* ---------- フッター ---------- */
.footer {
  padding: 64px 0 40px;
  background: var(--dark);
  color: #cfcec8;
  font-size: 13px;
  line-height: 1.9;
}
.footer p { margin: 0 0 4px; }
.footer__title {
  margin-bottom: 16px !important;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}
.footer__note { margin-top: 16px !important; font-size: 12px; }
.footer__copy {
  margin-top: 32px !important;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- フェードイン ---------- */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .mv__photo img { animation: none; }
}

/* ========== タブレット以上 ========== */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .container, .message__inner { padding: 0 40px; }
  .notice { padding: 96px 40px 0; }
  .sp { display: none; }

  .chip { width: 92px; height: 92px; font-size: 14px; }
  .mv__chips { right: 2%; bottom: -46px; gap: 10px; }

  .hl {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 56px;
    margin-bottom: 120px;
  }
  .hl--reverse { grid-template-columns: 1fr 1.3fr; }
  .hl--reverse .hl__photo { order: 2; }

  /* 縦書きのテキストブロック（右から：バッジ → 見出し → 本文） */
  .hl__text {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding-top: 28px;
  }
  .hl__badge { flex: none; width: 90px; height: 90px; margin: 0; }
  .hl__cat { writing-mode: vertical-rl; font-size: 14px; }
  .hl__title {
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 28px;
    line-height: 1.6;
  }
  .hl__title br { display: inline; }
  .hl__desc {
    writing-mode: vertical-rl;
    max-height: 300px;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: 0.1em;
  }

  .outline__list > div { grid-template-columns: 160px 1fr; gap: 24px; }

  .soon__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ========== PC ========== */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }

  .header__inner { padding: 0 40px; }
  .header__logo { font-size: 15px; }
  .header__nav {
    display: flex;
    gap: 36px;
    margin-left: auto;
    font-weight: 500;
    font-size: 13px;
  }
  .header__nav a { text-decoration: none; transition: opacity 0.3s; }
  .header__nav a:hover { opacity: 0.55; }
  .header__badge { margin-left: 12px; }

  .mv { padding-top: calc(var(--header-h) + 24px); }
  .mv::before { display: block; }
  .mv__visual::before { display: none; }
  .mv__inner {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 0 40px 96px;
  }
  .mv__vertical {
    position: static;
    grid-row: 1 / 3;
    justify-self: center;
    margin-top: 40px;
    font-size: 21px;
    letter-spacing: 0.26em;
  }
  .mv__head { justify-self: end; }
  .mv__title {
    font-size: clamp(72px, 8.4vw, 128px);
    line-height: 1.02;
  }
  .mv__info { gap: 12px 44px; margin-top: 26px; }
  .mv__num b { font-size: 52px; }

  .mv__visual {
    grid-column: 1 / -1;
    margin-top: 36px;
  }
  .mv__photo { aspect-ratio: 16 / 8.2; }
  .mv__chips { right: 4%; bottom: -46px; }

  .message { padding: 120px 0; }
  .message__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .message__head { justify-content: flex-start; gap: 64px; }
  .message__vertical { font-size: 34px; margin-top: 8px; }
  .message__body { padding-top: 12px; font-size: 15px; line-height: 2.3; }

  .highlights { padding: 140px 0 40px; }
  .hl__desc { max-height: 320px; }

  .outline { padding: 80px 0 140px; }
  .outline__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }

  .flyer { padding: 120px 0; }
  .flyer__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .flyer__img { margin: 0 0 0 auto; }

  .soon { padding: 140px 0; }
}

/* =========================================================
   WordPress 用の追加分
   ========================================================= */

/* 管理バー表示時にヘッダーが隠れないように */
body.admin-bar .header { top: 46px; }
@media (min-width: 783px) {
  body.admin-bar .header { top: 32px; }
}

.header__logo a { text-decoration: none; }
.header__nav ul {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice__inner a { text-underline-offset: 3px; }
.notice__inner time { font-family: var(--en); font-weight: 700; font-size: 13px; }

/* ---------- 下層ページ共通 ---------- */
/* WordPress が body にも .page クラスを付けるため、main 要素に限定する */
main.page { padding: calc(var(--header-h) + 64px) 0 120px; }
.container--narrow { max-width: 840px; }
.page__sub { margin: -24px 0 32px; color: var(--sub); }
.page__empty { color: var(--sub); }
.page__back { margin-top: 64px; }

/* お知らせ一覧 */
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.post-list__item { border-bottom: 1px solid var(--line); }
.post-list__item a {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding: 20px 0;
  text-decoration: none;
  transition: opacity 0.3s;
}
.post-list__item a:hover { opacity: 0.6; }
.post-list__item time {
  flex: none;
  color: var(--sub);
  font-family: var(--en);
  font-weight: 700;
  font-size: 14px;
}
.post-list__title { font-weight: 500; }

/* ページ送り */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--en);
  font-weight: 700;
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 記事 */
.entry__head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.entry__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--sub);
  font-family: var(--en);
  font-weight: 700;
  font-size: 13px;
}
.entry__meta a { color: var(--terra); }
.entry__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.5;
}
.entry__thumb { margin: 0 0 40px; }
.entry__thumb img { width: 100%; border-radius: 12px; }
.entry__body > * { margin: 0 0 1.6em; }
.entry__body h2 {
  margin-top: 2.4em;
  padding-left: 14px;
  border-left: 4px solid var(--terra);
  font-size: 22px;
  line-height: 1.5;
}
.entry__body h3 { margin-top: 2em; font-size: 18px; }
.entry__body a { color: var(--sage); text-underline-offset: 3px; }
.entry__body img { border-radius: 8px; }
.entry__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.entry__nav a { text-decoration: none; }
.entry__nav a:hover { text-decoration: underline; }


/* ---------- 出展企業 ---------- */
.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.company-card a { display: block; text-decoration: none; }
.company-card__thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  background: var(--band);
}
.company-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.company-card a:hover .company-card__thumb img { transform: scale(1.04); }
.company-card__body { display: block; padding-top: 16px; }
.company-card__meta {
  display: block;
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.company-card__title { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.company-card__text { display: block; margin-top: 6px; color: var(--sub); font-size: 13px; line-height: 1.9; }

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.9;
}
.company-table th,
.company-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.company-table th { width: 8.5em; color: var(--sub); font-weight: 700; white-space: nowrap; }
.company-table ul { margin: 0; padding-left: 1.2em; }
.company-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.company-photos img { width: 100%; border-radius: 8px; }
.entry__body .company-lead { font-size: 16px; font-weight: 500; }

@media (min-width: 768px) {
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .company-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .company-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .company-table th { width: 6.5em; white-space: normal; }
}

/* ---------- トップの出展企業 ---------- */
.companies { padding: 40px 0 72px; }
.companies__lead { margin: -16px 0 40px; color: var(--sub); }
.companies__more { margin: 56px 0 0; }
.soon__list a { text-underline-offset: 4px; }
