/*
Theme Name:Drop child
Theme URI:https://tcd-theme.com/
Description:WordPressテーマ「Drop」の自作子テーマです。
Template:drop_tcd087
Author:Kazunaga Yamada
Author URI:https://kuranju.hao-resort.com/
Version:2.4
Text Domain:tcd-drop
*/

/* ━━━ フッター全体 ━━━━━━━━━━━━━ */
.site-footer {
    background-color: #f5f1eb; /* ロゴが映える深みある茶色 */
    color: #4a423a;            /* 高級感ある生成り白 */
    padding: 60px 20px;
    font-family: 'Noto Serif JP', serif;
  }
  
  /* ━━━ 中央配置 ━━━━━━━━━━━━━ */
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  /* ━━━ ロゴ画像 ━━━━━━━━━━━━━ */
  .footer-brand img {
    width: 180px;
    height: auto;
    max-height: 120px;
    margin: 0 auto 20px;
    display: block;
  }
  
  /* ━━━ ナビリンク ━━━━━━━━━━━━━ */
  .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .footer-nav a {
    color: #4a423a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
  }
  
  .footer-nav a:hover {
    color: #c9bca4; /* 上品な金系カラー */
  }
  
  /* ━━━ 連絡先 ━━━━━━━━━━━━━ */
  .footer-contact {
    font-size: 0.85rem;
    color: #1a120a;  /* 少し落ち着いた生成り */
    margin-bottom: 20px;
    margin-top: 40px;
    line-height: 1.6;
  }
  
  /* ━━━ コピーライト ━━━━━━━━━━━━━ */
  .footer-copy {
    font-size: 0.8rem;
    color: #1a120a;
  }

/* TOPへボタン */
  .back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #7a5c3c; /* 通常時の背景色（高級赤茶） */
    border-radius: 50%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }
  
  .back-to-top.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  .back-to-top:hover {
    background-color: #5d442c; /* ホバー時に少し濃く */
    color: #fff; /* ← ここが重要。赤くなるのを防止！ */
  }
  
  /* 三角矢印マーク */
  .back-to-top .arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(135deg); /* ← ここを135度にすると↑になります！ */
    margin: 2px 0 0 0; /* ← 中央やや下寄りに */
  }


  /* コンタクトフォーム7 */
  /* 画面外にテキストがはみ出すバグ対応 */
  .kuranju-contact-form * {
    box-sizing: border-box;
  }
  .kuranju-contact-form {
    overflow-x: hidden;
  }

 /* ===== 全体ラップ ===== */
.kuranju-contact-form {
  background: url('http://test.kuranju.hao-resort.com/wp-content/uploads/2025/04/壁紙LP.jpg') repeat;
  background-size: cover;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

/* ===== テーブル整形 ===== */
.kuranju-contact-form table.inquiry {
  width: 100%;
  border-spacing: 0 20px;
  border-collapse: separate;
}

/* テーブル行をflex化して縦位置を揃える */
.kuranju-contact-form tr {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* ===== ラベル（th） ===== */
.kuranju-contact-form th {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  font-size: 16px;
  color: #4b392d;
  width: 35%;
  padding: 8px 12px 0 0;
  background: transparent;
  border: none;
  white-space: nowrap;
}

/* ラベル内のテキストとバッジ */
.kuranju-contact-form th span,
.kuranju-contact-form th b {
  display: inline-block;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}
.kuranju-contact-form th span.haveto,
.kuranju-contact-form th span.any {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  line-height: 1;
  margin-right: 10px;
  position: relative;
  top: -1px;
}
.kuranju-contact-form .haveto {
  background: #b03a2e;
}
.kuranju-contact-form .any {
  background: #7f8c8d;
}

/* ===== 入力欄（td） ===== */
.kuranju-contact-form td {
  width: 65%;
  background: transparent;
  padding: 0;
  border: none;
  padding-bottom: 12px;
}

/* ===== 入力フィールド共通 ===== */
.kuranju-contact-form input,
.kuranju-contact-form select,
.kuranju-contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  min-height: 48px;
  font-size: 16px;
  border: 1px solid #d4b783;
  border-radius: 10px;
  background: #fff;
  color: #4b392d;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== フォーカス時の金色光演出 ===== */
.kuranju-contact-form input:focus,
.kuranju-contact-form select:focus,
.kuranju-contact-form textarea:focus {
  border-color: #bfa058;
  box-shadow: 0 0 6px 2px rgba(191, 160, 88, 0.3);
  outline: none;
}

/* textarea専用 */
.kuranju-contact-form textarea {
  min-height: 140px;
  resize: vertical;
  overflow-y: auto;
}

/* チェックボックス */
.kuranju-contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4b783;
}

/* ===== チェックボックスとテキストの中央揃え ===== */
.kuranju-contact-form .wpcf7-acceptance {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
  font-size: 14px;
  color: #4b392d;
  flex-wrap: wrap;
  word-break: break-word;
}

/* ===== 送信ボタン ===== */
.kuranju-contact-form .submit-area {
  text-align: center;
  margin-top: 40px;
}
.kuranju-contact-form input[type="submit"] {
  background: #4b392d;
  color: #fff;
  border: 2px solid #d4b783;
  padding: 16px 40px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  align-items: center;       /* ← 縦中央揃え */
  justify-content: center;   /* ← 横中央揃え */
  height: 56px; /* ← 高さをしっかり確保 */
}
.kuranju-contact-form input[type="submit"]:hover {
  background: #fff;
  color: #4b392d;
  border-color: #bfa058;
  box-shadow: 0 0 12px rgba(191, 160, 88, 0.5);
  transform: translateY(-2px);
}

/* ===== 外枠リセット（テーマ干渉回避） ===== */
.entry-content {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}
/*送信ボタンが中央揃えに戻る*/
.kuranju-contact-form tr.submit-row {
  display: table-row !important;
}
/* ===== スマホ対応：縦並び化・テキスト左揃え ===== */
@media (max-width: 768px) {
  .kuranju-contact-form tr {
    display: block;
  }

  .kuranju-contact-form th,
  .kuranju-contact-form td {
    display: block;
    width: 100%;
  }

  .kuranju-contact-form th {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
  }

  .kuranju-contact-form th b {
    text-align: left;
    width: 100%;
  }

  .kuranju-contact-form .submit-area input[type="submit"] {
    width: 100%;
  }
}

.kuranju-contact-form input[type="checkbox"] {
  width: 20px!important;
  height: 20px;
  accent-color: #d4b783;
  vertical-align: middle;
}

.wpcf7 {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/*スマホだけ左右余白を減らす*/
@media (max-width: 768px) {
  .kuranju-contact-form {
    padding: 24px 16px;
  }
  .kuranju-contact-form input,
  .kuranju-contact-form textarea,
  .kuranju-contact-form select {
    max-width: 100%;
  }
  .kuranju-contact-form th,
  .kuranju-contact-form td {
    padding: 5px 0!important; /* ← 左右の余白をなくして、上下だけに */
  }
  .kuranju-contact-form {
    background-image: none;
    background-color: #f9f6f1; /* 落ち着いた和紙風の淡いベージュ */
  }
  .wpcf7 form {
    margin: 0 !important;
  }
}

