@charset "UTF-8";

/* Template & Designed by Towako. */
/* https://ninawas.me */

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP&family=Shippori+Mincho&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Serif JP', serif;
    font-weight: normal;
}

/* 基本設定 */
body {
    background: #F0ECE5;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 13px;
    color: #725B4C;
}

mark {
    background: linear-gradient(transparent 75%, #bfff7f 75%);
    font-weight:bold; 
}

/* リンク */
a {
    text-decoration: none;
    color: #888;
}

header {
    position: relative;
    margin: 5em auto;
    width: 70%;
    max-width: 600px;
}

header .line {
    position: absolute;
    left: 2.5em;
    width: 1px;
    height: 350px;
    background-color: #000;
}

header h1 {
    margin-bottom: 1em;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    font-size: 1.5em;
}

header h1 span {
    font-family: 'Shippori Mincho', serif;
}

header h1 span:nth-of-type(1) {
    animation: FadeIn 2s;
}

header h1 span:nth-of-type(2) {
    animation: FadeIn 3s;
}

header h1 span:nth-of-type(3) {
    animation: FadeIn 4s;
}

header img {
    width: 100%;
    height: auto;
}

main {
    margin: 3em auto;
    width: 70%;
    max-width: 600px;
}

aside,
section {
    margin: 1.5em auto;
}

aside p,
article p {
    margin: 1em auto 1.5em;
    text-align: justify;
    word-break: break-all;
}

aside p {
    color: #888;
}

section h2 {
    margin-bottom: 0.5em;
    width: 50%;
    border-bottom: thin solid #000;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.2em;
}

section ul,
section ol {
    margin: 0.5em auto;
    list-style-type: none;
}

section ol {
    counter-reset: item;
}

section ol li {
    margin-bottom: 0.5em;
}

section ol li::before {
    content: '';
    display: inline-block;
    counter-increment: item;
    content: counter(item) '';
    margin-right: 0.5em;
    width: 20px;
    background-color: #fff352;
    text-align: center;
    color: #da536e;
}

section .yoko li {
    display: inline-block;
}

section strong {
    font-weight: bold;
    color: red;
}

footer {
    margin: 1em auto 1.5em;
    text-align: center;
}

article {
    margin: 3em auto;
    width: 80%;
    max-width: 600px;
}

article h1 {
    width: 100%;
    border-bottom: thin solid #000;
}

span.span {
    color: #da536e;
}

/* メニュー */
.menu {
    text-align: center;
    margin: 1em auto 1.5em;
}

.menu li {
    display: inline-block;
    margin: 0 0.5em;
}

.menu li a {
    font-weight: bold;
}

@keyframes FadeIn {
    0% {
        opacity: 0;
        text-shadow: 0 0 3px #000;
        color: transparent;
    }

    100% {
        opacity: 1;
        color: #000;
    }
}

/* フォーム系 */
textarea,
input[type] {
    -webkit-appearance: none;
    padding: 0.5em;
    background: #fff352;
    border: none;
    border-radius: 0;
    font-size: 11px;
    color: #fff;
}

textarea {
    width: 200px;
    height: 70px;
}

input[type=text] {
    width: 80px;
}

input[type=submit] {
    width: auto;
}

/* 横幅768px以上で読み込む */
@media screen and (min-width:768px) {}

/* 横幅1024px以上で読み込む */
@media screen and (min-width:1024px) {
    a:hover {
        transition: .5s;
        text-shadow: 0 0 5px #888;
        color: transparent;
    }
}

/*ポップアップ*/
.popup_wrap input {
display: none;
}
.popup_overlay {
display: flex;
justify-content: center;
overflow: auto;
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
opacity: 0;
transition: opacity 0.5s, transform 0s 0.5s;
transform: scale(0);
}

.popup_trigger {
position: absolute;
width: 100%;
height: 100%;
}

.popup_content {
position: relative;
align-self: center;
width: 90%;
max-width: 800px;
padding: 30px 40px;
box-sizing: border-box;
background: #fff;
line-height: 1.4em;
transition: 0.5s;
text-align: justify;
}

.close_btn {
position: absolute;
top: 10px;
right: 10px;
font-size: 14px;
cursor: pointer;
padding:8px;
background: #f29c9f;
color: #fff;
border-radius:15px;
line-height:14px;
font-weight:bold;
}

.popup_wrap input:checked ~ .popup_overlay {
opacity: 1;
transform: scale(1);
transition: opacity 0.5s;
}

.popup_wrap input:checked ~ .popup_overlay .popup_content{
transform: translateY(50px);
}

.open_btn {
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 30px;
margin:10px auto;
color: #555;
background:fff;
padding: 20px 16px;
border:solid 1px #ccc;
font-weight: bold;
border-radius: 21px;
cursor: pointer;
transition: .3s ease;
}

.open_btn:hover{
background:#f29c9f;
border:solid 1px #f29c9f;
color:#fff;
transition: .3s ease;
}