@font-face {
    font-family: fot-tsukubrdgothic-std;
    font-weight: bold;
    src: url("/src/font/b.otf") format("opentype");
}

@font-face {
    font-family: fot-tsukubrdgothic-std;
    src: url("/src/font/r.otf") format("opentype");
}


:root {
    --beige: #e4decb;
    --beigewhite: #e4decbcf;
    --black: #000;
    --gray: #999;
    --space: 20px;
    --white: #f2f0e8ff;
    --brown: #2d231c;
}

html {
    font-size: 16px;
    position: relative;
    width: 100vw;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: fot-tsukubrdgothic-std;
    font-style: normal;
}

h2 {
    font-size: 1.5rem;
}

#container{
    margin: 0;
    padding: 0;
}

header {
    align-items: center;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 20px var(--space);
    top: 0;
    width: 100%;
    z-index: 100;
}

#header.fixed {
    position: fixed;
}

.logo {
    width: 120px;
}
@media screen and (min-width:992px) {
    .logo {
        width: 180px;
    }
}

.hamburger {
    background: none;
    border: none;
    height: 13px;
    position: relative;
    width: 21px;
    z-index: 100;
}

@media screen and (min-width:992px) {
    .hamburger {
        height: 20px;
        width: 32.4px;
    }
}

.bar {
    background-color: var(--black);
    display: block;
    height: 2px;
    position: absolute;
    transition: top 0.24s, transform 0.24s, opacity 0.24s;
    width: 100%;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 100%;
}

.bar.active:nth-child(1) {
    top: 50%;
    transform: rotate(135deg);
}

.bar.active:nth-child(2) {
    top: 50%;
    transform: rotate(-135deg);
}

.header-nav {
    display: none;
}

.header-nav a {
    color: var(--black);
    text-decoration: none;
}

.header-nav span {
    border-top: 1px solid var(--black);
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: var(--space);
    max-width: 600px;
    padding-top: var(--space);
    width: 100%;
}

.header-nav.active {
    align-items: center;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: var(--space);
    height: 100vh;
    justify-content: center;
    left: 0;
    padding-left: 40px;
    padding-right: 40px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100vw;
    z-index: 98;
}

.header-nav.active a {
    font-size: 1.7rem;
    font-weight: 600;
}

.nav-sns {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
}

.nav-sns a {
    align-items: center;
    border-radius: 100%;
    display: flex;
    height: 50px;
    padding: 10px;
    width: 50px;
}

/* reference:https://coco-factory.jp/ugokuweb/move01/5-1-24/ */
.circle-bg {
    background: var(--beige);
    border-radius: 50%;
    height: 100px;
    left: calc(50% - 50px);
    position: fixed;
    top: calc(50% - 50px);
    transform: scale(0);
    transition: all .6s;
    width: 100px;
    z-index: 3;
}

.circle-bg.active {
    transform: scale(50);
}

.top{
    width: 100%;
}

.top-title {
    text-align: center;
}

.top-subtitle {
    text-align: center;
    margin-top: 20px;
}

.cv-link-btn {
    border: 1.5px solid var(--black);
    border-radius: 9999px;
    display: inline-block;
    font-weight: bold;
    margin-top: 18px;
    padding: 10px 18px;
    text-decoration: none;
}

/* 写真投稿 */
.slick-prev:before,
.slick-next:before {
  color: var(--black) !important;
}

.top-photo{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.photos-wrapper{
    width: 100vw;
    margin-top: -40px;
    padding-right: calc(var(--space) - 15px);
    padding-left: calc(var(--space) - 15px);
}
@media screen and (min-width:1400px) {
    .photos-wrapper{
        margin-top: -80px;
    }
} 

.photos-wrapper-post {
    margin-left: 15px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space));
    text-align: center;
}

.photos-wrapper-post img{
    aspect-ratio: 1/1;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
}

.photos-wrapper-text{
    font-weight: bold;
}

.slick-track{
    margin-top: 40px;
    margin-bottom: 30px;
}

.slick-dots{
    position: absolute;
    left: 0;
}
/* ここまで */

main {
    padding-bottom: var(--space);
    padding-left: var(--space) !important;
    padding-right: var(--space) !important;
}

main a {
    text-decoration: none;
}

/* ここから上の写真 */

.top-intro {
    background-image: url(/src/img/top-intro.jpg);
    background-size: cover;
    background-position: center;
}

@media screen and (min-width:992px) {
    .top-intro {
        display: flex;
        flex-direction: row;
    }
}

.top-intro-spacer {
    display: none;
}

@media screen and (min-width:1200px) {
    .top-intro-spacer{
        display: block;
        width: 50%;
        margin-right: 100px;
    }
}

@media screen and (min-width:992px) {
    .top-intro-spacer{
        display: block;
        width: 50%;
    }
}

#top-intro-title {
    background-color: var(--beigewhite);
    padding: 10px;
}

.top-intro-text-container{
    text-align: left;
    padding: calc(var(--space)*2);
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: var(--black);

}


.top-intro-text-container p {
    background-color: var(--beigewhite);
    padding: 10px;
}

.cv-link {
    border: 1px solid var(--black);
    border-radius: 999px;
    display: inline-block;
    font-size: 0.9rem;
    padding: 6px 14px;
    text-decoration: none;
}


@media screen and (min-width:576px) {
    .top-intro-text-container{
        padding: calc(var(--space)*1);
    }
}

@media screen and (min-width: 992px) {
    .top-intro-text-container {
        margin-left: auto; 
        max-width: 600px; 
        align-items: flex-start; 
    }
}

/* ここまで */


.btn {
    background-color: var(--white);
    border: 1px solid var(--black);
    border-radius: 10px;
    box-shadow: 2.5px 2.5px 0 0 var(--black);
    display: inline-block;
    padding: 10px 20px;
}

.main-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.title {
    font-size: 1.3rem;
    font-weight: bold;
}

.post {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.post img {
    border-radius: 10px;
    width: 100%;
}

.post-contents {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.middle .post {
    border-bottom: 1px solid var(--black);
    padding-bottom: 40px;
}

.elements {
    align-items: center;
    display: flex;
    gap: 20px;
}

.malaysia-elements {
    align-items: center;
    display: flex;
    gap: 20px;
    flex-direction: column;
    text-align: left;
}

.malaysia-link {
    width: 100%;
    text-align: left;
    font-size: 18px;
}

.malaysia-link a {
    text-decoration: underline;
}

.category {
    border: 1px solid var(--black);
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 5px 10px;
}

.intro {
    align-items: center;
    border: 1px solid var(--black);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.intro-right {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon {
    border-radius: 100%;
    height: 100px;
    width: 100px;
}

.intro-sns {
    align-items: center;
    display: flex;
    gap: 30px;
}

.intro-sns svg {
    width: 25px;
}

.middle {
    display: flex;
    flex-direction: column;
}

.middle-top {
    align-items: center;
    display: inline-flex;
    justify-content: space-between;
}

.middle-bottom {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}


/* || About */
.about-wrapper {
    background-color: var(--beige);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    padding: 40px var(--space);
    position: relative;
    text-align: center;
    width: 100vw;
}

.about-wave {
    bottom: 99%;
    left: 0;
    position: absolute;
}

.about-p {
    line-height: 35px;
}

hr {
    margin-bottom: 30px;
    margin-top: 30px;
    width: 100%;
}

.profile-icon {
    border-radius: 100%;
    margin: 0 auto;
    width: 100px;
}

.sns-icon {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.sns-icon svg {
    width: 20px;
}

/* / About */

.mail-wrapper {
    margin: 100px 0 0 0;
    border: 1px solid var(--black);
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    padding: 40px 20px 40px 20px;
}

.mail-wrapper h2 {
    margin-bottom: 20px;
}

.mail-wrapper h3 {
    margin-bottom: 40px;
}

.mail-wrapper input {
    border: 1px solid var(--black);
    background-color: var(--white);
}

.mail-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mail-wrapper svg {
    width: 100px;
    height: 100px;
}

.mail-text-input {
    width: 250px;
    height: 44px;
    text-align: center;
}

@keyframes rainbow-shadow {
    0% {
        box-shadow: 0 0 10px 2px #fb0094;
    }
    14% {
        box-shadow: 0 0 10px 2px orange;
    }
    28% {
        box-shadow: 0 0 10px 2px yellow;
    }
    42% {
        box-shadow: 0 0 10px 2px green;
    }
    57% {
        box-shadow: 0 0 10px 2px blue;
    }
    71% {
        box-shadow: 0 0 10px 2px indigo;
    }
    85% {
        box-shadow: 0 0 10px 2px violet;
    }
    100% {
        box-shadow: 0 0 10px 2px red;
    }
}

footer {
    background-color: var(--beige);
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: var(--space);
    padding-bottom: 60px;
    padding-left: var(--space);
    padding-right: var(--space);
    padding-top: 40px;
}

footer span {
    font-size: 0.6rem;
    margin-top: calc(var(--space)/3);
    text-align: center;
}

.grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    /* 2かける2のグリッド */
    width: 100%;
    /* 全体の横幅は100% */
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list a {
    font-size: 0.8rem;
}

/* ニュース */
.news{
    text-align: left !important;
    width: 100%;
}

.news h2{
    text-align: left;
    font-size: 1.5rem;
}

.news-type{
    border: 1px solid var(--black);
    width: 80px;
    display: none;
    text-align: center;
}

.ticker-container{
    overflow-y: scroll;
    margin-top: 20px;
    border-bottom: 1px solid #cccccc;
    height: 200px;
}

.ticker{
    text-align: left;
    display: flex;
    flex-direction: row;
    gap: 15px;
    border-top: 1px solid #cccccc;
    align-items: center;
    margin: 0;
}

.ticker p{
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 15px;
}

.ticker a{
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 15px;
    text-decoration: underline;
}

@media screen and (min-width:768px) {
    .news-type{
        display: block;
    }
}

/* ここまで */


@media screen and (min-width:576px) {
    :root {
        --space: 60px;
    }

    .mail-wrapper form {
        flex-direction: row;
    }

    .mail-wrapper{
        padding: 40px 30px 40px 30px;
        width: 100%;
    }

    .mail-wrapper form{
        margin-left: 30px;
    }
}

@media screen and (min-width:768px) {
    :root {
        --space: 80px;
    }

    .header-nav.active {
        gap: 30px;
    }

    .header-nav span {
        margin-top: 30px;
        padding-top: 30px;
    }
    
}

@media screen and (min-width:992px) {
    :root {
        --space: 100px;
    }

    .post {
        flex-direction: row;
    }

    .post img {
        width: 50%;
    }

    h2 {
        font-size: 2rem;
    }

    .title {
        font-size: 1.6rem;
    }

    .excerpt {
        font-size: 1.1rem;
    }

    .intro {
        flex-direction: row;
        padding: 40px;
    }

    .intro-left {
        width: 50%;
    }

    .about-wrapper {
        padding-bottom: 60px;
    }

    .mail-wrapper{
        width: auto;
        padding: 50px 200px;
    }
}

@media screen and (min-width:1200px) {
    footer span {
        font-size: 1rem;
    }

    header {
        padding: 40px var(--space);
    }

    .list a {
        font-size: 1rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    .logo, .logo-top {
        font-size: 2rem;
    }

    .middle .post {
        border-bottom: none;
        display: inline-flex;
        flex-direction: column;
        margin: 0;
        margin-top: 60px;
        padding: 0;
        width: 100%;
    }

    .middle .post img {
        width: 100%;
    }

    .main-wrapper {
        max-width: 1200px;
    }

    main {
        display: flex;
        justify-content: center;
    }

    .post-grid {
        display: grid;
        column-gap: calc(var(--space)/2);
        row-gap: 0;
        grid-template-columns: 1fr 1fr;
    }

    .about-wrapper {
        padding-bottom: 80px;
    }
}


@media screen and (min-width:1400px) {
    :root {
        --space: 120px;
    }

    .post-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .post {
        width: 100%;
    }

    .main-wrapper {
        gap: 80px;
    }

    .intro {
        gap: 60px
    }

}