/* ============================================================
   index.css
   WIDES TOP PAGE
   ------------------------------------------------------------
   ・画像メニュー
   ・サービス一覧クリック式サブメニュー
   ・PC 3列
   ・タブレット 2列
   ・スマホ 1列
============================================================ */


/* ============================================================
   トップ画像
============================================================ */

.topimg-block {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  margin-bottom: 20px;

}


.topimg-block img {

  width: 100%;

  height: auto;

  display: block;

}


/* ============================================================
   画像メニューエリア
============================================================ */

#image-grid-area {

  position: relative;

  z-index: 1;

}


/* ============================================================
   画像メニュー
   ------------------------------------------------------------
   PC：3列
============================================================ */

.image-grid {

  display: grid;

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

  gap: 40px;

  width: 100%;

  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;

  min-width: 0;

}


/* ============================================================
   通常カードリンク
============================================================ */

.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;

}


/* ============================================================
   通常カード ホバー
============================================================ */

.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;

  min-width: 0;

  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-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: cover !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;

}


/* ============================================================
   開いているときの矢印
============================================================ */

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

  transform:
    rotate(180deg);

}


/* ============================================================
   サービス一覧 ホバー
   ------------------------------------------------------------
   サブメニューは開かない
   画像だけ拡大
============================================================ */

.image-item-has-submenu:hover {

  z-index: 1000;

  transform:
    translateY(-6px);

}


/* ============================================================
   サービス一覧 ホバー
   ------------------------------------------------------------
   画像と青い帯を同じ幅で拡大
   高さは変更しない
============================================================ */

.image-item-has-submenu:hover {

  z-index: 1000;

  transform:
    translateY(-6px);

}

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

  transform:
    scale(1.12);

}


/*画像

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

  transform:
    scaleX(1.12)
    scaleY(1.12);

}
*/


/* 青い帯
   ------------------------------------------------------------
   横幅だけ画像と同じ倍率で拡大

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

  transform:
    scaleX(1.12);

}
*/

/* ============================================================
   サービス一覧クリック時
============================================================ */

.image-item-has-submenu.is-open {

  z-index: 1000;

}


/* ============================================================
   開いているときの画像
   ------------------------------------------------------------
   ホバー解除後も自然に戻る
============================================================ */

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

  transform:
    scale(1.0);

}


/* ============================================================
   サービス一覧サブメニュー
   ------------------------------------------------------------
   初期状態：非表示
============================================================ */

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

  display: none;

  position: absolute;

  top: calc(100% + 8px);

  left: 50%;

  transform:
    translateX(-50%);

  z-index: 999999;

  width: max-content;

  min-width: 320px;

  max-width: calc(100vw - 40px);

  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);

}


/* ============================================================
   サブメニュー表示
   ------------------------------------------------------------
   ★ hoverでは開かない
   ★ is-open のときだけ開く
============================================================ */

.image-item-has-submenu.is-open
.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;

}


