@charset "utf-8";

/* リセットcss */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 大枠 */

.top_img {
    max-width: 90%;
    max-height: min-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    animation-name: fadeUpAnime;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* フォント設定 */
h1 {
    font-family: adventures-unlimited, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
}

p,
a {
    font-family: futura-pt, sans-serif;
    font-weight: 300;
    font-style: normal;
}

.profile_txt p,
.profile_txt a,
#entry_form p,
th,
td,
#entry_form input[type="submit"] {
    font-family: a-otf-ryumin-pr6n, serif;
    font-weight: 300;
    font-style: normal;
}


/* トップ共通部分 */

.nav {
    width: 295px;
    height: 105px;
    text-align: center;
    top: 0;
    margin: 0 auto;
    position: relative;
}


section {
    position: relative;
    margin: 65px 60px 0px 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

section p {
    font-size: 12px;
}

section a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nav ul:first-child {
    margin-top: 45px;
}

/* ハンバーガーメニュー */

.menu_btn {
    position: fixed;
    top: 58px;
    right: 20px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #fff;
}

.menu_btn span,
.menu_btn span:before,
.menu_btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #333;
    position: absolute;
}

.menu_btn span:before {
    bottom: 8px;
}

.menu_btn span:after {
    top: 8px;
}

#menu_btn_check:checked~.menu_btn span {
    background-color: rgba(255, 255, 255, 0);
    /*メニューオープン時は真ん中の線を透明にする*/
}

#menu_btn_check:checked~.menu_btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#menu_btn_check:checked~.menu_btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

#menu_btn_check {
    display: none;
}

.menu_content ul {
    padding: 70px 10px 0;
}

.menu_content ul li {
    border-bottom: solid 1px #FFF;
    list-style: none;
}

.menu_content ul li a {
    display: block;
    width: 100%;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}

.menu_content {
    width: 50%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 80;
    background-color: #333;
    transition: all 1s;
}

#menu_btn_check:checked~.menu_content {
    left: 50%;
    /*メニューを画面内へ*/
}

/* hoverしたとき */
.nav nav ul li a {
    position: relative;
    color: #fff;
    font-size: 18px;
    line-height: 24px;
}

.nav nav ul li a:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: #333;
    transform: scale(0, 1);
    transform-origin: left;
    transition: 0.6s;
}

.nav nav ul li a:hover:before {
    transform: scale(1);
}

#profile .main_flex ul li:nth-child(1) a,
#gallery .main_flex ul li:nth-child(2) a,
#contact .main_flex ul li:nth-child(3) a {
    color: #f1363e;
}

/* プロフィール */
.profile_txt {
    font-size: 14px;
    text-align: center;
}

.profile_txt p:nth-child(3) {
    margin: 30px 0;
}

.profile_txt span {
    display: inline-block;
}

.contact_ico {
    display: inline;
    margin-top: 50px;
    width: 8%;
}

/* ギャラリーページ */

.gallery_img {
    max-width: 1020px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation-name: fadeUpAnime;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery_img div {
    width: 250px;
    height: 250px;
    margin: 10px;
}

.gallery_img div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery_img div img:last-child {
    margin-bottom: 50px;
}

/* お問い合わせページ */

#entry_form p {
    margin-bottom: 48px;
    font-size: 14px;
    text-align: center;
}

#entry_form p span:not(.ast) {
    display: inline-block;
}

#entry_form {
    padding: 16px;
}

.ast {
    color: #f1363e;
}

table {
    border-collapse: collapse;
    margin: 0 auto;
}

th {
    width: 30%;
    padding: 0 8px 16px 8px;
    font-size: 14px;
    text-align: left;
}

tr:nth-child(2) th {
    vertical-align: top;
}

td {
    width: 50%;
    padding: 0px 16px 16px 0;
    font-size: 14px;
    text-align: left;
}

#entry_form table tr:nth-child(5) th {
    vertical-align: top;
}

tr:nth-child(2) td {
    width: 30em;
}

tr:nth-child(2) td label {
    margin-right: 50px;
    display: inline-block;
}

#entry_form textarea {
    width: 90%;
}

#entry_form input[type="text"],
#entry_form input[type="email"],
#entry_form textarea {
    padding: 8px;
    border: #e8e8e8 solid 2px;
    border-radius: 3px;
}

#entry_form input[type="text"]:focus,
#entry_form input[type="email"]:focus,
#entry_form textarea:focus {
    background-color: #e8e8e8;
    outline: none;
}

#entry_form input[type="submit"] {
    width: 83px;
    height: 38px;
    border: none;
    border-radius: 3px;
}

#entry_form input[type="submit"]:hover {
    background-color: #333;
    color: #f1363e;
}


label,
input,
textarea,
select {
    cursor: pointer;
}