/*==================================================
  1. BASE STYLES & TYPOGRAPHY (ベースとタイポグラフィ)
====================================================*/
html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #FFF;
    font-size: 62.5%;
}

h1 {
    font-family: "ヒラギノ角ゴシック", "ヒラギノ角ゴ ProN W6", "メイリオ", sans-serif !important;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.4;
    color: #2a2f4e;
}

h2 {
    font-family: "ヒラギノ角ゴシック", "ヒラギノ角ゴ ProN W6", "メイリオ", sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 1.8;
    color: #2a2f4e;
}

h3 {
    font-family: "ヒラギノ角ゴシック", "ヒラギノ角ゴ ProN W6", "メイリオ", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #2a2f4e;
}

p {
    font-family: "ヒラギノ角ゴシック", "ヒラギノ角ゴ ProN W6", "メイリオ", sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #2a2f4e;
}

a {
    transition: opacity 0.3s;
}

.sp_br {
    display: none;
}

.section-container {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.fw_wrap {
    flex-wrap: wrap;
}

.caption {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #3148cc;
    margin-bottom: 8px;
}

.caption__icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
    background-image: url('../img/tytle_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/*==================================================
  2. UTILITY (ユーティリティ)
====================================================*/
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

.clearfix {
    min-height: 1px;
}


/*==================================================
  3. HEADER (ヘッダー)
====================================================*/
.main-header {
    background: url("../img/main01.png") no-repeat center center;
    background-size: cover;
    width: 100%;
    aspect-ratio: 2560 / 2868;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2a2f4e;
    transition: 1000ms;
    border-radius: 0;
}

.header-overlay {
    position: absolute;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: left;
}

.header-overlay--title {
    top: 200px;
    left: 100px;
    max-width: 800px;
}

.header-overlay--title h1 {
    font-size: 5rem;
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 1.6rem;
}

.header-overlay--title p {
    font-size: 2rem;
    letter-spacing: 2px;
    line-height: 1.5;
    color: #3148ff;
}

.header-overlay--title .small-char {
    font-size: 3.5rem;
    position: relative;
}

.header-overlay--title .highlight {
    color: #3148ff;
    font-size: 10rem;
}

.header-overlay--text {
    bottom: 70px;
    right: 100px;
    width: 40%;
    padding: 40px 30px;
}

.header-overlay--text p {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 2.5;
    color: #2a2f4e;
    margin: 0;
}

.site-logo-area {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.site-logo-link {
    display: block;
}

.site-logo {
    height: 40px;
    width: auto;
    transition: opacity 0.3s;
}

.site-logo-link:hover .site-logo {
    opacity: 0.8;
}


/*==================================================
  4. FLOATING BUTTONS (浮遊ボタン)
====================================================*/
.floating-btn {
    position: fixed;
    right: 20px;
    z-index: 999;
    padding: 12px 18px;
    border-radius: 50px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-btn-vertical {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    writing-mode: vertical-rl;
    background: rgba(49, 72, 204, 0.7);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-align: center;
    transition: background 0.3s ease;
}

.contact-btn-vertical:hover {
    background: rgba(49, 72, 204, 0.9);
    text-decoration: none;
    color: #fff;
}

.top-btn {
    bottom: 30px;
    background-color: #3148cc;
}

.top-btn:hover {
    background-color: #3148cc;
    color: #fff;
}


/*==================================================
  5. COMP SERIES (COMPシリーズ)
====================================================*/
.comp-series {
    margin-top: 50px;
}

.comp-series__header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px;
}

.comp-series__title-block {
    flex: 1 1 300px;
    min-width: 300px;
}

.comp-series__description-block {
    flex: 1 1 450px;
    line-height: 1.6;
    padding-top: 30px;
}

.series-title {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.1;
}

.comp-series-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.comp-series-item {
    width: calc(50% - 15px);
    border-radius: 12px;
    background-color: #f0f8ff;
    overflow: hidden;
    box-sizing: border-box;
}

.feature-item__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    height: 100%;
}

.feature-item__text {
    flex: 1;
    margin-right: 20px;
}

.feature-item__title {
    font-size: 1.8rem;
    color: #3148cc;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.feature-item__description {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-item__image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-link {
    display: inline-block;
    font-size: 1.4rem;
    color: #3148cc;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: opacity 0.3s ease;
}

.detail-link::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url('../img/detail_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.detail-link:hover {
    opacity: 0.7;
    color: #3148cc;
    text-decoration: none;
}


/*==================================================
  6. COMP FEATURES (COMP特徴)
====================================================*/
.comp-features {
    margin-top: 80px;
}

.features-header {
    margin-bottom: 50px;
}

.features-title {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.features-subtitle {
    max-width: 600px;
}

.features-grid--2col {
    gap: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.feature-card--bordered {
    width: calc(50% - 15px);
    border: 1px solid #3148cc;
    border-radius: 20px 20px 0 0;
    background-color: #fff;
    padding: 30px 30px 15px 30px;
    min-height: 150px;
    box-sizing: border-box;
}

.feature-card__title {
    font-size: 2rem;
    line-height: 1.1;
    color: #3148cc;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px dotted #3148ff;
}

.feature-card__description {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
    margin-top: 2rem;
}


/*==================================================
  7. CUSTOM DEVELOPMENT (カスタム開発)
====================================================*/
.custom-development-section {
    background: #f0f8ff;
    margin-top: 100px;
    padding: 50px 0;
    width: 100%;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
}

.header-left {
    flex: 0 0 500px;
    margin-right: 10px;
}

.header-right {
    flex: 1;
    padding-top: 30px;
}

.custom-title {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.1;
}

.custom-description {
    font-size: 1.4rem;
    line-height: 1.6;
}

.features-list {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-card {
    width: calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    box-sizing: border-box;
}

.card-icon-area {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-card__title {
    font-size: 1.8rem;
    color: #3148cc;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-card__description {
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: left;
    margin-top: 0;
}

.custom-development-notes {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1rem;
    max-width: 700px;
    width: 90%;
    margin: 50px auto;
}

.custom-development-notes p {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}


/*==================================================
  8. COMPANY PROFILE (会社概要)
====================================================*/
.company-profile-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.company-profile-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.company-profile-title {
    flex-basis: 300px;
    flex-shrink: 0;
    padding-right: 20px;
}

.profile-main-title {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.company-profile-content {
    flex-grow: 1;
    letter-spacing: 0.5px;
}

.profile-item {
    display: flex;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.profile-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.profile-label {
    flex-basis: 150px;
    min-width: 150px;
    color: #3148cc;
    padding-right: 20px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
}

.profile-content {
    flex-grow: 1;
    color: #333;
    line-height: 1.6;
    font-size: 1.4rem;
}

.profile-content a {
    color: #3148cc;
}

.business-list ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.business-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.business-list li:before {
    content: "●";
    color: #3148cc;
    font-size: 1.3rem;
    position: absolute;
    left: 0;
    top: 0.2rem;
}


/*==================================================
  9. SDGs (SDGsへの取り組み)
====================================================*/
.sdgs-section-wrapper {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.sdgs-row {
    display: flex;
    margin-top: 0;
    margin-bottom: 0;
}

.sdgs-content {
    padding-right: 50px;
}

.sdgs-title {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.sdgs-lead-text {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #3148cc;
    margin-bottom: 1rem;
}

.sdgs-description {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.sdgs-ol {
    list-style-position: inside;
    padding-left: 0;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #2a2f4e;
}

.sdgs-image-area {
    text-align: center;
    margin-top: 60px;
}

.sdgs_logo {
    margin-top: 30px;
    width: 350px;
    height: auto;
}

.sdgs_icon_list {
    padding-left: 0;
    max-width: 100%;
    list-style: none;
}

.sdgs_icon_list li {
    float: left;
}

.sdgs_icon {
    width: 85px;
    margin: 3px;
    height: auto;
}


/*==================================================
  10. FOOTER (フッター)
====================================================*/
.main-footer {
    background-color: #2a2f4e;
    color: #ffffff;
    padding: 25px 0;
}

.footer-inner {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.footer-content-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 800px;
    width: 100%;
}

.footer-contact-info {
    margin-bottom: 20px;
}

.footer_menu .title {
    color: var(--gold);
    font-weight: bold;
    font-size: 16px;
}

.footer_menu .title:not(:first-of-type) {
    margin-top: 10px;
}

footer ul li ul li {
    margin: 10px 0;
    list-style: none;
}

.footer_menu {
    padding: 50px 0;
}

.footer_menu ul.flex > li {
    white-space: nowrap;
    list-style: none;
}

.footer_menu ul.flex > li:not(:last-of-type) {
    padding-right: 40px;
}

.footer_menu ul ul {
    padding: 0;
}

.footer_menu ul ul li a {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: 0.2em;
    line-height: 2em;
}

.footer_menu ul ul li a:before {
    content: ">";
    color: var(--gold);
    padding-right: 4px;
}

.footer_menu .img.privacy {
    width: 70px;
}

.company-name-jp {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    font-family: 'Murecho', sans-serif;
}

.company-name-en {
    font-size: 1.1rem;
    font-weight: normal;
    margin-left: 10px;
    opacity: 0.8;
}

.tel-info {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 30px;
}

.tel-info a {
    color: #fff;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s;
}

.footer-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-btn {
    text-decoration: none;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s, opacity 0.3s;
    color: #ffffff;
    background-color: #f05a24;
    border: 2px solid #f05a24;
    font-size: 1.4rem;
}

.footer-btn:hover {
    opacity: 0.9;
    color: #ffffff;
    background-color: #f05a24;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

.footer-privacy-mark {
    margin: 30px 100px;
    flex-shrink: 0;
}

.footer-privacy-mark img {
    max-height: 70px;
    width: auto;
    display: block;
}


/*==================================================
  11. MEDIA QUERIES (レスポンシブデザイン)
====================================================*/

@media (max-width: 768px) {

    /* -------------------------------------------
       基本設定・タイポグラフィ
       ------------------------------------------- */
    body {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 3rem !important;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 2.4rem;
        font-weight: 700;
        line-height: 1.5;
        margin-top: 5px;
        margin-bottom: 20px;
    }

    p {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sp_br {
        display: block;
    }


    /* -------------------------------------------
       1. HEADER (ヘッダー)
       ------------------------------------------- */
    .main-header {
        background: url("../img/main01_mobile.png") no-repeat center center;
        background-size: contain;
        height: 0;
        margin: 0;
        padding: 0;
        padding-bottom: 208.33%;

    }

    .site-logo {
        height: 30px;
    }

    .site-logo-link:hover .site-logo {
        opacity: 0.8;
    }

    /* -------------------------------------------
       2. COMP SERIES (COMPシリーズ) - 3段構成に統一
       ------------------------------------------- */

    .comp-series__header {
        display: block;
        gap: 40px;
        max-width: 700px;
        margin: 0 auto;
        padding: 20px 20px;
    }

    .comp-series__description-block {
        flex: 1 1 auto;
        line-height: 1.6;
    }

    .comp-series-grid {
        display: block;
    }

    .comp-series-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .comp-series-grid .comp-series-item:last-child {
        margin-bottom: 0;
    }

    .comp-series-item .feature-item__body {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 20px;
        height: auto;
    }

    .comp-series-item .feature-item__image {
        order: 1;
        width: 50%;
        height: auto;
        flex-shrink: 0;
        margin: 5px auto;
    }

    .comp-series-item .feature-item__text {
        order: 2;
        margin-right: 0;
        width: 100%;
    }

    .feature-item__image .feature-icon {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .feature-item__title {
        font-size: 2.0rem;
        margin-bottom: 5px;
    }

    .feature-item__description {
        font-size: 1.4rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .detail-link {
        margin-top: 5px;
    }

    /* =========================================================
   3. COMP FEATURES (貴社だけのシステムをクラウドで構築) - 縦一列化
   ========================================================= */

    .features-grid {
        display: block !important;
        gap: 0 !important;
        padding: 20px 10px;
    }

    .feature-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;

        padding: 20px;
        text-align: left;
        box-sizing: border-box;
    }

    .feature-item.feature-card--bordered {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
    }

    .features-grid .feature-item:last-child {
        margin-bottom: 0 !important;
    }

    /* -------------------------------------------
   4. CUSTOM DEVELOPMENT (カスタム開発 - COMP構成に)
   ------------------------------------------- */

    .custom-development-section .header-content {
        display: block;
        text-align: left;
        margin-bottom: 30px;
        padding: 20px;
    }

    .header-left {
        flex: 1 1 auto;
        min-width: auto;
        width: 100%;
        margin-bottom: 10px;
    }

    .header-right {
        flex: 1 1 auto;
        padding-top: 0;
        width: 100%;
    }

    .custom-title {
        font-size: 3.2rem;
        line-height: 1.2;
        text-align: left;
    }

    .custom-description {
        font-size: 1.4rem;
        text-align: left;
    }

    .custom-development-section .features-list {
        display: block !important;
        padding: 20px 10px;
        gap: 0 !important;
    }

    .feature-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;
        padding: 20px;
        text-align: center;
    }

    .custom-development-notes {
        padding: 20px;
    }

    .card-icon-area {
        margin: 0 auto 15px auto;
    }

    .custom-development-section .features-list .feature-card:last-child {
        margin-bottom: 0 !important;
    }

    /* 会社概要 */
    .company-profile-wrapper {
        display: block;
        gap: 20px;
        margin: 20px 20px;
    }

    .company-profile-title {
        flex-basis: auto;
        padding-right: 0;
    }

    .profile-item {
        flex-direction: column;
        padding: 1rem 0;
    }

    .profile-label {
        flex-basis: auto;
        min-width: auto;
        margin-bottom: 5px;
        font-weight: bold;
    }

    /* SDGs */
    .sdgs-row {
        flex-direction: column;
    }

    .sdgs-container {
        margin: 20px 20px;
    }

    .sdgs-content {
        padding-right: 0;
    }

    .sdgs-image-area {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .sdgs_logo {
        width: 60%;
        max-width: 200px;
        margin-top: 0;
    }

    .sdgs_icon_list {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .sdgs_icon_list li {
        float: none !important;
        width: 33.33% !important;
        text-align: center;
        margin: 5px 0;
    }

    .sdgs_icon {
        width: 70px !important;
        height: auto;
    }

    /* フッター */
    

    .footer-privacy-mark {
        margin: 0 auto 30px;
        text-align: center;
        width: 100%;
    }

    .footer-privacy-mark img {
        display: block;
        margin: 0 auto;
    }

    .main-footer {
        padding: 40px 0;
    }

    .footer-content-wrapper {
        text-align: center;
        /* 中央揃えを確実にするため、幅を設定 */
        width: 100%;
    }
    

    .company-name-en {
        display: block;
        margin-left: 0;
    }

    .footer-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-btn {
        width: 80%;
        max-width: 300px;
    }

    .tel-info {
        font-size: 1.4rem;
    }

    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .footer-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 1300px) {
    .footer_menu ul.flex {
        flex-direction: column;
    }
}