/*
 Theme Name: Twenty Twenty-Five Child
 Description: Child theme for Twenty Twenty-Five
 Author: Hana web lab.
 Template: twentytwentyfive
 Version: 1.0
 ------------------------------------------
Twenty Twenty-Fiveの子テーマ用CSS
 ＊このテーマはブロックエディタ用テーマなので、親テーマのstyle.cssは読み込まれない様子。(一応function.phpで継承)
   コードでカスタマイズしたい場合は子テーマ経由で行う。
 ------------------------------------------
 Created 2025.12.18 Hana web lab.
*/

/* ==========================================================================
   Contact Form 7 カスタムデザイン
   ========================================================================== */

/* 1. フォーム全体のレイアウト調整 */
.wpcf7-form {
    max-width: 600px; /* フォームが広がりすぎないように制限 */
    margin: 0 auto;   /* 中央寄せ */
}

/* 2. 入力項目のラベル（お名前、Mail、ご相談内容など）の装飾 */
.wpcf7-form p {
    margin-bottom: 20px;
    font-weight: bold;
    color: #444; /* 少し柔らかい黒 */
}

/* 3. 入力欄（テキスト、メール、テキストエリア）の共通スタイル */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    background-color: #faf6f3; /* 温かみのある薄いベージュ */
    border: 1px solid #eee;    /* 非常に薄い境界線 */
    border-radius: 6px;        /* 角を少し丸く */
    width: 100%;               /* 横幅いっぱい */
    padding: 12px;             /* 内側の余白をたっぷり取る */
    font-size: 16px;           /* 入力しやすく */
    box-sizing: border-box;    /* 枠線を含めた幅計算 */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* 入力欄にフォーカスした時（クリックした時）の演出 */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: #dfe8f6;     /*薄青 */
    box-shadow: 0 0 5px rgba(209, 220, 237, 0.5); /* ほんのり光らせる */
    outline: none;
}

/* 4. ご相談内容（テキストエリア）の高さを調整 */
.wpcf7-form textarea {
    height: 150px;
}

/* 5. 送信ボタンのスタイル */
.wpcf7-form .wpcf7-submit {
    background-color: #e2eaf4; /* カンプ通りの優しいブルー */
    color: #555;               /* 文字色を少し濃いグレーに */
    font-weight: bold;
    border: none;
    border-radius: 30px;       /* 角をしっかり丸めて「丸いボタン」に */
    padding: 12px 60px;        /* ボタンを横長に */
    display: block;            /* 中央寄せのためにブロック化 */
    margin: 30px auto 0;       /* 上に余白を作り、左右中央寄せ */
    cursor: pointer;
    transition: 0.3s;          /* ホバー時の変化を滑らかに */
    -webkit-appearance: none;  /* iPhone等でのデフォルトスタイルを解除 */
    font-size: 1.5rem;
}

/* ボタンにマウスを乗せた時 */
.wpcf7-form .wpcf7-submit:hover {
    background-color: #d1dced; /* 少しだけ濃くして「押せる感」を出す */
    transform: translateY(-1px); /* ほんの少し上に浮かせる演出 */
}
/* ========================================================================== */


/* ========================================================================== */
.works-info-ditail-column{
  position: relative;
  padding-bottom: 4rem !important;
}
.works-info-ditail-title{
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 !important;
}
.works-info-ditail-area{
  top:1.5rem;
  padding-top:3.5rem !important;
}


/* ========================================================================== */
/* NEWSリスト全体の枠組み */
.my-news-list {
    padding: 0;
    margin: 0;
    list-style: none; /* 中丸ポッチを消す */
}

/* 各記事のまとまり（li） */
.my-news-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0; /* 下線で区切る */
    display: flex;
    flex-direction: column; /* スマホでは縦並び */
    gap: 5px;
}

/* 記事タイトル */
.my-news-list a.wp-block-latest-posts__post-title {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.5;
}

.my-news-list a.wp-block-latest-posts__post-title:hover {
    color: #e2eaf4; /* カンプのアクセントカラーにふわっと変える */
    text-decoration: underline;
}

/* 日付のスタイル */
.my-news-list .wp-block-latest-posts__post-date {
    color: #999;
    font-size: 0.85rem;
    order: -1; /* 日付をタイトルの上に配置する（お好みで） */
}

/* PCサイズ（600px以上）では横並びにする */
@media (min-width: 600px) {
    .my-news-list li {
        flex-direction: row; /* 横並び */
        align-items: baseline;
        gap: 20px;
    }
    
    .my-news-list .wp-block-latest-posts__post-date {
        min-width: 120px; /* 日付の幅を揃える */
        order: 0; /* 日付を左、タイトルを右に戻す */
    }
}

/* ========================================================================== */
.google-map-area{
  text-align: center;
  overflow: hidden;
}

/* 2026.02.09 newsカード add start --------------------------- */
/* カード全体のコンテナ */
.news-card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 横3カラム（幅により自動調整） */
    gap: 24px;
    margin-bottom: 40px;
}

/* カード単体 */
.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 画像部分 */
.news-card-figure {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.8rem;
}

/* テキスト部分 */
.news-card-body {
    padding: 16px;
}

.news-card-date {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
}

/* ページネーション */
.news-pagination {
    text-align: center;
    margin-top: 40px;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.news-pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.news-pagination > br {
    display: none;
}
/* 2026.02.09 newsカード add end  --------------------------- */