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

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Jura&family=Meddon&family=Noto+Sans+JP&display=swap');
/* ここまで */

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

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

/* リンク基本設定 */
a {
    text-decoration: none;
}

/* 英字フォント */
a,
section h2,
section h3,
footer,
.en {
    font-family: 'Jura', 'Noto Sans JP', sans-serif;
}

/* 文字色 */
a,
section span {
    color: #4c545c;
}

/* ヘッダー */
header {
    position: relative;
    margin: 3em auto 20vh;
    padding-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

header::after,
header h1,
header h1::before,
nav {
    position: absolute;
}

header::after,
header h1::before {
    display: block;
    content: '';
    background-color: #000;
}

header::after {
    width: 80%;
    height: 1px;
    bottom: 0;
    left: 0;
}

header img {
    width: 80%;
}

header h1 {
    top: 0;
    left: 5%;
    letter-spacing: 0;
    font-size: 3em;
    font-family: 'Meddon', 'Noto Sans JP', sans-serif;
}

header h1::before {
    width: 200%;
    height: 1px;
    top: 50%;
    left: 110%;
}

/* ヘッダーここまで */

/* ナビゲーション */
nav {
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    bottom: 5%;
    right: 10%;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    margin: 0.5em auto;
    font-size: 15px;
}

/* ナビゲーションここまで */

/* メイン直下のセクション */
main > section {
    padding: 1em;
    box-sizing: border-box;
}

/* セクション見出し*/
section h2 {
    margin: 0 auto 1em;
    text-align: center;
    font-size: 1.5em;
}

section h2 img {
    width: 30px;
    height: auto;
}

section h3 {
    width: 40%;
    padding-left: 0.5em;
    border: thin solid #4c545c;
    border-left: 5px solid #4c545c;
}

/* セクション内セクション */
section > section {
    margin-bottom: 2em;
}

/* セクション内設定 */
section a {
    border-bottom: thin solid #4c545c;
}

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

section span,
section strong {
    font-weight: bold;
}

section mark {
    padding: 0.1em 0.4em;
    background-color: #c0c0c0;
}

section em {
    border-bottom: thin dashed red;
}

section strong {
    color: red;
}

section .box {
    margin: 1em auto;
    padding: 1em;
    width: 80%;
    border: thin solid #4c545c;
}

section .borderright {
    position: relative;
    margin-right: 40px;
}

section .borderright::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: calc(100% + 10px);
    width: 30px;
    height: 1px;
    background-color: #4c545c;
}

/* リスト系 */
section dl,
section ul {
    margin: 1em auto 1.5em;
}

section dd {
    margin: 0 0 0.5em 1em;
    font-size: 11px;
}

section ul {
    list-style-type: none;
    border-left: thin solid #000;
}

section ul li {
    padding-left: 1em;
}

section ul.yoko li {
    display: inline-block;
}

/* リストここまで */
/* フッター */
footer {
    margin: 0.5em auto;
    text-align: center;
}

/* 枠線リンク */
.link {
    display: inline-block;
    margin: 0.2em auto;
    padding: 0 0.5em;
    border: thin solid #4c545c;
}

.background {
    background-color: #4c545c;
    color: #fff;
}

/* 右揃え */
.right {
    text-align: right;
}

/* 上に戻るボタン */
#Top {
    height: 1px;
}

#PageTop {
    position: fixed;
    bottom: 5%;
    right: 5%;
}

#PageTop a {
    display: block;
    z-index: 100;
    width: 30px;
    height: 30px;
}

#PageTop img {
    width: 30px;
    height: auto;
    transform: rotate(-45deg)
}

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

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

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

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


@media screen and (max-width: 768px) {
  header img {
    height: auto;
    width: 50%;
  }
}

/* 768px以下は下記を読み込む */
@media screen and (min-width:768px) {
    body {
        font-size: 14px;
    }

    /* ヘッダーをフロートさせる */
    header {
        margin: 1.5em auto;
        width: 40%;
        float: left;
    }



    main {
        margin: 0.1em auto;
        overflow: hidden;
    }

    /* フロートの解除 */
    main::after {
        display: block;
        content: '';
        clear: both;
    }

    /* 上に戻るボタンの大きさを変える */
    #PageTop img {
        width: 40px;
        height: auto;
    }
}

/* 横幅1024px以下は下記を読み込む */
@media screen and (min-width:1024px) {
    body {
        font-size: 15px;
    }

    header {
        width: 30%;
    }

    /* フレックスボックス */
    main {
        display: flex;
        flex-wrap: wrap;
        width: 60%;
    }

    /* 2カラムセクション */
    .columns {
        columns: auto 2;
        flex-basis: 100%;
    }

    /* 見出しを横切って表示させる */
    .columns h2 {
        column-span: all;
    }

    section {
        flex-basis: 50%;
    }

}
