/*
Theme Name: 椎橋デザインオフィス
Theme URI: https://web-designs.main.jp/s_designoffice/
Author: 椎橋 海都
Author URI: https://web-designs.main.jp/
Description: シンプルで心地よいWEB制作のためのオリジナルテーマ
Version: 1.0
*/

@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F8FAFC;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ヒーロー */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero h1 {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 2.3rem;
    font-weight: bold;
    line-height: 2;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 1.5rem;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 背景共通 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease-in-out, transform 4s ease;
    z-index: 1;
}

.hero-bg.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* プロフィール */
.profile-section {
    background: #F8FAFC;
    padding: 4rem 1.5rem;
}

.profile-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
}

.profile-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.profile-text {
    font-family: 'Noto Sans JP', sans-serif;
}

.en-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* サービス */
.services-section {
    background-color: #F8FAFC;
    padding: 4rem 1.5rem;
}

.services-section .en-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin: 0 auto;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 1000px;
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-item.show {
    opacity: 1;
    transform: translateY(0);
}

.service-item:first-child {
    border-top: 1px solid #ccc;
    padding-top: 2rem;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.service-text h3 span {
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    color: #3B82F6;
    display: block;
    margin-bottom: 0.25rem;
}

.service-text p {
    font-size: 1rem;
    line-height: 1.8;
}

.service-img {
    flex: 1;
    text-align: right;
}

.service-img img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.services-btn-wrap {
    text-align: center;
    margin-top: 3rem;
}

.services-btn-wrap .services-btn {
    max-width: 600px;
}

/* ポートフォリオ */
.portfolio-section {
    background-color: #F8FAFC;
    padding: 4rem 1.5rem;
}

.portfolio-section .en-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin: 0 auto;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 1000px;
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
}

.portfolio-item {
    text-align: center;
}

.portfolio-image-wrapper {
    width: 100%;
    height: auto;
    /* overflow: hidden; */
    border-radius: 10px;
    position: relative;
    padding-top: 66.66%;
}

.portfolio-image-set {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s ease;
}

.portfolio-image-set img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.portfolio-image-set img.active {
    opacity: 1;
    z-index: 1;
}

.portfolio-title {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.portfolio-btn-wrap {
    text-align: center;
    margin-top: 3rem;
}

.portfolio-btn-wrap .portfolio-btn {
    max-width: 600px;
}

/* コンタクト */
.contact-section {
    padding: 4rem 1.5rem;
}

.contact-inner {
    background-color: rgba(255, 255, 255, 0.5);
    /* 白に透明度 */
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.contact-message {
    font-size: 1rem;
    line-height: 1.8;
    margin: 1.5rem 0 2rem;
}

.contact-btn-wrap {
    text-align: center;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* 共通 */
.btn {
    display: inline-block;
    width: 80%;
    padding: 0.75rem 1.5rem;
    margin-left: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #3B82F6;
    border: 2px solid #3B82F6;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn span {
    margin-left: 50%;
    position: relative;
    z-index: 1;
}

/* ホバーアニメーション（左→右） */
.btn::before {
    content: "";
    position: absolute;
    background-color: #3B82F6;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #fff;
}


/* 1280pxpx */
@media (max-width: 1280px) {}

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

    /* ヒーロー */
    .hero-text {
        font-size: 1.5rem;
    }

    /* プロフィール */
    .profile-inner {
        flex-direction: column-reverse;
        align-items: center;
    }

    .profile-img {
        flex: 1;
    }

    .profile-text {
        flex: 1;
    }

    /* サービス */
    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-text {
        order: 1;
    }

    .service-img {
        order: 2;
        text-align: center;
    }

    .service-img img {
        max-width: 200px;
    }

    .service-text h3 {
        font-size: 1.1rem;
    }

    .service-text p {
        font-size: 0.9rem;
    }

    .services-btn-wrap .services-btn span {
        margin-left: 20%;
    }

    /* ポートフォリオ */
    /* .portfolio-image-wrapper {
        margin: 0 auto;
        width: 80%;
        height: 200px;
    } */

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-btn-wrap .portfolio-btn span {
        margin-left: 20%;
    }

}

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

    /* ヒーロー */
    .hero-text {
        font-size: 1.1rem;
        padding: 0 16px;
    }

    /* プロフィール */
    .lead {
        font-size: 1rem;
    }

    .description {
        font-size: .75rem;
        line-height: 1.6;
    }

    /* サービス */
    .service-text p {
        font-size: .75rem;
    }

    /* ポートフォリオ */
    .portfolio-title {
        font-size: .9rem;
    }

    /* コンタクト */
    .contact-inner {
        padding: 12px;
    }

    .contact-message {
        font-size: .75rem;
    }


    /* 共通 */
    .btn {
        width: 100%;
        padding: 0.5rem 1rem;
        margin-left: 0;
    }

    .btn span {
        margin-left: 30%;
    }

    .btn:hover::before {
        left: -100%;
    }

    .btn:hover {
        color: #3B82F6;
    }

}