/* ============================================================
   index.css
============================================================ */
/* ============================================================
   トップ画像
============================================================ */

.topimg-block {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  margin-bottom: 20px;

}


.topimg-block img {

  width: 100%;

  height: auto;

  display: block;

}


/* ============================================================
   画像メニュー（3列グリッド）
============================================================ */

#image-grid-area {

  position: relative;

  z-index: 1;

}


.image-grid {

  display: grid;

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

  gap: 40px 40px;

  position: relative;

  z-index: 1;

}


/* ============================================================
   共通カード
============================================================ */

.image-item {

  position: relative;

  z-index: 1;

  overflow: hidden;

  border-radius: 10px;

  background: #ffffff;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

}


/* ============================================================
   通常カードのリンク
   カード全体を統一
============================================================ */

.image-item > a {

  display: block;

  width: 100%;

  margin: 0;

  padding: 0;

  text-decoration: none;

}


/* ============================================================
   通常カード画像
============================================================ */

.image-item > a > img {

  display: block;

  width: 80%;

  aspect-ratio: 16 / 9;

  height: auto;

  margin: 0 auto;

  padding: 0;

  object-fit: cover;

  object-position: center center;

  transform-origin: center center;

  transition:
    transform 0.6s ease;

}


/* ============================================================
   通常カード タイトル
   サービス一覧のタイトル帯と高さを統一
============================================================ */

.image-item > a > p {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 80%;

  height: 52px;

  min-height: 52px;

  margin: 0 auto;

  padding: 10px 16px;

  box-sizing: border-box;

  text-align: center;

  line-height: 1.4;

}


/* ============================================================
   通常カード Hover
============================================================ */

.image-item:hover {

  z-index: 2;

  transform:
    translateY(-6px);

}


.image-item:hover > a > img {

  transform:
    scale(1.12);

}


.image-item:active {

  transform:
    translateY(-2px)
    scale(1.01);

}


/* ============================================================
   サービス一覧カード
============================================================ */

.image-item-has-submenu {

  position: relative;

  z-index: 10;

  /*
    サブメニューをカード外へ出す
  */
  overflow: visible;

  /*
    通常カードと同じ外枠
  */
  border-radius: 10px;

  background: #ffffff;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.06);

}


/* ============================================================
   サービス一覧カード本体
============================================================ */

.image-item-has-submenu
.image-menu-card {

  position: relative;

  width: 100%;

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  /*
    通常カードと同じ背景
  */
  background: #ffffff;

  border: none;

  border-radius: 10px;

  /*
    画像の角丸をカード内で処理
  */
  overflow: hidden;

  cursor: pointer;

}


/* ============================================================
   サービス一覧画像
   通常カードと完全に同じ画像領域
============================================================ */

.image-item-has-submenu
.image-menu-card
img {

  display: block;

  /*
    通常カードと同じ幅
  */
  width: 80% !important;

  /*
    通常カードと同じ比率
  */
  aspect-ratio: 16 / 9 !important;

  height: auto !important;

  max-width: none !important;

  margin: 0 auto !important;

  padding: 0 !important;

  /*
    画像全体を表示
  */
  object-fit: contain !important;

  object-position: center center;

  /*
    画像の余白部分
  */
  background: #f5f7fa;

  transform-origin: center center;

  transition:
    transform 0.6s ease;

}


/* ============================================================
   サービス一覧タイトル帯
   通常カードのタイトル領域と完全に同じ高さ
============================================================ */

.image-item-has-submenu
.image-menu-title {

  position: relative;

  /*
    通常カードのタイトルと同じ幅
  */
  width: 80%;

  height: 52px;

  min-height: 52px;

  margin: 0 auto;

  padding: 10px 16px;

  box-sizing: border-box;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  /*
    青い帯
  */
  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      #0f2742,
      #2563eb
    );

  border-radius:
    0 0 10px 10px;

  font-size: 16px;

  font-weight: 600;

  line-height: 1.4;

  text-align: center;

  z-index: 2;

}


/* ============================================================
   サービス一覧 矢印
============================================================ */

.image-item-has-submenu
.grid-submenu-arrow {

  display: inline-block;

  color: #ffffff !important;

  font-size: 10px;

  line-height: 1;

  transition:
    transform 0.25s ease;

}


/* 矢印 Hover */

.image-item-has-submenu:hover
.grid-submenu-arrow {

  color: #ffffff !important;

  transform:
    rotate(180deg);

}


/* ============================================================
   サービス一覧 Hover
============================================================ */

.image-item-has-submenu:hover {

  z-index: 1000;

  transform:
    translateY(-6px);

}


.image-item-has-submenu:hover
.image-menu-card
img {

  transform:
    scale(1.03);

}


/* ============================================================
   サービス一覧 サブメニュー
============================================================ */

.image-item-has-submenu
.grid-submenu {

  display: none;

  position: absolute;

  top: 100%;

  left: 50%;

  transform:
    translateX(-50%);

  z-index: 999999;

  width: max-content;

  min-width: 320px;

  margin: 0;

  padding: 8px;

  box-sizing: border-box;

  list-style: none;

  background: #ffffff;

  border:
    1px solid #e5e7eb;

  border-radius:
    14px;

  box-shadow:
    0 15px 40px rgba(15,39,66,0.25);

}


/* ============================================================
   サブメニュー表示
============================================================ */

.image-item-has-submenu:hover
.grid-submenu {

  display: block;

}


/* ============================================================
   サブメニューリンク
============================================================ */

.image-item-has-submenu
.grid-submenu
a {

  display: flex;

  align-items: center;

  width: 100%;

  min-height: 46px;

  padding: 11px 16px;

  box-sizing: border-box;

  color: #334155;

  background: transparent;

  border-radius: 10px;

  font-size: 14px;

  font-weight: 600;

  line-height: 1.5;

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.2s ease,
    background 0.2s ease;

}


.image-item-has-submenu
.grid-submenu
a:hover {

  color: #2563eb;

  background: #eff6ff;

}


/* ============================================================
   Topページコンテンツ
============================================================ */

.container {

  width: 100%;

  margin: 0 auto;

  padding-left: 20px;

  padding-right: 20px;

  box-sizing: border-box;

}


.top_content {

  width: 100%;

  max-width: none;

}


.top_content h2 span {

  position: relative;

  z-index: 2;

}


.top_content h2 {

  position: relative;

  display: flex;

  align-items: center;

  background: #0f2742;

  color: #fff;

  height: 50px;

  font-size: 22px;

  padding-left: 110px;

  overflow: hidden;

}


.top_content h2::before {

  content: "";

  position: absolute;

  left: 20px;

  width: 60px;

  height: 60px;

  background-size: contain;

  background-repeat: no-repeat;

  background-position: center;

}


/* ============================================================
   ニュース
============================================================ */

.event-status {

  background: #ddd;

  padding: 4px 10px;

  border-radius: 20px;

  display: inline-flex;

  justify-content: center;

  align-items: center;

}


.news_content {

  display: flex;

  align-items: stretch;

  gap: 20px;

  width: 100%;

  box-sizing: border-box;

}


.news_content h2.news {

  width: 100%;

  margin-bottom: 20px;

  box-sizing: border-box;

}


.news span {

  position: relative;

  z-index: 2;

}


/* ============================================================
   ニュース背景画像
============================================================ */

.news::before {

  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  background-image:
    url(/img/news-mini.png);

  background-repeat: no-repeat;

  background-position: left center;

  background-size: 80px auto;

}


/* ============================================================
   ニュースカード
============================================================ */

.news-card {

  background: #fff;

  border: 1px solid #e6e6e6;

  border-radius: 12px;

  padding: 15px 18px;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  margin-bottom: 20px;

}


.news-card:hover {

  transform:
    translateY(-3px);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.12);

}


/* ============================================================
   日付
============================================================ */

.news-date {

  font-size: 13px;

  color: #0f2742;

  font-weight: bold;

  margin-bottom: 8px;

}


/* ============================================================
   本文
============================================================ */

.news-body {

  font-size: 14px;

  line-height: 1.6;

}


/* ============================================================
   左側（更新履歴）
============================================================ */

.top_news {

  flex:
    0 0 calc(50% - 10px);

  background: #fff;

  border-radius: 16px;

  padding: 16px 20px;

  height:
    calc(100vh - 200px);

  overflow: auto;

  box-sizing: border-box;

  border:
    1px solid #e9edf3;

  box-shadow:

    0 4px 10px rgba(0,0,0,0.04),

    0 10px 24px rgba(15,39,66,0.06);

}


.top_news::-webkit-scrollbar {

  width: 8px;

}


.top_news::-webkit-scrollbar-track {

  background: #f1f1f1;

}


.top_news::-webkit-scrollbar-thumb {

  background: #b7c3d6;

  border-radius: 20px;

}


.top_news::-webkit-scrollbar-thumb:hover {

  background: #8da2c4;

}


/* ============================================================
   右側（過去の履歴）
============================================================ */

.news_old {

  flex:
    0 0 calc(50% - 10px);

  position: sticky;

  top: 20px;

  box-sizing: border-box;

}


/* ============================================================
   バナー
============================================================ */

.banner img {

  max-width: 100%;

  height: auto;

  border-radius: 10px;

}