body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* スクロールを作るために高さを設定 */
    font-family: '游明朝', serif;
}

/*ホーム画面*/

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: black;
    font-size: clamp(20px, calc(1.0rem + 1.5vw), 32px);
    z-index: 2;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    /* animation: fadeIn;
    animation-delay: 0.5s;
    animation-duration: 0.6s; */
}

.fade_filter {
    opacity: 0;
    background-color: var(--background-color);
    z-index: 3;
    padding: 20px;
}

#office_slogan_filter {
    opacity: 1;
}

.fade_filter h2 {
    opacity: 0;
}

.video-container {
    position: relative;
    display: block;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 80px;
}

video {
    filter: brightness(0.7);
    height: 100%;
    width: 100%;
    opacity: 1;
    object-fit: cover;
    /* 動画を全画面で表示 */
    /* animation: fadeInV;
    animation-delay: 1.5s;
    animation-duration: 1.0s; */
    vertical-align: top;
}

.video_filter {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--background-color);
}

.hero {
    color: var(--background-color);
    padding: 0px 0px;
    text-align: center;
}

@media (max-width: 481px) {
    #background-video {
        display: none;
    }
}

@media (min-width: 481px) {
    #background-video-mobile {
        display: none;
    }
}


/* three things */
.three-things {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    margin-bottom: 80px;
}

.three-things-title {
    margin: 125px auto 20px auto;
    text-align: center;
    font-size: 20px;
    font-weight: bolder;
}

.image-wrapper {
    width: 300px;
    height: 300px;
    overflow: hidden;
    margin: 0 20px;
    color: rgba(255, 255, 255, 1);
}

.image-wrapper:hover {
    /* color: black; */
    transition: 0.4s;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-filter {
    width: 100%;
    height: 100%;
    background: var(--main-color);
    position: absolute;
    top: 0;
    left: 0;
}

.image-title {
    display: inline-block;
    /* 親要素の幅を子要素に合わせる */
    white-space: nowrap;
    /* テキストの改行を無効にする */
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-title .p1 {
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 1px;
}

.image-title .p2 {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 1px;
}

.image-title span {
    display: block;
    width: 10px;
    height: 1px;
    margin: 10px auto;
    padding: 0;
    background: rgba(255, 255, 255, 1);
}

.image-wrapper:hover span {
    /* background-color: black; */
    transition: 0.4s;
}



/* philosophy */
.philosophy {
    width: clamp(800px, calc(90%), 1000px);
    margin: 0 auto;
    font-size: 17px;
    padding-top: 50px;
}

.main_block {
    display: table;
    width: 100%;
    margin: 0px 0 65px 0;
}

.philosophy h3 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 30px;
    font-weight: normal;
}

.main_block .block_left,
.main_block .block_right {
    width: 50%;
    display: table-cell;
    vertical-align: middle;
}

.main_block .block_right p {
    margin-left: 60px;
}

.philosophy img {
    width: 100%;
}

.main_img img {
    vertical-align: bottom;
}

.main_text {
    width: 100%;
    padding: 0 0 0 0;
}

.main_text {
    font-size: 24px;
    line-height: 44px;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 1);
}

.about_block {
    display: table;
    width: 100%;
    margin: 0 0 65px;
}

.about_block .block_left {
    width: 40%;
    display: table-cell;
    border-right: 1px solid black;
}

.about_block .block_right {
    width: 60%;
    display: table-cell;
    vertical-align: middle;
}

.about_block .block_left p {
    width: 90%;
    text-align: right;
    margin-right: 45px;
}

.about_block .block_right p {
    margin-left: 45px;
}


.about_us {
    width: fit-content;
    display: block;
    margin-left: auto;
    margin-right: 15px;
    text-decoration: none;
    color: #000;
}

.arrow {
    width: 100%;
    height: 1px;
    background-color: black;
    position: relative;
    display: inline-block;
}

/* 矢じりのスタイル */
.arrow::after {
    content: '';
    background-image: url(./assets/arrow_tip.svg);
    position: absolute;
    top: -6px;
    right: -15px;
    width: 15px;
    height: 7px;
}

.scroll_on0 {
    animation: scroll_on0 .5s ease-in-out forwards;
}

/*! CSS Used keyframes */
@keyframes scroll_on0 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* Movie */
/* .movie {
    width: 100%;
    margin: 150px 0 90px 0;
    background: var(--main-color);
}

.movie #popup_block0 {
    position: relative;
    align-items: center;
}

.movie #thumbnail {
    margin: 0 auto;
    width: clamp(800px, calc(90%), 850px);
}

#thumbnail_container {
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.movie #play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
} */


/* Quality */
.quality {
    width: clamp(800px, calc(90%), 1000px);
    margin: 0 auto;
    font-size: 17px;
}

.quality_block {
    display: table;
    width: 100%;
    margin: 0 0 65px;
}

.quality_block .block_left {
    width: 60%;
    display: table-cell;
    vertical-align: middle;
}

.quality_block .block_right {
    width: 40%;
    display: table-cell;
    border-left: 1px solid black;
}

.quality_block .block_left p {
    margin-right: 45px;
}

.quality_block .block_right p {
    width: 90%;
    text-align: left;
    margin-left: 45px;
}

.five_quality {
    width: fit-content;
    display: block;
    margin-left: 0px;
    text-decoration: none;
    color: #000;
}

.five_quality .arrow {
    width: 120px;
}

/* topic */

.topic {
    margin: 0px auto 0 auto;
    display: block;
    width: clamp(840px, calc(90%), 1000px);
}

.topic .title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.topics_block {
    display: block;
    margin: 0 auto 50px auto;
}

.topics_list {
    display: flex;
    width: 650px;
    margin: 15px auto;
    text-decoration: none;
}

.topic_list p {
    font-size: 16px;
}

.topics_list .date {
    width: 20%;
    color: #000;
}

.topics_list .topic_title {
    width: 80%;
    color: #000;
}

.topic .btn {
    margin: 0 auto;
    display: block;
    text-align: center;
    text-decoration: none;
    width: 218px;
    height: 40px;
    border: 1px solid var(--main-color);
    background: var(--main-color);
    color: var(--text-color);
    transition: 0.5s;
}

.topic .btn:hover {
    color: var(--main-color);
    background: #fff;
}

#topic_btn_text {
    margin: 0;
    /* マージンをリセット */
    padding: 0;
    /* パディングをリセット */
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    line-height: 40px;
    /* ボタンの高さに合わせて調整 */
}


/* contents */
.contents_block {
    display: block;
    width: clamp(840px, calc(90%), 1000px);
    margin: 55px auto 100px auto;
}

.content_wrapper {
    margin: 40px 0;
    display: block;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.content_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content_filter {
    width: 300px;
    height: 300px;
    background: var(--main-color);
    opacity: 0.9;
    position: absolute;
    top: 0;
}

#content_filter1,
#content_filter3 {
    left: 0px;
}

#content_filter2 {
    right: 0px;
}

.content_title_container {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 0;
}

#content_title_container2 {
    right: 0px;
}

.content_image_title {
    display: inline-block;
    /* 親要素の幅を子要素に合わせる */
    white-space: nowrap;
    /* テキストの改行を無効にする */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.content_image_title .p1 {
    text-align: start;
    font-size: 20px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 1);
}

.content_image_title .p2 {
    text-align: start;
    font-size: 16px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 1);
}

.content_image_title span {
    display: block;
    text-align: start;
    width: 30px;
    height: 1px;
    margin: 20px 0;
    padding: 0;
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 481px) {

    .pc_only {
        display: none;
    }

    .video-container {
        position: relative;
        display: block;
        width: 100%;
        height: 600px;
        overflow: hidden;
        margin-bottom: 80px;
    }

    .main_text {
        font-size: 18px;
        line-height: 36px;
        letter-spacing: 2px;
        color: rgba(0, 0, 0, 1);
    }

    
    .philosophy {
        width: clamp(300px, calc(90%), 480px);
    }

    .arrow_button {
        margin: 0 auto;
        text-align: center;
    }

    .about_block {
        margin: 0 0 35px;
    }

    .about_block .block_left {
        width: 25%;
        font-size: 16px;
    }

    .about_block .block_left p{
        text-align: left;
        width: 100%;
    }

    .about_block .block_right {
        width: 75%;
        font-size: 14px;
    }

    .about_block .block_right p{
        margin-left: 20px;
    }

    .quality {
        width: clamp(300px, calc(90%), 480px);
    }

    .quality_block .block_left {
        width: 75%;
        font-size: 14px;
        margin-right: 5px;
    }

    .quality_block .block_left p{
        margin-right: 20px;
    }

    .quality_block .block_right {
        width: 25%;
    }
    .quality_block .block_right p{
        margin-left: 20px;
    }

    .quality_block {
        margin: 0 0 35px;
    }

    .three-things-title {
        margin: 50px auto 20px auto;
    }

    .three-things {
        display: block;
        height: 650px;
        margin-bottom: 80px;
    }

    .image-wrapper {
        width: 90%;
        height: 200px;
        margin: 20px auto;
    }

    .topic {
        width: clamp(300px, calc(90%), 480px);
        margin-bottom: 50px;
    }

    .topics_list {
        display: flex;
        width: 90%;
        margin: 15px auto;
        text-decoration: none;
    }

    .topic_list p {
        font-size: 14px;
    }

    .topics_list .date {
        width: 30%;
        color: #000;
    }

    .topics_list .topic_title {
        width: 60%;
        color: #000;
    }

    .contents_block {
        display: block;
        width: clamp(300px, calc(90%), 480px);
        margin: 55px auto 100px auto;
    }

    .content_wrapper {
        margin: 30px 0;
        display: block;
        overflow: hidden;
        position: relative;
        height: 150px;
    }

    .content_filter {
        width: 100%;
        height: 100%;
        background: var(--main-color);
        opacity: 0.8;
        position: absolute;
        top: 0;
    }

    .content_image_title {
        display: inline-block;
        /* 親要素の幅を子要素に合わせる */
        white-space: nowrap;
        /* テキストの改行を無効にする */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .content_title_container {
        height: 150px;
        position: absolute;
        top: 0;
        opacity: 1;
    }

    #content_filter2 {
        left: 0px;
        right: auto;
    }
    #content_title_container2 {
        right: auto;
    }
}

@media (min-width: 481px) {
    .mobile_only {
        display: none;
    }
    .logo-container {
        transform: translate(-50%, -50%);
    }
}