/*
Theme Name: kokonwa.jp
Template:   arkhe
Version:    1.0.0
Author:		design-ya.atelire
Description: Arkhe専用の子テーマ（古今和）
*/

/* ==========================================================================
   特殊スタイル
   ========================================================================== */
#breadcrumb {
  display: none;
}

/* 画面幅が767px以下のとき（スマホ） */
@media screen and (max-width: 767px) {
  .pc-only {
    display: none !important;
  }
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
/* Contact Form 7 全体のコンテナ */
.cf7-form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}
/* 行のレイアウト（PCでは横並び） */
.cf7-row,
.cf7-rowアライン-top {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
/* ラベル（項目名）のスタイル */
.cf7-label {
  flex: 0 0 240px;
  font-weight: bold;
  font-size: 15px;
  padding-top: 10px;
  display: flex;
  align-items: center;
}
.cf7-rowアライン-top .cf7-label {
  align-items: flex-start;
  padding-top: 12px;
}
/* 必須マークの装飾 */
.cf7-label.req::after {
  content: "必須";
  background-color: #e63946; /* 必須の赤ラベル */
  color: #fff;
  font-size: 11px;
  font-weight: normal;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 10px;
  display: inline-block;
}
/* 入力フィールドのラッパー */
.cf7-field {
  flex: 1;
  min-width: 280px;
}
/* 入力フォーム本体（テキスト、メール、セレクト、テキストエリア）の共通デザイン */
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field select,
.cf7-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  background-color: #fff;
}
/* フォーカス時のエフェクト */
.cf7-field input:focus,
.cf7-field select:focus,
.cf7-field textarea:focus {
  border-color: #0066cc; /* コーポレートカラーに合わせて変更してください */
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
  outline: none;
}
/* テキストエリアの高さ */
.cf7-field textarea {
  height: 160px;
  resize: vertical;
}
/* プライバシーポリシーエリア */
.cf7-privacy {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 14px;
}
.cf7-privacy p {
  margin-bottom: 15px;
}
.cf7-privacy input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
  vertical-align: middle;
}
/* 送信ボタンの装飾 */
.cf7-submit-wrap {
  text-align: center;
}
.btn-submit {
  background-color: #a6192e; /* 送信ボタンのメインカラー */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 60px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.2s;
  box-shadow: 0 4px 10px rgba(166, 25, 46, 0.2);
}
.btn-submit:hover {
  background-color: #a6192e;
  transform: translateY(-1px);
}
/* レスポンシブ対応：画面幅が短い（スマホなど）時は縦並びに変更 */
@media (max-width: 600px) {
  .cf7-label {
    flex: 0 0 100%;
    margin-bottom: 8px;
    padding-top: 0;
  }
}
/* ==========================================================================
   Contact Form 7 最終手段：完全防衛型・右上バツ印ダイアログ
   ========================================================================== */

.wpcf7-response-output {
  /* 💡 通常時は何が何でも絶対に非表示（最優先） */
  display: none !important;

  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: 90% !important;
  max-width: 420px !important;
  height: auto !important;
  min-height: 140px !important;

  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;

  /* バツ印のための上部余白 */
  padding: 55px 30px 40px 30px !important;
  margin: 0 !important;

  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 16px !important;
  font-weight: bold !important;
  line-height: 1.6 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-all !important;
  z-index: 999999 !important;
  cursor: pointer !important;
}

/* 🟢 送信成功時：JSが認めた独自のクラス（.show-success）がある時だけ表示 */
.wpcf7-response-output.show-success {
  display: flex !important;
  color: #46b450 !important;
  border: 2px solid #46b450 !important;
}

/* 🔴 入力エラー時：JSが認めた独自のクラス（.show-error）がある時だけ表示 */
.wpcf7-response-output.show-error {
  display: flex !important;
  color: #dc3232 !important;
  border: 2px solid #dc3232 !important;
}

/* ❌ 右上の黒いバツ印 */
.wpcf7-response-output::after {
  content: "×" !important;
  position: absolute !important;
  top: 12px !important;
  right: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  color: #333333 !important;
  font-size: 24px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  opacity: 0.6 !important;
}

.wpcf7-response-output:hover::after {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.l-header {
  background: rgba(255, 255, 255, 0.7);
}
/* ==========================================================================
   フッター
   ========================================================================== */

.l-footer {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0.8) 20px,
    rgba(255, 255, 255, 0.8) 100%
  ) !important;
}

/* フッター内のロゴ画像を中央寄せ＆上下マージン15px */
.show-pop, /* 前回の設定用クラス（無視してOKです） */
footer .c-copyright img {
  display: flex !important;
  justify-content: center !important;
  margin-top: 30px !important;
  margin-bottom: -10px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 画像自体のサイズや配置の微調整 */
footer .c-copyright img {
  display: block !important;
  max-width: 140px !important; /* 必要に応じてロゴの横幅を変更してください */
  height: auto !important;
}

/* ==========================================================================
   ナビゲーション
   ========================================================================== */
div.l-headerUnder {
  /* 上から下に白（70%）→ 白（0%）へのグラデーション */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
}
nav#gnav {
  background: rgba(255, 255, 255, 0);
}
nav#gnav ul {
  background: rgba(255, 255, 255, 0) !important;
}
nav#gnav ul li a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 10px;
  transition: background 0.3s;
  border: 2px solid rgba(166, 25, 46, 1);
}
nav#gnav ul li a:hover {
  background: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   アーカイブ
   ========================================================================== */
h1.c-pageTitle__main {
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   ランディング
   ========================================================================== */
.page-template-page-landing .l-header {
  display: none;
}

.page-template-page-landing .l-headerUnder__inner {
  display: none;
}

.l-footer__nav {
  display: none;
}


