@charset "UTF-8";

/* ==========================================================
   団員専用ページ
   デザインカンプ（MembersOnly.png・幅1024px）を基準にしています。

   【フレキシブル対応の仕組み】
   --u はカンプの1pxで、ページの幅に比例します。
   文字・画像・模様・余白はすべて calc(数値 * var(--u)) で指定しています。
   ・画面幅 768px 以上 … 通常メニュー
   ・画面幅 767px 以下 … カンプと同じ見た目。ハンバーガーメニュー

   見出し・説明・URLはどの幅でもHTMLの文字です。
   1件ごとの .link-item を繰り返して並べます（件数が増えても同じデザイン）。
   ========================================================== */
:root {
  --navy: #0d1f5c;
  --blue: #1d6fc8;
  --line: #c3dbf3;
  --bg: #fdfcf6;
  --font-base: "Noto Sans JP", sans-serif;
  --font-title: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-hand: "Yusei Magic", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  container-type: inline-size;
  --u: calc(100cqw / 1024);
  margin: 0;
  font-family: var(--font-base);
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, p {
  margin: 0;
}

/* 画像に含まれている文字を、読み上げ・検索用に残す */
.sr-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================
   ヘッダー
   ========================================================== */
.header {
  position: relative;
  height: calc(184 * var(--u));
  background: url("images/members/header.png") 0 0 / 100% auto no-repeat;
  z-index: 10;
}

.header__logo {
  position: absolute;
  top: calc(10 * var(--u));
  left: calc(50 * var(--u));
  width: calc(210 * var(--u));
  height: calc(120 * var(--u));
}

.menu-btn {
  display: none;
}

/* 通常メニュー */
.global-nav {
  position: absolute;
  top: calc(134 * var(--u));
  left: 0;
  right: 0;
  height: calc(50 * var(--u));
  background: #fff;
  border-top: 1px solid var(--line);
}

.global-nav ul {
  display: flex;
  height: 100%;
  padding: 0 calc(40 * var(--u));
}

.global-nav li {
  flex: 1 1 auto;
}

.global-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: calc(16 * var(--u));
  letter-spacing: 0.06em;
  color: #17305f;
  white-space: nowrap;
  transition: color 0.2s;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: calc(6 * var(--u));
  height: calc(2 * var(--u));
  border-radius: calc(2 * var(--u));
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.global-nav a:hover {
  color: var(--blue);
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ==========================================================
   メインビジュアル
   ========================================================== */
.hero {
  height: calc(350 * var(--u));
  background: url("images/members/hero.png") 0 0 / 100% 100% no-repeat;
}

/* ==========================================================
   団員専用リンク一覧
   ========================================================== */
.links {
  padding: calc(17 * var(--u)) 0 calc(20 * var(--u));
}

.link-item {
  position: relative;
  padding-top: calc(57 * var(--u));
}

.link-item + .link-item {
  margin-top: calc(58 * var(--u));
}

/* 右上の音符の絵（奇数・偶数番目で絵が違います） */
.link-item::after {
  content: "";
  position: absolute;
  top: calc(13 * var(--u));
  left: calc(785 * var(--u));
  width: calc(200 * var(--u));
  height: calc(165 * var(--u));
  background: url("images/members/deco-odd.png") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}

.link-item:nth-child(even)::after {
  top: calc(6 * var(--u));
  height: calc(160 * var(--u));
  background-image: url("images/members/deco-even.png");
}

/* 見出し：青い筆の帯（文字の長さに合わせて伸びる） */
.link-item__name {
  position: absolute;
  top: 0;
  left: calc(31 * var(--u));
  min-width: calc(569 * var(--u));
  height: calc(97 * var(--u));
  padding: calc(11 * var(--u)) calc(50 * var(--u)) 0 calc(23 * var(--u));
  border-style: solid;
  border-width: 0 calc(18 * var(--u)) 0 calc(80 * var(--u));
  border-image: url("images/members/banner.png") 0 40 0 80 fill / 0 calc(18 * var(--u)) 0 calc(80 * var(--u)) stretch;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: calc(34 * var(--u));
  line-height: calc(86 * var(--u));
  letter-spacing: 0.09em;
  color: #fff;
  white-space: nowrap;
  z-index: 1;
}

/* 水色のカード */
.link-item__card {
  position: relative;
  margin: 0 calc(33 * var(--u)) 0 calc(47 * var(--u));
  padding: calc(58 * var(--u)) calc(35 * var(--u)) calc(34 * var(--u)) calc(54 * var(--u));
  background: linear-gradient(180deg, #edf8fb 0%, #f0f9fc 100%);
  border-radius: calc(20 * var(--u));
  box-shadow: 0 calc(2 * var(--u)) calc(10 * var(--u)) rgba(120, 180, 230, 0.12);
}

.link-item__desc {
  max-width: calc(490 * var(--u));
  font-size: calc(21.5 * var(--u));
  line-height: calc(36 * var(--u));
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  color: var(--navy);
}

.link-item__desc p {
  margin: 0;
}

/* ボタンの位置の基準（URLと区切り線は削除済み） */
.link-item__foot {
  position: relative;
  width: calc(490 * var(--u));
  height: calc(28 * var(--u));
  margin-top: calc(36 * var(--u));
}

/* ボタン（左に外部リンクのアイコン）：区切り線の高さにそろえる */
.link-item__btn {
  position: absolute;
  top: calc(-33 * var(--u));
  right: calc(-366 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(281 * var(--u));
  height: calc(57 * var(--u));
  padding: 0 calc(58 * var(--u)) 0 calc(36 * var(--u));
  font-size: calc(19.5 * var(--u));
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #12309a;
  background: #fff;
  border: calc(2 * var(--u)) solid #4aa9f8;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.link-item__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-46 * var(--u));
  width: calc(30 * var(--u));
  height: calc(31 * var(--u));
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 30' fill='none' stroke='%231a4fa8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4.5H5.5a3 3 0 0 0-3 3V24a3 3 0 0 0 3 3H22a3 3 0 0 0 3-3v-7.5'/%3E%3Cpath d='M17 2.5h9.5V12'/%3E%3Cpath d='M26.5 2.5 13.5 15.5'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.link-item__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(30 * var(--u));
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  border-top: calc(2.5 * var(--u)) solid #12309a;
  border-right: calc(2.5 * var(--u)) solid #12309a;
  transform: translateY(-50%) rotate(45deg);
}

.link-item__btn:hover {
  background: #e8f4fe;
}

.link-item__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 calc(3 * var(--u)) rgba(29, 111, 200, 0.45);
}

/* URL（左に地球のアイコン）。文字からもリンクする */
.link-item__url {
  position: relative;
  padding-left: calc(53 * var(--u));
  font-size: calc(22 * var(--u));
  line-height: calc(34 * var(--u));
  color: #0a1a66;
  overflow-wrap: anywhere;
}

.link-item__url::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-7 * var(--u));
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%231f5ec4' stroke-width='2.6'%3E%3Ccircle cx='17' cy='17' r='15'/%3E%3Cellipse cx='17' cy='17' rx='6.5' ry='15'/%3E%3Cpath d='M2 17h30M4.5 9h25M4.5 25h25'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.link-item__url a {
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}

.link-item__url a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.link-item__url a:focus-visible {
  outline: calc(2 * var(--u)) solid rgba(29, 111, 200, 0.6);
  outline-offset: calc(3 * var(--u));
  border-radius: calc(4 * var(--u));
}

/* ==========================================================
   フッター（楽器のイラスト・波の模様は背景画像）
   ========================================================== */
.footer {
  position: relative;
  height: calc(326 * var(--u));
  background: url("images/members/bottom-bg.png") 0 0 / 100% 100% no-repeat;
  color: #fff;
}

.footer__insta {
  position: absolute;
  top: calc(225.5 * var(--u));
  left: calc(75 * var(--u));
  height: calc(52 * var(--u));
  padding-left: calc(67 * var(--u));
  font-size: calc(16 * var(--u));
  line-height: calc(52 * var(--u));
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer__copy {
  position: absolute;
  top: calc(244 * var(--u));
  right: calc(58 * var(--u));
  font-size: calc(12.5 * var(--u));
  line-height: calc(18 * var(--u));
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ==========================================================
   スマートフォン（767px以下）
   ========================================================== */
@media (max-width: 767px) {
  .header {
    height: calc(140 * var(--u));
    background-size: 100% 100%;
  }

  /* ハンバーガーボタン */
  .menu-btn {
    position: absolute;
    display: block;
    top: calc(31 * var(--u));
    right: calc(53 * var(--u));
    width: calc(33 * var(--u));
    height: calc(31 * var(--u));
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* 押しやすいようにタップ範囲を広げる */
  .menu-btn::before {
    content: "";
    position: absolute;
    inset: -12px -12px;
  }

  .menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: calc(5.5 * var(--u));
    background: #042d69;
    transition: transform 0.3s, opacity 0.3s;
  }

  .menu-btn span:nth-child(1) { top: 0; }
  .menu-btn span:nth-child(2) { top: calc(13 * var(--u)); }
  .menu-btn span:nth-child(3) { top: calc(25 * var(--u)); }

  .menu-btn.is-open span:nth-child(1) { transform: translateY(calc(12.5 * var(--u))) rotate(45deg); }
  .menu-btn.is-open span:nth-child(2) { opacity: 0; }
  .menu-btn.is-open span:nth-child(3) { transform: translateY(calc(-12.5 * var(--u))) rotate(-45deg); }

  /* ハンバーガーメニュー */
  .global-nav {
    top: 100%;
    left: auto;
    right: 8px;
    width: 240px;
    max-width: calc(100% - 16px);
    height: auto;
    background: rgba(13, 47, 108, 0.96);
    border-top: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(13, 47, 108, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .global-nav ul {
    display: block;
    height: auto;
    padding: 0;
  }

  .global-nav a {
    display: block;
    height: auto;
    padding: 13px 22px;
    font-family: var(--font-base);
    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav li:last-child a {
    border-bottom: none;
  }

  .global-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  /* フッターは文字入りの画像に切り替え */
  .footer {
    background-image: url("images/members/bottom.png");
  }

  .footer__insta,
  .footer__copy {
    color: transparent;
  }
}

/* ==========================================================
   ページが画面より短いとき（縦長のスマホなど）も、
   フッターを画面の一番下まで届かせる
   ========================================================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* スマホのアドレスバーの出入りに合わせた画面の高さ（対応ブラウザのみ） */
}

.footer {
  /* 余った高さはフッターが受け持つ（画像は元の高さのまま上に置き、下はフッター画像の下端と同じ青で塗る） */
  flex-grow: 1;
  margin-top: -1px; /* 上の内容との境目に、端数で細いすき間ができないように重ねる */
  background-size: 100% calc(326 * var(--u));
  background-color: #004f99;
}
