/*
Theme Name: 浜名楽器
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra child theme for 浜名楽器
Version: 1.0.0
Template: astra
Text Domain: hamana-gakki
*/



.single-post .entry-title {
  display: none;
}

  /* ========================== 
   * 実績詳細ページ メインセクション 
   * ========================== */
.piano-results-wrapper {
    display: flex;
    gap: 20px;
    max-width: 80%;
    margin: 120px auto;
}
/* 左カラム */
.piano-results-left {
  width: 40%;
}
.piano-results-left img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
} 
/* 小画像3つの並び */
.piano-results-left .piano-small-images {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
/* 小画像3つを幅ぴったりで収める */
.piano-results-left .piano-small-images img {
  width: calc((100% - 20px) / 3); /* gap10px × 2 を引いて3等分 */
  height: auto;
  display: block;
} 
/* 右カラム */
.piano-results-right {
  width: 55%;
} 
/* 見出し */
.piano-results-right h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
}
.piano-meta-item {
  display: flex;
  margin-bottom: 16px;
  font-size: 16px;
}
.piano-meta-item-des {
  display: block;
}
.piano-meta-label {
  font-size: 1rem;
  font-weight: bold;
  background-color: #583c3d;
  width: fit-content;
  margin-right: 10px;
  padding: 0 20px;
  color: #fff;
  border-radius: 5px;
}
.piano-meta-label {
  display: block;
  margin-bottom: 10px;
}
.piano-meta-value {
  color: #333;
  font-size: 1rem;
}
.piano-meta-value p {
  margin: 0 0 0.8em;
}
@media (max-width: 767px) {
  /* ---- レイアウト ---- */
  .piano-results-wrapper {
    display: block;
    width: 80vw;
    max-width: 400px;
    margin: 100px auto;
  }
	/* 左カラム */
  .piano-results-left {
    width: 100%;
  } 
	/* 右カラム */
  .piano-results-right {
    width: 100%;
  }
} 

 /* ========================== 
	画像入替＋モーダル演出
  * ========================== */

.piano-main-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* 小画像 */
.piano-small-images img {
  cursor: pointer;
}

/* モーダル */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 9999;
  padding-top: 120px; /* ヘッダー分 */
}

.image-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modal-content {
  max-width: none !important;
}

.image-modal img {
  max-width: none !important;
  max-height: calc(80vh - 120px);
  width: auto;
  height: auto;
}



.modal-content {
  position: relative;
  display: inline-block;
}

.modal-close {
    position: absolute;
    top: -48px;
    right: 5px;
    background: #ffffff00;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 4rem;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}


  /* ========================== 
  * フロントページ （実績一覧）セクション
  *  ========================== */
.front-result-grid {
  display: grid;
  max-width: 980px;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 auto;
}
.front-result-grid .result-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.front-result-grid .result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}
.front-result-grid .result-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #f3f3f3;
}
.front-result-grid .result-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.front-result-grid .result-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 20px;
}
.front-result-grid .result-card-body {
  padding: 18px 20px 22px;
}
.front-result-grid .result-card-item {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.front-result-grid .result-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin: 10px 0 14px;
}
.front-result-grid .result-card-more {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.front-result-grid .result-card-more::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.front-result-grid .result-card-more:hover::after {
  transform: translateX(4px);
}
.front-result-grid .result-card-maker {
  background-color: #dccfcf;
  width: fit-content;
  padding: 0 18px;
  color: #543c3c;
  border-radius: 5px;
}
.front-result-grid .label {
  background-color: transparent;
  width: fit-content;
  padding: 0 18px;
  color: #fff;
  border-radius: 5px;
} 
/* カテゴリ別カラー */
.front-result-grid .cat-grand {
  background-color: #c0392b; /* 赤系 */
}
.front-result-grid .cat-upright {
  background-color: #2980b9; /* 青系 */
}
.front-result-grid .cat-digital {
  background-color: #27ae60; /* 緑系 */
}
@media (max-width: 767px) {
  .front-result-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }
  .front-result-grid .result-card-body {
    padding: 16px;
  }
  .front-result-grid .result-card-maker {
    background-color: #dccfcf;
    width: fit-content;
    padding: 0 18px;
    color: #543c3c;
    border-radius: 5px;
  }
  .front-result-grid .label {
    background-color: transparent;
    width: fit-content;
    padding: 0 18px;
    color: #fff;
    border-radius: 5px;
  }
	  .front-result-grid .result-card:nth-child(n+7) {
    display: none;
  }
} 


/* =========================
 * ===  Hero Section =======
 * ===================== */

/* ▼ ページヒーロー（共通） */
.hero {
  width: 100%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero__inner {
  max-width: 1200px;
  padding-left: 10%;
}
.hero__title {
  font-size: clamp(2rem, 6vw, 10rem);
  line-height: 1em;
  color: #ffa36a80;
}
.hero__sub {
  font-size: clamp(1.5rem, 2vw, 3rem);
  color: #ffa36a;
	font-weight: bold;
}
/* PHPページ（用語集のみ） */

body.page-id-104 .site-content .ast-container {
  display: block;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
/* 画面フル幅 */
body.home .site-content > .ast-container {
  max-width: 100% !important;
  padding-left: 0;
  padding-right: 0;
}

/* ==========================
   ヒーロー：スマホ最適化
========================== */
@media (max-width: 767px) {

  .hero {
    height: 30vh;              /* ← 高さを圧縮 */
    align-items: flex-end;     /* ← 下寄せ */
  }

  .hero__inner {
    padding-left: 6%;
    padding-bottom: 32px;     /* ← 下余白を明示 */
  }

  .hero__title {
    font-size: 4rem;           /* ← clamp解除して固定 */
    line-height: 1.25;
  }

  .hero__sub {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
    padding: 0 5px;
  }

}

@media (min-width: 768px) and (max-width: 1024px) {

  .hero {
    height: 30vh; 
  }

}

/* =========================
 ▼ Glossary（個別）=======
 * ===================== */
.glossary-page {
	padding: 0 15px 30px 15px;
}


.glossary-nav,
.glossary-list {
  max-width: 900px;
  margin: 0 auto;
}
.glossary-nav {
  padding: 20px 0;
}
.glossary-nav {
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px auto;
}
.glossary-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #583c3d;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: #583c3d;
  transition: 0.2s ease;
}
.glossary-nav a:hover {
  background: #583c3d;
  color: #fff;
}
/* ▼ 初期状態：閉じている */
.glossary-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0;
}
/* ▼ 開いた状態 */
.glossary-content.open {
  padding: 10px 0;
}

/* 安全策：子要素も box-sizing に */
.glossary-content * {
  box-sizing: border-box;
}

.glossary-term {
  background: none;
  padding: 5px 0;
  font-size: 1.4rem;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid #d3d2d2;
  transition: background 0.2s ease;
}
.glossary-term:hover {
  color: #f33030;
}
.glossary-heading .gyo {
  font-size: 0.6em;
  margin-left: 2px;
}
.glossary-section {
  margin: 30px 0;
}
.glossary-term {
  position: relative;
  padding-right: 24px;
  cursor: pointer;
}
.glossary-term::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 30px;
  font-weight: bold;
  color: #583c3d;
  transition: transform 0.3s ease, color 0.3s ease;
}
.glossary-term.active::after {
  transform: translateY(-50%) rotate(135deg); /* ＋が×に変わる */
  color: #f33030;
}

/* =========================
 ▼ result（個別）==========
 ▼ result（カード・フィルター）
 ======================== */


/* グリッド設定 */
#primary.result-archive {
  width: 80%;
  margin: 0 auto 30px  !important;
}
.result-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    width: 90%;
    margin: 40px auto;
}
@media screen and (max-width: 768px) {
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* カード */
.result-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
/* 画像エリア */
.result-card-image {
  position: relative;
}
.result-card-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* カテゴリーバッジ */
.result-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
} 
/* 本文エリア */
.result-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.result-card-item .label {
  font-weight: bold;
  margin-right: 4px;
}
.result-card-excerpt {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 5px 0;
} 
/* もっと見るボタン */
.result-card-more {
  display: inline-block;
  width: fit-content;
  margin: 10px auto;
  padding: 7px 15px;
  text-align: center;
  background: #c1a07a;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}
.result-card-more:hover {
  background: #555;
} 
/* フィルター部分 */
.piano-filter {
  width: 90%;
  display: flex;
  gap: 20px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.piano-filter {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
} 
/* 幅比率 */
.piano-filter .result-filter-btn:first-child {
  flex: 1; /* 「すべて」ボタン = 1 */
}
.piano-filter .result-filter-btn:not(:first-child) {
  flex: 2; /* その他3つ = 2 */
} 
/* 共通ボタンスタイル */
.result-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 4px 20px;
  border: solid 1px #766262;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
.result-filter-btn:hover {
  background: #eee;
  transform: translateY(-3px);
}
.filter-text {
  font-size: 18px;
  font-weight: bold;
}
.filter-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}
.filter-img-empty {
  display: inline-block;
  width: 70px;
  height: 70px;
}
.result-grid .result-card-maker {
  background-color: #dccfcf;
  width: fit-content;
  padding: 0 18px;
  color: #543c3c;
  border-radius: 5px;
  font-size: 1.2rem;
}
.result-grid .label {
  display: block;
  line-height: 1.2;
  width: fit-content;
  height: fit-content;
  padding: 0 10px;
  color: #543c3c;
  border: 1px solid #543c3c;
  border-radius: 5px;
  font-size: 0.8rem;
}
.result-grid .result-card-item {
  font-weight: 600;
  margin-bottom: 6px;
}
.result-grid .result-card-date {
  display: flex;
  gap: 4px; /* PC時の間隔 */
  align-items: anchor-center;
}
@media (max-width: 768px) {
  .result-filter-btn {
    width: 100%;
  }
} 
/* 共通カテゴリバッジ */
.result-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}
/* カテゴリ別カラー */
.cat-grand {
  background-color: #c0392b; /* 赤系 */
}
.cat-upright {
  background-color: #2980b9; /* 青系 */
}
.cat-digital {
  background-color: #27ae60; /* 緑系 */
}
.pagination {
  margin-top: 40px;
}
.pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-list li a,
.pagination-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
}
.pagination-list li.is-active span {
  background: #333;
  color: #fff;
  border-color: #333;
}
.pagination-list li a:hover {
  background: #f5f5f5;
} 
/* カードグリッド */
@media (max-width: 768px) {
  #primary.result-archive {
    width: 95%;
    margin: 0 auto; /* padding-top: 100px !important; */
  }
  .result-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    width: 95%;
    margin: 10px auto;
  }
  .piano-filter {
    flex-direction: column;
    gap: 10px;
  }
  .piano-filter .result-filter-btn {
    width: 100%;
  }
  .filter-img {
    height: 50px;
  }
  .filter-img-empty {
    display: inline-block;
    width: 20px;
    height: 20px;
  }
  .result-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
  }
}
@media (max-width: 480px) {
  #primary.result-archive {
    width: 95%;
    margin: 0 auto; /* padding-top: 100px !important; */
  }
  .result-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin: 0 auto;
  }
  .piano-filter {
    flex-direction: column;
    gap: 10px;
  }
  .piano-filter .result-filter-btn {
    width: 100%;
  }
  .filter-img {
    height: 50px;
  }
  .filter-img-empty {
    display: inline-block;
    width: 20px;
    height: 20px;
  }
  .result-card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
  }
  .result-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
  }
  .result-card-item {
    font-size: 0.7rem;
  }
  .result-grid .result-card-maker {
    font-size: 1.1rem;
  }
  .result-grid .result-card-date {
    flex-direction: column;
    gap: 0;
    font-size: 1.1rem;
    align-items: flex-start;
  }
}


 /* ==========================
  *   実績詳細ページのフッター上
（最新実績）セクション 
  * ========================== */
.single-related-result {
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 0 15px 0 15px;
}
.single-related-title {
    font-size: 3rem;
    margin-bottom: 32px;
    text-align: center;
    color: #583c3d;
}
.single-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* もっと見る */
.single-related-more {
  margin-top: 40px;
  text-align: center;
}
.single-related-more-btn {
    display: inline-block;
    padding: 33px 80px;
    border: 1px solid #583c3d;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    color: #583c3d;
}
.single-related-more-btn:hover {
  background: #333;
  color: #fff;
}
/* SP */
@media (max-width: 767px) {
  .single-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
} 

/* ===========================
 ▼ 実績詳細ページ（個別投稿）
  ============================ */

.single-title-wrapper {
	width: fit-content;
    padding-top: 80px;
    margin: 0 auto;
}

.single-results-title {
	letter-spacing: 0.3rem;
    font-size: 4rem;
	font-weight: bold;
    color: #ff8a63;
	padding-top: 100px;
}

@media (max-width: 767px) {
.single-results-title {
    font-size: 2rem;
		font-weight: bold;
}
	
.single-related-title {
    font-size: 1.5rem;
}
} 

@media (max-width: 480px) {
.single-results-title {
    font-size: 2rem;
		font-weight: bold;
}
	.single-related-title {
    font-size: 1.5rem;
}
}

/* ===========================
 ▼ アニメーション（ホバー演出など）
  ============================ */
/* 光が横に流れる 上品ホバー（CTA用）-------*/

.shine-btn {
  position: relative;
  overflow: hidden;
}

/* 光エフェクト */
.shine-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 130%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(0);
  transition: transform 0.45s ease;
  pointer-events: none;
}

/* hover時に1回流れる */
@media (hover: hover) {
  .shine-btn:hover::after {
    transform: translateX(130%);
  }
}

/* ===========================
 ▼ Q&A 固定ページ用====
  ============================ */
.q-number {
  font-size: 64px;
  font-family: "Noto Sans", sans-serif !important;
  font-weight: Bold; /* Bold */
  color: transparent; /* 中抜き */
  -webkit-text-stroke: 3px #0073E5; /* 線の色 */
  line-height: 1;
}

.q-number2 {
  display: inline-block;
  transform: scaleX(0.8);
	  -webkit-text-stroke: 3.5px #0073E5; /* 線の色 */
}

@media (max-width: 767px) {

} 

@media (max-width: 480px) {
.q-number {
  font-size: 64px;
  font-family: "Noto Sans", sans-serif !important;
  font-weight: Bold; /* Bold */
  color: transparent; /* 中抜き */
  -webkit-text-stroke: 2px #0073E5; /* 線の色 */
  line-height: 1;
}

.q-number2 {
  display: inline-block;
  transform: scaleX(0.8);
	  -webkit-text-stroke: 2.5px #0073E5; /* 線の色 */
}
}

/* ============================
   ピアノ買取フォーム（CF7）
============================ */



.wpcf7 {
  max-width: 950px !important;
	padding: 1em 2em;
    border-radius: 10px;
	background-color: #fafaf6;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;

}
.entry-content .wpcf7 {
  margin-bottom: 60px;
}

/* 各項目の余白整理 */
.wpcf7 label {
  display: block;
  margin: 0.6em 0 0;
  font-weight: 600;
}

/* <br> を使っているので最低限リセット */
.wpcf7 br {
  display: none;
}
/* 見出し */
.wpcf7 h3 {
  margin: 48px 0 24px;
  padding-left: 14px;
  border-left: 5px solid #f38b6d;
  font-size: 2.5rem;
}
/* テキスト・セレクト・テキストエリア */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}
/* contactfoamの項目ブロック<p>のbottom */
.entry-content .wpcf7 p {
    margin-bottom: 2em !important;
}


.entry-content .wpcf7 .wpcf_space {
    margin-bottom: 0.5em;
}

/* 階数セレクトは少し小さめ */
.wpcf7 select {
  max-width: 240px;
}

.wpcf7 textarea {
  min-height: 120px;
}

/* ラジオ・チェックボックスを「ボタン化」 */
/* ----inputは非表示--------------- */
.wpcf7 input[type="radio"],
.wpcf7 input[type="checkbox"] {
  display: none;
}
/* ----ボタン本体--------------- */
.wpcf7 .wpcf7-list-item {
  display: inline-block;
  margin: 0 10px 0px 0;
}

.wpcf7 .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
/* ----選択時--------------- */
.wpcf7 input:checked + .wpcf7-list-item-label {
  background: #6b74c8;
  border-color: #6b74c8;
  color: #fff;
}
/* ----ホバー時-------------- */
.wpcf7 .wpcf7-list-item-label:hover {
  border-color: #6b74c8;
}

/* =====================================
   搬入時の状況：チェックボックス仕様
===================================== */

/* wrap を特定 */
.wpcf7 .wpcf7-form-control-wrap[data-name="carry_condition"]
.wpcf7-list-item {
  display: block;
  margin: 6px 0;
}

/* ボタン風スタイルを解除 */
.wpcf7 .wpcf7-form-control-wrap[data-name="carry_condition"]
.wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;

  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
}

/* checkbox を表示 */
.wpcf7 .wpcf7-form-control-wrap[data-name="carry_condition"]
input[type="checkbox"] {
  position: static;
  opacity: 1;
  display: inline-block;
  margin-right: 8px;
}

/* 選択時のボタン色を無効化 */
.wpcf7 .wpcf7-form-control-wrap[data-name="carry_condition"]
input:checked + .wpcf7-list-item-label {
  background: none;
  border: none;
  color: inherit;
}

/* ホバー時の枠線を無効化 */
.wpcf7 .wpcf7-form-control-wrap[data-name="carry_condition"]
.wpcf7-list-item-label:hover {
  border-color: transparent;
}
/* チェック選択時の色 */
.wpcf7
.wpcf7-form-control-wrap[data-name="carry_condition"]
input:checked + .wpcf7-list-item-label {
  color: #6b74c8;
  font-weight: 600;
  background: rgba(107, 116, 200, 0.08);
  padding: 4px 6px;
  border-radius: 4px;
}
.wpcf7
.wpcf7-form-control-wrap[data-name="carry_condition"]
input:checked + .wpcf7-list-item-label {
  color: #6b74c8;
  font-weight: 600;
}

.wpcf7
.wpcf7-form-control-wrap[data-name="carry_condition"]
input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  accent-color: #6b74c8;
}


/* =====================================
   搬入時の状況：PCのみ2列表示
===================================== */

/* PC用 */
@media (min-width: 768px) {
  .wpcf7
  .wpcf7-form-control-wrap[data-name="carry_condition"]
  .wpcf7-form-control.wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0px;
    row-gap: 0px;
  }
}




/* 「その他入力」「段数入力」を自然に見せる */
/* ---補足入力は少しインデント ------------*/
.wpcf7 input[name="piano_maker_other"],
.wpcf7 input[name="carry_note"] {
  margin-top: 8px;
  max-width: 420px;
}

/* 区切り線（hr） */
.wpcf7 hr {
  margin: 48px 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    display: block;
    margin: 48px auto 0;
    padding: 26px 60px;
    background: #6b74c8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.6;
}



/* ピアノ種類の画像アイコン */
/* ----縦レイアウトに--------------- */
/* ピアノ種類：ボタン中身を横並び */
.wpcf7 input[name="piano_type"] + .wpcf7-list-item-label {
  display: flex;
  flex-direction: row-reverse;     /* ← 横並び */
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 12px 16px;  /* ← 左右も上下も均等 */
  min-width: 180px;
  min-height: 80px;        /* 縦並びより低く */
  text-align: left;
}


.wpcf7 input[name="piano_type"] + .wpcf7-list-item-label::before {
  content: "";
  width: 64px;
  height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 種類ごとに画像を指定 */
/* グランドピアノ--------------- */
.wpcf7 input[value="グランドピアノ"] + .wpcf7-list-item-label::before {
  background-image: url("/wp-content/themes/hamana-gakki/img/gpiano-icon.svg");
}

/* アップライトピアノ--------------- */
.wpcf7 input[value="アップライトピアノ"] + .wpcf7-list-item-label::before {
  background-image: url("/wp-content/themes/hamana-gakki/img/uplight-icon.svg");
}

/* 電子ピアノ--------------- */
.wpcf7 input[value="電子ピアノ"] + .wpcf7-list-item-label::before {
  background-image: url("/wp-content/themes/hamana-gakki/img/degi-piano.svg");
}

/* 必須バッジ */
.wpcf7 .required-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: #e53935;
  border-radius: 4px;
  vertical-align: middle;
}

.wpcf7 label,legend {
    color: #111827;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 2px;
}
/* 入力途中のエラーは非表示 */
.wpcf7-not-valid-tip {
  display: none;
}

/* 送信後のみ表示 */
.wpcf7-form.invalid .wpcf7-not-valid-tip {
  display: block;
}

/* エラーメッセージを上にするためwrapをflexにする */
.wpcf7-form .wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
}

/* エラーメッセージを上に */
.wpcf7-form .wpcf7-not-valid-tip {
  order: 1;
  margin: 6px 0;
  color: #c62828;
  background: #fdecea;
  padding: 6px 8px;
  border-left: 4px solid #c62828;
  font-size: 14px;
}

/* inputは下 */
.wpcf7-form .wpcf7-form-control {
  order: 2;
}

 /* エラー時　送信ボタン付近に表示するメッセージ */
.wpcf7 form.invalid .wpcf7-response-output {
    background: #dfebff;
    border: 1px solid #6b74c8;
    color: #6b74c8;
    margin-top: 1em;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
}




/* ----スマホ表示-------------------- */
@media (max-width: 600px) {
  .wpcf7 .wpcf7-list-item {
/*     display: block;
    margin-right: 0; */
  }

  .wpcf7 select {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
.wpcf7 {
	padding: 1em 1em 5em 1em;
  }
.wpcf7 h3 {
    margin: 5px 0 24px;
}
}


/* ===========================
 ▼ Astra　変更　　　　====
  ============================ */
/* ページトップボタン */
#ast-scroll-top {
    background-color: #5058bc;
    font-size: 20px;
    margin-bottom: 70px;
}

.error-404 {
	margin: 17em auto;
}
.ast-404-layout-1 h1.page-title {
    color: #583C3D;
}
.error-404 .page-sub-title {
	color:#583C3D;
}

/* ===========================
 ▼ Elementor 固定ページ用====
  ============================ */

.pi-kv-h2 h2 {
	font-size: 1.5em;
	line-height: 1.1em;
    display: inline-block;
	background: linear-gradient(90deg, #ff6e32, #ff1818, #a40c0c);
    background-size: 300% 100%;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pi-kv-h4 p {
    display: inline-block;
	background: linear-gradient(90deg, #490f0f, #a86555, #450808);
    background-size: 300% 100%;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pi-sec-h2 h2 {
	font-size: 1.5em;
	line-height: 1.1em;
    display: inline-block;
	background: linear-gradient(90deg, #474cb8, #7182e9, #2d259f);
    background-size: 300% 100%;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pi-sec-h4 h4 {
	font-size: 1.4em;
	line-height: 1.1em;
    display: inline-block;
	color: #474CBB;
}

.kv-fade {
  opacity: 0;
  animation: kvFadeIn 1s ease-out forwards;
  animation-delay: 0.2s;
}

/* ページ読み込み後に即発火 */
@keyframes kvFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 改行・文字拡大などのスタイル */
.sp-only {
  display: none;
}

@media screen and (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}

/* ハンバーガーメニューのカスタマイズ */
.main-header-menu-toggle .ast-menu2-svg,
.main-header-menu-toggle .ast-close-svg {
  display: none;
}

.main-header-menu-toggle .ast-inline-flex {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

/* 閉じている状態（デフォルト） */
.main-header-menu-toggle::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  background: url("/wp-content/uploads/2025/12/sp-menuicon-4.svg") no-repeat center / contain;
}


/* 開いている状態（×を表示） */
.main-header-menu-toggle[aria-expanded="true"]::before {
  display: block;
  width: 35px;
  height: 35px;
  background-image: url("/wp-content/uploads/2026/01/close-menu.svg");
}

.main-header-menu-toggle::before {
  pointer-events: none;
}

.main-header-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}



@media (max-width: 480px) {

}

/* ===========================
 ▼ 用語の高さ対応====
  ============================ */
[id] {
  scroll-margin-top: 170px; /* ヘッダーの高さに合わせる */
}

@media (max-width: 480px) {
[id] {
    scroll-margin-top: 50px; /* SP */
  }
}
