/* デフォルト：スマホ基準 */
html {
    font-size: 80%;
    /* 10px = 1rem */
}

/* PC以上 */
@media (min-width: 1024px) {
    html {
        font-size: 100%;
    }
}

body {
    background: rgb(215 0 58);
    /* color: rgb(139, 0, 37); */
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .05em;
    line-height: 1.8;
    transition: background-color 0.5s ease;
}

@keyframes fadeSlideChar {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.space {
    width: 0.5em;
    display: inline-block;
}


h2 {
    font-family: "Orbitron", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 4rem;
    line-height: 1;
    margin-block-end: 40px;
}


.section {
    padding-block-start: 80px;
}

.section:last-of-type {
    padding-block-end: 80px;
}

@media (min-width: 820px) {
    .section {
        padding-block-start: 120px;
    }

    .section:last-of-type {
        padding-block-end: 120px;
    }
}

.section-top {
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 99;
    pointer-events: none;
}

.section-top ._bg-text p {
    font-family: "Orbitron", sans-serif;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    line-height: 1;
    font-weight: 900;
    font-size: 3.4rem;
    margin-inline-start: 5px;
    white-space: nowrap;
    filter: opacity(0.2);
    top: -20px;
    left: -8px;
    position: absolute;
}

@media (min-width: 820px) {
    .section-top ._bg-text p {
        top: -10px;
        font-size: 3rem;
    }
}

._bg-dynamic {
    transition: opacity 0.3s ease;
}

.section-main {
    position: relative;
    background: white;
    max-width: 1000px;
    margin-inline-start: 20px;
    margin-inline-end: 0;
    box-shadow: -2px 2px 2px 0px rgba(0 0 0 / 50%);
    border-radius: 20px 0 0 20px;
    margin-block: 10px;
}

@media (min-width: 820px) {
    .section-main {
        margin-inline-start: auto;
        margin-inline-end: 40px;
        border-radius: 0;
        margin-block: 0;
        box-shadow: 0px 0px 8px 2px rgba(0 0 0 / 50%);
    }
}

.section-main .Container {
    padding-inline: 20px;
    position: relative;
    padding-block-end: 80px;
}

.Container .main-title {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

/* ▼ スクロールダウン ▼ */
.scroll-circle {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    pointer-events: none;
    z-index: 999;
    opacity: 1;
    transition: all 0.6s ease;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
}

/* スクロール後：小さなボタンに変身 */
.scroll-circle.shrinked {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: auto;
    right: 20px;
    transform: none;
    opacity: 0.9;
    pointer-events: auto;
    border: 1px solid #333;
    /* サークル風に */
    border-radius: 50%;
    cursor: pointer;
}

/* テキスト小さく */
.scroll-circle.shrinked .circle-text text {
    font-size: 4px;
    letter-spacing: 0.5px;
    fill: #333;
}

/* 下向き矢印は非表示に */
.scroll-circle.shrinked .arrow-down {
    display: none;
}

/* 上向き矢印表示 */
.scroll-circle .arrow-up {
    display: none;
    /* 初期は非表示 */
}

.scroll-circle.shrinked .arrow-up {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #333;
    /* 上向き矢印に見える */
}

.circle-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 8s linear infinite;
}

.circle-text svg {
    width: 100%;
    height: 100%;
}

.circle-text text {
    font-size: 5px;
    fill: rgb(215, 0, 58);
    letter-spacing: 1px;
}

.arrow-down {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgb(215, 0, 58);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes rotateText {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes arrowBounce {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(6px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* スクロール位置で非表示 */
.scroll-circle.hide {
    opacity: 0;
    pointer-events: none;
}


/* ▲ スクロールダウン ▲ */


.Container .main-title {
    position: relative;
}

.Container .main-title h2 {
    font-size: 4rem;
}

.section-skills .skills-contents {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-skills .skills-contents .skills-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid #333;
    padding-block-end: 40px;
}

.section-skills .skills-contents .skills-content:last-of-type {
    border: none;
}

.section-skills .skills-contents .skills-item_head {
    display: flex;
    gap: 20px;
    align-items: center;
}

.section-skills .skills-contents .skills-item_head img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.section-skills .skills-contents .skills-item_head h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-skills .skills-contents .skills-item_head h3 small {
    font-size: 1rem;
    color: rgb(255 115 80);
}

@media (max-width: 819px) {
    .section-skills .skills-contents .skills-item_head h3 {
        justify-content: center;
        align-items: center;
    }
}

.section-skills .skills-contents .skills-item_head h3 small span {
    opacity: 0;
    display: inline-block;
    animation: fadeSlideUp 0.3s ease-out forwards;
}



.section-skills .skills-contents .skills-item_foot ._item-tools {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-block-start: 20px;
}

.section-skills .skills-contents .skills-item_foot ._item-tools img {
    width: 30px;
    height: 30px;
    border-radius: 0;
}

@media (max-width: 819px) {
    .section-skills .skills-contents .skills-item_head {
        flex-direction: column;
    }
}

/* Works */

.section-works .works-contents h3 {
    font-family: "Orbitron", sans-serif;
    font-weight: 600;
    /* position: relative; */
    padding: 20px;
    font-size: 1.5rem;
    text-align: center;
    margin-block-start: 80px;
    margin-block-end: 40px;
    color: #556370;
    position: sticky;
    background: rgba(255 255 255 / 90%);
    top: 0px;
    z-index: 10;
}

.section-works .works-contents h3 span {
    opacity: 0;
    display: inline-block;
    animation: fadeSlideUp 0.6s ease-out forwards;
}

.section-works .works-contents h3:before,
.section-works .works-contents h3:after {
    position: absolute;
    top: 0;
    content: '';
    width: 10px;
    height: 100%;
    display: inline-block;
}

.section-works .works-contents h3:before {
    border-top: dotted 1px;
    border-left: dotted 1px;
    border-bottom: dotted 1px;
    left: 0;
}

.section-works .works-contents h3:after {
    content: '';
    border-top: dotted 1px;
    border-right: dotted 1px;
    border-bottom: dotted 1px;
    right: 0;
}

.section-works .works-contents .works-content {
    display: flex;
    flex-wrap: wrap;
    /* flex-direction: column; */
    gap: 40px;
}

.section-works .works-contents .works-content .works-item {
    width: calc(100% / 2 - 20px);
}

.section-works .works-contents .works-content .works-item img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 2px 3px 0px rgba(0 0 0 / .1);
    transition: .3s ease;
}

.section-works .works-contents .works-content .works-item img:hover {
    scale: 1.02;
}

.section-works .works-contents .works-content .works-item h4 {
    text-align: center;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.section-works .works-contents .works-content .works-item h4 small {
    font-size: .8rem;
    color: #ffbf69;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2rem;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.modal-content .modal-body {
    padding-inline: 40px;
    margin-block: 60px;
}

.modal-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 2px;
    background-color: #FFF;
    transform-origin: center;
}

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover::before,
.modal-close:hover::after {
    background-color: red;
}

.section-works .works-contents .works-content .works-item dl {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 20px;
}

.section-works .works-contents .works-content .works-item dl dt {
    font-size: .8rem;
    line-height: 1;
    /* padding: 6px 6px; */
    width: 150px;
    display: flex;
    align-items: anchor-center;
    border-bottom: 1px solid;
    padding-block-end: 20px;
    padding-inline: 20px;
}

.section-works .works-contents .works-content .works-item dl dd {
    border-bottom: 1px solid;
    padding-block-end: 20px;
    padding-inline: 20px;
}

.section-works .works-contents .works-content .works-item dl dd a {
    color: #ffbf69;
}

.section-works .works-contents .works-content .works-item dl p {
    font-size: .8rem;
    color: darkgrey;
}

.section-works .works-contents .works-content .works-item p._memo {
    margin-block-start: 40px;
    padding: 20px 10px;
    position: relative;
    border-radius: 6px;
    border: 1px solid;
}

.section-works .works-contents .works-content .works-item p._memo::before {
    content: "memo";
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: white;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid;
}

@media (max-width: 819px) {
    .section-works .works-contents .works-content {
        flex-direction: column;
    }

    .section-works .works-contents .works-content .works-item {
        width: 100%;
    }

    .section-works .works-contents .works-content .works-item dl {
        grid-template-columns: 1fr;
    }

    .section-works .works-contents .works-content .works-item dl dt {
        width: auto;
        padding-block-end: 8px;
        color: #ffbf69;
    }

    .section-works .works-contents .works-content .works-item dl dd {
        border: none;
    }

    .modal-content .modal-body {
        padding-inline: 0;
        margin-block: 40px;
    }
}

/* About */
/* .section-about .about-contents {
    display: flex;
    flex-direction: column;
    gap: 20px;
} */

.section-about .about-contents .about-item {
    margin-block-end: 20px;
}

.section-about .about-contents .about-item ._label {
    font-size: .75rem;
    color: rgb(220, 150, 190);
}

.section-about .about-contents .about-item ._item {
    margin-left: 1em;
}

.section-about .about-contents .about-item h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    background: #333;
    color: #ffffff;
    text-align: center;
    margin-block-start: 40px;
    margin-block-end: 40px;
    margin-inline: -20px;
}

.section-about .about-contents .about-item .strength-item {
    margin-block-end: 20px;
    padding-block-end: 20px;
    border-bottom: 1px solid;
}

.section-about .about-contents .about-item .strength-item:last-of-type {
    border: none;
}

.section-about .about-contents .about-item .strength-item ._label {
    font-size: 3rem;
    font-family: "Orbitron", sans-serif;
    font-weight: 100;
    text-align: center;
    display: flex;
    justify-content: center;
    line-height: 1;
    margin-block-end: 20px;
}

.section-about .about-contents .about-item .strength-item ._label span {
    opacity: 0;
    display: inline-block;
    animation: fadeSlideUp 0.6s ease-out forwards;
}

.section-about .about-contents .about-content h3 {
    margin-block-end: 40px;
}

._history-aera {
    position: relative;
    margin-left: 20px;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

._history-item {
    position: relative;
    margin-bottom: 40px;
}

._history-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -30px;
    width: 12px;
    height: 12px;
    background-color: #dc96be;
    border-radius: 50%;
    border: 3px solid white;
    box-sizing: content-box;
}

._history-item ._date {
    line-height: 1;
    color: #ccc;
}

._history-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    margin-block: 20px;
}

._history-item h4 a {
    color: #dc96be;
    font-size: .9rem;
}


/* footer */

.section-massage {
    font-family: "Birthstone", cursive;
    font-weight: 400;
    font-size: 4rem;
    letter-spacing: 0;
    text-align: center;
    line-height: 1;
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    transform: rotate(-5deg);
}

@media (max-width: 640px) {
    .section-massage {
        bottom: -40px;
    }
}

footer {
    margin-block-start: 80px;
    padding-block-end: 10px;
}

footer ._copyright {
    text-align: center;
    font-size: .75rem;
}