/* 全体のスタイル */
body {
    margin: 0;
    padding: 0;
    /* background-color: #f5f5f5; */
    color: #333;
}

main {
    padding-top: 10vh;
}

/* ヒーローセクション（トップ画像） */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.hero .img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 100%;
    background-image: url("../images/profile.jpg");
    /* object-fit: cover; */
    background-size: cover;
    background-position: center;
}

.hero .img.employee_interview4 {
    background-image: url("../images/profile4.jpeg");
}

.hero-title {
    position: absolute;
    top: 5%;
    left: 5%;
    width:30%;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.hero-title-right {
    position: absolute;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    /* border-radius: 10px; */
}

.hero-text-phrase {
    position: absolute;
    font-size: 1.5rem;
    /* transform: translate(-100%, -100%); */
    color: black;
    /* text-align: center; */
    /* background: rgba(0, 0, 0, 0.5); */
    padding: 20px;
    /* border-radius: 10px; */
}

.hero-text {
    position: absolute;
    transform: translate(-100%, -100%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

/* インタビュー#1用 */
.employee_interview1 .hero-title-right {
    top: 5%;
    right: 5%;
    width:30%;
}

.employee_interview1 .hero-text-phrase {
    top: 50%;
    left: 50%;
    width:40%;
}

.employee_interview1 .hero-text {
    top: 95%;
    left: 95%;
    width:15%;
}

/* インタビュー#4用 */
.employee_interview4 .hero-title-right {
    top: 5%;
    right: 60%;
    width:30%;
}

.employee_interview4 .hero-text-phrase {
    top: 40%;
    left: 25%;
    width:40%;
    color:#333;
}

.employee_interview4 .hero-text-phrase h2 {
    color: white;
    font-size: 2rem;
}

.employee_interview4 .hero-text-phrase p {
    padding-top:15vh;
    padding-left: 2vw;
}

.employee_interview4 .hero-text {
    top: 95%;
    right: 60%;
    width:15%;
}

.hero-text h1 {
    margin: 10px 0 5px;
    font-size: 2rem;
}

.hero-text h2 {
    font-weight: normal;
    font-size: 1.2rem;
}

/* インタビューセクション */
.interview {
    max-width: 80vw;
    margin: 50px auto;
    padding: 20px;
}

.interview-content-top h3 {
    padding: 2rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.rucruitment {
    margin-bottom: 20px;
    position: relative;
    padding-left: 5rem;
}

.rucruitment::before {
    content: "採用担当";
    position: absolute;
    left: 0;
    top: 0;
    color: orange;
    font-weight: bold;
}

.interview-content {
    margin-bottom: 20px;
    position: relative;
    padding-left: 5rem;
}

.interview-content p {
    margin: 0.5rem 0;
}

p {
    line-height: 1.5;
}

.interview-content::before {
    content: "柳原さん";
    position: absolute;
    left: 0;
    top: 0;
    color: green;
    font-weight: bold;
}

/*インタビュー#4用 */
.interview4 .interview-content:before {
    content: "松本さん";
}

.interview-content-top {
    padding: 1rem 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.interview-content-top p,
.interview-content-top span,
.interview-content-top .smoothText,
.interview-content-top .smoothTextTrigger {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.interview-content-top *:focus {
    outline: none !important;
}

/* インタビューのブロック */
.interview-block {
    display: flex;
    align-items: center;
    margin: 50px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    padding: 20px;
    /* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); */
}

.interview-block.center {
    padding-top: 0;
}

/* インタビュー#1用 */
.interview-block#interview1 {
    background-image: url("../images/interview2.jpg");
    background-size: 60vw auto;
    background-position: right center;
    background-repeat: no-repeat;
}
.interview-block#interview2 {
    background-image: url("../images/interview1.jpg");
    background-size: 60vw auto;
    background-position: left center;
    background-repeat: no-repeat;
}
.interview-block#interview3 {
    background-image: url("../images/interview3.jpg"), url("../images/interview4.jpg");
    background-size: 35vw auto;
    background-position: right 10%, right 50%;
    background-repeat: no-repeat, no-repeat;
}

/* インタビュー#4用 */
.interview4 .interview-block#interview1 {
    background-image: url("../images/interview41.jpeg");
    background-size: 50vw auto;
    background-position: right center;
    background-repeat: no-repeat;
}

.interview4 .interview-block#interview2 {
    background-image: url("../images/interview42.jpeg");
    background-size: 50vw auto;
    background-position: left center;
    background-repeat: no-repeat;
}

.interview4 .interview-block#interview3 {
    background-image: url("../images/interview43.jpeg");
    background-size: 50vw auto;
    background-position: right center;
    background-repeat: no-repeat;
}

.interview4 .interview-block#interview4 {
    background-image: url("../images/interview44.jpeg");
    background-size: 40vw auto;
    background-position: left center;
    background-repeat: no-repeat;
}

/* 画像サイズを画面半分に設定（角丸なし） */
/* .interview-block img {
    /* width: 50%;
    height: 350px;
    object-fit: cover;
} */

/* テキストコンテンツ */
.text-content {
    width: 50%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: none;
    outline: none;
}

.center .text-content {
    width:80%;
}

.text-content:focus {
    outline: none;
}

/* 左右交互のレイアウト */
.left {
    flex-direction: row;
}

.right {
    flex-direction: row-reverse;
}

/* タイトルのスタイル */
.text-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: navy;
}

/* スクロール時のアニメーション */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    width: 80%;
}

.back-btn {
    width: 30%;
    padding: 10px 20px;
    background: navy;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    margin-right: auto;
}

.home-btn {
    width: 30%;
    padding: 10px 20px;
    background: navy;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 10px;
}

.next-btn {
    width: 30%;
    padding: 10px 20px;
    background: navy;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    margin-left: auto;
}

.back-btn.disabled,
.next-btn.disabled {
    background: #e0e0e0 !important;
    color: #666 !important;
    pointer-events: none !important;
    opacity: 0.85;
    border: 1px solid #bbb !important;
    cursor: default !important;
}

/* SPサイズ用のスタイル */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .hero .img {
        width: 100%;
    }

    .hero .img.employee_interview1 {
        background-image: url("../images/profile-sp.jpg");
    }

    .hero .img.employee_interview4 {
        background-image: url("../images/profile4-sp.jpeg");
    }

    h1 {
        font-size: 1rem;
    }

    .hero-title {
        width: 60%;
    }

    .hero-title-right {
        width: 60%;
    }

    .employee_interview4 .hero-title-right {
        left:5%;
    }

    .hero-text-phrase {
        writing-mode: vertical-rl;
        text-orientation: upright;
        left: auto;
        right: 5%;
        top: 20%;
        width: auto;
        font-size: 1rem;
        color: white;
    }

    .hero-text {
        width: 40%;
    }

    /* インタビュー#1用 */
    .employee_interview1 .hero-title-right {
        top: 5%;
        right: 5%;
        width:50%;
    }

    .employee_interview1 .hero-text-phrase {
        top: 25%;
        left: 60%;
        width:40%;
    }

    .employee_interview1 .hero-text {
        top: 95%;
        left: 50%;
        width:45%;
    }

    /* インタビュー#4用 */
    .employee_interview4 .hero-title-right {
        top: 5%;
        right: 15%;
        width:50%;
    }

    .employee_interview4 .hero-text-phrase {
        top: 40%;
        left: 60%;
        width:40%;
        color:#333;
    }

    .employee_interview4 .hero-text {
        top: 95%;
        right: 15%;
        width:40%;
    }

    .employee_interview4 .hero-text-phrase h2{
        font-size: 1.4em;
        background: rgba(128, 128, 128, 0.7);
        padding: 10px;
    }

    
    .employee_interview4 .hero-text-phrase p {
        color: white;
        padding-top:15vh;
        padding-right: 8vw;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .interview {
        max-width: 90vw;
        margin: 10px auto;
        padding: 10px;
    }

    .interview-block {
        flex-direction: column;
        background-size: 100% auto !important;
        background-position: top center !important;
        padding-top: 60vw;
    }

    .employee_interview1 .interview-block{
        padding-top: 60vw;
    }

    .interview4 .interview-block{
        padding-top: 70vw;
    }

    .interview4 .interview-block.center{
        padding-top: 5vw;
    }

    .interview-block img {
        width: 100%;
        height: auto;
    }

    .text-content {
        width: 100%;
        padding: 5px;
        margin-top: 20px;
    }

    .center .text-content {
        width: 100%;
    }

    .text-title-content {
        width: 100%;
        padding: 10px;
    }

    .button-container {
        flex-direction: column;
    }

    .back-btn, .home-btn, .next-btn {
        width: 100%;
        margin: 10px 0;
    }
}

.smoothText,
.smoothTextTrigger {
    outline: none;
}

.smoothText:focus,
.smoothTextTrigger:focus {
    outline: none;
}

/* インタビューセクション全体のスタイル */
.interview *,
.interview-content-top *,
.interview-block *,
.text-content *,
.rucruitment *,
.interview-content * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.interview *:focus,
.interview-content-top *:focus,
.interview-block *:focus,
.text-content *:focus,
.rucruitment *:focus,
.interview-content *:focus {
    outline: none !important;
}
