/*
 * a2i トップページ 2026年改修
 * 既存 global.css の後に、トップページだけで読み込む追加CSSです。
 */

/* --------------------------------------------------
   メインビジュアル：a2iファイナル・シーズン
   提示モックに合わせ、HTML + CSS で幾何学背景とタイポグラフィを構成
   -------------------------------------------------- */

.hm-mv--finalSeason .hm-mvOuter {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 11%, rgba(53, 211, 239, 0.66) 11% 19%, transparent 19% 100%),
    linear-gradient(45deg, transparent 0 13%, rgba(21, 91, 230, 0.68) 13% 24%, transparent 24% 100%),
    linear-gradient(135deg, transparent 0 67%, rgba(0, 91, 224, 0.64) 67% 78%, transparent 78% 100%),
    linear-gradient(45deg, transparent 0 76%, rgba(53, 211, 239, 0.6) 76% 86%, transparent 86% 100%),
    linear-gradient(120deg, #00b9ef 0%, #0788f4 48%, #0677ef 100%);
}

.hm-mv--finalSeason .hm-mvOuter::before,
.hm-mv--finalSeason .hm-mvOuter::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hm-mv--finalSeason .hm-mvOuter::before {
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(135deg, transparent 0 27%, rgba(0, 110, 233, 0.75) 27% 36%, transparent 36% 100%),
    linear-gradient(45deg, transparent 0 61%, rgba(38, 205, 239, 0.78) 61% 70%, transparent 70% 100%);
}

.hm-mv--finalSeason .hm-mvOuter::after {
  top: 96px;
  left: 7px;
  width: 55px;
  height: 65px;
  background-image: radial-gradient(circle, rgba(85, 238, 243, 0.92) 1.25px, transparent 1.6px);
  background-size: 10px 10px;
}

.hm-finalSeason {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 270px;
  padding: 20px 22px 18px;
  color: #fff;
  text-decoration: none;
}

.hm-finalSeason::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 8px;
  bottom: 14px;
  width: 55px;
  height: 65px;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(85, 238, 243, 0.92) 1.25px, transparent 1.6px);
  background-size: 10px 10px;
}

.hm-finalSeason::after,
.hm-finalSeason__notice {
  display: none;
}

.hm-finalSeason__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 25px;
  text-align: center;
}

.hm-finalSeason__eyebrow {
  margin: 0 0 2px;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.hm-finalSeason__year {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.015em;
}

.hm-finalSeason__title {
  position: relative;
  width: min(100%, 278px);
  margin: 7px auto 0;
  padding-top: 7px;
  color: #fff;
  border-top: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

/* 年号下のライン：a2iロゴ4色（青45・赤20・黄9・緑26） */
.hm-finalSeason__title::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right,
    var(--a2i-logo-blue, #009DDB)   0                  calc(45% - 4px),
    transparent                     calc(45% - 4px)    45%,
    var(--a2i-logo-red, #E7372F)    45%                calc(65% - 4px),
    transparent                     calc(65% - 4px)    65%,
    var(--a2i-logo-yellow, #F7B400) 65%                calc(74% - 4px),
    transparent                     calc(74% - 4px)    74%,
    var(--a2i-logo-green, #44AF35)  74%                100%);
}

.hm-finalSeason__support {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.hm-finalSeason__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-width: 180px;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 20px;
  color: #087bdc;
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  border: 0;
  box-shadow: 0 2px 6px rgba(0, 75, 168, 0.18);
}

.hm-finalSeason:not(.hm-finalSeason--disabled):hover,
.hm-finalSeason:not(.hm-finalSeason--disabled):focus {
  color: #fff;
  text-decoration: none;
}

.hm-finalSeason:not(.hm-finalSeason--disabled):hover .hm-finalSeason__more,
.hm-finalSeason:not(.hm-finalSeason--disabled):focus .hm-finalSeason__more {
  color: #005fae;
  background: #f4fbff;
}

.hm-finalSeason:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

/* --------------------------------------------------
   重要なお知らせ
   -------------------------------------------------- */
.hm-important {
  margin: 18px 0 28px;
  border: 1px solid #e2d6d6;
  border-left: 5px solid #d9534f;
  background: #fffafa;
}

.hm-important__title {
  margin: 0;
  padding: 10px 14px 8px;
  color: #a62f2c;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  border-bottom: 1px solid #eadfdf;
}

.hm-important__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-important__list li + li {
  border-top: 1px solid #eadfdf;
}

.hm-important__list a,
.hm-important__text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #302623;
  font-weight: bold;
  line-height: 1.5;
  text-decoration: none;
}

.hm-important__list a:hover,
.hm-important__list a:focus {
  color: #007ad2;
  background: #fff;
  text-decoration: underline;
}

.hm-important__arrow {
  flex: 0 0 auto;
  color: #d9534f;
  font-size: 18px;
}

/* --------------------------------------------------
   注目コンテンツ
   SP：横スクロール / PC：3カラム
   -------------------------------------------------- */
.hm-featured {
  margin: 34px 0 38px;
  padding: 18px 12px 20px;
  background: #f7fbfe;
  border-top: 1px solid #dcecf6;
  border-bottom: 1px solid #dcecf6;
}

.hm-featured__viewport {
  position: relative;
}

.hm-featured__nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #b9d4e6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #007ad2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease, border-color 0.2s ease;
}

.hm-featured__nav--prev {
  left: 2px;
}

.hm-featured__nav--next {
  right: 2px;
}

.hm-featured__nav:hover,
.hm-featured__nav:focus {
  background: #fff;
  border-color: #007ad2;
  outline: none;
}

.hm-featured__nav:focus-visible {
  outline: 2px solid #007ad2;
  outline-offset: 2px;
}

.hm-featured__nav:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
}

.hm-featured__list {
  display: flex;
  gap: 12px;
  margin: 0 -10px;
  padding: 2px 10px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 10px;
  scrollbar-width: none;
}

.hm-featured__list::-webkit-scrollbar {
  display: none;
}

.hm-featuredCard {
  flex: 0 0 84%;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #d7e5ef;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hm-featuredCard__link {
  display: block;
  height: 100%;
  color: #302623;
  text-decoration: none;
}

.hm-featuredCard__link:not(.hm-featuredCard__link--disabled):hover,
.hm-featuredCard__link:not(.hm-featuredCard__link--disabled):focus {
  color: #007ad2;
  text-decoration: none;
}

.hm-featuredCard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eaf5fb;
}

.hm-featuredCard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-featuredCard__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #007ad2;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.08em;
  background:
    linear-gradient(135deg, rgba(0, 122, 210, 0.08), rgba(0, 157, 219, 0.18));
}

.hm-featuredCard__body {
  padding: 14px 14px 16px;
}

.hm-featuredCard__label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 9px;
  color: #fff;
  background: #007ad2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.4;
}

.hm-featuredCard__title {
  margin: 0;
  color: inherit;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.5;
}

.hm-featuredCard__more {
  margin: 12px 0 0;
  color: #007ad2;
  font-size: 13px;
  font-weight: bold;
  text-align: right;
}

@media screen and (min-width: 480px) {
  .hm-mv--finalSeason .hm-mvOuter,
  .hm-finalSeason {
    min-height: 358px;
  }

  .hm-finalSeason__inner {
    padding-top: 32px;
  }

  .hm-finalSeason__eyebrow {
    font-size: 34px;
  }

  .hm-finalSeason__year {
    font-size: 42px;
  }

  .hm-finalSeason__title {
    width: 330px;
    font-size: 21px;
  }
}

@media screen and (min-width: 768px) {
  .hm-mv--finalSeason .hm-mvOuter,
  .hm-finalSeason {
    min-height: 453px;
  }

  .hm-finalSeason {
    padding: 52px 48px 50px;
  }

  .hm-finalSeason::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 155px;
    pointer-events: none;
    background: url("/assets/img/home/a2i-final-crowd.svg?v=20260929-2") center bottom / 100% 155px no-repeat;
  }

  .hm-finalSeason__notice {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 22px;
    display: block;
    margin: 0;
    padding: 9px 13px;
    color: #fff;
    background: rgba(0, 67, 157, 0.24);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
  }

  .hm-finalSeason__inner {
    padding-top: 0;
    padding-right: 34%;
  }

  .hm-finalSeason__eyebrow {
    margin-bottom: 0;
    font-size: 42px;
  }

  .hm-finalSeason__year {
    font-size: 44px;
  }

  .hm-finalSeason__title {
    width: 420px;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 24px;
  }

  .hm-finalSeason__support {
    top: 50%;
    right: 4%;
    left: auto;
    width: 29%;
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    transform: translateY(-50%) rotate(-9deg);
  }

  .hm-finalSeason__more {
    min-width: 190px;
    margin-top: 14px;
    font-size: 16px;
  }

  .hm-mv--finalSeason .hm-mvOuter::before {
    inset: 0;
    width: auto;
    height: auto;
    box-shadow: none;
  }

  .hm-important {
    margin-top: 24px;
  }

  .hm-important__title {
    padding: 12px 18px 10px;
    font-size: 18px;
  }

  .hm-important__list a,
  .hm-important__text {
    padding: 13px 18px;
    font-size: 16px;
  }

  .hm-featured {
    margin: 46px 0 48px;
    padding: 26px 20px 28px;
  }

  .hm-featured__nav {
    display: none;
  }

  .hm-featured__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 2px 0;
    overflow: visible;
  }

  .hm-featuredCard {
    min-width: 0;
  }

  .hm-featuredCard__body {
    padding: 16px 16px 18px;
  }

  .hm-featuredCard__title {
    font-size: 18px;
  }
}
