@charset "UTF-8";

/* =========================================
   お問い合わせページ (Contact) 特有のスタイル
   ========================================= */

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* --- 連絡先インフォメーション --- */
.contact-intro {
  text-align: center;
  margin-bottom: 60px;
}

.contact-lead {
  margin-bottom: 40px;
  color: var(--muted);
  line-height: 2;
}

@media (max-width: 768px) {
  .contact-lead {
    font-size: 4vw;
    text-align: left;
  }
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.method-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--line);
  padding: 30px;
  min-width: 280px;
  border-radius: var(--radius);
  text-align: center;
}

.method-card h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
}

.method-card p {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 5px;
}

.phone-number {
  display: block;
  font-size: 1.5rem;
  margin: 10px 0;
  font-family: "Cinzel", serif;
  color: #fff;
}

.method-card a {
  transition: color 0.3s;
}

.method-card a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* --- お問い合わせフォーム --- */
.form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 40px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.95rem;
  font-family: "Shippori Mincho", serif;
}

.required::after {
  content: " *";
  color: #c97373;
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  text-align: center;
  margin-top: 50px;
}

.form-submit .btn {
  min-width: 240px;
  font-size: 1.1rem;
  padding: 16px 32px;
}

.back-action {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .contact-methods {
    flex-direction: column;
    gap: 20px;
  }
  
  .form-container {
    padding: 30px 20px;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  
  .method-card {
    min-width: auto;
  }
}



/* =========================================
   Contact Form 7 用の調整スタイル
   ========================================= */

/* CF7が自動挿入するpタグの余白リセット（レイアウト崩れ防止） */
.wpcf7 p {
    margin: 0;
    padding: 0;
}

/* エラーメッセージ（入力必須など）のデザイン */
.wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #ff6b6b; /* エラー時の赤文字 */
    margin-top: 5px;
    display: block;
    font-weight: bold;
}

/* 送信成功・失敗メッセージの枠 */
.wpcf7-response-output {
    margin: 2em 0 0 !important;
    padding: 1em !important;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3); /* 背景を少し暗く */
    border: 1px solid var(--gold) !important; /* 枠線をゴールドに */
    color: #fff;
}

/* ローディングアイコンの位置調整 */
.wpcf7-spinner {
    position: absolute;
    margin-top: 10px;
}

/* 必須項目のエラー時に枠線を赤くする */
.wpcf7-not-valid {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}


/* =========================================
   CF7の不要な表示を消す修正
   ========================================= */

/* 謎の枠1（下）：送信メッセージ枠 */
/* メッセージが空のときは、枠線・余白ごと非表示にする */
.wpcf7-response-output:empty {
    display: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 謎の線2（上）：隠しフィールド等の枠線 */
/* fieldsetタグに勝手に付くボーダーを消す */
.wpcf7 fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

/* 読み上げ用テキストなどを完全に隠す */
.screen-reader-response {
    display: none !important;
    position: absolute;
    overflow: hidden;
}



/* =========================================
   追加セクション（規約・運営情報）のスタイル
   ========================================= */

/* --- アクセスセクションの調整 --- */
#access .list-check li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 0.8em;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 0.4em;
    color: var(--ink);
}
#access .list-check li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8em;
    top: 0.2em;
}

/* --- ご利用規約 --- */
.terms-section {
    margin-top: 80px;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.term-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--line);
    padding: 25px;
    border-radius: var(--radius);
}

.term-box h4 {
    color: var(--gold);
    font-family: "Shippori Mincho", serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.term-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.term-box li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 0.5em;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.term-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* --- 運営情報 --- */
.company-section {
    margin-top: 80px;
}

.company-info-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--line);
    padding: 40px;
    border-radius: var(--radius);
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.list-row {
    display: flex;
    border-bottom: 1px dashed var(--line);
    padding: 15px 0;
}

.list-row:last-child {
    border-bottom: none;
}

.list-row dt {
    width: 140px;
    color: var(--gold);
    font-weight: 500;
    font-family: "Shippori Mincho", serif;
    flex-shrink: 0;
}

.list-row dd {
    flex: 1;
    color: var(--ink);
    margin: 0;
}

.list-row dd a {
    text-decoration: underline;
    transition: color 0.3s;
}
.list-row dd a:hover {
    color: var(--gold);
}

.copyright-text {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--muted);
    font-family: "Cinzel", serif;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .reverse-sp {
        display: flex;
        flex-direction: column-reverse;
    }
    
    /* 規約グリッドを1列に */
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 運営情報のレイアウト */
    .company-info-box {
        padding: 25px;
    }
    .list-row {
        flex-direction: column;
        gap: 5px;
    }
    .list-row dt {
        width: 100%;
        font-size: 0.9rem;
    }
}