/*
Theme Name: Twenty Twenty-Five-child
Theme URI: 
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five themeの子テーマです。
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* ----------------------
 * 
 * Contact Form 7 スタイル 
 * 
 * ----------------------*/

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

.required {
  color: #e74c3c;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #17D9FF;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
  background-color: #f8f9fa;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* プライバシーポリシー同意チェックボックス */
.form-group .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-group .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.6;
}

.form-group .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 3px;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 送信ボタン */
.submit-group {
  margin: 30px 0 0 0;
  text-align: center;
}

.btn-submit {
  background-color: #17D9FF;
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width: 100%;
  max-width: 200px;
}

.btn-submit:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.wpcf7-turnstile {
    text-align: left;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-mail-sent-ok {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.wpcf7-mail-sent-ok {
  background-color: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 20px;
  }

  .btn-submit {
    width: 100%;
    max-width: none;
  }
}

/* ----------------------
 * 
 * h3タグ 蛍光ペン風下線
 * 
 * ----------------------*/

.highlights {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.highlights::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.35em;
  background: linear-gradient(to right, #17d9FF 0%, rgba(23, 217, 255, 0.25) 100%);
  z-index: -1;
}

/* ----------------------
 * 
 * 無料相談・お問い合わせ 固定ボタン
 * 
 * ----------------------*/

.fixed-contact-btn {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background-color: #17d9ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.fixed-contact-btn:hover {
  opacity: 0.9;
  background-color: #14c4e6;
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .fixed-contact-btn {
    width: 100px;
    height: 100px;
    font-size: 14px;
  }
}
/* ----------------------
 * フロントページ用「最新の投稿」ブロック（wp-block-latest-posts）
 * 日時→タイトルの順、タイトル下線なし
 * ----------------------*/

/* ul に list クラスが付くので、その直下の li を flex に（list-style を消して確実に） */
.wp-block-latest-posts__list > li {
  display: flex;
  flex-direction: column;
  list-style: none;
}
/* li の直下の子だけに order を指定 */
.wp-block-latest-posts__list > li > .wp-block-latest-posts__featured-image { order: 0; }
.wp-block-latest-posts__list > li > .wp-block-latest-posts__post-date { order: 1; }
.wp-block-latest-posts__list > li > .wp-block-latest-posts__post-title { order: 2; }
.wp-block-latest-posts__list > li > .wp-block-latest-posts__post-author { order: 3; }
.wp-block-latest-posts__list > li > .wp-block-latest-posts__post-excerpt,
.wp-block-latest-posts__list > li > .wp-block-latest-posts__post-full-content { order: 4; }

.wp-block-latest-posts__post-title,
.wp-block-latest-posts__post-title:hover {
  text-decoration: none;
}

/* ----------------------
 * 投稿一覧：タイトル下線なし
 * ----------------------*/
/* タイトルの下線を消す */
.wp-block-query .wp-block-post-title a,
.wp-block-query .wp-block-post-title a:hover {
  text-decoration: none;
}

/* ----------------------
 * フッター：スマホでもナビをそのまま表示（ハンバーガーにしない）
 * ----------------------*/
@media (max-width: 599px) {
  footer .wp-block-navigation .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
  footer .wp-block-navigation .wp-block-navigation__responsive-container {
    display: block !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  footer .wp-block-navigation .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close {
    display: none !important;
  }
}

/* ----------------------
 * リンクの下線を消す
 * ----------------------*/
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----------------------
 * 表のストライプの色を変える
 * ----------------------*/
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){
  background-color: rgba(23, 217, 255, 0.2);
}

/* -------------------------------
 * サイト全体の記事本文を両端揃えにする
 * --------------------------------*/
@media (max-width: 599px) {
	.entry-content p {
    text-align: justify;
    text-justify: inter-ideographic; /* 日本語に最適化 */
    word-break: break-all;          /* 英単語の伸びを防ぐ */
	}
｝