@charset "UTF-8";

/* ==========================================================
   当楽団についてページ
   デザインカンプ（abourUs.png・幅1024px）を基準にしています。

   【フレキシブル対応の仕組み】
   --u はカンプの1pxで、ページの幅に比例します。
   文字・画像・模様・余白はすべて calc(数値 * var(--u)) で指定しています。
   ・画面幅 768px 以上 … 本文はHTMLの文字。通常メニュー
   ・画面幅 767px 以下 … カンプと同じ見た目。ハンバーガーメニュー
   ========================================================== */
:root {
  --navy: #17305f;
  --blue: #1d6fc8;
  --line: #c3dbf3;
  --bg: #fdfcf6;
  --font-base: "Noto Sans JP", sans-serif;
  --font-title: "Zen Maru Gothic", "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/about/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(50 * var(--u));
}

.global-nav li {
  flex: 1;
}

.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.08em;
  color: var(--navy);
  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(330 * var(--u));
  background: url("images/about/hero.png") 0 0 / 100% 100% no-repeat;
}

/* ==========================================================
   本文セクション（見出し・音符・写真は背景画像）
   ========================================================== */
.sec {
  background: 0 0 / 100% auto no-repeat var(--bg);
}

.sec__text {
  font-size: calc(18 * var(--u));
  line-height: calc(26 * var(--u));
  white-space: nowrap;
}

.sec--name {
  min-height: calc(208 * var(--u));
  padding: calc(57 * var(--u)) 0 0 calc(117 * var(--u));
  background-image: url("images/about/name-bg.png");
}

.sec--name .sec__text {
  letter-spacing: 0.083em;
}

.sec--meaning {
  min-height: calc(482 * var(--u));
  padding: calc(68 * var(--u)) 0 0 calc(111 * var(--u));
  background-image: url("images/about/meaning-bg.png");
}

.sec--meaning .sec__text {
  letter-spacing: 0.03em;
}

.sec--meaning p + p {
  margin-top: calc(19 * var(--u));
}

.sec--activity {
  min-height: calc(152 * var(--u));
  padding: calc(65 * var(--u)) 0 0 calc(111 * var(--u));
  background-image: url("images/about/activity-bg.png");
}

.sec--activity .sec__text {
  letter-spacing: 0.045em;
}

/* ==========================================================
   メンバー数
   ========================================================== */
.member {
  position: relative;
  height: calc(128 * var(--u));
  background: url("images/about/member-bg.png") 0 0 / 100% 100% no-repeat;
}

.member__text {
  position: absolute;
  top: calc(27 * var(--u));
  left: calc(459 * var(--u));
  font-size: calc(17.4 * var(--u));
  line-height: calc(30 * var(--u));
  white-space: nowrap;
}

/* ==========================================================
   フッター
   ========================================================== */
.footer {
  position: relative;
  height: calc(96 * var(--u));
  background: url("images/about/footer-bg.png") 0 0 / 100% 100% no-repeat;
  color: #fff;
}

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

.footer__copy {
  position: absolute;
  top: calc(44 * var(--u));
  right: calc(56 * 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);
  }

  /* 文字入りの画像に切り替え */
  .sec {
    padding: 0;
    overflow: hidden;
  }

  .sec__text {
    opacity: 0;
  }

  .sec--name { height: calc(208 * var(--u)); background-image: url("images/about/name.png"); }
  .sec--meaning { height: calc(482 * var(--u)); background-image: url("images/about/meaning.png"); }
  .sec--activity { height: calc(152 * var(--u)); background-image: url("images/about/activity.png"); }

  .footer {
    background-image: url("images/about/footer.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(96 * var(--u));
  background-color: #014e99;
}
