@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ============================================================
   トップページ ブロックエディタ 見出しリセット
   SWELLのデフォルト見出しデコレーション（ネイビー背景ボックス等）を
   ブロックコンテンツ内では無効にしてシンプルな表示にする
============================================================ */

.post_content .wp-block-heading,
.editor-styles-wrapper .wp-block-heading {
    background: none !important;
    border: none !important;
    border-left: none !important;
    padding: 0.25em 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}

.post_content .wp-block-heading::before,
.post_content .wp-block-heading::after,
.editor-styles-wrapper .wp-block-heading::before,
.editor-styles-wrapper .wp-block-heading::after {
    display: none !important;
}

/* セクション見出し（h2）：中央寄せ・大きめ・ネイビー */
.post_content h2.wp-block-heading,
.editor-styles-wrapper h2.wp-block-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid #f97316 !important;
}

/* サブ見出し（h3・h4）：本文より大きく・太く */
.post_content h3.wp-block-heading,
.editor-styles-wrapper h3.wp-block-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.post_content h4.wp-block-heading,
.editor-styles-wrapper h4.wp-block-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* ============================================================
   ヘッダーロゴ：リンクをflexboxにしてimg+テキストを縦中央揃え
============================================================ */

.c-headLogo__link {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    height: 100%;
    padding: 0 !important;
}

.c-headLogo__img {
    height: var(--logo_size_pc) !important;
    width: auto !important;
}

@media screen and (max-width: 959px) {
    .c-headLogo__img {
        height: var(--logo_size_sp) !important;
    }
}

.c-headLogo__sitename {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    white-space: nowrap;
    line-height: 1.2;
}

/* ============================================================
   Contact Form 7 スタイル
============================================================ */

/* フォーム全体のレイアウト */
.wpcf7-form p {
    margin-bottom: 1rem;
}

/* control-wrap をブロック要素にしてフルwidth化 */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* テキスト・メール入力 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"] {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

/* テキストエリア */
.wpcf7-form textarea {
    display: block;
    width: 100%;
    min-height: 8rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
    resize: vertical;
    transition: box-shadow 0.2s;
}

/* フォーカス */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
    border-color: #f97316;
}

/* チェックボックス行 */
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    cursor: pointer;
}
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    color: #374151;
    font-size: 0.9rem;
}
.wpcf7-form .wpcf7-acceptance a {
    color: #f97316;
    text-decoration: underline;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 2.5rem;
    background: #f97316;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 200px;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: #ea580c;
}

/* 送信ボタンをセンター揃え */
.wpcf7-form .wpcf7-submit-wrap,
.wpcf7-form p:has(input[type="submit"]) {
    text-align: center;
}

/* ============================================================
   お知らせ（wp:latest-posts）レイアウト・リンクスタイル
   レイアウト：[タイトル + 日付（左）] [サムネイル（右）]
   リンク：ネイビー文字 + オレンジ矢印 + ホバーで下線
============================================================ */

/* li をグリッドに変更して text|image の2列レイアウト */
.wp-block-latest-posts.wp-block-latest-posts__list > li {
    display: grid;
    grid-template-areas:
        "title image"
        "date  image";
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

.wp-block-latest-posts__featured-image {
    grid-area: image;
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.wp-block-latest-posts__featured-image img {
    display: block;
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 6px;
}

a.wp-block-latest-posts__post-title {
    grid-area: title;
    color: #1e3a5f !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
    line-height: 1.4;
}

a.wp-block-latest-posts__post-title::after {
    content: '→';
    color: #f97316;
    flex-shrink: 0;
    font-weight: 400;
}

a.wp-block-latest-posts__post-title:hover {
    color: #f97316 !important;
    text-decoration: underline;
}

.wp-block-latest-posts__post-date {
    grid-area: date;
    align-self: start;
}

/* ============================================================
   私たちの仕事：サービスカード画像
   インラインスタイルをブロックに書けないためCSSで補完
============================================================ */
#services .wp-block-column {
    overflow: hidden;
}
#services .wp-block-column > .wp-block-image {
    margin: 0;
}
#services .wp-block-column > .wp-block-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* 相談の流れ：各ステップの中央揃え */
#flow .wp-block-columns .wp-block-column {
    text-align: center;
}

/* ============================================================
   施設フィルターボタン
   状態管理は .is-active 1クラスのみ。色はここで一元管理。
============================================================ */

/* 共通ベース */
.filter-btn--area,
.filter-btn--type {
    background: #ffffff;
    border-color: #d1d5db;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

/* エリア：ホバー */
.filter-btn--area:hover:not(.is-active) {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

/* エリア：アクティブ（ネイビー） */
.filter-btn--area.is-active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 施設種別：ホバー */
.filter-btn--type:hover:not(.is-active) {
    border-color: #f97316;
    color: #f97316;
}

/* 施設種別：アクティブ（オレンジ） */
.filter-btn--type.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* バリデーションエラーメッセージ */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}
.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    color: #374151;
}

