/*
 Theme Name:   GutenType Child
 Description:  GutenType の子テーマ
 Author:       sanku
 Version:      1.0.0
 Template:     gutentype
 Text Domain:  gutentype-child
*/

/* 1. フォントをGoogleから読み込む（ファイルの最上部に記述） */
@import url('https://fonts.googleapis.com');

/* 2. サイト全体にフォントを適用する */
body {
    font-family: "Inter", "Zen Kaku Gothic New", "Roboto", sans-serif !important;
    font-size: 1.0rem !important;
	font-feature-settings: "lnum";
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

@media screen and (max-width: 768px) {
    .nisa-article,
    .nisa-article p,
    .nisa-article span,
    .nisa-article li,
    .nisa-article a {
        font-size: 1.4rem !important;
        line-height: 1.7 !important;   /* 少し広めが読みやすい */
    }

    /* トップパネルは別条件のまま */
    .top_panel .title h1,
    .top_panel .title p.subline {
        line-height: 1.2 !important;
    }
}

.intro-effect-side .header h1 {
    font-weight: 700 !important;
    line-height: 1.5 !important;
}
	
/* 投稿本体CSS */

/* --- PC・スマホ共通：色の設計図 --- */
.nisa-article {
    --bg-body: #ffffff;
    --text-main: #1f1f1f;
    --text-muted: #3b3a3a;
    --border-soft: #e5e7eb;
    --badge-bg: #f3f4f6;
	--accent-start: #6366f1;       /* indigo-500 系、信頼感+少し未来的 */
    --accent-end:   #a78bfa;       /* purple-400 系、柔らかいグラデ */
    --text-heading: #111827;       /* gray-900 に近いダーク */
    background: var(--bg-body);
    border-radius: 12px;
    padding: 60px 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

/* --- スマホ用の設定（画面幅767px以下） --- */
@media screen and (max-width: 767px) {
    .nisa-article {
        /* 外枠（影・背景・角丸）をすべてリセットして消す */
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;

        /* 中身が詰まりすぎないよう、上下の余白だけ残して左右は0に */
        padding: 20px 0 !important;
    }
}

/* ===== Typography ===== */
.nisa-article p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.4em;
    line-height: 1.8;
}

.nisa-article strong {
    font-weight: 500;
    color: var(--text-main);
}

.nisa-article h1,
.nisa-article h2,
.nisa-article h3,
.nisa-article h4 {
    font-family: inherit;           /* サイト全体のフォントを継承 */
    color: var(--text-main);
    line-height: 1.4;
    margin-top: 2.8rem;             /* 見出し間の余白を統一的に */
    margin-bottom: 1.2rem;
    scroll-margin-top: 80px;        /* アンカーリンク時のヘッダー被り対策（任意） */
}

/* h1: 記事タイトル - 落ち着いた重厚感 */
.nisa-article h1 {
    font-size: 2rem;                /* 少し大きくして存在感 */
    font-weight: 800;
    letter-spacing: -0.01em;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15);  /* 薄いアクセント下線 */
    padding-bottom: 0.6rem;
}

/* h2: メインセクション - グラデで差別化（既存を少し洗練） */
.nisa-article h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--text-main) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 1.6rem;
}

.nisa-article h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100px;                   /* 少し短めに調整 */
    height: 4px;
    background: linear-gradient(to right, #6366f1, #a78bfa);
    border-radius: 4px;
}

/* h3: サブポイント - 左ラインでプロフェッショナル感 */
.nisa-article h3 {
    font-size: 1.35rem;             /* h2より明確に小さく */
    font-weight: 700;
    position: relative;
    padding-left: 1.25rem;
    margin: 2.4rem 0 1.1rem;
}

.nisa-article h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 5px;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa);  /* 青グラデで信頼感 */
    border-radius: 4px;
}

/* h4: 細かい小見出し - シンプル＆軽め */
.nisa-article h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 2rem 0 0.9rem;
    padding-left: 0.5rem;           /* 少しインデントで階層感 */
    border-left: 3px solid rgba(99, 102, 241, 0.3);  /* 薄い左ラインでつなげる */
}

/* レスポンシブ調整（モバイルで読みやすく） */
@media (max-width: 768px) {
    .nisa-article h1 { font-size: 1.8rem; }
    .nisa-article h2 { font-size: 1.45rem; }
    .nisa-article h3 { font-size: 1.25rem; padding-left: 1rem; }
    .nisa-article h4 { font-size: 1.1rem; }
}

.nisa-article a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.2s ease;
}

.nisa-article a:hover {
    border-bottom-color: var(--accent);
    opacity: 0.8;
}

/* ===== Cards ===== */
.nisa-article .nisa-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.nisa-article .nisa-intro-highlight {
    border-left: 4px solid var(--accent);
    background: #f9fafb;
}

.nisa-article .nisa-intro-highlight-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

/* ===== Trap/Info Boxes ===== */
.nisa-article .nisa-trap {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.nisa-article .nisa-trap-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.7;
}

.nisa-article .nisa-trap ul {
    margin: 12px 0;
    padding-left: 20px;
}

.nisa-article .nisa-trap ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ===== Callouts ===== */
.nisa-article .nisa-callout {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f9fafb;
    margin-bottom: 10px;
    font-size: 0.93rem;
    line-height: 1.7;
}

.nisa-article .nisa-callout.bad {
    border-left: 4px solid #ef4444;
}

.nisa-article .nisa-callout.good {
    border-left: 4px solid #16a34a;
}

.nisa-article .nisa-callout.info {
    border-left: 4px solid #3b82f6;
}

.nisa-article .nisa-callout.warning {
    border-left: 4px solid #f59e0b;
}

.nisa-article .nisa-callout-label {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.nisa-article .nisa-callout-label.bad {
    color: #b91c1c;
}

.nisa-article .nisa-callout-label.good {
    color: #166534;
}

.nisa-article .nisa-callout-label.info {
    color: #1e40af;
}

.nisa-article .nisa-callout-label.warning {
    color: #b45309;
}

/* ===== Formula Box ===== */
.nisa-article .formula-box {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    color: #166534;
    line-height: 1.6;
    overflow-x: auto;
}

.nisa-article .formula-box strong {
    color: #166534;
}

/* ===== Stats Section ===== */
.nisa-article .stats-section {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.nisa-article .stats-section h4 {
    font-size: 1.28rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #111;
    letter-spacing: -0.01em;
}

.nisa-article .stat-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nisa-article .stat-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: all 0.15s ease;
}

.nisa-article .stat-item:hover {
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nisa-article .stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.4rem;
}

.nisa-article .stat-value {
    font-size: 1.34rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.nisa-article .stat-desc {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.45;
}

.nisa-article .stat-item.highlight .stat-value {
    color: #0066cc;
    font-size: 1.40rem;
}

.nisa-article .stat-item.highlight .stat-desc {
    color: #004080;
    font-weight: 500;
}

/* ===== Comparison Table ===== */
/* =============================================
   PCデザイン：シンプルなグレイ基調の縞々リスト
   ============================================= */
.nisa-article .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #ffffff;
    font-size: 0.95rem;
    color: #374151;
    table-layout: auto;
}

/* ヘッダーの設定 */
.nisa-article .comparison-table th {
    background: #f9fafb;
    font-weight: 700;
    color: #111827;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

/* セルの設定（共通） */
.nisa-article .comparison-table td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.6;
    color: #374151 !important;
    /* PCではラベルなし → padding-top は通常の16pxのまま */
}

/* 縞々（偶数行）の設定 */
.nisa-article .comparison-table tr:nth-child(even) {
    background: #fafafa;
}

.nisa-article .comparison-table td strong {
    color: inherit;
}

/* PCの縦線・下線 */
.nisa-article .comparison-table th,
.nisa-article .comparison-table td {
    border-right: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

@media (max-width: 768px) {

    .nisa-article .comparison-table,
    .nisa-article .comparison-table tbody,
    .nisa-article .comparison-table tr,
    .nisa-article .comparison-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .nisa-article .comparison-table thead {
        display: none;
    }

    .nisa-article .comparison-table tr {
        margin-bottom: 2.5rem;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* 1列目（項目名） */
    .nisa-article .comparison-table td:first-child {
        background: #f3f4f6 !important;
        color: #111827 !important;
        font-weight: 800;
        padding: 14px 16px;
        border-bottom: 1px solid #e5e7eb;
        font-size: 1rem;
    }

    /* 内容セル（2列目以降） */
    .nisa-article .comparison-table td:not(:first-child) {
        padding: 0.8rem 16px 1.2rem 16px; 
        border-bottom: 1px solid #f9fafb;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    /* スマホ専用ラベル：元のdisplay:block方式で自動化 */
    .nisa-article .comparison-table td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-size: 0.95rem;
        color: #4b5563;
        margin: 0 0 0.6rem 0; 
        font-weight: 900;
        line-height: 1.3;
    }

    .nisa-article .comparison-table td:last-child {
        border-bottom: none;
    }
}

/* ===== Summary Section ===== */
.nisa-article .nisa-summary {
    background: #f9fafb;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.nisa-article .nisa-summary-heading {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.nisa-article .nisa-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nisa-article .nisa-summary-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.nisa-article .nisa-summary-list-num {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ===== Disclaimer ===== */
.nisa-article .nisa-disclaimer {
    background: #f9fafb;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    margin-top: 32px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.nisa-article .nisa-disclaimer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ===== Conclusion Box ===== */
.nisa-article .conclusion {
    background: #fafafa;
    border-left: 4px solid #ccc;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 1.03rem;
    line-height: 1.65;
    color: #222;
}

.nisa-article .conclusion p {
    margin: 0.9rem 0;
    font-size: 1rem;
}

.nisa-article .conclusion p:last-child {
    margin-bottom: 0;
}

.nisa-article .conclusion strong {
    color: #000;
}

/* ===== Pattern Cards ===== */
.nisa-article .pattern-card {
    background: #ffffff;
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.nisa-article .pattern-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.nisa-article .pattern-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 10px;
}

.nisa-article .pattern-badge.nisa {
    background: #dbeafe;
    color: #0c4a6e;
}

.nisa-article .pattern-badge.ideco {
    background: #e9d5ff;
    color: #6b21a8;
}

.nisa-article .pattern-badge.both {
    background: #dcfce7;
    color: #166534;
}

/* ===== Premium Conversation UI ===== */

.nisa-article .nisa-convo-block {
    margin: 50px 0;
}

/* 行 */
.nisa-article .nisa-convo-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* アバター */
.nisa-article .nisa-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

/* 博士 */
.nisa-article .nisa-avatar.doctor {
    border: 2.5px solid #c9a227;
}

/* 男性 */
.nisa-article .nisa-avatar.male {
    background: rgba(74, 123, 209, 0.08);
    color: #3560ad;
	margin-left:6px;
}

/* 女性 */
.nisa-article .nisa-avatar.female {
    background: rgba(229, 106, 166, 0.08);
    color: #c24886;
	margin-left:6px;
}

/* カード本体 */
.nisa-article .nisa-convo-card {
    flex: 1;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
}

/* 左ライン＋極薄背景 */
.nisa-article .nisa-convo-card.doctor {
    border-left: 4px solid #c9a227;
    background: rgba(201, 162, 39, 0.05);
}

.nisa-article .nisa-convo-card.male {
    border-left: 3.5px solid #4a7bd1;
    background: rgba(74, 123, 209, 0.04);
}

.nisa-article .nisa-convo-card.female {
    border-left: 3.5px solid #e56aa6;
    background: rgba(229, 106, 166, 0.04);
}

/* 名前 */
.nisa-article .nisa-convo-name {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 6px;
    letter-spacing: .04em;
}

.nisa-article .nisa-convo-card.male .nisa-convo-name {
    color: #3560ad;
}

.nisa-article .nisa-convo-card.female .nisa-convo-name {
    color: #c24886;
}

.nisa-article .nisa-convo-card.doctor .nisa-convo-name {
    color: #8c6b12;
}

/* テキスト最適化 */
.nisa-article .nisa-convo-text {
    font-size: .96rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.nisa-article .nisa-convo-text p {
    margin-bottom: .9em;
}

.nisa-article .nisa-convo-text p:last-child {
    margin-bottom: 0;
}

/* 箇条書き */
.nisa-article .nisa-convo-text ul {
    padding-left: 18px;
    margin: .8em 0;
}

.nisa-article .nisa-convo-text li {
    margin-bottom: .5em;
}

/* 引用 */
.nisa-article .nisa-convo-text blockquote {
    border-left: 3px solid #bbb;
    padding-left: 12px;
    margin: .8em 0;
    color: #555;
    font-style: italic;
}

/* 数字強調 */
.nisa-article .nisa-num {
    font-weight: 700;
    color: #444;
    font-variant-numeric: tabular-nums;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nisa-article {
        padding: 30px 20px;
    }

    .nisa-article h1 {
        font-size: 1.6rem;
    }

    .nisa-article h2 {
        font-size: 1.3rem;
    }

    .nisa-article h3 {
        font-size: 1.15rem;
    }

    .nisa-article .stats-section {
        padding: 0;
    }

    .nisa-article .stat-item {
        padding: 1rem 1.25rem;
    }

    .nisa-article .comparison-table {
        font-size: 0.9rem;
    }

    .nisa-article .comparison-table th,
    .nisa-article .comparison-table td {
        padding: 10px;
    }
}

/* セクションイントロ微調整 */
.nisa-article .section-intro,
.nisa-article p {
    font-size: 1.0em;
}

/* === フロントページNISAシミュレーター === */
.nisa-simulator {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background: #fafafa;
    border-radius: 18px;
    font-size: 1em;
    line-height: 1.7;
    text-align: left;
}

/* === ラベル === */
.nisa-simulator label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95em;
    /* 少し控えめ */
    font-weight: 600;
    color: #444;
}

/* === 入力欄 === */
.nisa-simulator input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.0em;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
}

/* 入力欄どうしの余白 */
.nisa-simulator br {
    display: block;
    margin-bottom: 18px;
    content: "";
}

/* === ボタン === */
.nisa-simulator button {
    width: 100%;
    margin-top: 12px;

    font-size: 1.4em;
    padding: 22px;

    background: #ff4040;
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
}

/* === スマホ === */
@media (max-width: 600px) {
    .nisa-simulator {
        padding: 20px;
    }

    .nisa-simulator input {
        font-size: 1.15em;
    }
}


/* トップページの最新記事 */
/* 1. 不要パーツの非表示 */
.sc_blogger_default .post_meta_item.post_date,
.sc_blogger_default .sc_blogger_item_excerpt,
.sc_blogger_default .sc_blogger_item_button,
.sc_blogger_default .mask {
    display: none !important;
}

/* 2. 強力な3列Gridレイアウト（ここを固定） */
.sc_blogger_default .sc_blogger_columns_wrap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
    height: auto !important;
}

/* テーマ側のカラム幅設定(1_3)をリセットしてGridに任せる */
.sc_blogger_default .trx_addons_column-1_3 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* 3. 画像エリアの最小限の設定（デザイン維持のみ） */
.sc_blogger_item_featured {
    position: relative !important;
    overflow: hidden !important;
}

.sc_blogger_item_featured img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 4. カード全体のデザイン（角丸12px） */
.sc_blogger_default .sc_blogger_item {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* 5. 文字エリア */
.sc_blogger_item_content {
    padding: 15px !important;
    flex-grow: 1;
}

/* 6. スマホ対応（タブレット2列 / スマホ1列） */
@media (max-width: 850px) {
    .sc_blogger_default .sc_blogger_columns_wrap {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .sc_blogger_default .sc_blogger_columns_wrap {
        grid-template-columns: 1fr !important;
    }
}



/* RSSウィジェット専用スタイル（他の要素に影響しないように絞る） */
.widget_rss ul {
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    list-style: none;
}

.widget_rss ul li {
    margin: 0;
    padding: 12px 16px;
    line-height: 1.5;
    border: none;
}

.widget_rss ul li:nth-child(odd) {
    background-color: rgba(245, 245, 245, 0.92);
}

.widget_rss ul li:nth-child(even) {
    background-color: rgba(235, 235, 235, 0.88);
}

/* 日付 */
.widget_rss .rss-date {
    font-size: 0.85em;
    color: #555;
    margin-left: 0.8em;
}

/* columns_wrapのgapはRSS以外に影響しないよう削除 or 条件付きに */
@media (min-width: 769px) {

    /* gapはRSS専用ウィジェットにだけ適用（.widget_rss .columns_wrap に限定） */
    .widget_rss .columns_wrap {
        gap: 20px;
    }
}

/* 1. トップページの最新記事の画像を明るくする */
/* コンテナ側：ズームのはみ出し防止（ほぼ必須） */
.post_featured.hover_simple {
    overflow: hidden !important;
    position: relative !important; /* 必要に応じて */
}

/* 画像の基本スタイル（最初は明るく） */
.post_featured.hover_simple img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    filter: brightness(1.70) !important;
    transform: scale(1.00) !important;
    transition: transform 0.40s ease !important;
    transition: filter 0.40s ease !important;
    object-fit: cover !important;          /* 必要に応じて追加（画像が歪まないように） */
}

/* ホバー時：少しズーム + 明るさを少し残して戻す */
.post_featured.hover_simple:hover img {
    transform: scale(1.08) !important;
    filter: brightness(1.15) !important;
}

/* 念のため：ホバー解除後もスムーズに戻るように（上書き対策） */
.post_featured.hover_simple img {
    transition: transform 0.40s ease !important,
                filter 0.40s ease !important;
}

/* お問い合わせフォームの幅を制限 */
.wpcf7,
#wpcf7-f24-p3-o1 {
    width: 600px !important;
    max-width: 600px !important;
    margin-top: 2rem !important; 
    padding: 2.5rem !important;  
    background-color: #ffffff !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important; 
    border: 1px solid #e0e7ff !important; 
    box-sizing: border-box;
    transition: all 0.3s ease !important;
}

/* フォーム内の入力欄・セレクト・テキストエリアを統一感持たせて洗練 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background-color: #f8fafc !important; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important; 
}

/* フォーカス時（入力中）の強調 */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none !important;
    border-color: #6366f1 !important; 
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important; 
}

/* 送信ボタンを投資サイトらしく堂々と */
.wpcf7 input[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    background-color: #2c5699 !important; 
    color: white !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important; 
}

.wpcf7 input[type="submit"]:hover {
    background-color: #4338ca !important;  
    transform: translateY(1px) !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
}

/* モバイル対応（600px以下でフル幅） */
@media screen and (max-width: 600px) {
    .wpcf7,
    #wpcf7-f24-p3-o1 {
        width: 100% !important;
        max-width: none !important;
        padding: 1.5rem !important; 
        margin: 1rem auto !important;
    }
}