/* 全体背景とフォント：ダークブラウン（焦茶色）ベース */
body {
    background-color: #2c1e15; /* 焦茶色 */
    background-image: url('https://www.transparenttextures.com/patterns/papyrus.png'); /* 紙の質感は継続 */
    color: #eaddca; /* 生成り色（読みやすさのため明るい色に） */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

#pagebody {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #4a3728;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* リンク：オレンジ系 */
a:link, a:visited { color: #f39800; } /* 柿色 */
a:hover { color: #ffb11b; text-decoration: underline; }

/* 見出し：巻物や看板のようなデザイン */
h1 {
    font-size: 200%;
    text-align: center;
    border-bottom: 3px double #eaddca;
    padding-bottom: 0.5em;
    margin-bottom: 1.5em;
    color: #f39800; /* オレンジのアクセント */
}

h2 {
    font-size: 140%;
    position: relative;
    padding: 0.5em 1.5em;
    background: #e95412; /* 鮮やかなオレンジ（茜色・洗朱） */
    color: #ffffff;
    border: none;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

h3 {
    font-size: 130%;
    padding: 0.4em 0.5em;
    border-left: 8px solid #f39800;
    border-bottom: 1px solid #f39800;
    background: rgba(243, 152, 0, 0.05);
}

h4 { /* 各項目：小見出し（木札風） */
    font-size: 120%;
    padding: 0.25em 0 0.25em 0.75em;
    margin: 1.5em 0 0.5em 0;
    border-left: 6px solid #e95412; 
    border-bottom: 1px solid #4a3728;
    color: #eaddca;
    background: rgba(74, 55, 40, 0.3);
}

h5 { /* さらに細かい項目（細筆風） */
    font-size: 100%;
    padding: 0.2em 0 0.2em 0.6em;
    margin: 1em 0 0.5em 0;
    border-left: 1px solid #f39800;
    border-bottom: none;
    color: #d1b8a3;
    font-weight: bold;
    position: relative;
}

h5:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 1px;
    background: linear-gradient(to right, #f39800, transparent);
}

/* ボックス（push系）：深い茶色の背景 */
div.push, div.push0, div.push2, div.push3, div.push4 {
    border: 1px solid #4a3728;
    background-color: rgba(74, 55, 40, 0.4);
    border-radius: 2px;
    box-shadow: 2px 2px 0px #1a110a;
}

/* ボタン：落款（印鑑）風のアクセント */
a.waku, a.waku2 {
    display: block;
    margin-bottom: 10px;
    padding: 15px;
    text-align: center;
    border: 2px solid #e95412;
    background-color: transparent;
    color: #e95412;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

a.waku:hover, a.waku2:hover {
    background-color: #e95412;
    color: #fff;
}

/* 引用：墨書きの控え風 */
blockquote {
    border-left: 4px solid #e95412;
    background: rgba(233, 84, 18, 0.05);
    padding: 20px;
    font-family: serif;
    position: relative;
}

/* 箇条書き */
ul, ol {
    background-color: rgba(74, 55, 40, 0.2);
    padding: 1.5em 2em;
    border: 1px dashed #f39800;
}

ul li, ol li {
    line-height: 1.5;
    padding-top: 5px;
    padding-bottom: 5px;
}

.button {
    display: inline-block;
    border-radius: 8px;
    font-size: 12pt;
    text-align: center;
    cursor: pointer;
    padding: 10px 10px;
    background: #3d2b1f; /* ボタン背景もダークに */
    color: #f39800;
    line-height: 1.5em;
    transition: .3s;
    border: 1px dotted #f39800;
}
.button:hover {
    background: #f39800;
    color: #2c1e15;
}

.yoko li {
    display: inline-block;
    height: 40px;
}

.shadow {
    text-shadow: 1px 1px 2px #000;
    font-weight: bold;
}

@media screen and (max-width: 560px) {
    .iframe-responsive {
        position: relative;
        width: 100%;
        padding: calc(315 / 560 * 100%) 0 0;
    }
    .iframe-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

img.size { max-width: 100%; width: 800px; }
img.size2 { max-width: 100%; width: 560px; }

pre {
    font-size: 130%;
    white-space: pre-wrap;
    color: #eaddca;
}

blockquote:before {
    display: inline-block;
    position: absolute;
    top: 5px;
    left: 3px;
    content: "“";
    font-family: sans-serif;
    color: rgba(243, 152, 0, 0.2); /* オレンジの透明度あり */
    font-size: 90px;
    line-height: 1;
}

blockquote p {
    padding: 0;
    margin: 7px 0;
    line-height: 1.7;
}

blockquote cite {
    display: block;
    text-align: right;
    color: #a08e7d;
    font-size: 0.9em;
}

.box7 {
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #eaddca;
    background: rgba(74, 55, 40, 0.5);
    border-left: double 7px #f39800;
    border-right: double 7px #f39800;
}

.box7 p { margin: 0; padding: 0; }
.shutten { color: #a08e7d; font-size: small; }

/* 連番系：其の◯ */
.steps2 { counter-reset: step-counter; }
.steps2 > h2:before {
    counter-increment: step-counter;
    content: "其の" counter(step-counter) "：";
}

.steps3 { counter-reset: step-counter; }
.steps3 > h3:before {
    counter-increment: step-counter;
    content: counter(step-counter)"位：";
}

.steps4 { counter-reset: step-counter; }
.steps4 > h4:before {
    counter-increment: step-counter;
    content: counter(step-counter)"位：";
}

.marker-P-pink {
    background: linear-gradient(transparent 60%, rgba(233, 84, 18, 0.4) 0%);
}

.dekinai {
    background: #3d2b1f;
    border-radius: 8px;
    box-shadow: 0px 0px 8px #000;
    padding: 0.5em 0.5em 0.5em 2em;
}
.dekinai li {
    line-height: 1.5;
    padding: 0.5em 0;
}

.button15 a {
    display: block;
    position: relative;
    margin: 0 auto;
    padding: 1em 2em;
    width: 300px;
    color: #2c1e15;
    font-size: 18px;
    font-weight: 700;
    background-color: #f39800; /* オレンジ背景 */
    border-radius: 50vh;
    transition: 0.3s;
    text-decoration: none;
}

.button15 a::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #e95412;
    border-radius: 50vh;
}

.button15 a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}

.button15 a:hover {
    background-color: #ffb11b;
    box-shadow: 0 0 10px #f39800;
}