@charset "UTF-8";
/*
Theme Name: ささな管楽アンサンブル
Description: 北海道江別市で活動する吹奏楽団「ささな管楽アンサンブル」のオリジナルテーマ。このファイルはトップページ（front-page.php）のスタイルも兼ねています。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sasana
*/

/* ==========================================================
   基本設定
   デザインカンプ（幅872px）の位置・サイズを基準にしています。

   【フレキシブル対応の仕組み】
   html の font-size を画面幅に比例させ、rem で指定した文字・アイコン・
   余白・線をすべて一緒に伸縮させています。--u はカンプの1px（0.0625rem）です。
   ・画面幅 768px 以上 … 幅872pxで16px、画面幅に比例（通常メニュー）
   ・画面幅 767px 以下 … カンプと同じ見た目で画面幅に比例（ハンバーガーメニュー）
   ========================================================== */
:root {
  --navy: #1b2f5e;
  --navy-deep: #0d2f6c;
  --blue: #1d6fc8;
  --blue-light: #4b9fe6;
  --line: #c3dbf3;
  --cream: #fbf6ec;
  --sky: #eaf4fc;
  --pink: #fce5e7;
  --red: #e0453f;
  --text: #1f2a3c;
  --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;
  --font-script: "Satisfy", cursive;
  /* カンプ1pxあたりの大きさ（html の font-size に連動して伸縮） */
  --u: 0.0625rem;
  /* 左右の余白（スマホでは内容の幅に応じて 0 になる） */
  --g: max(0px, (100% - 54.5rem) / 2);
}

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

html {
  /* 幅872pxで16px。画面幅に比例（上限なし） */
  font-size: 1.83486vw;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1, h2, p {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ==========================================================
   共通：セクション見出し
   ========================================================== */
.sec-title {
  display: grid;
  grid-template-columns: calc(40 * var(--u)) auto;
  column-gap: calc(13 * var(--u));
  align-items: center;
}

.sec-title__icon {
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  fill: url(#grad-note);
}

.sec-title__ja {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: calc(30 * var(--u));
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.sec-title__en {
  grid-column: 2;
  justify-self: start;
  margin: calc(6 * var(--u)) 0 0 calc(-2 * var(--u));
  font-family: var(--font-script);
  font-size: calc(22 * var(--u));
  line-height: 1.1;
  color: var(--blue);
  transform: rotate(-3deg);
  transform-origin: left center;
}

.sec-title--white .sec-title__icon { fill: #fff; }
.sec-title--white .sec-title__ja,
.sec-title--white .sec-title__en { color: #fff; }

/* ==========================================================
   ヘッダー
   ========================================================== */
.header {
  position: relative;
  height: calc(184 * var(--u));
  background:
    radial-gradient(ellipse 60% 90% at 75% 10%, #fff 0%, transparent 70%),
    linear-gradient(100deg, #e9f3fc 0%, #f6faff 45%, #e6f1fb 100%);
  z-index: 10;
}

.header__staff {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.header__logo {
  display: block;
  position: absolute;
  top: calc(8 * var(--u));
  left: calc(var(--g) + 42 * var(--u));
  width: calc(245 * var(--u));
}

.header__logo img {
  width: 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 75%, transparent 100%);
}

.header__center {
  position: absolute;
  top: calc(24 * var(--u));
  left: calc(var(--g) + 300 * var(--u));
  width: calc(530 * var(--u));
}

.header__title {
  margin-left: calc(66 * var(--u));
  /* 他のページのヘッダー画像（各フォルダの header.png）の団体名と同じ書体 */
  font-family: "M PLUS Rounded 1c", var(--font-title);
  font-weight: 700;
  font-size: calc(35 * var(--u));
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--navy);
  white-space: nowrap;
}

.header__instruments {
  width: 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ハンバーガーボタン */
.menu-btn {
  display: none;
  position: absolute;
  top: calc(30 * var(--u));
  left: calc(var(--g) + 798 * var(--u));
  width: 2.125rem;
  height: 1.625rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.21875rem;
  border-radius: 0.125rem;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 0.6875rem; }
.menu-btn span:nth-child(3) { top: 1.375rem; }

.menu-btn.is-open span:nth-child(1) { transform: translateY(0.6875rem) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-0.6875rem) rotate(-45deg); }

/* 通常メニュー（スマホ幅より大きい画面） */
.global-nav {
  position: absolute;
  top: calc(140 * var(--u));
  left: 0;
  right: 0;
  height: calc(44 * var(--u));
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--line);
}

.global-nav ul {
  display: flex;
  height: 100%;
  max-width: 54.5rem;
  margin: 0 auto;
  padding: 0 calc(42 * 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.08em;
  color: var(--navy);
  white-space: nowrap;
  transition: color 0.2s;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  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 {
  transform: scaleX(1);
}

/* ==========================================================
   メインビジュアル
   ========================================================== */
.hero {
  position: relative;
  --hero-img: calc(300 * var(--u));
  height: calc(var(--hero-img) + 100 * var(--u));
  /* 下端は白にして、波との境目に線が出ないようにする */
  background: linear-gradient(#0f3577 90%, #fff 90%);
}

.hero__img {
  width: 100%;
  height: var(--hero-img);
  object-fit: cover;
  object-position: center top;
  /* 写真の下端を帯の紺色になじませる */
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}

.hero__band {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(200 * var(--u));
}

.hero__note {
  position: absolute;
  fill: #fff;
}

.hero__note--left {
  top: calc(var(--hero-img) + 4 * var(--u));
  left: calc(var(--g) + 42 * var(--u));
  width: calc(38 * var(--u));
  height: calc(40 * var(--u));
}

.hero__note--right {
  top: calc(var(--hero-img) - 38 * var(--u));
  left: calc(var(--g) + 794 * var(--u));
  width: calc(34 * var(--u));
  height: calc(36 * var(--u));
}

.hero__text {
  position: absolute;
  top: calc(var(--hero-img) + 12 * var(--u));
  left: calc(var(--g) + 122 * var(--u));
  color: #fff;
  transform: rotate(-3.5deg);
  transform-origin: left top;
}

/* キャッチはデザインカンプの手書き文字（白・#ffffff）をそのまま透過PNGで使用 */
.hero__catch {
  position: absolute;
  top: calc(var(--hero-img) - 62 * var(--u));
  left: calc(var(--g) + 112 * var(--u));
  width: calc(596 * var(--u));
}

.hero__catch img {
  width: 100%;
}

.hero__lead {
  font-size: calc(16 * var(--u));
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.05em;
  text-shadow: 0 0.0625rem 0.25rem rgba(0, 20, 60, 0.4);
}

/* ==========================================================
   新着ニュース
   ========================================================== */
.news {
  position: relative;
  padding:
    calc(10 * var(--u))
    calc(var(--g) + 60 * var(--u))
    calc(20 * var(--u))
    calc(var(--g) + 62 * var(--u));
  background: linear-gradient(#fff, #f8fbfe);
}

.news .sec-title {
  padding-bottom: calc(8 * var(--u));
}

/* 見出し下のライン */
.news .sec-title::after {
  content: "";
  position: absolute;
  top: calc(79 * var(--u));
  left: calc(var(--g) + 130 * var(--u));
  right: calc(var(--g) + 60 * var(--u));
  height: 0.09375rem;
  background: var(--line);
}

.news__list {
  margin-top: calc(4 * var(--u));
}

.news__item {
  border-bottom: 0.09375rem solid var(--line);
}

.news__item:last-child {
  border-bottom: none;
}

.news__item a {
  position: relative;
  display: block;
  margin: calc(10 * var(--u)) 0;
  padding: 0 calc(40 * var(--u)) 0 calc(27 * var(--u));
  transition: background 0.2s;
}

/* 左の青いバー */
.news__item a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.125rem;
  bottom: 0.125rem;
  width: 0.3125rem;
  border-radius: 0.1875rem;
  background: linear-gradient(#2d86da, #1a6cc6);
}

/* 右の矢印 */
.news__item a::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--navy);
  border-right: 0.125rem solid var(--navy);
  transform: translateY(-50%) rotate(45deg);
}

.news__item a:hover {
  background: rgba(75, 159, 230, 0.07);
}

.news__item time {
  display: block;
  font-size: max(12px, 13.5 * var(--u));
  letter-spacing: 0.03em;
  color: var(--navy);
}

.news__title {
  display: block;
  font-size: calc(16.5 * var(--u));
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* ==========================================================
   演奏会情報
   ========================================================== */
.concert {
  position: relative;
  overflow: hidden;
  min-height: calc(225 * var(--u));
  padding: calc(22 * var(--u)) calc(var(--g) + 62 * var(--u)) calc(30 * var(--u));
  background: linear-gradient(180deg, #fbf7ef 0%, var(--cream) 100%);
}

/* 見出し下の点線 */
.concert .sec-title::after {
  content: "";
  position: absolute;
  top: calc(95 * var(--u));
  left: calc(var(--g) + 145 * var(--u));
  width: calc(320 * var(--u));
  border-top: 0.09375rem dotted #a9cdee;
}

.concert .sec-title__en {
  transform: rotate(-5deg);
}

.concert__notes {
  position: absolute;
  top: calc(20 * var(--u));
  left: calc(var(--g) + 450 * var(--u));
  width: calc(250 * var(--u));
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 80%, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 80%, transparent);
}

.concert__trumpet {
  position: absolute;
  top: calc(30 * var(--u));
  left: calc(var(--g) + 690 * var(--u));
  width: calc(182 * var(--u));
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%), linear-gradient(transparent, #000 20%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 25%), linear-gradient(transparent, #000 20%);
  mask-composite: intersect;
}


.concert__body {
  position: relative;
  margin-top: calc(26 * var(--u));
  font-size: calc(19 * var(--u));
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* ==========================================================
   練習風景
   ========================================================== */
/* 写真の枠は画面幅いっぱいに広げる */
.practice {
  padding: calc(12 * var(--u)) calc(12 * var(--u)) 0 0;
}

.practice__frame {
  position: relative;
  height: calc(316 * var(--u));
  overflow: hidden;
  border-radius: 0 calc(42 * var(--u)) 0 0;
  background: #163f80;
}

.practice__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 左側の紺色のグラデーション */
.practice__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(14, 50, 112, 0.92) 0%,
      rgba(22, 66, 135, 0.75) 18%,
      rgba(22, 66, 135, 0.35) 30%,
      rgba(22, 66, 135, 0) 42%),
    linear-gradient(180deg, rgba(10, 30, 70, 0.15), rgba(10, 30, 70, 0) 30%);
}

.practice__heading {
  position: absolute;
  top: calc(26 * var(--u));
  left: calc(36 * var(--u));
}

.practice__heading .sec-title__ja {
  font-size: calc(32 * var(--u));
}

.practice__heading .sec-title__en {
  font-size: calc(21 * var(--u));
  transform: rotate(-4deg);
}

/* 見出し下の白いライン */
.practice__heading .sec-title::after {
  content: "";
  position: absolute;
  top: calc(84 * var(--u));
  left: calc(44 * var(--u));
  width: calc(300 * var(--u));
  height: 0.0625rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.practice__clef {
  position: absolute;
  top: calc(98 * var(--u));
  left: calc(-14 * var(--u));
  font-size: calc(42 * var(--u));
  line-height: 1;
  color: #fff;
  opacity: 0.85;
}

.practice__caption {
  position: absolute;
  right: calc(26 * var(--u));
  bottom: calc(24 * var(--u));
  font-family: var(--font-hand);
  font-size: calc(14.5 * var(--u));
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0.0625rem 0.3125rem rgba(0, 0, 0, 0.7);
  transform: rotate(-4deg);
  z-index: 1;
}

.practice__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: calc(40 * var(--u));
}

/* ==========================================================
   練習場所
   ========================================================== */
.place {
  padding: calc(22 * var(--u)) calc(var(--g) + 24 * var(--u)) 0 calc(var(--g) + 22 * var(--u));
}

.place__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(6 * var(--u));
  min-height: calc(176 * var(--u));
  isolation: isolate;
  padding: calc(14 * var(--u)) calc(24 * var(--u)) calc(14 * var(--u)) calc(30 * var(--u));
}

/* 水色の筆塗り風背景 */
.place__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(34 * var(--u));
  background: linear-gradient(90deg, #e6f1fb, #eef6fd);
  filter: url(#rough);
  z-index: -1;
}

.place__text {
  position: relative;
  flex: 1;
  min-width: 0;
}

.place__head {
  display: flex;
  align-items: flex-start;
  gap: calc(10 * var(--u));
  margin-bottom: calc(22 * var(--u));
}

/* 吹き出し型のピン */
.place__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #5cb0f0, #3a90dd);
}

.place__pin::after {
  content: "";
  position: absolute;
  left: calc(10 * var(--u));
  bottom: calc(-9 * var(--u));
  border-top: calc(16 * var(--u)) solid #3d93de;
  border-right: calc(12 * var(--u)) solid transparent;
  transform: rotate(8deg);
}

.place__pin svg {
  width: calc(30 * var(--u));
  fill: #fff;
}

.sec-title--sm {
  grid-template-columns: calc(24 * var(--u)) auto;
  column-gap: calc(4 * var(--u));
  margin-top: calc(6 * var(--u));
}

.sec-title--sm .sec-title__icon {
  width: calc(26 * var(--u));
  height: calc(30 * var(--u));
}

.sec-title--sm .sec-title__ja {
  font-size: calc(28 * var(--u));
}

.sec-title--sm .sec-title__en {
  margin-left: 0;
  font-size: calc(21 * var(--u));
  transform: rotate(-5deg);
}

/* 見出し下のライン */
.place .sec-title--sm::after {
  content: "";
  position: absolute;
  top: calc(71 * var(--u));
  left: calc(127 * var(--u));
  width: calc(300 * var(--u));
  height: 0.0625rem;
  background: linear-gradient(90deg, rgba(75, 159, 230, 0), #7fb8ec 50%, rgba(75, 159, 230, 0.3));
}

.place__desc {
  font-size: max(12px, 13.5 * var(--u));
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.place__star {
  color: var(--blue);
}

.place__address {
  margin-top: calc(4 * var(--u));
  padding-left: calc(18 * var(--u));
  font-size: max(12px, 12.5 * var(--u));
  font-weight: 500;
  color: var(--navy);
}

.place__map {
  flex-shrink: 0;
  width: calc(280 * var(--u));
  aspect-ratio: 280 / 152;
  overflow: hidden;
  border: 0.09375rem solid #b5d3f0;
  border-radius: calc(9 * var(--u));
  transition: opacity 0.2s;
}

.place__map:hover {
  opacity: 0.85;
}

.place__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   団員募集
   ========================================================== */
.recruit {
  padding: calc(18 * var(--u)) calc(var(--g) + 32 * var(--u)) 0 calc(var(--g) + 36 * var(--u));
}

.recruit__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(20 * var(--u));
  min-height: calc(158 * var(--u));
  isolation: isolate;
  padding: calc(16 * var(--u)) calc(40 * var(--u)) calc(22 * var(--u)) calc(30 * var(--u));
}

/* ピンクの筆塗り風背景 */
.recruit__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius:
    calc(40 * var(--u)) calc(26 * var(--u))
    calc(36 * var(--u)) calc(30 * var(--u));
  background: linear-gradient(90deg, #fbe0e3, #fdeaec 60%, #fce4e7);
  filter: url(#rough);
  z-index: -1;
}

.recruit__head {
  display: flex;
  align-items: center;
}

.recruit__icon {
  width: calc(44 * var(--u));
  height: calc(36 * var(--u));
  flex-shrink: 0;
  fill: var(--red);
}

.recruit__note {
  width: calc(24 * var(--u));
  height: calc(28 * var(--u));
  flex-shrink: 0;
  margin: 0 calc(4 * var(--u)) 0 calc(6 * var(--u));
  fill: var(--navy);
}

.recruit__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: calc(30 * var(--u));
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--navy);
  white-space: nowrap;
}

.recruit__en {
  margin: calc(-10 * var(--u)) 0 0 calc(14 * var(--u));
  font-family: var(--font-script);
  font-size: calc(19 * var(--u));
  color: var(--navy);
  white-space: nowrap;
  transform: rotate(-6deg);
}

.recruit__lead {
  margin: calc(8 * var(--u)) 0 0 calc(70 * var(--u));
  font-size: calc(15.5 * var(--u));
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
}

.recruit__btn {
  position: relative;
  display: block;
  width: calc(307 * var(--u));
  max-width: 100%;
  margin: calc(10 * var(--u)) 0 0 calc(70 * var(--u));
  padding: calc(7 * var(--u)) calc(50 * var(--u)) calc(7 * var(--u)) 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f8be0 0%, #1a6fcb 100%);
  box-shadow: 0 0.125rem 0.3125rem rgba(26, 111, 203, 0.35);
  color: #fff;
  font-size: calc(16.5 * var(--u));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}

.recruit__btn::after {
  content: "";
  position: absolute;
  right: calc(24 * var(--u));
  top: 50%;
  width: 0.5625rem;
  height: 0.5625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.recruit__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.recruit__message {
  position: relative;
  flex-shrink: 0;
  margin: calc(10 * var(--u)) 0 0;
  padding-right: calc(40 * var(--u));
}

.recruit__message p {
  font-family: var(--font-hand);
  font-size: calc(19 * var(--u));
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--blue);
  transform: rotate(-11deg);
}

.recruit__message p span {
  display: inline-block;
  margin-left: calc(26 * var(--u));
  font-size: calc(21 * var(--u));
  padding-bottom: calc(4 * var(--u));
  border-bottom: 0.125rem solid #3a8be0;
  border-radius: 0 0 40% 10% / 0 0 0.375rem 0.125rem;
}

.recruit__notes {
  position: absolute;
  top: calc(-40 * var(--u));
  right: calc(54 * var(--u));
  font-size: calc(18 * var(--u));
  color: var(--red);
}

.recruit__notes span {
  margin-left: calc(18 * var(--u));
  position: relative;
  top: calc(-6 * var(--u));
}

.recruit__msg-note {
  position: absolute;
  top: calc(-16 * var(--u));
  right: 0;
  width: calc(22 * var(--u));
  height: calc(26 * var(--u));
  fill: var(--navy);
}

/* ==========================================================
   フッター
   ========================================================== */
.footer {
  position: relative;
  margin-top: calc(4 * var(--u));
  color: #fff;
}

.footer__wave {
  display: block;
  width: 100%;
  height: calc(40 * var(--u));
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--u));
  margin-top: -1px;
  padding:
    calc(10 * var(--u))
    calc(var(--g) + 50 * var(--u))
    calc(40 * var(--u))
    calc(var(--g) + 58 * var(--u));
  background: var(--navy-deep);
}

.footer__insta {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  font-size: calc(15 * var(--u));
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.footer__insta:hover {
  opacity: 0.8;
}

.footer__insta-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: calc(38 * var(--u));
  height: calc(38 * var(--u));
  border-radius: calc(11 * var(--u));
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.footer__insta-icon svg {
  width: calc(28 * var(--u));
}

.footer__copy {
  font-size: max(11px, 11 * var(--u));
  letter-spacing: 0.04em;
  opacity: 0.95;
}

/* ==========================================================
   スマートフォン（767px以下）
   デザインカンプ（sasana_top.png）と同じ見た目にするため、
   セクションごとに切り出した画像（images/sp/）を背景に使い、
   画面幅に比例して全体を縮小します。
   HTMLの文字は透明にして残し（読み上げ・検索用）、リンクは画像の上に重ねています。
   ニュースと演奏会の本文は、更新しやすいよう文字のまま表示します。
   ========================================================== */
@media (max-width: 767px) {
  body {
    container-type: inline-size;
    --u: calc(100cqw / 872);
    --g: 0px;
  }

  /* ヘッダー */
  .header {
    height: auto;
    aspect-ratio: 872 / 140;
    background: url("images/sp/header.png") 0 0 / 100% 100% no-repeat;
  }

  .header__staff {
    display: none;
  }

  .header__logo,
  .header__center {
    opacity: 0;
  }

  /* ハンバーガーボタン */
  .menu-btn {
    display: block;
    top: calc(29 * var(--u));
    left: auto;
    right: calc(40 * var(--u));
    width: calc(33 * var(--u));
    height: calc(25 * var(--u));
  }

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

  .menu-btn span {
    height: calc(4 * var(--u));
    border-radius: 0;
    background: #103d6b;
  }

  .menu-btn span:nth-child(2) { top: calc(10 * var(--u)); }
  .menu-btn span:nth-child(3) { top: calc(21 * var(--u)); }
  .menu-btn.is-open span:nth-child(1) { transform: translateY(calc(10.5 * var(--u))) rotate(45deg); }
  .menu-btn.is-open span:nth-child(3) { transform: translateY(calc(-10.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);
  }

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

  .hero > * {
    opacity: 0;
  }

  /* 新着ニュース（見出しは画像、記事は文字） */
  .news {
    padding: calc(85 * var(--u)) calc(60 * var(--u)) calc(22 * var(--u)) calc(62 * var(--u));
    background: url("images/sp/news-head.png") 0 0 / 100% auto no-repeat, #fff;
  }

  .news .sec-title {
    position: absolute;
    opacity: 0;
  }

  .news__list {
    margin-top: 0;
  }

  .news__item {
    border-bottom: calc(2 * var(--u)) solid #d3e9f9;
  }

  .news__item a {
    margin: calc(9 * var(--u)) 0 calc(11 * var(--u));
    padding: 0 calc(40 * var(--u)) 0 calc(28 * var(--u));
    height: calc(46 * var(--u));
  }

  .news__item + .news__item a {
    margin-top: calc(13 * var(--u));
  }

  .news__item:last-child a {
    margin-bottom: 0;
  }

  .news__item a::before {
    top: 0;
    bottom: 0;
    width: calc(6 * var(--u));
    border-radius: calc(3 * var(--u));
    background: linear-gradient(#1f8ddc, #0882d7);
  }

  .news__item a::after {
    right: calc(8 * var(--u));
    width: calc(11 * var(--u));
    height: calc(11 * var(--u));
    border-width: calc(2.5 * var(--u)) calc(2.5 * var(--u)) 0 0;
    border-color: #103d6b;
  }

  .news__item time {
    font-size: calc(14.4 * var(--u));
    line-height: calc(20 * var(--u));
    color: #0e2148;
  }

  .news__title {
    font-size: calc(16.5 * var(--u));
    line-height: calc(26 * var(--u));
    color: #0e2148;
  }

  /* 演奏会情報（背景は画像、本文は文字） */
  .concert {
    height: calc(227 * var(--u));
    min-height: 0;
    padding: 0;
    background: url("images/sp/concert.png") 0 0 / 100% 100% no-repeat;
  }

  .concert__notes,
  .concert__trumpet {
    display: none;
  }

  .concert .sec-title {
    position: absolute;
    opacity: 0;
  }

  .concert__body {
    position: absolute;
    top: calc(111.5 * var(--u));
    left: calc(62 * var(--u));
    margin: 0;
    font-size: calc(20.4 * var(--u));
    line-height: calc(29 * var(--u));
    color: #0e2148;
    white-space: nowrap;
  }

  /* 練習風景 */
  .practice {
    height: calc(335 * var(--u));
    padding: 0;
    overflow: hidden;
    background: url("images/sp/practice.png") 0 0 / 100% 100% no-repeat;
  }

  .practice__frame {
    opacity: 0;
  }

  /* 練習場所（地図のリンクを画像の上に重ねる） */
  .place {
    position: relative;
    height: calc(195 * var(--u));
    padding: 0;
    overflow: hidden;
    background: url("images/sp/place.png") 0 0 / 100% 100% no-repeat;
  }

  .place__inner {
    position: static;
    opacity: 0;
  }

  .place__map {
    position: absolute;
    top: calc(24 * var(--u));
    left: calc(545 * var(--u));
  }

  /* 団員募集（ボタンのリンクを画像の上に重ねる） */
  .recruit {
    position: relative;
    height: calc(165 * var(--u));
    padding: 0;
    overflow: hidden;
    background: url("images/sp/recruit.png") 0 0 / 100% 100% no-repeat;
  }

  .recruit__inner {
    position: static;
    opacity: 0;
  }

  .recruit__btn {
    position: absolute;
    top: calc(98 * var(--u));
    left: calc(136 * var(--u));
    height: calc(40 * var(--u));
    margin: 0;
  }

  /* フッター（インスタグラムのリンクを画像の上に重ねる） */
  .footer {
    height: calc(107 * var(--u));
    margin-top: 0;
    overflow: hidden;
    background: url("images/sp/footer.png") 0 0 / 100% 100% no-repeat;
  }

  .footer__wave {
    display: none;
  }

  .footer__inner {
    opacity: 0;
    background: none;
  }

  .footer__insta {
    position: absolute;
    top: calc(30 * var(--u));
    left: calc(58 * var(--u));
    width: calc(362 * var(--u));
    height: calc(40 * var(--u));
  }
}

/* ==========================================================
   WordPress用：演奏会情報（「演奏会」タグのお知らせ）の本文
   ========================================================== */
.concert__body > * {
  margin: 0;
}

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

/* パソコン：上の波（SVG）の下から、フッターと同じ紺色で下まで塗る */
.footer {
  flex-grow: 1;
  background: linear-gradient(to bottom, transparent calc(40 * var(--u) - 1px), var(--navy-deep) calc(40 * var(--u) - 1px));
}

/* スマホ：フッター画像は元の高さのまま上に置き、下は画像の下端と同じ色で塗る */
@media (max-width: 767px) {
  .footer {
    background: url("images/sp/footer.png") 0 0 / 100% calc(107 * var(--u)) no-repeat, #01366d;
  }
}
