/*-------------------------
  CONTAINER CLASS
-------------------------*/
.container {
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 40px;
}


/*-------------------------
  PAGE TITLE SECTION
-------------------------*/
.page-title-wrapper {
    padding-top: 15rem;
    padding-bottom: 40px;
    margin-bottom: 0;
}

/* 共通の装飾されたセクションタイトル
-------------------------*/
.service-detail-page .section-title-decorated {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
}

.service-detail-page .slash-left,
.service-detail-page .slash-right {
    font-size: 2rem;
    color: #ccc;
    margin: 0 1rem;
}

.service-detail-page .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    text-shadow: none;
}

/*-------------------------
  COMMON NOTICE
-------------------------*/
.contact-block {
    padding: 100px 0;
    background-color: #fff;
}

.contact-block__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.contact-block__content {
    text-align: left;
}

.contact-block__text {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

.contact-block__button {
    display: inline-block;
    background-color: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-block__button:hover {
    background-color: var(--primary);
    color: white;
}

.contact-block__illustration {
    flex-shrink: 0;
}

.contact-block__illustration img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*-------------------------
  CONNECTIVE DESIGN
-------------------------*/

/* 事業概要セクション
-------------------------*/
.business-overview {
    margin-bottom: 100px;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #fff;
}

.business-overview__image-container {
    position: relative;
    width: 100%;
}

.business-overview__main-image {
    display: block;
    width: 100%;
    height: auto;
}

.business-overview__text-content {
    position: absolute;
    top: 20px;
    left: 40px;
    color: #333;
    max-width: 32%;
}

.business-overview__title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 25px;
}

.business-overview__description {
    font-size: 18px;
    line-height: 1.7;
}

/* PC用の画像をデフォルトで表示し、スマホ用を非表示 */
.business-overview__main-image--pc {
    display: block;
    /* PC・タブレットで表示 */
}

.business-overview__main-image--sp {
    display: none;
    /* デフォルトで非表示 */
}


/* サービス紹介セクション
-------------------------*/
.service-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    margin-bottom: 100px;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px;
}

.service-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-section__item {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    gap: 20px;
}

.service-section__item-icon {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.service-section__item-icon img {
    max-width: 100%;
    height: auto;
    display: block;
}

.service-section__item-body {
    flex-grow: 1;
}

.service-section__item-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.service-section__item-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}


/* レスポンシブ対応  */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* 1. 共通のセクションタイトル */
    .page-title-wrapper {
        margin-bottom: 0;
        padding-top: 5rem;
        padding-bottom: 20px;
    }

    .section-title-decorated {
        font-size: 1.8rem;
    }

    .slash-left,
    .slash-right {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* 2. 事業概要セクション */
    .page-vertical-on-mobile .business-overview__image-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .page-vertical-on-mobile .business-overview__main-image {
        max-width: none;
        width: 100%;
        order: 2;
    }

    /* --- 画像の表示・非表示切り替え --- */
    /* スマホ表示時にPC用画像を非表示、スマホ用画像を表示 */
    .page-vertical-on-mobile .business-overview__main-image--pc {
        display: none;
    }

    .page-vertical-on-mobile .business-overview__main-image--sp {
        display: block;
    }

    .business-overview {
        margin-bottom: 60px;
    }

    .business-overview__background {
        min-height: 500px;
        background-position: center bottom;
    }

    .page-vertical-on-mobile .business-overview__text-content {
        position: static;
        top: auto;
        left: auto;
        max-width: 100%;
        padding: 0 15px;
        text-align: left;
        color: #333;
        order: 1;
    }

    .page-vertical-on-mobile .business-overview__title {
        font-size: 32px;
    }

    .page-vertical-on-mobile .business-overview__description {
        font-size: 15px;
    }

    /* 3. 事業が提供するサービス一覧 */
    .service-section {
        padding: 40px 0;
        margin-bottom: 60px;
    }

    .section-heading {
        font-size: 18px;
        margin-bottom: 20px;
        text-align: left;
    }

    .service-section__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-section__item {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }

    .service-section__item-icon {
        width: 60px;
        height: 60px;
    }

    .service-section__item-title {
        font-size: 18px;
    }

    .service-section__item-description {
        font-size: 14px;
    }

    /* 4. 全事業共通キャッチ */
    .contact-block {
        padding: 60px 0;
    }

    .contact-block__wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 50px;
        gap: 12px;
    }

    .contact-block__content {
        text-align: left;
        flex: 1;
        min-width: 0;
    }

    .contact-block__text {
        font-size: 18px;
    }

    .contact-block__button {
        padding: 10px 22px;
        font-size: 14px;
    }

    .contact-block__illustration {
        flex: 0 0 34%;
        max-width: 34%;
    }

    .contact-block__illustration img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 390px) {
    .contact-block__wrapper {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .contact-block__content {
        width: 100%;
        text-align: left;
    }

    .contact-block__illustration {
        flex: none;
        max-width: none;
        width: 100%;
    }

    .contact-block__illustration img {
        width: 100%;
        height: auto;
    }
}

/*-------------------------
  UI INNOVATION
-------------------------*/

/* 事業概要セクション
-------------------------*/
.business-overview__text-content--wide {
    position: absolute;
    top: 20px;
    left: 40px;
    color: #333;
    max-width: 50%;
}

.business-overview__title--wide {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 25px;
}

.business-overview__description--wide {
    font-size: 18px;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* 事業概要セクション
-------------------------*/
.service-details {
    padding: 10px 0;
    background-color: #fff;
}

.service-details .container {
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-details__grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: stretch;
}

.service-details__item {
    width: calc((100% - 60px) / 3);
    border: none;
    border-radius: 8px;
    padding: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-details__title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding: 20px 25px;
    background-color: #fff;
    border-bottom: 1px solid #E0E0E0;
}

.service-details__subtitle {
    font-size: 16px;
    color: #333;
    padding: 15px 25px;
    background-color: #F8F9FA;
    border-bottom: 1px solid #E0E0E0;
    margin: 0;
}

.service-details__image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-details__image img {
    width: 90%;
    height: auto;
    object-fit: cover;
}

.service-details__images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 25px;
    margin-top: 15px;
}

.service-details__images img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
}

.service-details__description {
    padding: 8px 24px 50px;
    flex-grow: 1;
    white-space: pre-wrap;
}

.service-details__description p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.service-details__description plast-child {
    margin-bottom: 0;
}

/* 実績紹介セクション
-------------------------*/
.achievements-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.achievements-section .container {
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 20px;
}

.achievements-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px;
    text-align: left;
}

.achievements-section__content {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.achievements-section__coming-soon {
    font-size: 20px;
    color: #333;
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* 保有技術セクション
-------------------------*/
.technology-section {
    padding: 80px 0;
    background-color: #fff;
}

.technology-section .container {
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 20px;
}

.technology-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px;
    text-align: left;
}

.technology-section__intro {
    text-align: center;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 80px;
    color: #333;
    white-space: pre-wrap;
}

.technology-section__intro p {
    margin-bottom: 15px;
}

.technology-section__intro strong {
    font-weight: 700;
}

/* PC用:技術図(画像) */
.technology-diagram--desktop {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.technology-diagram__image {
    width: 100%;
    height: auto;
    max-width: 810px;
    display: block;
    margin: 0 auto;
}

/* スマホ用:カード表示(デフォルトは非表示) */
.technology-cards--mobile {
    display: none;
}

/* 技術カード */
.technology-card {
    background-color: #fff;
    border: 3px solid;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    min-height: 200px;
    overflow: hidden;
}

/* 中央カード(UI/UXの知見と経験) */
.technology-card--center {
    background-color: #FDCE7D;
    border-color: #ffb067;
    border: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    min-height: 150px;
}

.technology-card--ux-design {
    border-color: #F9AD95;
}

.technology-card--ux-design .technology-card__title {
    color: #78250B;
}

.technology-card--ui-layout {
    border-color: #F77984;
}

.technology-card--ui-layout .technology-card__title {
    color: #B52531;
}

.technology-card--3d-data {
    border-color: #D16E83;
}

.technology-card--3d-data .technology-card__title {
    color: #81283B;
}

.technology-card--ar-vr {
    border-color: #966381;
}

.technology-card--ar-vr .technology-card__title {
    color: #612E4C;
}

/* タイトル部分(右半分) */
.technology-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 25px 20px;
}

/* 中央カードのタイトル */
.technology-card--center .technology-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
    display: block;
    padding: 10px 10px;
    color: #333;
}

/* 画像部分(左半分) */
.technology-card__image {
    flex: 1;
    display: grid;
    place-items: center;
    background-color: #fff;
    padding: 12px;
    aspect-ratio: 608/416;
}

.technology-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: none;
}

/* レスポンシブ対応  */
@media (max-width: 768px) {
    .page-vertical-on-mobile .business-overview__text-content--wide {
        position: static;
        top: auto;
        left: auto;
        max-width: 100%;
        padding: 0 15px;
        text-align: left;
        color: #333;
        order: 1;
    }

    .page-vertical-on-mobile .business-overview__title--wide {
        font-size: 32px;
    }

    .page-vertical-on-mobile .business-overview__description--wide {
        font-size: 15px;
    }

    .service-details {
        padding: 20px 0;
    }

    .service-details .container {
        padding: 0 5px;
    }

    .service-details__grid {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .service-details__item {
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: column;
    }

    .service-details__title {
        font-size: 18px;
        padding: 5px 10px;
        margin-bottom: 0;
    }

    .service-details__subtitle {
        font-size: 14px;
        padding: 2px 10px;
        margin-bottom: 0;
    }

    /* 画像と文章を横並びにするコンテナ */
    .service-details__content {
        display: flex;
        flex-direction: row;
        gap: 15px;
        padding: 8px 15px 15px 15px;
    }

    .service-details__image {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .service-details__image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .service-details__description {
        flex: 1;
        padding: 0;
    }

    .service-details__description p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .service-details__description plast-child {
        margin-bottom: 0;
    }

    .service-details__images {
        padding: 0 20px;
        margin-top: 10px;
        gap: 8px;
    }

    /* 実績紹介セクション */
    .achievements-section {
        background-color: #f5f5f5;
        padding: 60px 0;
    }

    .achievements-section__title {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .achievements-section__content {
        background-color: #f5f5f5;
        min-height: 300px;
    }

    .achievements-section__coming-soon {
        font-size: 16px;
    }

    /* 保有技術セクション */
    .technology-section {
        padding: 60px 0;
    }

    .technology-section .section-title {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .technology-section__intro {
        font-size: 15px;
        margin-bottom: 50px;
        padding: 0;
        text-align: left;
    }

    .technology-section__intro p {
        margin-bottom: 12px;
        line-height: 1.4;
    }

    /* PC用の画像を非表示 */
    .technology-diagram--desktop {
        display: none;
    }

    /* スマホ用のカードを表示 */
    .technology-cards--mobile {
        display: block;
        padding: 0;
    }

    .technology-card {
        margin-bottom: 15px;
        min-height: 180px;
    }

    /* 中央カードのスマホ表示 */
    .technology-card--center {
        min-height: 40px;
    }

    .technology-card__title {
        font-size: 15px;
        padding: 20px 15px;
    }

    .technology-card--center .technology-card__title {
        font-size: 18px;
        padding: 10px 10px;
    }

    .technology-card__image {
        padding: 15px;
    }
}

/*-------------------------
  LifeApp
-------------------------*/

/* 開発フローセクション
-------------------------*/
.development-flow {
    padding: 50px 0 120px 0;
    background-color: #ffffff;
}

.development-flow .container {
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 20px;
}

.development-flow__title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 30px;
    color: #333;
    padding: 0 20px;
}

.development-flow__scroll-wrapper {
    width: 100%;
    overflow: hidden;
}

.development-flow__image-container {
    width: 100%;
    overflow: hidden;
}

.development-flow__image {
    width: 100%;
    height: auto;
    display: block;
}

/* 対応技術セクション
-------------------------*/
.technology {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.technology .container {
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 40px;
}

.technology__title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 30px;
    color: #333;
}

.technology__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.technology__item {
    font-size: 16px;
    line-height: 0.8;
    color: #333;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

/* 箇条書きの点（ビュレット） */
.technology__item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
    font-size: 20px;
    line-height: 0.6;
}

/* 対応技術セクション
-------------------------*/
.apps-in-development {
    padding: 60px 0;
    background-color: #fff;
}

.apps-in-development .container {
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 40px;
}

.apps-in-development__title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 40px;
    color: #333;
}

.apps-in-development__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* アプリカード */
.app-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    background-color: #f8f8f8;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 1.5px 6px rgba(0, 0, 0, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card__image {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    background-color: #d3d3d3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card__title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.app-card__release {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.app-card__content {
    flex: 1;
    padding-top: 10px;
}

.app-card__title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.app-card__release {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .business-overview__text-content {
        top: 0;
        max-width: 72%;
    }

    /* 開発フローセクション */
    .development-flow {
        padding: 10px 0 70px 0;
    }

    .development-flow .container {
        padding: 0 15px;
    }

    .development-flow__title {
        font-size: 18px;
        margin-bottom: 20px;
        padding: 0;
    }

    /* 横スクロールラッパー */
    .development-flow__scroll-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
        cursor: grab;
        user-select: none;
    }

    .development-flow__scroll-wrapper:active {
        cursor: grabbing;
    }

    .development-flow__image-container {
        width: auto;
        overflow: visible;
        display: inline-block;
    }

    .development-flow__image {
        height: 212px;
        width: auto;
        max-width: none;
        display: block;
    }

    /* スクロールバーを非表示 */
    .development-flow__scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .development-flow__scroll-wrapper {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* 対応技術セクション */
    .technology {
        padding: 40px 0;
        background-color: #f8f8f8;
    }

    .technology .container {
        padding: 0 15px;
    }

    .technology__title {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .technology__item {
        font-size: 15px;
        line-height: 0.8;
        margin-bottom: 12px;
    }

    /* 開発中アプリセクション */
    .apps-in-development {
        padding: 40px 0;
    }

    .apps-in-development .container {
        padding: 0 15px;
    }

    .apps-in-development__title {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .apps-in-development__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .app-card {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px 20px;
    }

    .app-card__image {
        width: 60px;
        height: 60px;
    }

    .app-card__content {
        text-align: center;
        width: 100%;
    }

    .app-card__title {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 0.8;
    }

    .app-card__release {
        font-size: 14px;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .development-flow .container {
        padding: 0 0px;
    }

    .development-flow__title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .development-flow__scroll-wrapper {
        margin: 0 -10px;
        padding: 0 10px;
    }

    .development-flow__image {
        height: 150px;
        min-width: 548px;
    }
}
