/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, serif, sans-serif;
    line-height: 1.5;
    color: #333;
    font-size: 15px;
}

.line-height-18 {
    line-height: 1.8;
}
.font-size-16 {
    font-size: 16px;
}

/* ヘッダー */
header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.fixed-top {
    padding: 19px;
}

header nav {
    background-color: #00096C;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav a.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}


/* メインビジュアル */
#main-visual {
    width: 100%;
    padding-top: 80px; /* ヘッダーの高さ分 */
    position: relative;
    background-color: #00096C;
}

#main-visual img {
    width: 100%;
    height: auto;
}

.main-visual-pc {
    display: block;
}

.main-visual-sp {
    display: none;
}

#main-visual .cta-button {
    display: inline-block;
    position: absolute;
    bottom: 11%;
    left: 30%;
    transform: translateX(-50%);
    background-color: #fff;
    background-image: url('./images/arrow_right_blue.svg');
    background-repeat: no-repeat;
    background-position: right 15px center;
    color: #00096C;
    padding: 14px 70px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#main-visual .cta-button:hover {
    color: #fff;
    background-color: #0056b3;
}

/* ロゴスクロール */
.logo-scroll {
    width: 100%;
    background: #fff;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.logo-scroll-inner {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

.logo-item img {
    height: 40px;
    width: auto;
}

.logo-item img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* メインコンテンツ */
main {
    margin-top: 0; /* メインビジュアルがヘッダー分のマージンを持つため */
    padding: 0;
}

section {
    padding: 80px 0;
    margin: 0;
}

h2 {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    margin-bottom: 40px;
    font-size: 36px;
    color: #012543;
}

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

#common-issues {
    background: #F6F6F6;
}
#common-issues h3 {
    font-size: 17px;
    font-weight: bold;
    margin: 40px 0 24px;
}
#common-issues .card {
    background: none;
    box-shadow: none;
}
#common-issues .card-body {
    padding: 0 25px;
}
#common-issues .col-12 {
    border-left: 1px solid #D2CDC6;
}
#common-issues .col-12:last-child {
    border-right: 1px solid #D2CDC6;
}

#proposal-text {
    background: #B39441;
    padding: 80px 0 40px;
    position: relative;
}
#proposal-text::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 32px solid transparent;
    border-right: 32px solid transparent;
    border-top: 30px solid #F6F6F6;
}
#proposal-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    color: #fff;
    font-size: 30px;
}

#sales-design {
    background-image: url('./images/bg_sales_design.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}
#sales-design h3 {
    color: #012543;
    font-size: 18px;
    font-weight: bold;
    height: 36px;
    margin-bottom: 32px;
}
#sales-design h3 small {
    display: block;
    font-size: 15px;
    font-weight: normal;
}

#execution-menu {
    background: url('./images/bg_menu.svg') no-repeat center top;
    background-size: cover;
    position: relative;
    padding-bottom: 280px;
    margin-bottom: 195px;
}
#execution-menu .row {
    max-width: 1120px;
    position: absolute;
    bottom: -156px;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 56px 24px 40px;
    background: #fff;
    box-shadow: 0 3px 4px rgba(0,0,0,0.25);
}
#execution-menu h3 {
    color: #012543;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 56px;
}
#execution-menu .col-12 {
    padding: 0;
    border-right:  1px solid #D2CDC6;
}
#execution-menu .col-12:last-child {
    border-right: none;
}
#execution-menu .card {
    border: none;
    box-shadow: none;
}
#execution-menu .card-body {
    padding: 0 24px;
}

#case-studies {
    position: relative;
    color: #00096C;
    overflow: hidden;
}
#case-studies h3 {
    border-bottom: 4px solid #00096C;
    padding-bottom: 24px;
    margin-bottom: 24px;
}
#case-studies h3 .case {
    font-size: 36px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
}
#case-studies h3 .number {
    font-size: 60px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    margin-left: -10px;
}
#case-studies h3 .company-name {
    font-size: 18px;
    font-weight: bold;
}
#case-studies h3 img {
    width: 123px;
}
#case-studies h4 {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    font-size: 30px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px dashed #D2CDC6;
}
#case-studies .list-group-flush>.list-group-item {
    color: #00096C;
    padding: 20px 46px;
    background-image: url('./images/icon-checked.svg');
    background-position: left 16px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}
#case-studies .put-on-left {
    position: absolute;
    left: -813px;
    right: 0;
    top: 180px;
    margin: auto;
}
#case-studies .put-on-right {
    position: absolute;
    right: -813px;
    left: 0;
    top: 805px;
    margin: auto;
}

#pricing {
    background-color: #EFEEE7;
    position: relative;
    padding-bottom: 435px;
    margin-bottom: 235px;
}
#pricing .row {
    position: absolute;
    top: 160px;
    width: 70%;
    left: 0;
    right: 0;
    margin: auto;
}
#pricing .card-header {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    font-size: 20px;
    text-align: center;
    padding: 22px 0;
    color: #fff;
    position: relative;
}
#pricing .card-header .no1 {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
}
#pricing .card-header.trial {
    background-color: #787878;
}
#pricing .card-header.basic {
    background-color: #00096C;
}
#pricing .card-header.enterprise {
    background-color: #B39441;
}
#pricing h3 {
    color: #00096C;
    font-size: 30px;
    font-weight: bold;
    font-family: 'Roboto', Arial, sans-serif;
    margin-bottom: 28px;
}
#pricing h3 small {
    font-size: 14px;
}
#pricing .list-group-item {
    color: #00096C;
    text-align: left;
    border: none;
    padding: 12px 26px;
    background-image: url('./images/icon-checked.svg');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}
#pricing .list-group-item.unavailable {
    color: #787878;
    background-image: url('./images/icon-unchecked.svg');
}
#service-flow .service-step .step-number {
    padding: 3px 5px;
    text-align: center;
    background-color: #00096C;
    color: #fff;
    border: 1px solid #D2CDC6;
    border-bottom: none;
    border-right: none;
}
#service-flow .service-step .step {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    font-size: 20px;
}
#service-flow .service-step .number {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    font-size: 50px;
}
#service-flow .col-4:last-child .service-step .step-number,
#service-flow .col-4:last-child .service-step .step-content {
    border-right: 1px solid #D2CDC6;
}
#service-flow .service-step .step-content {
    border: 1px solid #D2CDC6;
    border-right: none;
}
#service-flow .service-step h3 {
    color: #00096C;
    background-color: #F6F6F6;
    padding: 21px 5px;
    text-align: center;
    font-size: 16px;
}
#service-flow .service-step p {
    padding: 22px 16px;
    font-size: 14px;
    height: 150px;
}

#contact {
    background-color: #F6F6F6;
    padding: 105px 0;
}
#contact button {
    width: 100%;
    background-color: #00096C;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    padding: 24px;
    background-image: url('./images/arrow_right.svg');
    background-repeat: no-repeat;
    background-position: right 32px center;
}

#contact button:hover {
    background-color: #0056b3;
}


/* お問い合わせフォーム */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    height: 150px;
}

/* フッター */
footer {
    background-color: #00096C;
    color: white;
    text-align: center;
    padding: 40px 0;
    font-size: 10px;
}

/* プライシングセクション */
#pricing .card {
    transition: transform 0.3s ease;
}

#pricing .card:hover {
    transform: translateY(-10px);
}

#pricing .shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
    .fixed-top {
        padding: 4px;
    }
    header .container {
        margin: 0;
    }
    .main-visual-pc {
        display: none;
    }

    .main-visual-sp {
        display: block;
    }

    #main-visual {
        padding-top: 50px;
    }
    #main-visual .cta-button {
        display: inline-block;
        position: absolute;
        bottom: 6%;
        left: 50%;
        transform: translateX(-50%);
        padding: 18px 5px;
        font-size: 20px;
        width: 75%;
        text-align: center;
    }

    .logo-scroll {
        padding: 1rem 0;
    }

    #common-issues .card-body {
        border-bottom: 1px solid #D2CDC6;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    #common-issues .col-12:last-child .card-body {
        padding-bottom: 0;
        margin-bottom: 0;
        border: none;
    }
    #sales-design {
        background-image: none;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        margin-bottom: 24px;
        font-size: 20px;
    }

    #proposal-text p {
        font-size: 20px;
    }

    #execution-menu {
        background: url('./images/bg_menu_sp.svg') no-repeat;
        background-size: 100%;
        padding-bottom: 960px;
        margin-bottom: 0px;
    }
    #execution-menu .row {
        bottom: inherit;
        top: 270px;
        width: 90%;
    }
    #execution-menu .execution-menu-header {
        padding: 0 40px;
    }
    #execution-menu .font-size-16 {
        font-size: 14px;
    }
    #execution-menu h3 {
        margin-bottom: 24px;
    }
    #execution-menu p {
        font-size: 14px;
    }
    #execution-menu .col-12 {
        border-right: none;
        border-bottom: 1px solid #D2CDC6;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    #execution-menu .col-12:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #case-studies .put-on-left,
    #case-studies .put-on-right {
        position: static;
    }

    #case-studies h3 .case {
        font-size: 24px;
    }
    #case-studies h3 .number {
        font-size: 40px;
        margin-left: -5px;
    }
    #case-studies h4 {
        font-size: 20px;
    }
    #case-studies h3 img {
        position: absolute;
        right: 20px;
        top: -10px;
    }
    #case-studies h3 {
        position: relative;
    }
    #case-studies .list-group {
        margin-bottom: 40px;
    }

    #pricing {
        padding-bottom: 50px;
        margin-bottom: 0;
    }
    #pricing .row {
        position: static;
        width: 95%;
    }
    #pricing .col-12 {
        margin-bottom: 16px;
    }
    #pricing h3 {
        font-size: 36px;
    }
    #pricing .card-header {
        padding: 15px 0;
    }

    #service-flow .service-step {
        margin-bottom: 20px;
    }
    #service-flow .service-step h3 {
        font-size: 16px;
        padding: 13px 5px;
    }
    #service-flow .service-step .step-content {
        border-right: 1px solid #D2CDC6;
    }
    #service-flow .service-step .step-number {
        font-size: 30px;
        padding: 2px 4px;
        border-right: 1px solid #D2CDC6;
    }
    #service-flow .service-step .step {
        font-size: 16px;
    }
    #service-flow .service-step .number {
        font-size: 36px;
    }
    #service-flow .service-step p {
        height: auto;
    }

    footer {
        padding: 16px 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-step::after {
        /* SPでは3つずつ並ぶので、3つ目の矢印を非表示 */
        right: -5px;
        width: 10px;
        height: 10px;
    }

    .service-step:nth-child(3n)::after {
        display: none;
    }

    .navbar-toggler {
        display: none;
    }
}

@media (max-width: 1093px) {
    #execution-menu h3 {
        font-size: 22px;
    }
}
@media (max-width: 963px) {
    #execution-menu h3 {
        font-size: 18px;
        margin-bottom: 24px;
    }
}
@media (max-width: 768px) {
    #execution-menu h3 {
        font-size: 20px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1000px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

/* フォント切り替え用クラス */
.font-yumincho {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
}
.font-roboto {
    font-family: 'Roboto', Arial, sans-serif;
}
