<style>
@charset "UTF-8";

/* Template & Designed by Towako. */
/* https://ninawas.me */

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css?family=Noto+Serif+JP&display=swap');

@font-face {
    font-family: 'はれのそら明朝';
    font-display: swap;
    src: url('https://cdn.leafscape.be/Harenosora/harenosora_web.woff2') format("woff2");
}

/*-------------------------------------------------
このフォントはIPAフォントライセンスv1.0の下で提供されています。
http://ipafont.ipa.go.jp/ipa_font_license_v1.html
オリジナルのフォントは以下から取得できます。
<blockquote class="wp-embedded-content" data-secret="Zcpa0mdkdz"><a href="https://fontopo.com/?p=377">はれのそら明朝</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; clip: rect(1px, 1px, 1px, 1px);" src="https://fontopo.com/?p=377&embed=true#?secret=Zcpa0mdkdz" data-secret="Zcpa0mdkdz" width="500" height="282" title="“はれのそら明朝” — fontopo" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
http://ipafont.ipa.go.jp/
-------------------------------------------------*/

/* 全体に適用する */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-weight: normal;
    font-family: 'Noto Serif JP', serif;
}

/* 基本設定 */
body {
    text-align: center;
    background-color: #f9f9f9;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 13px;
    color: #000;
}

/* 枠 */
body::before,
body::after,
html::before,
html::after {
    display: block;
    content: '';
    position: fixed;
    z-index: 100;
    background-color: #afafaf;
}

body::before,
body::after {
    top: 0;
    width: 15px;
    height: 100vh;
}

body::before {
    left: 0;
}

body::after {
    right: 0;
}

html::before,
html::after {
    left: 0;
    width: 100%;
    height: 15px;
}

html::before {
    top: 0;
}

html::after {
    bottom: 0;
}

/* リンク */
a {
    text-decoration: none;
    font-weight: bold;
    color: #000033;
}

/* ヘッダー */
header {
    position: relative;
    margin: 8em auto 5em;
    padding: 3em 0;
}

/* ヘッダー画像 */
header::before {
    position: absolute;
    content: '';
    display: block;
    z-index: -100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 150px;
    height: 150px;
    background: url('advent2024') center/cover;
}

/* ヘッダー文字 */
header span {
    display: inline-block;
    letter-spacing: 2.5em;
    text-indent: 2.5em;
    font-size: 1.3em;
    color: #000;
}

/* ヘッダー見出し */
header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 0em;
    font-size: 2em;
    font-family: 'はれのそら明朝', serif;
    color: #6f6f6f;
}

/* ナビゲーション */
nav {
    margin: 0 auto 5em;
}

/* ナビゲーション説明 */
nav p {
    margin: 1em auto 1.5em;
    width: 60%;
    font-size: 12px;
    color: #606060;
}

/* セクション */
section {
    margin: 3em auto;
}

/* セクション見出し */
section h2 {
    position: relative;
    margin: 0.5em auto 1em;
    color: #7d94af;
}

section h2::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 35px;
    height: 35px;
    border: thin solid #7d94af;
}

/* セクションリンク */
section .link {
    font-size: 1.3em;
}

/* セクション補足情報 */
section aside {
    position: relative;
    margin: 2em auto 1.5em;
    width: 50%;
    font-size: 12px;
    color: #606060;
}

/* 線 */
section aside::before {
    position: absolute;
    content: '';
    display: block;
    top: -1em;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background-color: #003;
}

/* フッター */
footer {
    margin: 1em auto 2em;
}

/* アーティクル */
article {
    margin: 5em auto 3em;
    width: 80%;
    max-width: 600px;
    text-align: justify;
    word-break: break-all;
}

article p {
    margin: 1em auto 1.5em;
}

/* あとがき */
.atogaki {
    margin-left: 1em;
    padding-left: 1em;
    border-left: thin solid #606060;
    font-size: 12px;
    color: #606060;
}

/* フォーム系 */
textarea,
input[type] {
    -webkit-appearance: none;
    padding: 0.2em 0.5em;
    background-color: #000033;
    border: none;
    border-radius: 0;
    color: #fff;
}

textarea {
    width: 200px;
    height: 70px;
}

input[type=text] {
    width: 80px;
}

input[type=submit] {
    width: auto;
}

/* 横幅768px以上で読み込む */
@media screen and (min-width:768px) {
    main {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 auto;
        max-width: 700px;
    }

    section {
        flex-basis: 50%;
    }
}
</style>