@charset "UTF-8";

/* ウェブフォントの読み込み */

@import url('https://fonts.googleapis.com/css2?family=Birthstone+Bounce:wght@400;500&family=Noto+Serif+JP&family=Noto+Sans+JP&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

/* root */
:root {
    --color: #db7093;
    --white: #ffffff;
    --gray: #efefef;
    --black: #222;
    --en-font: "Birthstone Bounce", "Noto Serif JP", serif;
}

/* 基本設定 */
body {
    background-color: var(--white);
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.15em;
    font-size: 12px;
    font-family: "Noto Serif JP", serif;
    color: var(--black);
}

/* 横幅768px以上で読み込む */
@media screen and (min-width: 768px) {
    body {
        font-size: 14px;
    }
}

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

/* リンク */
a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--black);
    transition: .5s color;
}

a:visited {
    color: var(--black);
}

a:hover,
a:visited:hover {
    color: var(--black);
}

/* ヘッダー */
header {
    margin: 3em auto 1.5em;
}

header img {
margin:auto;
display:block;
    width: 120px;
    height: auto;
}

header h1 {
    letter-spacing: 0;
    font-family: var(--en-font);
    font-size: 3em;
}

header p {
    margin: 3em auto;
    position: relative;
    width: 66%;
    max-width: 600px;
}

header p::before,
header p::after {
    position: absolute;
    display: block;
    content: '';
    width: 40px;
    height: 40px;
}

header p::before {
    top: -20px;
    left: -20px;
    border-top: thin solid var(--black);
    border-left: thin solid var(--black);
}

header p::after {
    bottom: -20px;
    right: -20px;
    border-bottom: thin solid var(--black);
    border-right: thin solid var(--black);
}

/* ナビゲーション */
nav {
    margin: 0 auto;
    width: 60%;
    max-width: 600px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
}

nav ul li {
    flex-basis: 46%;
    margin: 2%;
}

nav ul li a {
    display: inline-block;
    padding: 0.2em 0;
    width: 100%;
    border: thin solid var(--black);
    font-size: 13px;
    transform: .5s all;
}

nav ul li a:hover,
nav ul li a:visited:hover,
.link:hover,
.link:visited:hover {
    background-color: var(--black);
    color: var(--white);
}

/* 横幅768px以上で読み込む */
@media screen and (min-width: 768px) {
    nav ul li {
        flex-basis: 30%;
        margin: 1.5%;
    }
}

/* メインコンテンツ */
main {
    margin: 3em auto;
    width: 70%;
    max-width: 800px;
}

/* セクション */
section,
article {
    text-align: left;
    line-break: strict;
}

section {
    padding: 3em 0 0;
}

.link {
    display: inline-block;
    padding: 0 0.5em;
    border: thin solid var(--black);
    transform: .5s all;
}

section h2 {
    display: inline-block;
    margin-bottom: 1em;
    padding: 0 1em;
    border-top: thin solid var(--black);
    border-bottom: thin solid var(--black);
    font-size: 1.5em;
}

section h3 {
    position: relative;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 50px;
    font-size: 1.2em;
}

section h3::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--black);
}

section h4 {
    display: inline-block;
    margin-top: 1em;
    margin-bottom: 0.5em;
    border-left: thin solid var(--black);
    border-bottom: thin solid var(--black);
    padding: 0 0.5em;
    font-size: 1.2em;
}

section dl,
section ul,
section ol {
    margin: 0.5em auto 1.3em;
}

section dt {
    margin-bottom: 0.5em;
}

section dd {
    margin-left: 1em;
    margin-bottom: 1em;
}

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

section ul li a,
section ol li a {
    transition: .5s color;
}

section ul li a:hover,
section ol li a:hover,
section ul li a:visited:hover,
section ol li a:visited:hover {
    color: var(--color);
}

section ol {
    list-style-position: inside;
}

.yoko li {
    position: relative;
    display: inline-block;
    margin-right: 1em;
    margin-bottom: 1.2em;
}

.yoko li::before {
    position: absolute;
    display: block;
    content: '/';
    top: 50%;
    right: -1em;
    transform: translateY(-50%);
}

.yoko li:last-of-type::before {
    display: none;
}

section p {
    position: relative;
    text-indent: 30px;
}

section p::before {
    position: absolute;
    display: block;
    content: '';
    top: 0.8em;
    left: 0;
    width: 20px;
    height: 1px;
    background-color: var(--black);
}

section span {
    padding: 0.2em 0.5em;
    background-color: var(--gray);
    font-size: 11.5px;
}

section strong {
    font-weight: bold;
    color: red;
}

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

summary {
    cursor: pointer;
}

summary {
    display: block;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

/* アーティクル */
article {
    margin: 3em auto;
    width: 100%;
    max-width: 600px;
}

article h1 {
    margin-bottom: 3em;
    text-align: center;
}

article p{
    font-family: "Noto Sans JP", serif;
}

.menu {
    margin: 3em auto 2em;
    text-align: center;
}

/* フォーム系 */
input[type=text] {
    width: 70px;
    border: none;
    border-bottom: thin solid var(--black);
}

input[type=submit],
button[type=submit] {
    border: thin solid var(--black);
    width: auto;
    background-color: var(--white);
    color: var(--black);
　padding:1px;
}

/* フッター */
footer {
    margin: 2em auto 1.5em;
    width: 80%;
    background-color: #fff;
}