@charset "UTF-8";

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

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Noto+Serif+JP&display=swap');

@font-face {
    font-family: 'はれのそら明朝';
    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
オリジナルのフォントは以下から取得できます。
https://fontopo.com/?p=377
http://ipafont.ipa.go.jp/
-------------------------------------------------*/

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

/* root */
:root {
    --color: #d39c4c;
    --white: #ffffff;
    --gray: #efefef;
    --black: #222;
    --ja-font: 'はれのそら明朝', "Noto Serif JP", serif;
    --en-font: "EB Garamond", "Noto Serif JP", serif;
}

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

body::before {
    position: fixed;
    display: block;
    content: '';
    top: 0;
    left: 0;
    z-index: -999;
    width: 100%;
    height: 100vh;
    background: url('../img/bg-img.jpeg') center/cover;
}

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

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

/* リンク */
a {
    font-family: var(--en-font);
    color: var(--white);
    transition: .5s all;
}

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

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

/* 大見出し */
h1 {
    position: relative;
    z-index: -99;
    margin-top: 3em;
    margin-bottom: -20px;
    text-align: center;
    font-family: var(--ja-font);
    font-size: 28px;
    color: var(--white);
}

/* メインコンテンツ */
main {
    padding: 2em 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ナビゲーション */
nav {
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 1em;
}

nav ul li a,
a.link {
    display: inline-block;
    padding: 0.1em 1em;
    border: thin solid var(--white);
    text-decoration: none;
}

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

/* 補足情報 */
aside {
    margin: 2em auto;
    text-align: center;
    font-family: var(--en-font);
}

aside a {
    text-decoration: underline;
}

/* セクション */
section {
    margin: 3em auto;
    width: 80%;
    max-width: 600px;
}

section h2 {
    position: relative;
    margin-bottom: 0.5em;
    padding-left: 40px;
    font-family: var(--en-font);
    font-size: 1.5em;
}

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

section h3 {
    display: inline-block;
    margin-bottom: 0.5em;
    padding: 0 1em;
    background-color: var(--white);
    font-size: 1em;
    font-family: var(--en-font);
    color: var(--black);
}

section h4 {
    margin: 0.5em auto;
    padding-left: 0.5em;
    border-left: 5px solid var(--white);
}

section p {
    margin: 0 auto 1.5em;
}

section span {
    font-weight: bold;
    color: var(--white);
}

section mark {
    padding: 0 0.5em;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
}

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

section em {
    padding: 0 0.5em;
    background-color: var(--white);
    font-weight: bold;
    color: red;
}

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

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

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

/* 名前変換 */
#setName {
    display: none;
}

#setName.change,#setName.reset {
    display: block;
}

#setName.change::after {
    content: "名前を変換しました。";
}

#setName.reset::after {
    content: "名前をリセットしました。";
}

/* 下記はデザイン用 */
#setName.change,#setName.reset {
    border-color: #cccccc;
    background-color: rgba(154, 212, 222, 0.25);
}

/* フォーム系 */
textarea,
input[type] {
    -webkit-appearance: none;
	padding: 0.2em 0.5em;
	opacity: 0.3; 
    border: none;
    border-bottom: thin solid #c0c0c0;
	border-radius: 5px;
	font-size: 12px;
}

textarea {
    width: 240px;
    height: 40px;
}

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

input[type=submit] {
    width: auto;
	padding: 0.2em 0.5em;
    border-bottom: thin solid #c0c0c0;
    border-radius: 5px;
}
