@charset "utf-8";

/*共通設定==========================================*/
html {
    height: 100%;
    font-size: 100%;
    background-color: #f9f9f9;
    color: #333;
    font-family: "Press Start 2P", system-ui;
    font-family: "VT323", monospace;
    font-family: "Oxanium", sans-serif;
    font-family: "Orbitron", sans-serif;
    font-family: "DotGothic16", sans-serif;
    font-family: "Noto Sans JP", sans-serif;
    scroll-behavior: smooth;
}

body {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.loaded {
  opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    object-fit: cover;
}

ul,
ol {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

h1,
h2,
h3 {
    color: #111;
}

.content {
    width: 100%;
    margin-top: 100vh;
    position: relative;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    background-color: #f1f1f1;
}

.wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
}

.sec__title {
    font-size: 56px;
    font-family: "Oxanium", sans-serif;
    letter-spacing: 0.2em;
    margin: 56px 0;
}



/*hero================================*/

.hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 下のカラフルな背景 */
.image-bg {
    position: relative;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_map_demo.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "VT323", monospace;
    flex-direction: column;
}

/* 上のモノクロ背景（マスク適用） */
.image-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_img.webp');
    background-size: cover;
    filter: grayscale(60%);
    --mask-size: 280px;
    /* ← 変数として定義 */

    mask-image: radial-gradient(circle var(--mask-size) at var(--x, 50%) var(--y, 50%),
            rgba(0, 0, 0, 0) 68%,
            rgba(0, 0, 0, 1) 70%);
    -webkit-mask-image: radial-gradient(circle var(--mask-size) at var(--x, 50%) var(--y, 50%),
            rgba(0, 0, 0, 0) 68%,
            rgba(0, 0, 0, 1) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

@media (max-width: 768px) {
    .image-mask {
        --mask-size: 212px;
    }
}

.image-title {
    font-family: "VT323", monospace;
    font-size: 11vw;
    color: #333;
    font-weight: lighter;
    letter-spacing: 0.16em;
}

.image-mask-title {
    font-family: "VT323", monospace;
    font-family: "Oxanium", sans-serif;
    font-size: 6vw;
    color: #333;
    font-weight: normal;
    letter-spacing: 0.2em;
}

/* マスク円の枠線 */
.mask-border {
    position: absolute;
    width: 368px;
    height: 368px;
    top: -44px;
    left: -44px;
    border: 1px dotted rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mask-border {
        display: none;
    }
}

/*about=======================================-*/

.about {
    padding: 80px 0 144px;
}

.about__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* font-family: "DotGothic16", sans-serif; */
    line-height: 1.6;
}

.about__logo {
    text-align: center;
    width: 32%;
}

.about__img {
    width: 72%;
    border-radius: 50%;
}

.about__box {
    width: 56%;
}

.about__name {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 24px;
    letter-spacing: 0.2em;
    font-family: "DotGothic16", sans-serif;
}

.about__subtitle {
    font-size: 24px;
    margin-bottom: 8px;
    display: none;
}

.about__mytext {
    margin-bottom: 16px;
    padding-left: 1em;
    line-height: 1.7;
}

.about__licence {
    font-size: 11px;
    text-align: right;
}

/*works=========================================*/

.works {
    background-color: #fefefe;
    padding: 64px 0 96px;
}

.works__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
}

.works__title {
    margin: 40px 0 80px 0;
}

.works__grid {
    /* max-width: 1160px; */
    padding: 0 64px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(254px, 1fr));
    gap: 80px 64px;
}

.works__box {
    text-align: right;
    padding: 24px 12px;
    outline: #d1d1d1 1px solid;
    outline-offset: -2.4px;
    position: relative;
    background-color: #f9f9f9;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.works__box:hover {
    transform: translateY(-8px);
    background-color: #f1f1f1;
}

.works__box::before,
.works__box::after,
.works__box span::before,
.works__box span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 10px;
    transition: all 0.3s ease;
}

.works__box::before {
    top: 0;
    left: 0;
    border-top: 4px solid #666;
    border-left: 4px solid #666;
}

.works__box::after {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid #666;
    border-right: 4px solid #666;
}

.works__box span::before {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid #666;
    border-left: 4px solid #666;
}

.works__box span::after {
    top: 0;
    right: 0;
    border-top: 4px solid #666;
    border-right: 4px solid #666;
}

.works__box:hover::before,
.works__box:hover::after,
.works__box:hover span::before,
.works__box:hover span::after {
    border-color: #F4A261;
    /* 好きな色に変更 */
}

.works__box a img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
}

.works__textbox {
    padding: 0 16px 16px;
}

.works__box__title {
    text-align: left;
    margin: 16px 0;
}

.works__box__text {
    text-align: left;
    margin-bottom: 16px;
    font-size: 14px;
    height: 4.4em;
    overflow-y: scroll;
}

.works__more {
    margin-right: 1em;
    font-family: "VT323", monospace;
}

.works__box__text {
    text-align: left;
    margin-bottom: 16px;
    font-size: 14px;
    height: 4.4em;
    overflow-y: scroll;

    /* スクロールバーの背景など */
    scrollbar-width: thin;
    /* Firefox用：細くする */
    scrollbar-color: #F4A261 #f9f9f9;
    /* Firefox用：つまみ色 背景色 */
}

/* Chrome, Edge, Safari用のスクロールバー */
.works__box__text::-webkit-scrollbar {
    width: 8px;
    /* 横幅（縦スクロールの場合） */
}

.works__box__text::-webkit-scrollbar-track {
    background: #f9f9f9;
    /* トラック（背景） */
    border-radius: 4px;
}

.works__box__text::-webkit-scrollbar-thumb {
    background: #F4A261;
    /* スクロールつまみ */
    border-radius: 4px;
}

.works__box__text::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* ホバー時の色 */
}


#loadMoreBtn {
    display: none;
}

/*service==================================*/

.service {
    padding: 64px 0 96px;
    display: flex;
    justify-content: space-between;
}

.service__title {
    margin-top: 0;
}

.service__container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    width: 64%;
    margin-top: 20px;
}

.service__box {
    background-color: #F4A261;
    padding: 40px 8px;
    position: relative;
}

.service__box::before,
.service__box::after {
    content: "";
    position: absolute;
    width: 20px;
    /* ボーダーの長さ */
    height: 10px;
    /* ボーダーの長さ */
    border: solid 4px #666;
}

.service__box::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.service__box::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.service__subtitle {
    font-size: 40px;
    font-family: "VT323", monospace;
    font-weight: normal;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.service__subtitle span {
    display: block;
    font-size: 14px;
    margin-top: 16px;
}

.service__img {
    text-align: center;
}

.service__img img {
    text-align: center;
    width: 32%;
    margin-bottom: 48px;
    filter: grayscale(100%);
}

.service__text {
    font-size: 14px;
    width: 80%;
    margin: 0 auto 16px;
    line-height: 1.7;
}

/*contact========================*/

.contact {
    background-color: #F4A261;
    padding: 48px 0;

}

.contact__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.contact__box {
    line-height: 1.8;
}

.contact__btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: normal;
    text-transform: uppercase;
    text-decoration: none;
    color: #fefefe;
    /* 白文字 */
    background-color: #333;
    /* 黒背景 */
    border: 2px solid #fefefe;
    /* 白枠 */
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    font-family: "VT323", monospace;
    letter-spacing: 0.2em;
}

.contact__btn:hover {
    background-color: #fefefe;
    /* ホバー時は白 */
    color: #333;
    /* 文字色を黒に */
    border-color: #222;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.contact__btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/*faq==============================*/
.faq {
    background-color: #fefefe;
    padding: 8px 0 96px;
}

.faq__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
}

/*worksのview moreのための記述=====================*/
@media (max-width: 4000px) {
    .works__box {
        display: none;
        /* 最初は非表示 */
    }

    .works__box.show {
        display: block;
    }

    #loadMoreBtn {
        display: block;
        font-size: 24px;
        width: 160px;
        margin: 80px auto 0;
        font-family: "VT323", monospace;
        padding: 16px 16px;
        background-color: #fefefe;
        border: #F4A261 2px solid;
        letter-spacing: 2px;
        cursor: pointer;
        transform: translateY(0);
        transition: all 0.2s ease;
    }

    #loadMoreBtn:hover {
        transform: translateY(-8px);
        background-color: #F4A261;
    }
}

/*1024px～768px===================================*/
@media (max-width: 1024px) {
    /*service==================================*/
    .service {
        flex-direction: column;
    }

    .service__container {
        width: 100%;
    }

    /*contact==============================*/
    .contact__container {
        justify-content: start;
        gap: 24px;
    }
}

/*767px～430px===================================*/
@media (max-width: 767px) {
    /*about===========================*/
    .about__container {
        flex-direction: column;
        align-items: start;
    }

    .about__box {
        width: 100%;
    }

    .about__name {
        font-size: 40px;
    }

    .about__mytext {
        font-size: 14px;
    }

    .about__licence {
        font-size: 11px;
        text-align: right;
    }

    /*work=============================*/
    .works__grid {
        padding: 0 40px;
    }

    /*service==================================*/
    .service__container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .service__box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 24px 16px;
    }

    .service__subtitle {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .service__subtitle span {
        font-size: 12px;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .service__img img {
        width: 32%;
        margin-bottom: 8px;
    }

    .service__text {
        font-size: 14px;
        width: 96%;
        margin: 0 auto 0px;
    }

    /*contact==============*/
    .contact__title {
        margin-bottom: 0px;
        line-height: 1.0;
    }
}

/*429px===================================*/
@media (max-width: 429px) {

    /*共通設定==================================*/
    .sec__title {
        font-size: 40px;
        margin: 0px 0 40px 0;
    }

    /*work=============================*/
    .works__grid {
        padding: 0 8px;
    }

    /*service============================*/

    .service__box {
        padding: 24px 8px;
    }

    .service__subtitle span {
        font-size: 12px;
    }

    .service__img img {
        width: 40%;
        margin-bottom: 8px;
    }

    .service__text {
        font-size: 12px;
        width: 96%;
        margin: 0 auto 0px;
    }

    /*faq==============================*/
    .faq {
        padding: 64px 0 96px;
    }

}