@charset "UTF-8";

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

   【フレキシブル対応の仕組み】
   --u はカンプの1pxで、ページの幅に比例します。
   文字・画像・模様・余白はすべて calc(数値 * var(--u)) で指定しています。
   ・画面幅 768px 以上 … 本文はHTMLの文字。通常メニュー
   ・画面幅 767px 以下 … カンプと同じ見た目。ハンバーガーメニュー
   募集要項の費用と入力欄は、どちらの幅でもHTMLです。
   ========================================================== */
:root {
  --navy: #0a1838;
  --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;
  /* ページが画面より短いとき（縦長のスマホなど）も、フッターを画面の一番下まで届かせる */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* スマホのアドレスバーの出入りに合わせた画面の高さ（対応ブラウザのみ） */
}

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/recruit/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: #17305f;
  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/recruit/hero.png") 0 0 / 100% 100% no-repeat;
}

/* ==========================================================
   ご自宅に眠っている楽器はありませんか？
   （見出し・手書きの一言・アイコンは背景画像）
   ========================================================== */
.intro {
  position: relative;
  height: calc(375 * var(--u));
  background: url("images/recruit/intro-bg.png") 0 0 / 100% 100% no-repeat;
}

.intro__text {
  position: absolute;
  top: calc(109.5 * var(--u));
  left: calc(107 * var(--u));
  font-size: calc(19 * var(--u));
  line-height: calc(29 * var(--u));
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.intro__text p + p {
  margin-top: calc(18.5 * var(--u));
}

.intro__text .tight {
  letter-spacing: -0.03em;
}

.intro__info {
  position: absolute;
  top: calc(285 * var(--u));
  left: calc(148 * var(--u));
  font-size: calc(17 * var(--u));
  line-height: calc(28 * var(--u));
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.intro__info li:last-child {
  margin-left: calc(-8 * var(--u));
  letter-spacing: 0.02em;
}

/* ==========================================================
   募集要項・見学申し込みフォーム
   （見出し・枠・項目名・ボタンの絵は背景画像）
   ========================================================== */
.main {
  position: relative;
  height: calc(550 * var(--u));
  background: url("images/recruit/main-bg.png") 0 0 / 100% 100% no-repeat;
}

/* 募集要項（費用は年度ごとに変わるため文字で表示） */
.guide {
  position: absolute;
  /* 募集の呼びかけ（4行）を追加したため、「募集要項」の帯の下から枠の下端までに
     収まるよう、文字と行間を詰めています */
  top: calc(113 * var(--u));
  left: calc(74 * var(--u));
  font-size: calc(13 * var(--u));
  line-height: calc(18 * var(--u));
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.guide ul {
  margin-left: calc(2 * var(--u));
}

.guide .sub {
  margin-left: calc(19 * var(--u));
}

.guide .last {
  margin-top: calc(1 * var(--u));
  line-height: calc(17 * var(--u));
}

/* 募集の呼びかけ（＜参考＞の上） */
.guide__appeal {
  margin-bottom: calc(5 * var(--u));
  padding-bottom: calc(5 * var(--u));
  font-size: calc(13.5 * var(--u));
  font-weight: 500;
  line-height: calc(18 * var(--u));
  color: var(--navy);
  border-bottom: calc(1.5 * var(--u)) dashed #9cc6ec;
}

.guide__lead {
  font-family: var(--font-title);
  font-size: calc(16.5 * var(--u));
  line-height: calc(22 * var(--u));
  letter-spacing: 0.06em;
  color: #e0453f;
}

.guide__part {
  font-size: calc(12.5 * var(--u));
  color: var(--blue);
}

/* 入力欄：デザインの枠の上に透明で重ねる */
.form__field {
  position: absolute;
  left: calc(643 * var(--u));
  width: calc(315 * var(--u));
  height: calc(35 * var(--u));
  padding: 0 calc(12 * var(--u));
  font-family: var(--font-base);
  font-size: calc(16 * var(--u));
  color: var(--navy);
  background: transparent;
  border: none;
  border-radius: calc(8 * var(--u));
  outline: none;
  transition: box-shadow 0.2s;
}

.form__field:focus {
  box-shadow: 0 0 0 calc(3 * var(--u)) rgba(29, 111, 200, 0.35);
}

.form__field--name { top: calc(84 * var(--u)); }
.form__field--kana { top: calc(130 * var(--u)); }
.form__field--mail { top: calc(176 * var(--u)); }
.form__field--inst { top: calc(223 * var(--u)); height: calc(36 * var(--u)); }
.form__field--date { top: calc(271 * var(--u)); height: calc(37 * var(--u)); }

.form__field--note {
  top: calc(321 * var(--u));
  height: calc(89 * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u));
  line-height: 1.5;
  resize: none;
}

/* 入力必須の案内（入力欄と送信ボタンの間） */
.form__note {
  position: absolute;
  top: calc(413 * var(--u));
  left: calc(562 * var(--u));
  width: calc(312 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
  letter-spacing: 0.06em;
  text-align: center;
  color: #e60f1a;
}

/* 送信ボタン：デザインのボタンの上に透明で重ねる */
.form__submit {
  position: absolute;
  top: calc(436 * var(--u));
  left: calc(562 * var(--u));
  width: calc(312 * var(--u));
  height: calc(44 * var(--u));
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.form__submit:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

/* ==========================================================
   フッター
   ========================================================== */
.footer {
  position: relative;
  /* 余った高さはフッターが受け持つ（画像は元の高さのまま上に置き、下はフッターと同じ青で塗る） */
  flex-grow: 1;
  height: calc(141 * var(--u));
  margin-top: -1px; /* 上の内容との境目に、端数で細いすき間ができないように重ねる */
  background: url("images/recruit/footer-bg.png") 0 0 / 100% calc(141 * var(--u)) no-repeat, #014f97;
  color: #fff;
}

.footer__insta {
  position: absolute;
  top: calc(40 * 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(55 * var(--u));
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

  /* 文字入りの画像に切り替え */
  .intro {
    background-image: url("images/recruit/intro.png");
  }

  .intro__text,
  .intro__info {
    opacity: 0;
  }

  .footer {
    background-image: url("images/recruit/footer.png");
  }

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

/* ==========================================================
   WordPress用：フォーム送信後のメッセージ
   ========================================================== */
.form__note--ok {
  color: var(--navy);
  font-weight: 500;
}
