/*
Theme Name: ArtBeatLab
Theme URI: https://artbeatlab.com/
Author: ArtBeatLab
Author URI: https://artbeatlab.com/
Description: Art Beat Lab official website theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artbeatlab
*/

/* ==================================================
   Base
================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  line-height: 1.7;
  color: #444;

  /* 背景(PC) */
  background-image: url("img/artbeatlaboTop.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

a { color: #e95e95; text-decoration: underline; }
a:hover { text-decoration: none; }

/* ==================================================
   Header Layout
================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  background: rgba(251, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,38,37,.06);
}


.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px;
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  position: relative;
  z-index: 250; /* nav overlay より手前 */
}

.site-logo a {
  color: #623838;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

/* ==================================================
   Desktop Navigation
================================================== */

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.site-nav a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;

  text-decoration: none;
  color: #623838;

  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);

  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.site-nav a:hover {
  background: #ffedf5;
  box-shadow: 0 3px 6px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

/* SNS (header) */
.header-sns { margin-left: 16px; }

.header-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3a6b5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-sns img { width: 18px; height: 18px; }
.header-sns a:hover { transform: scale(1.08); opacity: 0.85; }

/* ==================================================
   Hamburger Button (hidden on desktop)
================================================== */

.nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 300; /* いつでも最前面 */
}

.nav-toggle span {
  position: absolute;
  left: 6px;
  width: 28px;
  height: 3px;
  background: #623838;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) { top: 6px; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.open span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 14px; transform: rotate(-45deg); }

/* ==================================================
   Page Title
================================================== */

.page-title {
  margin-top: 64px;
  text-align: center;
  padding: clamp(100px, 18vw, 150px) 16px
           clamp(60px, 14vw, 120px)
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #ff3e9d;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 20px rgba(255, 255, 255, 0.90),
    0 0 35px rgba(255, 255, 255, 0.85),
    0 3px 6px rgba(0,0,0,0.28),
    0 6px 12px rgba(0,0,0,0.20);
}


/* ==================================================
   Main Panel
================================================== */

.site-main { padding: 0 16px 60px; }

.panel {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 28px 22px 40px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

/* ==================================================
   Sections
================================================== */

.section {
  padding: 20px 0;
  border-bottom: 1px dashed rgba(255, 168, 207, 0.7);
  scroll-margin-top: 90px;
}
.section:last-of-type { border-bottom: none; }

.section-heading {
  margin: 0 0 10px;
  font-size: 1.3rem;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffe4f0;
  color: #bf3f7d;
}

.section-text {
  margin: 1.2em 0 2.4em;
  font-size: 0.95rem;
  color: #555;
}

.list-dots {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #555;
}

/* ==================================================
   What's New + Live (2 columns -> 1 column)
================================================== */

.section-new-live {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.section-new-live .column { flex: 1 1 0; }

/* ==================================================
   Photo Grid
================================================== */

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.photo-box {
  flex: 1 1 22%;
  text-align: center;
  font-size: 0.8rem;
  background: #fffdf5;
  border-radius: 18px;
  padding: 8px 6px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.photo-box img { border-radius: 12px; margin-bottom: 4px; }
.photo-box p { margin: 0; color: #555; }

/* ==================================================
   Member (修正版)
================================================== */

.member-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.member-box {
  background: #fef6ff;
  border-radius: 20px;
  padding: 14px 16px 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

/* 1段目: Kei と Sakieは3列分ずつ使用 */
.member-box:nth-child(1),
.member-box:nth-child(2) {
  grid-column: span 3;
}

/* 2段目: Nattsu, Chee, dagakkiesは2列分ずつ使用 */
.member-box:nth-child(3),
.member-box:nth-child(4),
.member-box:nth-child(5) {
  grid-column: span 2;
}

.member-box .member-vocal{
  padding:0;
  box-shadow:none;  
}

.member-box img {
  width: 220px;          /* 固定幅 */
  height: 220px;         /* 固定高さ */
  max-width: 220px;
  max-height: 220px;
  object-fit: cover;     /* 画像を正方形にトリミング */
  display: block;
  margin: 0 auto 16px;
  border-radius: 100px;
}

/* Vocal(ケイ)は常にフル表示 */
.member-vocal .member-text {
  display: block;
}

/* SNS box */
.sns-box { margin-top: 40px; text-align: center; }
.sns-text { font-size: 0.95rem; margin-bottom: 12px; color: #555; }

.sns-instagram {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #f6b1c3;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.sns-instagram:hover { background: #f28ca8; }

/* ==================================================
   Contact
================================================== */

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; color: #555; }

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ffc4db;
  background: #fff9fc;
  color: #444;
  padding: 8px 12px;
  font: inherit;
}

.form-group input { border-radius: 999px; }
.form-group textarea { border-radius: 18px; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff84b5;
  box-shadow: 0 0 0 3px rgba(255, 132, 181, 0.25);
  background: #ffffff;
}

.form-actions { margin-top: 16px; text-align: center; }

.wpcf7-form-control wpcf7-submit has-spinner {
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font: inherit;
  cursor: pointer;
  background: linear-gradient(90deg, #ff84b5, #ffc46d);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.wpcf7-form-control wpcf7-submit has-spinner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

/* ==================================================
   Footer
================================================== */

.site-footer {
  margin-top: 64px;
  padding: 32px 16px 40px;
  background: linear-gradient(
    180deg,
    rgba(255, 214, 230, 0.95),
    rgba(255, 190, 210, 0.95)
  );
  color: #623838;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.footer-copy {
  font-size: 0.8rem;
  margin: 0 0 16px;
  opacity: 0.8;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-nav a {
  text-decoration: none;
  color: #623838;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
  background: #ffedf5;
  transform: translateY(-1px);
}

.footer-sns a {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background: #f28ca8;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-sns a:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* ==================================================
   Responsive (Mobile)
================================================== */

@media (max-width: 800px) {
  /* 背景:横幅に合わせて、縦はループ */
  body {
    background-attachment: scroll;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: center top;
  }

  /* メニュー開いている間スクロール禁止(任意だけどおすすめ) */
  body.menu-open { overflow: hidden; }

  /* hamburger visible */
  .nav-toggle { display: block; }

  /* header sns hidden on mobile */
  .header-sns { display: none; }

  /* overlay nav */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* 背景だけ別レイヤー */
  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(255, 214, 230, 0.95) 0%,
      rgba(255, 214, 230, 0.85) 30%,
      rgba(255, 240, 245, 0.85) 100%
    );
    backdrop-filter: blur(4px);
    z-index: -1;
  }

  .site-nav.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* メニュー表示中はヘッダー帯を消して、ナビ背景を上まで見せる */
  body.menu-open .site-header {
    background: transparent;
    backdrop-filter: none;
  }

  /* モバイル用の縦並び */
  .site-nav ul {
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 18px;
    font-size: 1.2rem;
  }

  .site-nav li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-inner {
    min-height: 45px;
    padding: 4px 12px;
  }

  .site-logo a {
    font-size: 0.95rem;
  }

  .nav-toggle {
    height: 28px;
  }

  /* one-column */
  .section-new-live { flex-direction: column; }
  .photo-grid { flex-direction: column; }
  .photo-box { flex: 1 1 100%; }
  
  /* site-mainの位置を下げる */
  .site-main {
    padding-top: 30px;
  }
  
  /* メンバーを1カラムに */
  .member-row { 
    grid-template-columns: 1fr;
  }
  
  .member-box { 
    grid-column: span 1 !important;
  }

  /* 全体の基準文字サイズ */
  body {
    font-size: 14px;
    line-height: 1.65;
  }

  /* ページタイトル - スマホ用に調整 */
  .page-title {
    margin-top: 45px; /* ヘッダー分の余白 */
    padding: 0 16px;
    min-height: calc(24vh - 45px); /* ヘッダーを除いた画面全体の高さ */
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    justify-content: center;
  }

  .page-title h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    /* 白い光彩を強化してコントラストを向上 */
    text-shadow:
      0 0 20px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 255, 1),
      0 0 50px rgba(255, 255, 255, 0.95),
      0 0 70px rgba(255, 255, 255, 0.9),
      0 3px 6px rgba(0,0,0,0.28),
      0 6px 12px rgba(0,0,0,0.20);
  }

  /* セクション見出し */
  .section-heading {
    font-size: 1.1rem;
    display: block;
    text-align: center;
    margin: 0 auto 10px;
  }

  /* 本文テキスト */
  .section-text {
    font-size: 0.85rem;
  }

  .list-dots {
    font-size: 0.8rem;
  }

  /* メンバー紹介 */
  .member-box {
    font-size: 0.8rem;
  }

  /* ナビゲーション(全画面) */
  .site-nav ul {
    font-size: 1.05rem;
  }

  /* フッター */
  .footer-nav a {
    font-size: 0.8rem;
  }

  .footer-copy {
    font-size: 0.7rem;
  }
  
  /* スマホでContactフォームと送信完了メッセージをセンター配置 */
  .contact-form,
  .wpcf7-response-output {
    text-align: center;
  }
  
  .wpcf7-form p {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .wpcf7-form .wpcf7-submit {
    margin: 0 auto !important;
  }
}

/* ==================================================
   Contact Form 7 カスタマイズ
================================================== */

/* 送信ボタンのスタイル */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.wpcf7-submit {
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 28px !important;
  font: inherit !important;
  cursor: pointer !important;
  background: linear-gradient(90deg, #ff84b5, #ffc46d) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
  width: auto !important;
  display: inline-block !important;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover,
.wpcf7-submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28) !important;
  background: linear-gradient(90deg, #ff84b5, #ffc46d) !important;
}

/* 送信中・送信後もボタンスタイルを維持 */
.wpcf7-form input[type="submit"]:active,
.wpcf7-form input[type="submit"]:focus,
.wpcf7-form button[type="submit"]:active,
.wpcf7-form button[type="submit"]:focus,
.wpcf7-submit:active,
.wpcf7-submit:focus {
  background: linear-gradient(90deg, #ff84b5, #ffc46d) !important;
  color: #fff !important;
  outline: none !important;
}

/* 送信中のスピナー */
.wpcf7-spinner {
  margin-left: 10px;
}

/* フォーム全体のスタイル */
.wpcf7-form {
  max-width: 520px;
  margin: 0 auto;
}

/* 入力フィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid #ffc4db;
  background: #fff9fc;
  color: #444;
  padding: 8px 12px;
  font: inherit;
  margin-bottom: 12px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
  border-radius: 999px;
}

.wpcf7-form textarea {
  border-radius: 18px;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #ff84b5;
  box-shadow: 0 0 0 3px rgba(255, 132, 181, 0.25);
  background: #ffffff;
}

/* ラベル */
.wpcf7-form label {
  display: block;
  margin-bottom: 4px;
  color: #555;
  font-size: 0.9rem;
}

/* 送信ボタンを中央寄せ */
.wpcf7-form p:has(.wpcf7-submit) {
  text-align: center !important;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contact Form 7のボタンを含む要素全体をセンター配置 */
.wpcf7-form .wpcf7-submit-wrap,
.wpcf7-form p {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
  border: 2px solid #bf3f7d !important;
  background: #fff0f7 !important;
  color: #bf3f7d !important;
  padding: 12px 16px;
  margin: 16px auto;
  border-radius: 12px;
  max-width: 520px;
  text-align: center;
}

.wpcf7-mail-sent-ok {
  border-color: #bf3f7d !important;
  background: #fff0f7 !important;
  color: #bf3f7d !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  border-color: #dc3232 !important;
  background: #fff5f5 !important;
  color: #dc3232 !important;
}
