@import url('https://fonts.googleapis.com/css2?family=Jost&family=La+Belle+Aurore&family=Noto+Serif+JP&display=swap');

<style>
@charset "UTF-8";

/* Template & Designed by Towako. */
/* https://ninawas.me */

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Jost&family=La+Belle+Aurore&family=Noto+Serif+JP&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
    font-family: 'Noto Serif JP', serif;
}

/* 基本設定 */
body {
    font-weight: normal;
    background-color: #f2f2f2;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: #444;
    font-family: 'Noto Serif JP', serif;
}

/* リンク */
a {
    text-decoration: none;
    font-weight: bold;
    color: #c1847c;
}

/* コンテナ */
#wrap {
    margin-top: 5em;
}

/* ヘッダー */
header {
    position: relative;
    margin: 0 auto;
    height: 270px;
    width: 270px;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;

}

header::after {
    position: absolute;
    content: '';
    display: block;
    top: 5px;
    left: 5px;
    z-index: -10;
    width: 95%;
    height: 95%;
    border: 1px solid #fff;
}

header::before {
    position: absolute;
    content: '';
    display: block;
    z-index: -10;
    width: 100%;
    height: 100%;
    background: url("momiji.jpg") center/cover;
}

/* 見出し */
header h1 {
    position: absolute;
    bottom: -0.5em;
    right: -0.5em;
    transform: rotate(-8deg);
    letter-spacing: 0;
    font-family: 'La Belle Aurore', cursive;
    font-size: 3em;
    color: #fff;
    text-shadow: 1px 2px 3px #808080;
   font-weight: normal;
}

/* 補足情報 */
aside {
    margin: 3em auto 1.5em;
    padding: 1em;
    width: 270px;
    background-color: #fff;
    text-align: justify;
    word-break: break-all;
   box-sizing: border-box;
    font-weight: normal;
    font-family: 'Noto Serif JP', serif;
}

/* 枠線テキスト */
aside span {
    padding: 0.1em 0.5em;
    margin-bottom: 0.5em;
    border: thin solid #c1847c;
    color: #c1847c;
    display: block;
}

/* メインコンテンツ */
main {
    margin: 1.5em auto;
}

/* セクション */
section {
    margin: 1.5em auto;
    padding: 1em;
    width: 270px;
    background-color: #fff;
    text-align: justify;
    word-break: break-all;
   box-sizing: border-box;
    font-weight: normal;
    font-family: 'Noto Serif JP', serif;
}

/* セクション見出し */
section h2 {
    margin-bottom: 0.3em;
    font-size: 1.2em;
    color: #c1847c;
    display: inline;
}

/* 見出し背景色テキスト */
section h2 span {
    padding: 0.1em 0.3em;
    background-color: #c1847c;
    font-family: 'Jost', 'Noto Serif JP', serif;
    color: #fff;
}

/* アクセント文字色 */
section p span {
    color: #8d929a;
    margin-top: 0.3em;
    display: block;
}

section a{
   display: inline-block;
    padding: 0.2em 0.5em;
    background-color: #c1847c;
    font-family: 'Jost', 'Noto Serif JP', serif;
    color: #fff;
    font-size: 14px;
    margin-bottom: 0.5em;
}

/* 線 */
section .line {
    margin: 0.5em auto;
    width: 80%;
    height: 1px;
    border-top: thin dashed #444;
}

/* 折り畳みボックス */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details p {
    animation: FadeIn .5s;
}

summary {
    cursor: pointer;
}

/* フッター */
footer {
    margin: 1em auto 1.5em;
}

/* アーティクル */
article {
    margin: 3em auto;
    padding: 3em 1.5em;
    width: 95%;
    background-color: #fff;
    text-align: justify;
    max-width: 500px;
   box-sizing: border-box;
    font-weight: normal;
    font-family: 'Noto Serif JP', serif;
}

/* アーティクル見出し */
article h1 {
    position: relative;
    margin: 0 auto 1em;
    width: 210px;
    height: 210px;
    border: thin solid #c1847c;
    font-size: 1.3em;
}

/* 見出しテキスト */
article h1 span {
    position: absolute;
    display: inline-block;
    letter-spacing: 0.2em;
    color: #c1847c;
}

/* 横書き */
article h1 span.yoko {
    top: 0;
    right: 2px;
}

/* 縦書き */
article h1 span.tate {
    top: 1.5em;
    right: 0;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
}

/* アーティクル段落 */
article p {
    margin: 1em auto 1.5em;
    line-height: 2;
}

/* アニメーション */
@keyframes FadeIn {
    0% {
        opacity: 0;
    }

    100% {

        opacity: 1;
    }
}

/* フォーム系 */
textarea,
input[type] {
    -webkit-appearance: none;
    padding: 0.2em 0.5em;
    background-color: #fff;
    border: none;
    border-top: thin solid #c1847c;
    border-bottom: thin solid #c1847c;
    border-radius: 10px;
    color: #8d929a;
}

textarea {
    width: 200px;
    height: 70px;
}

input[type=text] {
    width: 80px;
}

input[type=submit] {
    width: auto;
}

/* 横幅768px以上で読み込む */
@media screen and (min-width:768px) {

    /* フォントサイズ */
    body {
        font-size: 13px;
    }

    /* コンテナ */
    #wrap {
        margin: 5em auto;
        max-width: 700px;
    }

    /* フロートの解除 */
    #wrap::after {
        display: block;
        content: '';
        clear: both;
    }

    /* ヘッダーコンテナ */
    #headerwrap {
        float: left;
    }

    /* メインコンテンツ */
    main {
        overflow: hidden;
    }

    /* セクション */
    section {
        margin: 0 auto 1.5em;
        width: 350px;

    }

    /* アーティクル段落フォントサイズ */
    article p {
        font-size: 12px;
    }
}

/* 横幅1024px以上で読み込む */
@media screen and (min-width:1024px) {

    /* フォントサイズ */
    body {
        font-size: 14px;
    }

    /* リンクホバーエフェクト */
    section a {
        padding: 0.2em 0.5em;
    background-color: #c1847c;
    font-family: 'Jost', 'Noto Serif JP', serif;
    color: #fff;
    font-size: 14px;
        
    }

    a:hover {
        transform: scale(1.05);
        text-shadow: 0 0 3px #c1847c;
        color: transparent;
    }

    /* コンテナ */
    #wrap {
        max-width: 1000px;
    }

    /* メインコンテンツ */
    main {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        padding-left: 3em;
    }

    /* セクション */
    section {
        margin-left: 0;
        margin-right: auto;
        width: 45%;
    }

    /* アーティクル段落フォントサイズ */
    article p {
        font-size: 12px;
    }
}
</style>