/* 共通部分

 ==========================================================================*/

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4f5f7;
    font-family: "Kosugi", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.main-content {
    flex: 1;
}

/* ======= フッター ======= */
.footer {
    margin-top: auto;
    margin-bottom: 10px;
}

/* width: 320px～ 　モバイルファースト

==========================================================================*/

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    width: 100%;
}

/* ナビゲーション */
.logo img {
    width: 180px;
    height: auto;
}

.navbar {
    background-color: #f4f5f7;
    height: 20%;
    width: 100%;;
}

.navbar-nav {
    gap: 20px;
}

.nav {
    font-size: 16px;
}

.nav-item a {
    color: black;
    font-size: 1.5em;
    font-weight: 400;
}

.navigation {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ソリューション一覧　ドロップダウン */
.dropdown-menu {
    border-style: none;
}

.dropdown-menu .dropdown-item {
    font-size: 1.3rem;
}
.dropdown-menu .dropdown-item-sub {
    font-size: 1.1rem;
}

/* カルーセル */
.carousel-inner {
    height: 100vh;
    width: 100%;
}

.carousel-item {
    height: 100%;
    width: 100%;
}

.carousel-caption {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-indicators {
    bottom: 10%;
}

.btn-apple,
.btn-grape,
.btn-news {
    color: #f4f5f7;
    width: 170px;
    height: 45px;
    font-size: 1rem;
    letter-spacing: 3px;
    border-radius: 25px;
    border: none;
    transition: 0.3s;
}

.btn-grape {
    background-color: #7030A0;
    box-shadow: 0 5px 0 #4D206E;
}

.btn-apple {
    background-color: #FF0000;
    box-shadow: 0 5px 0 #d01a0a;
}

.btn-news {
    background-color: #277B39;
    box-shadow: 0 5px 0px #1C5A2B;
}

.btn-apple:hover,
.btn-grape:hover,
.btn-news:hover {
    transform: translateY(4px);
    box-shadow: none;
}

.app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* flexitem */
.flex-item-p {
    flex: 0 0 auto;
    width: 500px;
    height: 100px;
}

.flex-item-img {
    flex: 0 0 auto;
    width: 500px;
    height: 150px;
}

/* カルーセル内 おしらせ */
.flex-item-img-news {
    display: flex;
    flex-direction: row;
    height: 150px;
    gap: 2em;
}

.flex-item-img-news img {
    margin-top: 10px;
    width: 100px;
    height: 100px;
}

.flex-item-btn {
    flex: 0 0 auto;
    width: 500px;
    height: 50px;
}

.flex-item-img img {
    height: auto;
    width: 120px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.app-content p {
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: bold;
}

.app-content p span {
    letter-spacing: 7px;
}

#carouselExampleCaptions {
    margin-bottom: 30px;
}

#carouselExampleCaptions .carousel-apple {
    background-image:
	url("../img/slide_apple_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#carouselExampleCaptions .carousel-grape {
    background-image:
	url("../img/slide_grape_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*#carouselExampleCaptions .carousel-news {
    background-image:
	url("../img/slide_grape_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}*/

/* カルーセル カスタムクラス */
.custom-prev-icon,
.custom-next-icon {
    background-repeat: no-repeat;
    width: 60px;
    height: 60px;
}

/* 左矢印 */
.custom-prev-icon {
    background-image: url("../img/carousel_prev_white.png") !important;
}

.carousel-control-prev {
    opacity: 1 !important;
}

/* 右矢印 */
.custom-next-icon {
    background-image: url("../img/carousel_next_white.png") !important;
}

.carousel-control-next {
    opacity: 1 !important;
}

/* お知らせ一覧 */
.news {
    margin-top: 50px;
    margin-bottom: 80px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.news-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.news-container ul {
    list-style: none;
    width: fit-content;
    padding-left: 0;
    margin-bottom: 0;
}

.news-container ul li {
    margin: 20px 0;
}

.news-container ul li:first-child {
    margin-top: 0;
}

.news-container ul li a {
    transition: background-color 0.3s ease;
}

.news-container ul li a:hover {
    opacity: 0.7;
}

.news-tag {
    color: #f4f5f7;
    text-decoration: none;
    font-size: 0.8rem;
    height: 30px;
    width: 70px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-tag a {
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #f4f5f7;
    border-radius: 50px;
}

.news-grape-tag {
    background-color: #7030A0;
}

.news-apple-tag {
    background-color: #FF0000;
}

.news-comp-tag {
    background-color: #277B39;
}

.news-statement {
    font-size: 0.8rem;
    text-decoration: none;
    width: 80%;
    color: rgb(99, 79, 79);
}

.news-date {
    color: rgb(99, 79, 79);
    margin: 0 20px;
    width: 15%;
}

.news-more-link {
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    color: #212529;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.news-more-link:hover {
    opacity: 0.7;
}

/* ソリューション一覧 */
.openLink-menu-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: unset;
}

.solution {
    position: relative;
    font-size: 10px;
    z-index: 2;
    width: 100%;
    height: 370px;
    margin: 0 auto;
    /* js用 */
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.solution.show {
    /* js用 */
    opacity: 1;
    transform: translateY(0);
}

.solution-title {
    margin-bottom: 30px;
}

.solution-statement {
    width: 100%;
    /*padding-right: 50px;*/
    padding-right: 30px;
    margin-top: 1.875em;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 30px;
}

.solution-statement>h4,
.solution-statement>p {
    color: whitesmoke;
}

.solution-statement h4 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.solution-statement p {
    font-size: 1.3em;
}

.solution-statement .subtitle {
    font-size: 1.4em;
}

.solution img {
    width: 32%;
    margin: 3em 0 3.5em 2em;
}

.solution-apple {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-image: url("../img/solution_apple.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 25px;
}

.solution-grape {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-image: url("../img/solution_grape.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 25px;
}

/* ソリューション一覧　疑似クラス */
/* hover */
.solution-apple-cover,
.solution-grape-cover {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 25px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
    display: none;
}

.desktop-links {
    height: 100%;
}

.solution-apple-cover .desktop-links,
.solution-grape-cover .desktop-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-left: 0;
    list-style: none;
}

.desktop-links-item {
    width: 100%;
    text-align: center;
}

.solution-apple-cover .desktop-links-item a,
.solution-grape-cover .desktop-links-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid white;
    color: white;
    font-size: 1.6em;
    width: 65%;
    height: 90px;
    transition: background-color 0.3s ease;
}

.solution:hover .solution-apple-cover {
    opacity: 1;
    z-index: 3;
}

.solution:hover .solution-grape-cover {
    opacity: 1;
    z-index: 3;
}

.solution-apple-cover a:hover {
    background-color: #FF0000;
}

.solution-grape-cover a:hover {
    background-color: #7030A0;
}

/* フッター */
.footer-statement {
    text-align: center;
}

.footer-statement p {
    margin-bottom: 0;
    font-size: 0.5rem;
}

.footer-statement a {
    text-decoration: none;
    color: #212529;
}

.campany-logo {
    text-align: center;
    margin-top: 50px;
    height: auto;
}

.campany-logo img {
    width: 150px;
    height: auto;
}

.privacy-policy {
    margin-right: 5px;
}

.privacy-policy-statement {
    margin-left: 5px;
}

/* 全画面オーバーレイ */
#menuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menuOverlay.active {
    display: flex;
}

.overlay-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100vw;
    align-items: center;
}

.link-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 80px;
    border: 1px solid white;
    border-radius: 10px;
}

.link-item a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.4rem;
    color: white;
}

.close-btn {
    position: absolute;
    color: white;
    top: 0.3rem;
    right: 1.3rem;
    font-size: 2.3rem;
    border: none;
    background: none;
}

/* width: 400px～ 

==========================================================================*/
@media (min-width: 400px) {

    /* ナビゲーション */
    .logo img {
        width: 220px;
    }

    /* フッター */
    .footer-statement p {
	font-size: 0.6rem;
    }
    
    .openLink-menu-btn {
        width: 345px;
    }
}

/* width: 500px～ 

==========================================================================*/
@media (min-width: 500px) {
    
    /* カルーセル */
    /* カルーセル内 おしらせ */
    .flex-item-img-news {
        height: 150px;
        gap: 4em;
    }

    .flex-item-img-news img {
        margin-top: 0;
        width: 120px;
        height: 120px;
    }

    .openLink-menu-btn {
        width: 345px;
    }
}

/* width: 576px～ 

==========================================================================*/
@media (min-width: 576px) {

    /* カルーセル */
    .carousel-inner {
        width: 100%;
    }

    .app-content p {
        font-size: 2rem;
        padding-top: 20px;
    }

    .flex-item-img {
        width: 500px;
        height: 200px;
    }

    .flex-item-p {
        width: 500px;
        height: 150px;
    }

    .flex-item-img img {
        width: 150px;
        height: auto;
    }

    .btn-apple,
    .btn-grape,
    .btn-news {
        width: 300px;
        font-size: 1.3rem;
    }

    /* カルーセル内 おしらせ */
    .flex-item-img-news {
        height: 200px;
        gap: 4em;
    }

    .flex-item-img-news img {
        width: 150px;
        height: 150px;
    }

    /* おしらせ一覧 */
    .news-title {
        font-size: 1.6rem;
    }

    .news-statement {
        font-size: 1rem;
        width: 100%;
    }

    .news-tag {
        font-size: 1rem;
        height: 40px;
        width: 80px;
    }

    .news-more-link {
        font-size: 1rem;
    }

    /* ソリューション一覧 */
    .solution-title {
        font-size: 1.6rem;
    }

    .solution {
       /* height: 450px;*/
        height: 420px;
        font-size: 12px;
    }

    .solution-statement {
        margin-top: 2em;
    }

    .solution-apple,
    .solution-grape {
	height: 100%;
    }
    
    .openLink-menu-btn {
        width: 390px;
    }
}

/* width: 768px～ 

==========================================================================*/
@media (min-width: 768px) {

    .solution-statement {
        margin-top: 2em;
    }

    .solution-apple,
    .solution-grape {
        height: 100%;
    }
    
    .openLink-menu-btn {
        width: 390px;
    }
}

/* width: 992px～ 

==========================================================================*/
@media (min-width: 992px) {

    /* ヘッダー */
    .header {
        position: sticky;
    }

    /* ナビゲーション */
    /* ソリューション一覧　ドロップダウン */
    .dropdown-menu {
        background-color: #f4f5f7;
        width: 100%;
    }

    .dropdown-menu .dropdown-item {
        font-size: 1.1rem;
    }

    /* カルーセル */
    .carousel-inner {
        height: 500px;
    }

    .carousel-caption {
        top: auto;
        /* Bootstrapでは指定なし */
        bottom: 20px;
        /* Bootstrapの標準 */
        left: 15%;
        /* Bootstrapの標準 */
        right: 15%;
        /* Bootstrapの標準 */
        transform: none;
        /* 中央寄せを解除 */
        text-align: center;
    }

    .carousel-indicators {
        bottom: 0;
    }

    /* お知らせ一覧 */
    .news-tag {
        height: 35px;
        width: 100px;
    }

    .news-container {
        align-items: start;
    }

    .news-more-link {
        text-align: end;
    }

    /* ソリューション一覧 */
    .solution {
	font-size: 14px;
        height: 500px;
        width: 95%;
    }

    .solution-statement {
        padding-right: 50px;
    }

    .solution-apple-cover,
    .solution-grape-cover {
        display: block;
    }

    /* フッター */
    .footer-statement p {
        font-size: 0.7rem;
    }
    
    .openLink-menu-btn {
        width: 505px;
    }
}

/* width: 1200px～ 

==========================================================================*/
@media (min-width: 1200px) {

    /* カルーセル内 おしらせ */
    .flex-item-img-news {
        height: 200px;
        gap: 5em;
    }

    /* お知らせ一覧 */
    .news {
        width: 70%;
    }

    /* ソリューション一覧 */
    .solution {
	font-size: 16px;
        height: 560px;
        width: 100%;
    }

    .solution-statement {
        padding-bottom: 6em;
    }

    .openLink-menu-btn {
        width: 505px;
    }
}

/* ランドスケープモード

==========================================================================*/
@media (orientation: landscape) {

    /* 横画面用のスタイル */

    /* ヘッダー */
    .header {
        position: sticky;
    }

    /* 全画面オーバーレイ */
    .overlay-links {
        gap: 20px;
    }

    .link-item {
        height: 60px;
    }

    .link-item a {
        font-size: 1.2rem;
    }

}
