/* =====================================================
   inline.css — index.html のインライン style を統合
   ===================================================== */

/* 画像サイジング */
img:is([sizes=auto i], [sizes^="auto,"i]) {
    contain-intrinsic-size: 3000px 1500px;
}

html :where(img[class*="wp-image-"]) {
    height: auto;
    max-width: 100%;
}

:where(figure) {
    margin: 0 0 1em;
}

/* ベースレイアウト */
:where(body) {
    margin: 0;
}

body {
    padding: 0;
    background-color: #ffffff;
}

/* フォント（本文・フォーム要素） */
body,
input,
textarea,
button {
    font-family: sans-serif;
}

/* スクリーンリーダー用テキスト */
.screen-reader-text {
    word-wrap: normal !important;
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.screen-reader-text:focus {
    background-color: #ddd;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Flex ユーティリティ */
:where(.is-layout-flex) { gap: 0.5em; }
body .is-layout-flex { display: flex; }
.is-layout-flex { flex-wrap: wrap; align-items: center; }
.is-layout-flex > :is(*, div) { margin: 0; }

body .is-layout-grid { display: grid; }
.is-layout-grid > :is(*, div) { margin: 0; }

/* WordPress ボタン（念のため残存） */
.wp-block-button__link {
    color: #fff;
    background-color: #32373c;
    border-radius: 9999px;
    box-shadow: none;
    text-decoration: none;
    padding: calc(.667em + 2px) calc(1.333em + 2px);
    font-size: 1.125em;
}

/* カスタム背景 */
body.custom-background {
    background-color: #ffffff;
}
