/*
Theme Name: 守成クラブ昼ノみなと神戸 
Description:守成クラブ昼ノみなと神戸のホームページ作成
Theme URI: https://hiruno-minatokobe.club/
Author: Passione inc
Author URI: https://la-passione.co.jp
Version: 1.00
*/

/* ========================================
   昼ノみなと神戸MAPリンクページ専用
   (.gmap- プレフィックスでスコープ)
   ======================================== */

/* タイトルが改行されないようフォント縮小 */
.gmap-title {
  font-size: 1.7em;
  white-space: nowrap;
}

.gmap-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 20px 60px;
  max-width: 400px;
  margin: 0 auto;
}

.gmap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 20px;
  border-radius: 0;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
  background: #4a90c4;
  transition: opacity 0.2s ease;
}

.gmap-btn:active {
  opacity: 0.75;
}

.gmap-btn__label {
  line-height: 1.4;
}

/* 申請フォーム（トップページと同じ色味に合わせる） */
.gmap-btn--form {
  background: #4855a1;
  margin-top: 20px;
  font-size: 15px;
}


/* ========================================
   Q&Aページ専用
   (.faq- プレフィックスでスコープ)
   ======================================== */

.faq-page {
  padding-bottom: 60px;
}

.faq-page h2 {
  text-align: center;
}

/* --- Q&Aリスト --- */
.faq-list {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-item:first-child {
  border-top: 1px solid #ddd;
}

/* 質問行 */
.faq-question {
  display: flex;
  align-items: center;
  padding: 16px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f5f8fb;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #4a90c4;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  margin-right: 14px;
}

.faq-icon--a {
  background: #c45050;
}

.faq-q-text {
  flex: 1;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  color: #333;
}

.faq-toggle {
  font-size: 20px;
  color: #999;
  margin-left: 10px;
  min-width: 24px;
  text-align: center;
}

/* 回答（スムーズ開閉） */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 10px;
  display: flex;
  align-items: flex-start;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 14px 10px 24px 10px;
}

.faq-a-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* --- お問い合わせフォーム --- */
.faq-contact {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 40px 30px;
  background: #f7f9fb;
  border: 1px solid #e0e6ed;
}

.faq-contact h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.faq-contact__lead {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

/* Contact Form 7 フォームスタイル */
.faq-contact .wpcf7-form p {
  margin-bottom: 18px;
}

.faq-contact .wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}

.faq-contact .wpcf7-form input[type="text"],
.faq-contact .wpcf7-form input[type="email"],
.faq-contact .wpcf7-form input[type="tel"],
.faq-contact .wpcf7-form textarea,
.faq-contact .wpcf7-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.faq-contact .wpcf7-form input::placeholder,
.faq-contact .wpcf7-form textarea::placeholder {
  color: #bbb;
}

.faq-contact .wpcf7-form input[type="text"]:focus,
.faq-contact .wpcf7-form input[type="email"]:focus,
.faq-contact .wpcf7-form input[type="tel"]:focus,
.faq-contact .wpcf7-form textarea:focus,
.faq-contact .wpcf7-form select:focus {
  outline: none;
  border-color: #4a90c4;
}

.faq-contact .wpcf7-form textarea {
  height: 150px;
  resize: vertical;
}

.faq-contact .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
  padding: 14px;
  background: #4a90c4;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-appearance: none;
}

.faq-contact .wpcf7-form input[type="submit"]:hover {
  opacity: 0.85;
}

/* 必須バッジ */
.faq-required {
  display: inline-block;
  background: #c45050;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  margin-left: 6px;
  margin-bottom: 4px;
  vertical-align: middle;
  line-height: 1.4;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
  .faq-list {
    padding: 0 15px;
  }

  .faq-question {
    padding: 14px 6px;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 13px;
    margin-right: 10px;
  }

  .faq-q-text {
    font-size: 14px;
  }

  .faq-a-text {
    font-size: 13px;
  }

  .faq-contact {
    margin: 40px 15px 0;
    padding: 25px 15px;
  }

  .faq-contact h3 {
    font-size: 18px;
  }
}