@charset "utf-8";

/* CSS Document */

/* ==============================================
   定数セクション - CSS Variables (Custom Properties)
   ============================================== */

:root {
  /* レイアウト定数 */
  --max-content-width: 1024px;
  --pc-content-padding: 30px;
  --sp-content-padding: 15px;

  /* カラーパレット */
  --color-black: #1e1f1f;
  --color-primary: #2e57a4;
  --color-white: #fff;
  --color-gray-light: #f4f4f4;

  /* フォントファミリー */
  --font-family: "Figtree", "Meiryo", sans-serif;

  /* フォントウェイト */
  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* フォントサイズ（PC） */
  --font-size-page-title: 32px;
  --font-size-pc-large: 28px;
  --font-size-pc-middle: 20px;
  --font-size-pc-base: 16px;
  --font-size-pc-note: 12px;

  /* フォントサイズ（SP） */
  --font-size-sp-base: 16px;
  --font-size-sp-note: 12px;
}

/* ==============================================
   ベーススタイル - 共通の初期設定
   ============================================== */

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-sp-base);
  color: var(--color-black);
  background-color: var(--color-gray-light);
  margin: 0;
}

main {
  box-sizing: border-box;
}

.header {
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding-right: var(--sp-content-padding); */
  position: relative;
  font-weight: var(--font-weight-bold);
  z-index: 10;
}

body.top-page .header {
  background: transparent; /* 背景を消す */
  position: absolute; /* hero の上に重ねる */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body.top-page .container {
  width: min(100%, var(--max-content-width));
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box; /* padding込みで幅を抑える */
}

.header__tagline {
  display: none;
}

.header.menu-open {
  background-color: var(--color-white);
}

body.no-scroll {
  overflow: hidden;
}

/* ロゴ */
.header__nav-logo img {
  height: 60px;
  position: relative;
  /* z-index: 2; */
}

.header__nav-logo {
  position: relative;
}

.header__nav-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  transform: translate(-35%, -20%); /* ロゴ縦中心に合わせる */
  width: 320px;
  height: 180%; /* ロゴ高さより少し大きく */
  background: url("../static/img/bg_headertriangle.png") no-repeat left center /
    contain;
  /* z-index: 1; ロゴ(img)より背面 */
  pointer-events: none;
}

/* ナビゲーション（スマホは縦並びで隠す） */
.header__nav-list {
  display: none; /* 初期は非表示 */
}

.header.menu-open .header__nav-list {
  list-style: none;
  margin: 0;
  gap: 0;
  padding: 84px 20px 20px;
  flex-direction: column;
  background: var(--color-primary);
  display: flex; /* ハンバーガーで開いた時だけ表示 */
  justify-content: flex-start;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  flex-wrap: nowrap;
}

.header__nav-list > li {
  border-bottom: 1px solid var(--color-white);
}

.header__nav-list > li:first-child {
  border-top: 1px solid var(--color-white);
}

.header__nav-list a {
  display: block;
  padding: 20px 0;
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-pc-base);
}

.header__nav-list a:hover {
  text-decoration: underline;
}

/* サブメニュー（スマホは最初閉じる） */
.header-submenu {
  display: none;
  flex-direction: column;
  list-style: none;
  padding-left: 20px;
  padding-bottom: 10px;
  gap: 0;
}

.header-submenu li {
  border-bottom: none;
}

.header-submenu li a {
  padding: 10px 0;
  font-weight: 550;
}

.header-submenu li a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.menu-item > a {
  display: flex; /* 横並び */
  justify-content: space-between; /* 左右に配置 */
  align-items: center; /* 縦位置を中央に揃える */
}

.menu-item.open .header-submenu {
  display: flex;
}

/* ▼ 矢印 */
.submenu-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 3px;
  margin-right: 0;
  background: url("../static/img/arrow-bottom-white.svg") no-repeat
    center/contain;
}

.menu-item:hover .submenu-arrow {
  background-image: url("../static/img/arrow-top-white.svg");
}

.menu__sp-only {
  display: none;
}

/* ハンバーガーボタン */
.header__toggle {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  position: relative;
}

.header__toggle img {
  width: 24px;
  height: 24px;
  padding: 8px;
}

.icon-close {
  display: none;
  position: fixed;
  top: 12px;
  right: 6px;
}

.menu-open .icon-hamburger {
  display: none;
}

.menu-open .icon-close {
  display: inline;
}

.header .menu-open {
  background-color: var(--color-white); /* 開いた時だけ白背景 */
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  width: fit-content;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: var(--color-white);
  text-align: center;
  position: relative;
}

.cta-section {
  text-align: center;
  border-bottom: 2px solid transparent;
}

.cta-section--left {
  text-align: left;
}

.cta-button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cta-button:hover::after {
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.cta-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("../static/img/arrow-right-blue.png") no-repeat center/contain;
}

.cta-button:hover .cta-arrow {
  background-image: url("../static/img/arrow-right-white.png");
}

/* トップページ */
.hero {
  padding-top: 100px;
  background: linear-gradient(rgb(46 87 164/ 80%), rgb(46 87 164/ 70%)),
    url("../static/img/top.jpeg") no-repeat center/cover;
  color: var(--color-white);
  text-align: center;
  display: block;
  align-items: center;
  justify-content: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero__title {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
  text-align: left;
  margin-top: 60px;
}

.hero__subtitle {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero__description {
  font-size: 14px;
}

.hero__action {
  margin-top: 10px;
  margin-bottom: 32px;
}

.hero .cta-button--event {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background: #fff;
  color: var(--color-black);
  padding: 14px 16px;
  border-color: transparent; /* 外枠なし */
  text-decoration: none;
}

.hero__events {
  display: flex;
  flex-direction: column;
  gap: 16px; /* ← ここが“間” */
}

.hero .cta-button--event .event-head {
  display: inline-flex;
  flex-wrap: wrap; /* 幅が足りなければ折り返し */
  gap: 8px;
  align-items: baseline;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.event-date {
  font-size: var(--font-size-pc-note);
}

.event-kind {
  font-size: var(--font-size-pc-note);
}

.event-title {
  font-size: var(--font-size-pc-base);
}

/* 2行目：タイトルと右矢印 */
.hero .cta-button--event .event-title-row {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero .cta-button--event .event-title {
  font-weight: 700;
}

.hero .cta-button--event .cta-arrow {
  width: 14px;
  height: 14px;
}

.hero .cta-button--event::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 8px;
  background: var(--color-primary);
}

.hero .cta-button--event:hover {
  background: var(--color-white);
  color: var(--color-black);
  text-decoration: none;
}

.hero .cta-button--event:hover::after {
  background: var(--color-white);
  transition: all 0.3s ease;
}

.innovation-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 0;
}

.innovation-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.innovation-item--reverse {
  flex-direction: column;
}

.innovation-item__image {
  width: 100%;
  height: auto;
  display: block;
}

.innovation-content {
  flex: 1;
}

.innovation-title {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.innovation-subtitle {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.innovation-description {
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* 下層ページヘッダー */
body.lower-page .header {
  background: transparent; /* 背景を消す */
  position: absolute; /* hero の上に重ねる */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
}

body.lower-page .container {
  width: min(100%, var(--max-content-width));
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box; /* padding込みで幅を抑える */
}

.lower-page .hero__title {
  font-size: 28px;
}

/* ==============================================
   メディアクエリ - 画面幅ごとのスタイル
   ============================================== */

/* ~360px以下 */
@media (width < 360px) {
  .pc-only {
    display: none;
  }

  main {
    width: 100%;
    padding: 40px var(--sp-content-padding) 80px;
  }
}

/* 360 ~ */
@media (360px <= width) {
  .pc-only {
    display: none;
  }

  main {
    width: 100%;
    padding: 40px var(--sp-content-padding) 80px;
  }
}

/* 768 ~ */
@media (768px <= width) {
  .sp-only {
    display: none;
  }

  .pc-only {
    display: block;
  }

  body {
    font-size: var(--font-size-pc-base);
  }

  .header {
    /* padding-right: var(--pc-content-padding); */
  }

  body.top-page .container {
    padding-inline: 0;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .header__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding-left: 15px;
    padding-top: 12px;
  }

  .header__tagline {
    display: block;
    color: var(--color-white);
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1;
    font-size: 16px;
    padding-left: 4px;
  }

  .header__nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    position: static;
    margin: 0;
    padding: 0;
    background: none;
    flex: 1;
    justify-content: space-between;
    gap: 0;
  }

  .header__nav-list li {
    border: none;
    position: relative;
  }

  .header__nav-list li:first-child {
    border: none;
    position: relative;
  }

  .header__nav-list a {
    padding: 4px;
  }

  .header-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-gray-light);
    color: var(--color-black);
    min-width: 220px;
    padding: 0;
    font-size: var(--font-size-pc-note);
    border-radius: 5px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  }

  .menu-item:hover .header-submenu {
    display: block;
  }

  .header-submenu li a {
    padding: 6px 4px 4px 10px;
    color: var(--color-black);
    font-size: 14px;
  }

  .header-submenu li a:hover {
    text-decoration: underline;
  }

  .header__toggle {
    display: none;
  }

  main {
    padding: 40px var(--pc-content-padding) 80px;
  }

  /* .hero {
    padding-top: 140px;
  } */

  /* PCレイアウト：本文 →（左：ボタン／右：イベント） */
  .hero__container {
    display: grid;
    grid-template-columns: 1fr 420px;
    grid-template-areas:
      "content content"
      "action  events";
    gap: 24px 40px;
    align-items: start;
    padding: 0 30px !important;
  }

  .hero__content {
    grid-area: content;
    max-width: 780px;
  }

  .hero__title {
    font-size: 56px;
    margin: 40px 0 0;
  }

  .hero__subtitle {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin: 0;
  }

  .hero__description {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 0;
  }

  .hero__action {
    grid-area: action;
    margin-top: 32px;
  }

  .hero__events {
    grid-area: events;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hero .cta-section {
    text-align: left;
    margin: 0;
  }

  .innovation-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .innovation-item--reverse {
    flex-direction: row-reverse;
  }

  .innovation-item__image {
    max-width: 33%;
  }

  .innovation-content {
    flex: 1;
  }

  .innovation-title {
    font-size: 28px;
  }

  .innovation-subtitle {
    font-size: 20px;
  }

  .value-card-image {
    width: 500px; /* PCの時は固定幅 */
    flex-shrink: 0; /* 縮まないように */
  }

  .lower-page .hero__title {
    font-size: 32px;
    margin: 10px 0 0;
  }
}

/* 1024 ~ */
@media (1024px <= width) {
  /* 本来は不要な定義だが、空のブロックは stylelint でエラーになるため、ダミーとして残す。開発時に不要な定義を削除する。 */
  main {
    padding: 40px var(--pc-content-padding) 80px;
  }
}

/* 1280 */
@media (1280px <= width) {
  main {
    max-width: var(--max-content-width);
    margin: 0 auto;
  }
}

/* 1440 ~ */
@media (1440px <= width) {
  /* 本来は不要な定義だが、空のブロックは stylelint でエラーになるため、ダミーとして残す。開発時に不要な定義を削除する。 */
  main {
    max-width: var(--max-content-width);
  }
}

/* テキストリンクコンポーネント */

.btn-textlink {
  font-size: var(--font-size-pc-base);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-bottom: 1px solid var(--color-primary);
}

.btn-textlink img {
  width: 20px;
  height: 20px;
}

.btn-textlink:hover {
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

@media (768px > width) {
  .btn-textlink {
    font-size: var(--font-size-sp-base);
    justify-content: space-between;
  }

  .btn-textlink img {
    width: 15px;
    height: 15px;
  }

  .menu__sp-only {
    display: block;
  }
}
