/* =====================================================
   お問い合わせページ専用スタイル
   フラッシュIOデザインスタイルに準拠
   ===================================================== */

/* ==================== 共通スタイル ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f7fa;
}

/* ==================== ヒーローセクション ==================== */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.contact-hero-subtitle {
    font-size: 1.2rem;
    margin: 0 0 25px 0;
    opacity: 0.95;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.contact-hero-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ==================== メインコンテナ ==================== */
.contact-container {
    max-width: 1000px;
    margin: -40px auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ==================== コンテンツエリア ==================== */
.contact-content {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ==================== セクション ==================== */
.contact-section {
    margin-bottom: 60px;
}

.contact-section:last-of-type {
    margin-bottom: 0;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.section-title {
    font-size: 2rem;
    margin: 0 0 25px 0;
    color: #333;
    font-weight: 700;
}

/* ==================== お問い合わせの流れ ==================== */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.flow-step {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    background: linear-gradient(135deg, #e8ecf4 0%, #dce4f0 100%);
    transform: translateX(10px);
}

.flow-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.flow-content {
    flex: 1;
}

.flow-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flow-content h3 i {
    color: #667eea;
}

.flow-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.flow-arrow {
    text-align: center;
    color: #667eea;
    font-size: 1.5rem;
    padding: 5px 0;
}

/* ==================== フォーム通知 ==================== */
.form-notice {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ebf7 100%);
    border-left: 4px solid #4a9eff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: start;
}

.form-notice i {
    font-size: 1.5rem;
    color: #4a9eff;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-notice p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.required-mark {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 3px;
}

/* ==================== Contact Form 7 カスタマイズ ==================== */
.contact-form-wrapper {
    margin-top: 30px;
}

.wpcf7 {
    max-width: 100%;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e4ec;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wpcf7-form textarea {
    min-height: 180px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    align-self: center;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(-1px);
}

/* Contact Form 7 バリデーションメッセージ */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.wpcf7-validation-errors {
    background: #ffe8e6;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #e74c3c;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #155724;
}

/* フォーム設定ヘルプ */
.form-help {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d4 100%);
    border: 2px solid #ffd966;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.form-help h3 {
    margin: 0 0 15px 0;
    color: #d68800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-help p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.7;
}

.form-help pre {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.form-help code {
    color: #a9dc76;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
}

/* ==================== よくある質問 ==================== */
.faq-description {
    color: #666;
    margin-bottom: 25px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.faq-question {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e8ecf4 0%, #dce4f0 100%);
}

.faq-question i.fa-question {
    color: #667eea;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.faq-toggle {
    color: #667eea;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

/* ==================== その他の情報 ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-card h3 {
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    color: #333;
}

.info-card p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.7;
}

.info-card p:last-of-type {
    margin-bottom: 0;
}

.info-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.info-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* ==================== トップに戻るボタン ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.back-to-top i {
    font-size: 1.3rem;
}

/* ==================== アニメーション ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== レスポンシブデザイン ==================== */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 20px;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-hero-description {
        font-size: 0.9rem;
    }
    
    .contact-container {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .contact-content {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .flow-content h3 {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
        padding: 14px 30px;
    }
}

/* ==================== 印刷スタイル ==================== */
@media print {
    .contact-hero {
        background: none;
        color: black;
        padding: 20px;
    }
    
    .back-to-top {
        display: none;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 20px 25px !important;
    }
}




/* FAQ：buttonのデフォルト見た目を消して、2枚目の感じに寄せる */
.contact-page .faq-question{
  width: 100%;
  border: 0;
  outline: none;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* クリックできる感じを自然に */
.contact-page .faq-question{
  border-radius: 12px;
}

/* フォーカス見える化 */
.contact-page .faq-question:focus-visible{
  outline: 3px solid rgba(102,126,234,.25);
  outline-offset: 2px;
}



/* =====================================================
   FAQ表示崩れ対策（他CSSの干渉を打ち消して右画像の形に寄せる）
   ===================================================== */

.contact-page .faq-list{
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

.contact-page .faq-item{
  display: block !important;
  width: 100% !important;
}

.contact-page .faq-question{
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;

  /* buttonデフォルトの見た目を完全に消す */
  border: 0 !important;
  outline: none !important;
  background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%) !important;

  padding: 20px 25px !important;
  border-radius: 12px !important;
  text-align: left !important;
  font: inherit !important;
  color: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.contact-page .faq-question h3{
  flex: 1 !important;
  min-width: 0 !important;           /* flex内で自然に折り返すため重要 */
  margin: 0 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  word-break: break-word !important;
}

.contact-page .faq-toggle{
  margin-left: 12px !important;
  flex-shrink: 0 !important;
}

.contact-page .faq-answer{
  display: block !important;
  width: 100% !important;
}

/* 開いたときは “下に” 回答を出す */
.contact-page .faq-item.active .faq-answer{
  max-height: 500px;
  padding: 20px 25px;
}