﻿/* ========= 基本 ========= */
* { box-sizing: border-box; }

/* ========= 基本設定 ========= */

/* ボックスサイズの統一（必須級） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ページ全体 */
html {
  font-size: 18px;  
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7;
  color: #222;
  background: #fff;
  -webkit-text-size-adjust: 100%;


  /* 背景画像 */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ちょっとリッチになる */
}


/* TOP用 */
.page-top {
  background-image: url("../img/bg_bg.jpg");
}

/* バーチャル会場用 */
.page-virtual {
  background-image: url("../img/bg_virtual.png");
}



}

/* リンク */
a{ color:#005bac; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* 画像 */
img {
  max-width: 100%;
  height: auto;
  display: block;}



.nict-logo img {
  height: 36px;   /* ロゴサイズ（調整OK） */
  width: auto;
}

.small{ font-size:.9rem; color:#555; }

/* ========= レイアウト ========= */
main, footer{ max-width:920px; margin:0 auto; padding:1.2rem 1rem; }
.site-footer{ border-top:1px solid #ddd; margin-top:2rem; }

.card{
  max-width:920px;
  margin:0 auto;
  padding:1.2rem 1rem;
}

.card-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* 左テキスト */
.card-text {
  flex: 1;
}

/* 右画像 */
.card-image {
  width: 45%;
}

.card-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
　height: 220px;
　object-fit: cover;

}

@media (max-width: 700px) {
  .card-layout {
    flex-direction: column;
  }

  .card-image {
    width: 100%;
  }
}


.list{ padding-left:1.2rem; }
.booth-list{ padding-left:1.2rem; }
li{ margin:.35rem 0; }

/* ========= ヘッダー ========= */
.site-header{

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* 他より前に出す */
  background:#f5f8fb;
  border-bottom:1px solid #ddd;
  padding:1rem 1rem .9rem;
}

.header-inner{
  max-width:920px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.site-title{
  font-weight:700;
  color:#222;
  margin-right: auto;
}

.lead{
  max-width:920px;
  margin:.35rem auto 0;
  padding:0 1rem;
  color:#444;
}

/* ========= 見出し ========= */
h1{ font-size:1.6rem; margin:.2rem 0 .6rem; }
h2{
  font-size:1.15rem;
  margin:1.6rem 0 .4rem;
  border-left:4px solid #005bac;
  padding-left:.6rem;
}

.eyecatch {
  sition: relative;
  background: #ecae1d; /* 今の雰囲気を踏襲 */
  margin-top: 70px; /* ヘッダーの高さ分 */
  /* 背景画像 */
  background-image: url("../img/bgi.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ちょっとリッチになる */


}


eyecatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
  pointer-events: none;
}


.eyecatch-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem;
}

.eyecatch img {
  display: block;
  width: 100%;
  filter: contrast(1.1) brightness(0.95);
  border: none;
  border: none !important;
  box-shadow: none !important;
}


.eyecatch-title {

  color: #fff;
  font-weight: 900;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    0 0 2px rgba(0,0,0,0.3);
}






/* ========= トップ導線（カード） ========= */
.nav-cards{
  max-width:920px;
  margin:0 auto;
  padding:0 0.5rem 0.5rem;
  display:grid;  
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;

}

.nav-text h3 {
  margin: 0 0 0.2rem;
  line-height: 1.2;
　font-size: 1.15rem;
　font-weight: 700;
}



.nav-text p {
  margin: 0;
  line-height: 1.3;
}



/* PC時は3列 */
@media (min-width: 800px) {
  .nav-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}


.nav-card{
  display:block;
  padding:1.1rem 1rem;
  border:1px solid #ccc;
  border-radius:10px;
  background:#fff;
  font-weight:600;
  transition: background .2s ease, border-color .2s ease, transform .18s ease;
}

/* hover（PC） */
.nav-card:hover{
  background:#eef4ff;
  border-color:#005bac;
}

/* クリックで少し大きく（スマホ/PC） */
.nav-card:active{
  transform: scale(1.03);
}



.coming-soon {
  pointer-events: none;
  opacity: 0.6;
}



/* ========= ハンバーガー（スマホのみ表示） ========= */
.hamburger{
  width:44px; height:44px;
  background:#fff;
  border:1px solid #ccc;
  border-radius:8px;
  display:none;                 /* PCは非表示 */
  flex-direction:column;
  justify-content:center;
  gap:6px;
  z-index:1001;
}

.hamburger span{
  display:block;
  height:2px;
  background:#222;
  border-radius:1px;
}

/* ========= メニュー本体 ========= */
.global-menu{
  position:fixed;
  top:0; right:0;
  width:260px;
  height:100%;
  background:#fff;
  border-left:1px solid #ddd;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index:1000;
}

.global-menu ul{
  list-style:none;
  margin:0;
  padding:80px 1.2rem 1.2rem;
}

.global-menu li{ margin:0 0 1rem; }
.global-menu a{ font-size:1.05rem; }

/* 開いている状態 */
.global-menu.is-open{ transform: translateX(0); }

/* ========= オーバーレイ（背景タップで閉じる） ========= */
.menu-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.30);
  opacity:0;
  visibility:hidden;
  transition: opacity .25s ease;
  z-index:999;
}
.menu-overlay.is-open{
  opacity:1;
  visibility:visible;
}

/* ========= 現在ページを強調 ========= */
.global-menu a.is-current{
  color:#222;
  font-weight:800;
  position:relative;
}
.global-menu a.is-current::before{
  content:"";
  position:absolute;
  left:-0.8rem;
  top:50%;
  width:4px;
  height:60%;
  background:#005bac;
  transform: translateY(-50%);
  border-radius:2px;
}

/* ========= スマホ最適化 ========= */
@media (max-width:600px){
  .hamburger{ display:flex; }
}

/* ちいさめスマホ */
@media (max-width:360px){
  h1{ font-size:1.45rem; }
  .nav-card{ padding:1.05rem .95rem; }
}


/* ======================================
   展示ブース（カード＋フィルタ）
   ====================================== */

.booths .card { padding-top: 1rem; }

.filters{
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fbfcfe;
}

.filters-row{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: .8rem;
  align-items: end;
}

.field{ display: grid; gap: .35rem; }
.field-label{ font-size: .85rem; color: #444; }

input[type="search"], select{
  width: 100%;
  padding: .7rem .75rem;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
}

input[type="search"]:focus, select:focus{
  outline: 2px solid rgba(0,91,172,.25);
  border-color: #005bac;
}

.filters-row--secondary{
  margin-top: .9rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.chips{ display:flex; flex-wrap:wrap; gap:.5rem; }
.chip{
  border: 1px solid #cfd6df;
  background: #fff;
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .95rem;
  cursor: pointer;
}
.chip.is-active{
  border-color: #005bac;
  background: #eef4ff;
  font-weight: 700;
}

.filters-meta{
  display:flex;
  gap: .9rem;
  align-items:center;
  justify-content:flex-end;
}

.linklike{
  border: 0;
  background: transparent;
  color: #005bac;
  text-decoration: underline;
  cursor: pointer;
  padding: .2rem .1rem;
}

.no-results{
  margin: .75rem 0 0;
  padding: .8rem;
  border: 1px dashed #cfd6df;
  border-radius: 10px;
  background: #fff;
}

/* ---- カードグリッド ---- */
.booth-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.booth-card{
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: 120px 1fr;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}

/* クリックで少し大きく（既存の“押した感”の延長） */
.booth-card:active{
  transform: scale(1.02);
}

/* PC hover */
@media (hover:hover){
  .booth-card:hover{
    border-color: #005bac;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
  }
}

.booth-thumb{
  background: linear-gradient(135deg, #e7eef7, #f6f9ff);
}

/* 本文 */
.booth-body{ padding: .9rem .95rem 1rem; }
.booth-title{
  font-size: 1.08rem;
  margin: 0 0 .35rem;
  border-left: none;
  padding-left: 0;
}
.booth-desc{ margin: 0 0 .6rem; color: #333; font-size: .95rem; }

.booth-badges{
  list-style: none;
  display: flex;
  gap: .45rem;
  padding: 0;
  margin: 0 0 .6rem;
}
.badge{
  font-size: .8rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: #f1f5fb;
  border: 1px solid #d7e1f0;
  color: #2b3a55;
}

.booth-tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin: 0 0 .75rem; }
.tag{
  font-size: .8rem;
  padding: .16rem .5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9dfe8;
  color: #444;
}

.btn-sm{
  display:inline-block;
  border: 1px solid #005bac;
  border-radius: 10px;
  padding: .5rem .7rem;
  font-weight: 700;
  background: #fff;
}
.btn-sm:active{ transform: scale(1.02); }

/* ---- スマホ最適化 ---- */
@media (max-width: 900px){
  .booth-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px){
  .filters{ padding: .9rem; }
  .filters-row{ grid-template-columns: 1fr; }
  .filters-row--secondary{ grid-template-columns: 1fr; gap: .6rem; }
  .filters-meta{ justify-content: space-between; }
  .booth-grid{ grid-template-columns: 1fr; }
  .booth-card{ grid-template-rows: 110px 1fr; }
}

/* 動きが苦手な方に配慮 */
@media (prefers-reduced-motion: reduce){
  .booth-card, .btn-sm, .chip { transition: none !important; }
  .booth-card:hover, .booth-card:active { transform: none !important; }
}

/* ======================================
   新着情報（index）
   ====================================== */

.news {
  max-width: 920px;
  margin: 1.6rem auto 1.5rem;
  padding: 1.2rem 1rem;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fafcff;
}


.news h2 {
  margin-top: 0;
}

.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.news-header h2 {
  font-size: 1.3rem;
  margin: 0;
  border-left: 4px solid #005bac;
  padding-left: 0.6rem;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid #e2e6ec;
}

.news-item:first-child {
  border-top: none;
}

.news-item time {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

.news-label {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #cfd6df;
  background: #fff;
  color: #333;
}

.news-item a {
  color: #005bac;
  text-decoration: none;
  flex: 1 1 100%;
}

/* PCでは1行にまとめる */
@media (min-width: 600px) {
  .news-item a {
    flex: 1;
  }
}

/* 動きを減らしたい環境への配慮 */
@media (prefers-reduced-motion: reduce) {
  .news * {
    transition: none !important;
  }
}

/* ======================================
   パンくずナビ
   ====================================== */

.breadcrumb {
  max-width: 920px;
  margin: 0.6rem auto 1rem;
  padding: 0 1rem;
  font-size: 0.85rem;
  color: #555;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

/* 区切り */
.breadcrumb li::after {
  content: "／";
  margin: 0 0.4rem;
  color: #aaa;
}

.breadcrumb li:last-child::after {
  content: "";
}

/* リンク */
.breadcrumb a {
  color: #005bac;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 現在ページ */
.breadcrumb span[aria-current="page"] {
  color: #222;
  font-weight: 600;
}

.video {
  aspect-ratio: 16 / 9;
}

.video iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

