/*
Theme Name: HIDGIA
Author: HIDGIA
Description: ハイドジア株式会社の専用テーマ
Version: 1.0.3
*/

/* カスタムスタイル */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: #f9f9f7;
    cursor: default;
}

/* WordPressが生成するクラスへの対応 */
.custom-logo {
    max-height: 40px;
    width: auto;
}

/* カードのスタイル */
.card-link-block {
    display: block;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.card-link-block:hover {
     box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* --- 記事本文内のスタイル --- */

.entry-content {
    line-height: 1.75;
}
.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}
.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
/* entry-content直下の .wp-block-button のスタイルは、
   下のブロックエディタ専用セクションで上書きするため、ここでは削除してもOK */

/* ▼▼▼ ここから装飾図形のアニメーション（更新版） ▼▼▼ */

/* 図形の基本スタイルを fixed に変更 */
.decorative-shape {
    position: fixed; /* absolute から fixed に変更してスクロールに追従させる */
    z-index: -1;
    border-radius: 9999px;
    opacity: 0; /* 初期状態は透明にしておく */
}

/* 読み込み時にポップインするアニメーション (共通) */
@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 0.8; /* 最終的な透明度 */
        transform: scale(1);
    }
}

/* --- 4種類の浮遊アニメーションを定義 --- */
@keyframes float-up-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}
@keyframes float-left-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}
@keyframes float-diagonal-1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-15px, -15px); }
}
@keyframes float-diagonal-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(15px, 15px); }
}

/* --- 4つの円にそれぞれ別々のアニメーションを割り当てる --- */
body > .decorative-shape:nth-of-type(1) {
    animation: pop-in 0.8s 0.1s ease-out forwards,
               float-diagonal-1 8s 0.9s ease-in-out infinite alternate;
}
body > .decorative-shape:nth-of-type(2) {
    animation: pop-in 0.7s 0.3s ease-out forwards,
               float-up-down 10s 1s ease-in-out infinite alternate;
}
body > .decorative-shape:nth-of-type(3) {
    animation: pop-in 0.9s 0.5s ease-out forwards,
               float-left-right 9s 1.4s ease-in-out infinite alternate;
}
body > .decorative-shape:nth-of-type(4) {
    animation: pop-in 0.6s 0.2s ease-out forwards,
               float-diagonal-2 12s 0.8s ease-in-out infinite alternate;
}
/* ▲▲▲ アニメーションここまで ▲▲▲ */


/* ▼▼▼ マイスピーのフォーム専用スタイル ▼▼▼ */
/* (前回の修正箇所はそのまま) */
.entry-content .myForm .input_unit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.entry-content .myForm .my_column.my_left {
    width: 100%;
    padding-right: 1rem;
    margin-bottom: 0.5rem;
}
.entry-content .myForm .my_column.my_right {
    width: 100%;
}
@media (min-width: 768px) {
    .entry-content .myForm .my_column.my_left {
        width: 30%;
        margin-bottom: 0;
    }
    .entry-content .myForm .my_column.my_right {
        width: 70%;
    }
}
.entry-content .myForm label.form_input_label {
    font-weight: bold;
}
.entry-content .myForm label.required::after {
    content: "必須";
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.entry-content .myForm input[type="text"],
.entry-content .myForm textarea,
.entry-content .myForm select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}
.entry-content .myForm .checkbox_frame {
    display: flex;
    align-items: center;
}
.entry-content .myForm input[type="checkbox"] {
    display: inline-block !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 1.3em !important;
    height: 1.3em !important;
    margin-right: 0.5rem;
}
.entry-content .myForm input[type="submit"] {
    display: inline-block;
    width: auto;
    background-color: #3D5A80;
    color: #ffffff;
    font-weight: bold;
    padding: 0.75rem 2.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.entry-content .myForm input[type="submit"]:hover {
    background-color: #2d4373;
}
.entry-content .myForm .form_input_submit {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
/* ▲▲▲ マイスピースタイルここまで ▲▲▲ */


/* ▼▼▼【今回の追加箇所】ブロックエディタのリンクとボタンのスタイル ▼▼▼ */

/* 2. 通常の文字リンクは青色にする */
.entry-content a {
    color: #3b82f6;
    text-decoration: underline;
}
.entry-content a:hover {
    color: #2563eb;
}

/* 1. ただし、ブロックエディタのボタン内の文字色だけは白に上書きする */
.entry-content .wp-block-button .wp-block-button__link {
    color: #ffffff !important; /* !importantで最優先で白文字に */
    text-decoration: none !important; /* ボタンなので下線は消す */
}
/* ホバー時（マウスが乗った時）も白文字を維持 */
.entry-content .wp-block-button .wp-block-button__link:hover {
    color: #ffffff !important;
}
/* ▲▲▲ 追加ここまで ▲▲▲ */