@import url(bootstrap.css);

* {
    box-sizing: border-box;
}
body {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #131313;
    line-height: 1.8;
    position: relative;
    background: rgba(248, 249, 250);
    min-height: 100vh;
}

/*font*/
.c-font-kosugi {
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.c-font-zen-maru {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.background-text {
    position: relative;
    display: flex; /* フレックスボックスを有効化 */
    justify-content: center; /* 水平方向の中央寄せ */
    align-items: center; /* 垂直方向の中央寄せ */
    color: #404040; /* 通常テキストの色 */
    margin: 100px 0 0 0; /* 上下に50pxのマージンを設定 */
    font-size: 3.5rem;
}

.background-text::after {
    position: absolute;
    top: 50%; /* 垂直方向の中央寄せ */
    left: 50%; /* 水平方向の中央寄せ */
    transform: translate(-50%, -50%); /* 中央に配置 */
    font-size: 120px; /* 背景テキストのフォントサイズ */
    color: rgba(48, 141, 124, 0.14); /* 背景テキストの色（透明度含む） */
    z-index: 0; /* 背景として配置 */
    white-space: nowrap; /* テキストの折り返し防止 */
    font-family: "Zen Maru Gothic", sans-serif;
}

.c-service::after {
    content: 'SERVICE';
}

.c-reason::after {
    content: 'REASON';
}

.c-case::after {
    content: 'CASE';
}
/*   header   */
.navbar-brand img {
    width: 60px;
}

/*    nav   */
.c-nav-link {
    padding: 0 1rem;
}
.nav-link:hover, .nav-link:focus{
    color: #003882;
}

/*   main   */
main {
    margin-top: 120px; /* ナビゲーションバーの高さに応じて調整 */
}
.c-mv {
    width: 100%;
}
.c-mv-inner {
}

.c-section {
    padding: 128px 0;
}

.c-h2 {
    font-size: 3rem;
    position: relative;
    padding: 1.5rem;
    text-align: center;
}

.c-h2 span {
    color: #757575;
    font-size: 1.8rem;
    display: block;
}

.c-h2:before {
    position: absolute;
    bottom: -10px;
    left: calc(50% - 30px);
    width: 60px;
    height: 5px;
    content: '';
    border-radius: 3px;
    background: #003882;
}


.c-h2_start {
    font-size: 2.5rem;
    position: relative;
    padding: 1.5rem 0 1rem 0;
}

.c-h2_start span {
    color: #757575;
    font-size: 1.8rem;
    display: block;
}

.c-h2_start:before {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 150px;
    height: 5px;
    content: '';
    border-radius: 3px;
    background: #fff300;
}

.c-ttl-stripe {
    position: relative;
    padding: 1rem;
}

.c-ttl-stripe:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    content: '';
    background-image: -webkit-repeating-linear-gradient(135deg, #003882, #003882 1px, transparent 2px, transparent 5px);
    background-image: repeating-linear-gradient(-45deg, #003882, #003882 1px, transparent 2px, transparent 5px);
    background-size: 7px 7px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.c-ttl_leftbar {
    padding: 1rem 1.5rem;
    border-left: 5px solid #000;
    font-weight: bold;
    font-size: 1.125rem;
}

/*画像を角丸でクリッピング*/
.c-round-fig img {
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*画像を角丸でクリッピング　ー　cardに合わせる*/
.card img {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*   footer   */
.c-footer {
    padding: 64px 0;
}

/*   decoration   */
.mark1{
    background: linear-gradient(transparent 0%, #FFFF00FF 0%);
}

.mark2{
    background: linear-gradient(transparent 20%, #FFFF00FF 20%);
}

.mark3{
    background: linear-gradient(transparent 40%, #FFFF00FF 40%);
}

.mark4{
    background: linear-gradient(transparent 60%, #FFFF00FF 60%);
}

.mark5{
    background: linear-gradient(transparent 80%, #FFFF00FF 80%);
}

.c-circle-icon {
    width: 100px;  /* 直径のサイズ */
    height: 100px; /* 直径のサイズ */
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);

}

/*   color   */
.c-color-primary-light {
    color: rgba(48, 141, 124, 0.92);
}
.c-bg-primary-light {
    background-color: rgba(218, 228, 222, 0.92);
}
.c-bg-primary-light-op {
    background-color: rgba(218, 228, 222, 0.3);
}

/*   table   */
.c-table th,
.c-table td{
    padding: 1em 0.5em;
    border-bottom: 1px solid #e8e8e8;
}

/*   トップへ戻るボタン   */
.back-to-top {
    display: none;
    position: fixed;
    right: 5%;
    bottom: 5%;
    color: #fff;
    padding: 2rem;
    border-radius: 50%;
    display: inline-block;
    text-decoration: none;
}
.back-to-top::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    width: 60px;
    height: 60px;
    background-color: #333;
    border-radius: 50%;
    z-index: -1;
}
/* フェードイン用の基本クラス */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

/* フェードイン時のクラス */
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 要素ごとに遅延時間を設定 */
.fade-in-delay-1 {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

.fade-in-delay-3 {
    transition-delay: 0.6s;
}

/* 左からフェードイン */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* 右からフェードイン */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}


/*****************************/
/* モバイル対応の基本設定（ブレークポイント: 768px） */
@media screen and (max-width: 768px) {

    .background-text {
        font-size: 2.5rem;
    }

    .background-text::after {
        font-size: 100px; /* 背景テキストのフォントサイズ */
    }
    /* ヘッダー調整 */
    .navbar-brand img {
        width: 50px; /* ロゴのサイズを縮小 */
    }

    /* メインビジュアル調整 */
    .c-mv {
        height: 50vh;
        width: 100%;
        position: relative;
    }
    .c-mv-inner {
        padding: 1.5rem;
        position: absolute;
        bottom: 15%;
        right: 5%;
    }

    .c-mv-inner h1 {
        font-size: 1.2rem;
    }

    .c-mv-inner .h1 {
        font-size: 1.5rem;
    }

    .c-mv-inner .h3 {
        font-size: 1.2rem;
    }

    /* セクション間隔の調整 */
    .c-section {
        padding: 64px 0;
    }

    /* 見出しサイズの調整 */
    .c-h2,
    .c-h2_start {
        font-size: 2rem;
    }

    .c-h2 span,
    .c-h2_start span {
        font-size: 1.2rem;
    }

    /* 背景の円を調整 */
    .circle:nth-child(1) {
        width: 200px;
        height: 200px;
    }

    .circle:nth-child(2) {
        width: 300px;
        height: 300px;
    }

    .circle:nth-child(3) {
        width: 250px;
        height: 250px;
    }

    /* テーブルのレスポンシブ対応 */
    .c-table {
        width: 100%;
    }

    .c-table th {
        display: block;
        width: 100%;
        background: #f5f5f5;
        padding: 0.5em;
    }

    .c-table td {
        display: block;
        width: 100%;
        padding: 0.5em;
    }

    /* Google Mapの調整 */
    iframe {
        width: 100%;
        height: 250px;
    }

    /* Contact セクションの調整 */
    #contact .col {
        border: none !important;
        padding: 2rem 1rem !important;
    }

    /* アイコンサイズの調整 */
    .c-circle-icon {
        width: 80px;
        height: 80px;
    }

    .c-circle-icon i {
        font-size: 2em !important;
    }

    /* ボタンのサイズ調整 */
    .rounded-pill {
        padding: 0.5rem 1.5rem !important;
    }

    /* 戻るボタンのサイズ調整 */
    .back-to-top::before {
        width: 50px;
        height: 50px;
    }

    /* 余白の調整 */
    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* より小さい画面（スマートフォン）向けの調整 */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .background-text {
        font-size: 2.5rem;
    }

    .background-text::after {
        font-size: 100px; /* 背景テキストのフォントサイズ */
    }
    /* ヘッダー調整 */
    .navbar-brand img {
        width: 40px; /* ロゴのサイズを縮小 */
    }
    .navbar-brand .h4 {
        font-size: 18px;
    }
    /* メインビジュアル調整 */
    .c-mv {
        height: 40vh;
        width: 100%;
        position: relative;
    }
    .c-mv-inner {
        padding: 0.5rem;
        position: absolute;
        bottom: 0;
        right: 5%;
    }
    .c-mv-inner .h5 {
        font-size: 16px;
    }
    .c-mv-inner .h1 {
        font-size: 1.2rem;
    }
    .c-mv-inner .h3 {
        font-size: 1rem;
    }

    /* 見出しサイズのさらなる調整 */
    .c-h2,
    .c-h2_start {
        font-size: 1.5rem;
    }

    .c-h2 span,
    .c-h2_start span {
        font-size: 1rem;
    }

    /* セクション間隔のさらなる調整 */
    .c-section {
        padding: 32px 0;
    }

    /* カード内の余白調整 */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}
