/* ==========================================================================
   CONTACT PAGE: GLASSMORPHISM & ACCORDION (最終洗練・スマホ最適化版)
   ========================================================================== */

/* --- ヘッダー --- */
.contact-header { padding: 120px 0 60px; text-align: center; border-bottom: 1px solid var(--c-border); }
.contact-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; letter-spacing: 0.05em; color: var(--c-black); margin-bottom: 16px; }
.contact-lead { font-size: 0.97rem; color: var(--c-dark); line-height: 1.8; }

/* --- ガラスパネルのラッパー --- */
.contact-glass-accordion { max-width: 720px; margin: 60px auto 0; display: flex; flex-direction: column; gap: 32px; }

/* --- 角丸すりガラスパネル（本体） --- */
.glass-panel-item {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 40px rgba(15, 44, 89, 0.06);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
@media (hover: hover) {
  .glass-panel-item:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(15, 44, 89, 0.1); }
}

/* --- ヘッダー部分（タップ領域） --- */
.glass-panel-header {
  width: 100%; padding: 32px 40px; background: transparent; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; transition: background 0.3s ease;
}
.header-left { display: flex; align-items: baseline; gap: 16px; text-align: left; }
.glass-panel-num { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 900; color: var(--c-accent); letter-spacing: 0.1em; opacity: 0.8; }
.glass-panel-title { font-size: 1.4rem; font-weight: bold; color: var(--c-black); margin: 0; letter-spacing: 0.02em; }

/* --- トグルアイコン --- */
.header-right { display: flex; align-items: center; justify-content: center; }
.toggle-icon {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(15, 44, 89, 0.15); display: flex; align-items: center; justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-icon::before, .toggle-icon::after { content: ""; position: absolute; background: var(--c-black); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.toggle-icon::before { width: 14px; height: 2px; }
.toggle-icon::after { width: 2px; height: 14px; }
.glass-panel-header.is-active .toggle-icon { background: var(--c-black); border-color: var(--c-black); }
.glass-panel-header.is-active .toggle-icon::before { background: var(--c-white); }
.glass-panel-header.is-active .toggle-icon::after { transform: rotate(90deg) scale(0); background: var(--c-white); }

/* --- 開閉する中身 --- */
.glass-panel-collapse { max-height: 0; opacity: 0; transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; }
.glass-panel-collapse.is-open { max-height: 2400px; opacity: 1; }

.glass-panel-body { padding: 0 40px 40px; }
.acc-text { font-size: 0.95rem; line-height: 1.8; color: var(--c-dark); margin-bottom: 32px; padding-top: 16px; border-top: 1px dashed rgba(15, 44, 89, 0.15); }

/* --- フォーム内部 --- */
.form-row { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 769px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group label { display: block; font-size: 0.85rem; font-weight: bold; margin-bottom: 8px; color: var(--c-black); }
.req { background: var(--c-black); color: var(--c-white); font-size: 0.65rem; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }

.audit-form-glass input[type="text"], .audit-form-glass input[type="email"] {
  width: 100%; padding: 16px; border: 1px solid rgba(15, 44, 89, 0.1); background: rgba(255, 255, 255, 0.6);
  font-size: 1rem; color: var(--c-black); border-radius: 12px; transition: all 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.audit-form-glass input[type="text"]:focus, .audit-form-glass input[type="email"]:focus {
  outline: none; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(15, 44, 89, 0.05);
}

.checkbox-glass-group {
  display: flex; flex-wrap: wrap; gap: 16px 24px; background: rgba(255, 255, 255, 0.6);
  padding: 20px; border: 1px solid rgba(15, 44, 89, 0.1); border-radius: 12px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.check-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem !important; cursor: pointer; margin: 0 !important; color: var(--c-dark) !important; font-weight: bold !important; }
.check-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-black); }

/* --- プライバシーポリシー同意チェック（スマホ崩れ防止） --- */
.consent-group {
  margin-top: 32px; padding-top: 24px; border-top: 1px dashed rgba(15, 44, 89, 0.15);
  display: flex; justify-content: center; width: 100%;
}
.consent-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem !important; text-align: left; cursor: pointer; }
.consent-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--c-black); }
.text-link { color: var(--c-accent); text-decoration: underline; font-weight: bold; }

/* --- 送信ボタン・LINEボタン（中央揃え） --- */
.submit-btn-glass, .glass-btn {
  width: 100%; max-width: 400px; margin: 16px auto 0; /* 中央配置 */
  height: 60px; font-size: 1.05rem; letter-spacing: 0.05em; border: none; cursor: pointer;
  border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; /* テキストと矢印を中央に */
  padding: 0 24px;
}
.btn-arrow { font-family: var(--font-mono); font-weight: bold; transition: transform 0.3s ease; }
@media (hover: hover) { .submit-btn-glass:hover .btn-arrow, .glass-btn:hover .btn-arrow { transform: translateX(4px); } }
.btn-line { background-color: #06c755; color: #ffffff; border: 1px solid #06c755; }
@media (hover: hover) { .btn-line:hover { background-color: #05b34c; border-color: #05b34c; color: #ffffff; } }

.hp-field { display: none !important; }
.form-msg { font-size: 0.85rem; font-weight: bold; text-align: center; margin-top: 16px; min-height: 1.5em; }
.msg-success { color: var(--c-black); }
.msg-error { color: var(--c-danger); }

/* ==========================================================================
   SP対応（スマホ用最適化）
   ========================================================================== */
@media (max-width: 768px) {
  /* スマホでは余白を減らして画面内に収める */
  .glass-panel-header { padding: 24px 20px; }
  .header-left { gap: 8px; flex-direction: column; }
  .glass-panel-title { font-size: 1.15rem; }
  .glass-panel-body { padding: 0 20px 24px; }
  .acc-text { margin-bottom: 24px; font-size: 0.9rem; }
  .checkbox-glass-group { padding: 16px; flex-direction: column; gap: 12px; }
}


/* ==========================================================================
   CONTACT PAGE EXTRA COMPATIBILITY
   ========================================================================== */
.contact-main-section {
  margin-bottom: 120px;
}

.contact-flow-note {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--c-dark);
  margin: -8px 0 24px;
  padding: 16px 20px;
  border-left: 3px solid rgba(15, 44, 89, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.contact-line-btn {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 1.05rem;
}

/* --- ヘッダーボーダー（water-blue） --- */
.contact-header { border-bottom: 2px solid rgba(100, 180, 230, 0.40); }

/* --- 任意バッジ --- */
.opt { background: rgba(100, 180, 230, 0.18); color: var(--c-accent); font-size: 0.65rem; padding: 2px 6px; margin-left: 8px; vertical-align: middle; border-radius: 3px; }

/* --- テキストエリア --- */
.audit-form-glass textarea {
  width: 100%; padding: 16px; border: 1px solid rgba(15, 44, 89, 0.1); background: rgba(255, 255, 255, 0.6);
  font-size: 1rem; color: var(--c-black); border-radius: 12px; transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); resize: vertical; line-height: 1.7;
  font-family: inherit;
}
.audit-form-glass textarea:focus {
  outline: none; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(15, 44, 89, 0.05);
}

/* --- フィールド補足テキスト --- */
.field-note { font-size: 0.8rem; color: var(--c-gray); margin: 6px 0 0; line-height: 1.5; }

/* --- 相談前案内セクション --- */
.contact-guide-section { padding: 60px 0 0; }
.contact-guide-title { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 900; color: var(--c-black); margin-bottom: 12px; text-align: center; letter-spacing: 0.03em; }
.contact-guide-lead { font-size: 0.93rem; color: var(--c-dark); line-height: 1.8; text-align: center; margin-bottom: 32px; }
.contact-guide-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-guide-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-guide-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(100, 180, 230, 0.30);
  border-radius: 16px;
  padding: 20px 20px 22px;
}
.contact-guide-label { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--c-accent); letter-spacing: 0.08em; display: block; margin-bottom: 8px; }
.contact-guide-desc { font-size: 0.875rem; color: var(--c-dark); line-height: 1.7; margin: 0; }

/* --- お問い合わせ注意書き --- */
.contact-notice-section { padding: 32px 0 80px; }
.contact-notice-text { font-size: 0.85rem; color: var(--c-gray); line-height: 1.8; text-align: center; }

/* ==========================================================================
   PC LAYOUT REFINEMENTS (min-width: 900px)
   ========================================================================== */
@media (min-width: 900px) {
  .glass-panel-header {
    padding: 28px 48px;
  }
  .glass-panel-body {
    padding: 0 48px 44px;
  }
}
