/* =============================================================
* style.css
*
* [目次]
* 1. 変数・リセット
* 2. レイアウト（ページ全体・サイドバー）
* 3. コンポーネント
* 4. メディアクエリ（スマホ）
* ============================================================= */

:root {
  /* ============================
  エリアカラー定義
  ============================ */
  .wp-area-block[data-area="北海道"] { --area-color: #089606; }
  .wp-area-block[data-area="東北"] { --area-color: #03B277; }
  .wp-area-block[data-area="関東"] { --area-color: #D65501; }
  .wp-area-block[data-area="中部"] { --area-color: #B41A02; }
  .wp-area-block[data-area="近畿"] { --area-color: #B17103; }
  .wp-area-block[data-area="中国"] { --area-color: #00468B; }
  .wp-area-block[data-area="九州"] { --area-color: #B30037; }
}

/* =========================================================
  PC用デザイン
========================================================= */

/* ============================
  WORLD PLAZA ヘッダー用
  ============================ */
.header .pc-image {
  display: flex;
}
.header .site-title img {
  max-width: 500px !important;
}

.header .header-inner {
  align-items: flex-start;
}

/* ============================
  WORLD PLAZA フッダー用
  ============================ */
.footer .footer-info-right-section {
    display: flex;
    justify-content: end;
    padding-right: 10px;
}

.footer .main-navigation .menu-item {
  border-left: 1px solid #ccc;
}
.footer .main-navigation .menu-item:last-child {
  border-right: 1px solid #ccc;
}

.footer .footer-container a {
  border-left: 1px solid #ccc;
  padding: 0 5px;
}
.footer .footer-container a:last-child {
  border-right: 1px solid #ccc;
}

/* ============================
  WORLD PLAZA メインコンテンツ用
  ============================ */
main {
  position: relative;
  width: 100%;
}

/* ============================
  WORLD PLAZA トップ用
  ============================ */
.wp-backgound {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.inner-container {
  position: relative;
  z-index: 1;
  width: 80%;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.title-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-container p {
  margin: 0;
  color: #000;
  font-size: clamp(60px, 9vw, 125px);
  font-weight: bold;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.lang-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  padding-bottom: 60px;
}

.lang-button {
  width: 100%;
  max-width: 172px;
  aspect-ratio: 1 / 1;
  align-self: end;
  justify-self: center;
  text-decoration: none;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  box-sizing: border-box;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-button:hover,
.lang-button:focus-visible {
  transform: translateY(-8px);
  background-color: #f5f9ff;
  box-shadow:
    0 0 0 4px rgba(0, 72, 147, 0.25),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.lang-button:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-button p {
  position: relative;
  margin: 0;
  color: #000;
  font-size: clamp(18px, 2vw, 32px);
  font-weight: bold;
}

.lang-button p::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 16px);
  transform: translateX(-50%) rotate(90deg);
  border-style: solid;
  border-width: 8px 0 8px 8px;
  border-color: transparent transparent transparent #004893;
}

.wp-area-block {
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 10px 12px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.wp-japan-map img {
  width: 100% !important;
  height: 100% !important;
}

/* ============================
  【WP】エリアブロック
  ============================ */
.wp-area-block .area-select {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #333;
  margin-bottom: 5px !important;
  border-bottom: 2px solid;
}

.subway-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-bottom: 5px;
}

/* 矢印 */
.area-icon {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #2ea43d;
  /* 微調整 */
  transform: translateY(1px);
}

/* 路線名 */
.wp-area-block .subway-name {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 14px;
  color: #000;
  line-height: 1.5;
}

/* ======================
   エリア別タイトルカラー変更
====================== */
.wp-area-block .area-select {
  color: var(--area-color);
}

.wp-area-block .area-icon {
  border-left-color: var(--area-color);
}

/* ============================
  リンクブロック
  ============================ */
.link-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-sizing: border-box;
}

.link-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.link-card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.link-card-title {
  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 44px;
  padding: 8px 10px;
  box-sizing: border-box;

  background: #8a8a8a;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  flex-grow: 1;
}

/* 左の小さい四角アイコン */
.link-card-icon {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid #d8e5ff;
  box-sizing: border-box;
}

/* ============================
  【ＷＰ】ページタイトル
  ============================ */
.wp-page-title {
  width: 100%;
  height: 56px;
  line-height: 56px;
  padding-left: 24px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background:
    radial-gradient(ellipse at 62% 100%, rgba(120,160,210,.45) 0%, rgba(70,110,170,.35) 28%, transparent 55%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,255,255,.45) 3px, transparent 4px),
    linear-gradient(90deg, #0b2f75 0%, #123b86 45%, #1d4f9a 100%);
  border-radius: 3px 3px 0 0;
  border-bottom: 4px solid #c7d5ea;
  box-sizing: border-box;
  margin: 0 0 10px 0;
}

/* =========================================================
  スマホ用デザイン
========================================================= */
@media (max-width: 929px) {
  .header .site-title {
    width: 100%;
  }
  .header .pc-image {
    display: flex;
  }
  .header .header-inner {
    padding: 15px 20px 15px 0;
  }
  .header .site-title img {
    width: 100% !important;
    box-sizing: border-box;
    padding: 5px 10px 0 0;
    max-width: 500px !important;
  }

  .inner-container {
    width: 90%;
  }

  .lang-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 行中央揃え */

    gap: 10px;
    padding-bottom: 40px;
  }

  .lang-button {
    width: calc((100% - 20px) / 3);
    aspect-ratio: 1 / 1;

    max-width: none;
  }

  .mt-be-columns {
    flex-direction: column;
  }

  .layout-6 {
    width: 100%;
  }

  .wp-area-block {
    width: 100%;
  }
}