:root {
    --mainColor: #E06B6B;
    --accentColorR: #D94F2C;
    --accentColorY: #F6F2E4;
    --baseColor: #F0F0F0;

    --fontBlack: #3A2F2F;
    --fontWhite: #fff;
    --fontRed: #D94F2C;

    --backBlack: #3A2F2F;
    --backGray: #F0F0F0;
    --backWhite: #fff;
}

html,
body {
    overflow-x: hidden;
}


/* デフォルトはPC用 */
#profile,
#portfolio,
#services {
    padding: 100px 40px;
}

/* タブレット用 */
@media screen and (min-width: 768px) and (max-width: 1199px) {

    #profile,
    #portfolio,
    #services {
        padding: 80px 60px;
    }
}

/* スマホ用 */
@media screen and (max-width:767px) {

    #profile,
    #portfolio,
    #services {
        padding: 70px 20px;
    }
}




.backBlack {
    background-color: #3A2F2F;
    color: var(--fontWhite);
}

.backGray {
    background-color: var(--backGray);
}

.backWhite {
    background-color: rgba(255, 255, 255);
    color: var(--fontBlack);
}

.txtWhite {
    color: var(--fontWhite) !important;
}

html,
body,
h3,
h4 {
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--backWhite);
    color: var(--fontBlack);
}

.redText {
    color: var(--fontRed);
}

.back_top {
    width: 100vw;
    height: auto;
}

header {
    background-color: var(--mainColor);
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.headBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100vh;
    position: absolute;
    left: -15%;
}

.headMes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5vw;
    max-width: 1200px;
    width: 90%;
    flex-wrap: wrap;
    margin-left: 20px;
}

.lifeLogo {
    order: 2;
    width: clamp(350px, 35vw, 450px);
    height: auto;
}

.headContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.5vw;
    max-width: 100%;
    flex-wrap: wrap;
}

.headContainer>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 500px;
}

h1 {
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 0.4em;
    margin: 0;
}

.headMes1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: bold;
    letter-spacing: 0.25em;
    line-height: 1.2;
}

.left-align-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.line1 {
    font-size: 55px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.2em;
}

.line2 {
    font-size: 55px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-top: 0.3em;
    letter-spacing: 0.2em;
}

.i-wrap {
    display: inline-flex;

    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.i-ruby {
    display: block;
    font-size: 12px;
    color: var(--fontBlack);
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: relative;
    left: 6px;
    width: auto;
    bottom: 2px;
}

.i-logo {
    height: 60px;
    display: block;
}

.suru-text {
    font-size: 55px;
    font-weight: bold;
    color: var(--fontBlack);
    ;
    line-height: 1;
}

.headMes2 {
    font-size: 25px;
    font-weight: bold;
    margin-top: 8px;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.headTitle {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    color: var(--fontBlack);
    font-size: 25px;
    text-align: center;
    margin-top: 35px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

}

.circle {
    position: absolute;
    top: 50%;
    width: 2100px;
    height: 2100px;
    z-index: -1;
    background-color: var(--accentColorY);
    border-radius: 50%;
    transform: translateY(-50%);
    overflow: hidden;
}

.middle-space h2 {
    color: var(--fontBlack);
    font-size: 35px;
}

nav {
    position: absolute;
    top: 100px;
    right: 80px;
    display: flex;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    left: -8px;
}

nav ul li,
a {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 26px;
    color: var(--fontWhite);
    text-align: center;
}

.headContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5vw;
    flex-wrap: wrap;
}

.textBlock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 500px;
    text-align: left;
}

nav {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .headBox {
        left: 0;
        height: 100vh;
        justify-content: center;

        padding: 20px 20px;
        box-sizing: border-box;
        align-items: center;
        text-align: center;
    }

    .headMes {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
        margin: 0px;
    }

    .headContainer {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
        text-align: center;
    }

    .textBlock {
        align-items: center;
        text-align: center;
    }

    .left-align-wrap {
        align-items: flex-start;
        gap: 0;
        margin-bottom: 5px;
    }

    .line1 {
        font-size: 32px;
        letter-spacing: 0.2em;
    }

    .line2 {
        font-size: 32px;
        justify-content: center;
        gap: 0.8rem;
        letter-spacing: 0.2em;
    }

    .i-logo {
        height: 42px;
    }

    .i-ruby {
        font-size: 11px;
        left: 4px;
    }

    .suru-text {
        font-size: 32px;
    }

    .headMes2 {
        font-size: 16px;
        line-height: 1.6;
        letter-spacing: 0.06em;
        margin-top: 0px;

    }

    .lifeLogo {
        width: 240px;
    }

    .headTitle {
        color: var(--fontWhite);
        font-size: 18px;
        text-align: center;
        position: absolute;
        bottom: 35px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0px !important;
        width: max-content;
        background: rgba(240, 232, 220, 0.9);
        padding: 0.5em 1.5em;
        border-radius: 9999px;
        font-weight: 600;
        color: #5A4B42;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        display: inline-block;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: absolute;
        top: 30px;
        right: 30px;
        z-index: 1001;
    }

    .hamburger span {
        height: 3px;
        background-color: var(--fontWhite);
        border-radius: 2px;
        width: 100%;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
        transform-origin: center;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        transform-origin: center;
    }

    @media screen and (max-width: 767px) {

        #navMenu a {
            text-decoration: underline !important;
        }

        #navMenu ul li:first-child {
            text-decoration: none !important;
        }
    }

    nav#navMenu {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--mainColor);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    nav#navMenu.active {
        display: flex;
    }

    nav#navMenu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav#navMenu ul li a {
        color: var(--fontWhite);
        font-size: 24px;
        font-weight: bold;
        text-decoration: none;
    }

    nav:not(#navMenu) {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .headBox {
        left: 0;
        transform: none;
        align-items: flex-start;
        padding-left: 6vw;
    }

    .headMes {
        flex-direction: column-reverse;
        align-items: flex-start;
        text-align: left;
        margin: 0px;
    }

    .headContainer {
        order: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .textBlock {
        order: 1;
        align-items: flex-start;
        text-align: left;
    }

    .lifeLogo {
        order: 2;
    }

    .headMes2 {
        order: 3;
        text-align: left;
    }

    .headTitle {
        text-align: left;
    }
}

@media (min-width: 1201px) {

    .headContainer-mobile {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .headContainer-desktop {
        display: none;
    }

    .headContainer-mobile {
        display: flex;
    }
}

@media (min-width: 1201px) {
    .headBox-pc {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        height: 100vh;
        position: absolute;
        left: -15%;
    }

    .headMes {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5vw;
        max-width: 1200px;
        width: 90%;
        flex-wrap: wrap;
    }

    .headContainer {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1.5vw;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .headContainer>.textBlock {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        max-width: 500px;
    }

    .lifeLogo {
        order: 2;
        width: clamp(350px, 35vw, 450px);
        height: auto;
    }
}

.site-footer {
    text-align: center;
    padding: 15px 20px;
    background-color: var(--mainColor);

    color: white;
    font-size: 14px;
    font-weight: 400;
}

@media screen and (max-width: 1024px) and (orientation: landscape) {

    .headContainer-desktop {
        display: flex !important;
    }

    .headContainer-mobile {
        display: none !important;
    }

    header {
        height: auto;
        min-height: 100vh;
    }

    .headBox {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 100vh;
        padding: 40px 35px !important;
        box-sizing: border-box;
        left: 0;
        transform: none;
    }

    .headMes {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 5vw;
        width: 100%;
        max-width: 1000px;
        flex-wrap: wrap;
        margin: 0px;
    }

    .headContainer {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: left;
        gap: 2vw;
        width: 100%;
        max-width: 500px;
    }

    .textBlock {
        text-align: left;
        align-items: flex-start;
        max-width: 500px;
    }

    .line1,
    .line2,
    .suru-text {
        font-size: 44px;
    }

    .i-logo {
        height: 50px;
    }

    .i-ruby {
        font-size: 10px;
        left: 3px;
    }

    .headMes2 {
        text-align: left;
        font-size: 18px;
        margin-top: 15px;
        line-height: 1.6;
    }

    .lifeLogo {
        width: clamp(250px, 30vw, 350px);
        max-width: 320px;
        height: auto;
    }

    .headTitle {
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        padding: 0.6em 2em;
        background: rgba(240, 232, 220, 0.9);
        color: #5A4B42;
        font-weight: 600;
        border-radius: 9999px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        width: max-content;
    }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
    .headContainer-desktop {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: left;
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        gap: 0px;
        padding: 0px;
        box-sizing: border-box;
    }

    .headContainer-mobile {
        display: none !important;
    }

    header {
        height: auto;
        min-height: 100vh;
    }

    .headBox {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
        box-sizing: border-box;
        left: 0;
        transform: none;
    }

    .textBlock {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        max-width: 420px;
    }

    .headMes2 {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 15px;
    }

    .line1,
    .line2,
    .suru-text {
        font-size: 36px;
        letter-spacing: 0.15em;
    }

    .i-logo {
        height: 42px;
    }

    .i-ruby {
        font-size: 9px;
        left: 2px;
        bottom: 1px;
    }

    .lifeLogo {
        width: clamp(220px, 28vw, 300px);
        max-width: 250px;
        height: auto;
    }

    .headTitle {
        bottom: 4%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 16px;
        padding: 0.5em 1.5em;
        background: rgba(240, 232, 220, 0.9);
        color: #5A4B42;
        font-weight: 600;
        border-radius: 9999px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        width: max-content;
    }

    .lifeLogo {
        width: clamp(220px, 28vw, 300px);
        max-width: 280px;
        height: auto;
        transform: translateY(-10px);
        /* ←ここ追加で少し上に */
    }

    /* ナビゲーションの文字サイズを下げる */
    nav#navMenu ul li a,
    nav#navMenu ul li {
        font-size: 20px;
        line-height: 1.4;
    }

}

@media screen and (max-width: 1024px) and (orientation: landscape) {
    nav#navMenu {
        display: none !important;
    }

    nav#navMenu.active {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--mainColor);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .hamburger {
        display: flex !important;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: absolute;
        top: 30px;
        right: 30px;
        z-index: 1001;
    }

    .hamburger span {
        height: 3px;
        background-color: var(--fontWhite);
        border-radius: 2px;
        width: 100%;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
        transform-origin: center;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        transform-origin: center;
    }


}



/* ========================================================================================== Contents Section Start ========================================================================================== */


section {
    text-align: center;
}

.section-header {
    display: flex;
    align-items: flex-start;
    margin: 0px 0px 30px 0px;
}

.section-title-line {
    width: 50px;
    height: 3px;
    background-color: var(--accentColorR);
    margin-top: 70px;
    flex-shrink: 0;

}

.section-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--accentColorR);
    font-weight: bold;
    margin-bottom: -15px;
}

.section-title {
    font-size: 80px;
    font-weight: bold;
    color: var(--accentColorR);
    margin: 0;
}

.headMes1 {
    text-align: center;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 35px;
        text-align: left;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: -8px;
    }

    .section-text {
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .section-title-line {
        margin-top: 45px;
        height: 2px;
    }

    .section-header {
        margin: 10px 0px 15px 0px;
    }

    .section-text {
        margin-bottom: 0px;
    }
}

.topMes1 {
    font-size: 32px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    color: var(--fontBlack);
}

.topMes2 {
    font-size: 16px;
    position: relative;
    z-index: 2;
    color: var(--fontBlack);
}

.topMes {
    height: 100vh;
}

.background-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('img/topMesImg.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px;
    color: #000;
    text-align: center;
    overflow: hidden;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);

    z-index: 1;
}

.background-overlay p {
    position: relative;
    z-index: 2;
}

.gray-bg {
    position: relative;
    overflow: hidden;
    padding: 50px 20px;
    text-align: center;
}

.overlay-layout {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/topMesImg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--backGray);

    mix-blend-mode: multiply;

    z-index: 1;
    opacity: 50%;
}

.text-overlay {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: var(--fontBlack);
    padding: 100px;
    background: linear-gradient(rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.6));
    border-radius: 16px;
    margin: 20px;
    font-size: 25px;
    backdrop-filter: blur(2px);
}

@media screen and (max-width:1199px) and (min-width:767px) {
    .text-overlay {
        margin: 60px;
    }
}

.topMesTitle {
    font-weight: bold;
}

.topMes1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.topMes2 {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 10px;
}

.redText {
    color: #D94F2C;
    font-weight: bold;
    font-size: 1.4em;
}

@media (max-width: 768px) {
    .overlay-layout {
        height: 300px;

    }

    .text-overlay {
        padding: 25px;
        font-size: 20px;

    }

    .topMes1 {
        font-size: 20px;

    }

    .topMes2 {
        font-size: 14px;

    }

    .overlay-layout {
        height: 415px;
    }
}

.sp-br {
    display: none;
}

@media (max-width: 767px) {
    .sp-br {
        display: inline;
    }

    .gray-bg {
        padding: 15px 20px;
    }
}



/* ========================================================================================== Contents Section② Profile ========================================================================================== */


.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 50px 0;
}

.Profcontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(200, 200, 200, 0.5);
    margin: 30px auto 10px auto;
    position: relative;
}

.middle-space {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Arial', sans-serif;
    transition: opacity 0.1s ease, width 0.25s ease;
    z-index: 1;
}

.card {
    position: relative;
    width: 40%;
    height: 780px;
    overflow: hidden;
    border-radius: 10px;
    transition: width 0.25s ease-in-out;
    background: white;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.2s ease-in-out;
}

.card:hover img {
    filter: brightness(1);
}

.label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
    transition: all 0.3s ease-in-out;
}

.card:hover .label {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
    text-align: center;
}

.card:hover .card-content {
    opacity: 1;
}



@media screen and (max-width:1199px) {

    .card:hover .card-content,
    .card.active .card-content {
        opacity: 1;
    }
}


.card-content .profile-title {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    color: var(--fontBlack);
}

.card-content .card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--fontBlack);
}

.profile-header {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.profile-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: var(--fontBlack);
    text-align: left;
    padding-left: 20px !important;
}

.left-card:hover~.profile-title,
.right-card:hover~.profile-title {
    opacity: 1;

    transform: translateX(-50%) translateY(0);

}

.card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--fontBlack);
    text-align: left;
    padding: 0px 30px 30px 30px;
    border-radius: 6px;
}

.card:hover .card-text {
    opacity: 1;
}


.card.right-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background 0.4s ease;
    z-index: 1;
}

.card.right-card:hover::before {
    background: rgba(34, 34, 34, 0.5);
}

.card.right-card .card.right-card .card-content {
    position: relative;
    z-index: 2;
}


.card.left-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background 0.4s ease;
    background: transparent;
    z-index: 1;
}

.card.left-card:hover::before {
    background: rgba(255, 255, 255, 0.5);
}

.card.left-card .card.left-card .card-content {
    position: relative;
    z-index: 2;
}



.card.left-card {
    background-color: rgba(255, 255, 255, 0.9);

    color: var(--fontBlack);
    ;

}

.card.left-card .card-text {
    color: var(--fontBlack);
    ;

}

.card.right-card {
    background-color: rgba(51, 51, 51, 0.9);

    left: 0% !important;
    color: #fff;

}

.card.right-card .card-text {
    color: #fff;

}

.card:hover .card-text,
.card:hover {
    opacity: 1;
}

.card:hove {
    opacity: 1;
}

.left-card:hover {
    width: 60%;
}

.right-card:hover {
    width: 60%;
}

.left-card:hover~.middle-space,
.right-card:hover~.middle-space {
    width: 0;
    opacity: 0;
    pointer-events: none;
}





@media (max-width: 1199px) {
    .Profcontainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        margin: 20px auto;
        padding: 0;
        background: none;
        max-width: 100%;
        position: static;
    }

    .middle-space {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(200, 200, 200, 0.5);
        padding: 24px 0;
        font-family: 'Arial', sans-serif;
        text-align: center;
        transition: none !important;
        order: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 50px;
        background-color: #e5e5e5;
        border-radius: 12px 12px 0px 0px;
        text-align: center;
    }

    .middle-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .middle-text h2 {
        font-size: 20px;
        margin: 0;
    }

    .middle-text p {
        margin: 4px 0 0;
        font-size: 14px;
        color: #333;
    }

    .profile-thumbnails-inline {
        display: flex;
        align-items: center;
    }

    .profile-thumbnails-inline img.thumb {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid #ccc;
        background-color: white;
    }

    .thumb {
        width: 52px;
        height: 52px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        opacity: 0.6;
        border: 2px solid transparent;
        transition: none !important;
    }

    .thumb.active {
        opacity: 1;
        border: 2px solid #D94F2C !important;
    }

    .card {
        display: none;
        width: 100% !important;
        height: 650px !important;
        flex-direction: column;
        border-radius: 0px 0px 12px 12px;
        overflow: hidden;
        z-index: auto;
        order: 3;
        position: relative !important;
    }

    .card.active {
        display: flex !important;
    }

    .card img {
        top: 0;
        left: 0;
        width: 100% !important;
        height: 780px !important;
        object-fit: cover !important;
        filter: brightness(0.8) !important;
        transition: none !important;
        z-index: 0;
        border-radius: inherit;
        display: block !important;
    }

    .label {
        display: none;
    }

    .profile-title {
        font-size: 18px !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 15px !important;
        padding: 0 10px;
        text-shadow: none;
        z-index: 100 !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .card-text {
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
        z-index: 10;
        height: fit-content;
        padding: 0 20px 20px 20px;
    }


    .card.right-card::before {
        background: rgba(34, 34, 34, 0.5);
    }

    .card.left-card::before {
        background: rgba(255, 255, 255, 0.5);
    }


}

@media (min-width: 1199px) {
    .profile-thumbnails-inline {
        display: none !important;
    }
}



/* ========================================================================================== Contents Section③ Portfolio ========================================================================================== */
.portfolio-grid {
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto;
    padding: 0 20px;
}

/* タブレット: 2カラム */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ: 1カラム */
@media screen and (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0px;
    }
}

.portfolio-item {
    display: block;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding-bottom: 20px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width:767px) {
    .portfolio-item:hover {
        transform: scale(1.02) !important;
    }
}


.card-header img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;

    border-top-left-radius: 15px;

    border-top-right-radius: 15px;
}

.portfolio-item h3 {
    padding: 15px 15px 5px 15px;
    font-size: 18px;
    font-weight: bold;
}

.portfolio-item p {
    margin: 10px 20px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    font-weight: lighter;

}

.portfolio-item .button {
    margin: 10px 0;

    padding: 8px 16px;
    background: #e0f7fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #00796b;
    display: inline-block;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.portfolio-item .button:hover {
    background: #b2ebf2;
}

.card-header img {
    width: 100%;
    height: auto;
    display: block;

    margin: 0;

    border-top-left-radius: 15px;

    border-top-right-radius: 15px;
}

.tag {
    display: inline-block;
    font-size: 14px;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    margin: 0px 20px;
}

.web {
    background: #E6F4D9;
    color: #3A5F2E;
}

.wp {
    background: #DDEDFF;
    color: #1E3A5F;
}

.notion {
    background: #EEEEEE;
    color: #333333;
}

.more-btn-container {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    display: inline-block;
    padding: 14px 65px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--accentColorR);
    color: var(--accentColorR);
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 0px !important;
}

.more-btn:hover {
    background: var(--accentColorR);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 115, 115, 0.3);
}

.sub-text {
    font-size: 13px;
    color: var(--mainColor);
    margin-top: 8px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
    padding-bottom: 40px;
}

.more-btn:hover+.sub-text {
    opacity: 1;
    color: var(--accentColorR);
}



/* ========================================================================================== Contents Section④ Services & Skills ========================================================================================== */



#services {
    text-align: left;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: top;
    text-align: left;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #ddd;

}

.service-item:last-child {
    border-bottom: none;
}

.service-icon img {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.service-content {
    text-align: left;
    flex: 1;
}

.service-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    width: 200px;
    margin-top: 20px;

}

.service-btn {
    padding: 10px 35px;
    font-size: 14px;
    color: #d94f2c;
    border: 2px solid #d94f2c;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin-bottom: 5px;

    margin-bottom: 0px !important;
}

.service-btn:hover {
    background: #d94f2c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(217, 79, 44, 0.3);
}

.sub-text {
    font-size: 13px;
    color: var(--mainColor, #666);

    opacity: 0.8;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    margin: 0;

    padding-top: 10px;
}

.service-btn:hover+.sub-text {
    opacity: 1;
    color: var(--accentColorR, #d94f2c);
}

.skills-wrapper {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.skills-container {
    padding-top: 20px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.skills-box,
.request-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    justify-content: center;

}

.skills-box h4 {
    margin-bottom: 16px;

}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px;
    max-width: 100%;

}

.skills-box {
    flex: 1;
}

.request-box {
    flex: 2;
}

.request-box ul {
    list-style: none;
    padding: 0;
}

.request-box li {
    background: var(--accentColorY);

    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    background: var(--mainColor);
    color: white;
    padding: 12px 14px;
    border-radius: 30px;
    font-size: 18px;
    margin-bottom: 12px;
    width: 120px;
    text-align: center;
}

.skill-tagBox {
    justify-content: center;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

.cta-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: #d94f2c;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin-bottom: 0px !important;
}

.cta-btn:hover {
    background: #b23c1a;
}

.cta-btn:hover+.sub-text {
    opacity: 1;
    color: var(--accentColorR);
}


.cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
}

.cta-btn:hover::before {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    from {
        left: -75%;
    }

    to {
        left: 125%;
    }
}


.gray-bg {
    background-color: var(--backGray);
    ;
}

.white-bg {
    background-color: var(--backWhite);
}

footer {
    background-color: var(--accentColorR);
    color: white;
    text-align: center;
    padding: 20px;
}

@media screen and (max-width:1199px) {

    .services-grid,
    .skills-container {
        flex-direction: column;
        padding: 20px;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
        padding: 0px;
        gap: 15px;
    }

    .skills-box,
    .request-box {
        width: 100%;
        margin: 0 auto 20px;
        box-sizing: border-box;
    }

    .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .service-content {
        text-align: center;
    }

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

    .skills-box,
    .request-box {
        width: 100%;
    }

    .service-content h3 {
        font-size: 20px;
    }

    .skill-tag {
        font-size: 16px;
        margin: 5px;
    }

    .request-box li {
        font-size: 14px;
    }

    .cta-container {
        margin-top: 15px;
    }

    .service-text {
        font-size: 15px;
        text-align: left;
    }

    .service-btn {
        padding: 14px 65px;
        text-wrap: nowrap;
    }

    .button-wrapper {
        align-items: center;
        margin: 0 auto;
        margin-top: 30px;
    }

}

/* ========================================================================================== Contents Section End ========================================================================================== */