@charset "utf-8";

/* ==============================
   Reset CSS (YUIベース改)
============================== */

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset,
img {
    border: 0;
}

// 引用、コード、強調などのスタイルをリセット
address,
cite,
code,
dfn,
em,
th,
var {
    font-style: normal;
    font-weight: normal;
}

ol,
ul {
    list-style: none;
}

caption,
th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

q:before,
q:after {
    content: '';
}

abbr,
acronym {
    border: 0;
    font-variant: normal;
}

sup {
    vertical-align: text-top;
}

sub {
    vertical-align: text-bottom;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==============================
   調整・WordPress最適化
============================== */

figure.wp-block-image {
    margin: 0; // 画像周りの不要な余白をカット
}

img {
    max-width: 100%; // width: 100% より安全
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
}

iframe {
    vertical-align: bottom;
}

/* ==============================
   hタグ・ボタンの [data-name] 表示設定
============================== */

h1[data-name]::before,
h2[data-name]::before,
h3[data-name]::before,
h4[data-name]::before,
h5[data-name]::before {
    content: attr(data-name);
    display: block;
}

.wp-block-button[data-name] {
    position: relative;
    display: inline-block;
    text-align: center;
}

.wp-block-button[data-name]::before {
    content: attr(data-name);
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.2;
}