/* -*-*-*-*- 共通 -*-*-*-*- */
.modalDescription li, .profileArea li{
    list-style-type: disc;
}
.profileArea ul{
    padding-left: 2rem;
}
input[type="submit"] {
    -webkit-appearance: none; /* Safariの自動UIを無効化 */
    appearance: none;

    background-color: #fff !important;
    color: var(--myblack) !important;
    font-weight: bold;
    border: 1px solid var(--myblack);
    border-radius: 0px;

    width: 100%;
    display: block;
    cursor: pointer;
    padding: 10px 0;
    cursor: pointer;
    text-align: center;

    -webkit-text-fill-color: var(--myblack); /* iOSで文字色が消える対策 */
}
input[type="submit"]:hover {
    background-color: var(--myorange) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transition: 0.3s;
}
input[type="submit"]:active {
    background-color: var(--myorange) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transition: 0.3s;
}
.note li{
    list-style: '※';
}
.textCenter{
    text-align: center;
}
.mailThanks p{
    margin-top: 1rem;
    line-height: 1.5;
}

/* -*-*-*-*- SP -*-*-*-*- */
@media screen and (max-width: 599px) , print{
    /* ----- heroArea (SP) ----- */
    #heroArea{
        position: relative;
        /* overflow: hidden; */
        width: 100%;
        height: 65vh;
    }
    #heroArea p{
        font-size: 2.5rem;
        color: #fff;
        text-align: center;
    }
    .heroColumns{
        position: relative;
        align-items: center;
        height: 100%;
    }
    .heroImg{
        background-image: url(../img/img-background-sp.webp);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
    .heroText{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }


    /* ----- worksArea (SP) ----- */
    .grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        gap: 3rem 2rem;
        /* max-width: 1000px; */
        margin: 0 auto;
    }
    #worksArea p{
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .changeCursor{
        cursor: pointer;
    }
    .imgFocus{
        display: block;
        transition-duration: .5s;
    }
    .imgFocus:hover{
        transform: scale(1.2);
    }
    .worksItem{
        display: inline-block;
        overflow: hidden;
    }

    /* ----- aboutArea (SP) ----- */
    .profileArea table{
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1.5rem;
    }
    td, th {
        padding: 0.5em 0.75em;
        text-align: left;
        vertical-align: top;
        line-height: 1.5;
    }
    .skillMidashi{
        color: var(--myorange);
        font-size: 2rem;
        text-align: center;
        margin-bottom: 10px;
    }
    .prfImgArea{
        margin: 0 auto 1rem;
    }
    .profTable {
        display: block;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .profTable tr {
        display: block;
    }
    .profTable th,
    .profTable td {
        display: block;
        padding-bottom: 0;
    }
    .profTable th{
        color: var(--myorange);
        font-size: 1.2rem;
        padding-top: 1em;
        font-weight: bold;
    }
    .profTable tr:first-child th {
        padding-top: 0; /* 最初の項目だけ上の余白をなくす */
    }
    .profTable td {
        padding-left: 1.5rem;
    }
    .tableColumns table {
        width: 100%;
    }
    table.spOnly td{
        text-align: right;
    }

    /* ----- contactArea (SP) ----- */
    form{
        margin-bottom: 1rem;
    }
    .formItem{
        width: 100%;
        display: flex;
        height: 50px;
        align-items: center;
        margin-bottom: 50px;
        border-bottom: solid 1px var(--myblack);
    }
    .formItem:nth-of-type(3) {
        margin-bottom: 25px;
    }
    label{
        display: block;
        width: 80px;
    }
    input[type="text"],
    textarea {
        display: block;
        width: calc(100% - 80px);
        border: none;
        background: var(--myivory);
        margin-left: 2rem;
    }
    textarea{
        height: 40px;
        resize: none;
    }
    input[type="text"]:focus,
    textarea:focus{
        outline: none;
    }
    .note{
        width: 95%;
        margin-right: auto;
        margin-left: auto;
        padding-left: 1rem;
    }
    .note li{
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
/*     input{
        width: 100%;
        display: block;
        cursor: pointer;
    }
    input[type="submit"]:active{
        background: var(--myorange);
        color: #fff;
        transition: 0.3s;
    } */
    
    /* ----- モーダルウィンドウ ----- */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        inset: 0;
    }
    .modal.active{
        display: block;
    }
    body.modal-open {
        overflow: hidden;
    }
    .modalImage {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 2rem;
    }
    /* 背景オーバーレイ */
    .modalOverlay {
        position: absolute;
        inset: 0;
        background-color: rgba(0,0,0,0.6);
    }
    /* 中央のモーダルウィンドウ */
    .modalContent {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 80svh; /* 中身の高さを画面内に収める */
        overflow-y: auto; /* 中身だけスクロール */
        background: #fff;
        padding: 2rem;
        border-radius: 8px;
        width: 90%;
        max-width: 700px;
        z-index: 1001;
        box-shadow: 0 0 10px rgba(0,0,0,0.4);
        box-sizing: border-box;
    }
    /* 閉じるボタン */
    .modalClose {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
        text-align: center;
        box-shadow: 0 0 3px rgba(0,0,0,0.3);
        font-weight: bold;
    }
    /* テーブル */
    .modalDescription table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    .modalDescription th,
    .modalDescription td {
        padding: 0.5em 0.75em;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid #ddd;
    }
    .modalDescription p {
        margin-bottom: 1em;
        line-height: 1.3;
    }
    .modalDescription li{
        margin-bottom: 0.8rem;
        margin-left: 2rem;
    }
    .orikaeshi {
        white-space: nowrap;
    }
    /* テキスト下部余白 */
    .mBottom{
        margin-bottom: 2rem!important;
        display: inline-block;
    }
    .modal a[target="_blank"]{
        color: #538fc4;
    }
    .modal a[target="_blank"]:active{
        color: var(--mygold);
    }
    .linkTransform:active{
        transform: translateY(-5px);
        transition:0.3s;
    }
}


/* -*-*-*-*- PC -*-*-*-*- */
@media screen and (min-width: 600px) , print{
    .doubleColumns{
        display: flex;
        justify-content: space-around;
    }
    .doubleBetween{
        display: flex;
        justify-content: space-between;
    }

    /* ----- heroArea ----- */
    #heroArea{
        position: relative;
        width: 100%;
        height: 70vh;
    }
    #heroArea p{
        font-size: 3rem;
    }
    .heroImg{
        background-image: url(../img/img-background-pc.webp);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        width: 80%;
        height: 100%;
        clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    }
    .heroColumns{
        display: flex;
        position: relative;
        align-items: center;
        height: 100%;
    }
    .heroText{
        position: relative;
        left: -6rem;/* 文字を左にはみ出させる */
    }
    .heroText1{
        padding-left: 6rem;
    }
    .heroText2{
        padding-left: 4rem;
    }
    .heroText3{
        padding-left: 2rem;
    }

    /* ----- worksArea ----- */
    .grid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        gap: 3rem 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    #worksArea p{
        margin-top: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    .changeCursor{
        cursor: pointer;
    }
    .imgFocus{
        display: block;
        transition-duration: .5s;
    }
    .imgFocus:hover{
        transform: scale(1.2);
    }
    .worksItem{
        display: inline-block;
        overflow: hidden;
    }

    /* ----- aboutArea ----- */
    .profileArea table{
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1.5rem;
    }
    td, th {
        padding: 0.5em 0.75em;
        text-align: left;
        vertical-align: top;
        padding-bottom: 0.5em 0.75em;
        border-bottom: 1px solid #ddd;
        line-height: 1.5;
    }
    .skillMidashi{
        color: var(--myorange);
        font-size: 2rem;
        text-align: center;
        margin-bottom: 10px;
        margin-top: 20px;
    }
    #aboutArea img{
        max-width: 300px;
        object-fit: contain;
        align-self: flex-start;
    }
    .prfImgArea{
        min-width: 300px;
    }
    .profileArea    {
        width: 70%;
        margin-left: 2rem;
    }
    .profTable th{
        color: var(--myorange);
        font-weight: bold;
    }
    .tableColumns{
        display: flex;
        justify-content: space-between;
    }
    .tableColumns table {
        width: 100%;
    }
    .tableColumns td:nth-child(2),
    .tableColumns td:nth-child(4) {
        padding-right: 10%;  
    }

    /* ----- contactArea ----- */
    form{
        display: block;
        width: 45%;
    }
    .formItem{
        width: 100%;
        display: flex;
        height: 50px;
        align-items: center;
        margin-bottom: 50px;
        border-bottom: solid 1px var(--myblack);
    }
    label{
        display: block;
        width: 100px;
    }
    input[type="text"],
    textarea {
        display: block;
        width: calc(100% - 100px);
        border: none;
        background: var(--myivory);
        margin-left: 2rem;
    }
    textarea{
        height: 40px;
        resize: none;
    }
    input[type="text"]:focus,
    textarea:focus{
        outline: none;
    }
    .note{
        margin-left: 2rem;
        width: 45%;
        line-height: 1.5;
    }
    .note li{
        margin-bottom: 1rem;
    }
/*     input{
        width: 100%;
        display: block;
        cursor: pointer;
    }
    input[type="submit"]:hover{
        background: var(--myorange);
        color: #fff;
        transition: 0.3s;
    } */

    /* ----- モーダルウィンドウ ----- */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        inset: 0;
    }
    .modal.active{
        display: block;
    }
    body.modal-open {
        overflow: hidden;
    }
    .modalImage {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 2rem;
    }
    /* 背景オーバーレイ */
    .modalOverlay {
        position: absolute;
        inset: 0;
        background-color: rgba(0,0,0,0.6);
    }
    /* 中央のモーダルウィンドウ */
    .modalContent {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 90vh; /* 中身の高さを画面内に収める */
        overflow-y: auto; /* 中身だけスクロール */
        background: #fff;
        padding: 2rem;
        border-radius: 8px;
        width: 90%;
        max-width: 700px;
        z-index: 1001;
        box-shadow: 0 0 10px rgba(0,0,0,0.4);
        box-sizing: border-box;
    }
    /* 閉じるボタン */
     .modalClose {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
        text-align: center;
        box-shadow: 0 0 3px rgba(0,0,0,0.3);
        font-weight: bold;
    }
    /* テーブル */
    .modalDescription table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    .modalDescription th,
    .modalDescription td {
        padding: 0.5em 0.75em;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid #ddd;
    }
    .modalDescription p {
        margin-bottom: 1em;
        line-height: 1.3;
    }
    .modalDescription li{
        margin-bottom: 0.8rem;
        margin-left: 2rem;
    }
    /* テキスト下部余白 */
    .mBottom{
        margin-bottom: 2rem!important;
        display: inline-block;
    }
    .modal a[target="_blank"]{
        color: #538fc4;
    }
    .modal a[target="_blank"]:hover{
        color: var(--mygold);
    }
    .linkTransform:hover{
        transform: translateY(-5px);
        transition:0.3s;
    }
}