@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Zen+Maru+Gothic:700");

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: "YuGothic-Bold", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif;
}

button:focus-visible {
    outline: 2px solid #4a90e2 !important;
}

a {
    text-decoration: none;
    color: #48a0ff;
}

a:hover {
    color: #3a8ae6;
}

/* メインコンテナ */
.SP {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
}

.frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
}

/* セクション1: ヒーロー */
.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #48a0ff;
    color: white;
}

.title {
    text-align: center;
    margin-bottom: 30px;
}

.text-wrapper {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.subtitle {
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 700;
}

.hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 464;
    min-height: 200px;
    background-image: url('images/image_section1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 20px;
}

/* セクション2: 問題提起 */
.section-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #e2edff;
}

.section-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #000;
}

.image-section {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

.problems-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 300px;
    background-image: url('images/image_section2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* セクション3: 特徴 - 修正版 */
.section-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #ffffff;
}

.box-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 1000px;
}

.point-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 564px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-image {
    width: 100%;
    max-width: 564px;
    height: auto;
    aspect-ratio: 564 / 386;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
}

.box-point:nth-child(2) .point-image {
    background-image: url('images/images_1.png');
}

.box-point:nth-child(3) .point-image {
    background-image: url('images/images_2.png');
}

.box-point:nth-child(4) .point-image {
    background-image: url('images/images_3.png');
}

.point-text {
    text-align: center;
    width: 100%;
}

.point-text h3 {
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 700;
    color: #609ef8;
    margin-bottom: 15px;
}

.point-text p {
    font-size: clamp(16px, 2.5vw, 30px);
    font-weight: 700;
    color: #333;
    line-height: 1.5;
}

/* セクション4: 事例 */
.section-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #f7fff0;
}

.carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

.carousel {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: fit-content;
}

.card {
    flex: 0 0 auto;
    width: 500px;
    aspect-ratio: 500 / 900;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    aspect-ratio: 448 / 348;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* 各カードの個別画像指定 */
.card:nth-child(1) .card-image {
    background-image: url('images/image_case_01.png');
}

.card:nth-child(2) .card-image {
    background-image: url('images/image_case_02.png');
}

.card:nth-child(3) .card-image {
    background-image: url('images/image_case_03.png');
}

.card:nth-child(4) .card-image {
    background-image: url('images/image_case_04.png');
}

.card:nth-child(5) .card-image {
    background-image: url('images/image_case_05.png');
}

.card:nth-child(6) .card-image {
    background-image: url('images/image_case_06.png');
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #000;
    text-align: center;
    line-height: 1.3;
}

.card-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #008fcd;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
}

.card-content p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: auto;
    flex-grow: 1;
}

.btn-link {
    display: block;
    background-color: #393939;
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: 700;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-link:hover {
    background-color: #555;
    color: #ffffff;
}

/* セクション5: ロゴ */
.section-5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #ffffff;
}

/* セクション5専用のタイトルスタイル */
.section-5 .section-title {
   margin-bottom: 5px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 400;
    color: #666;
    margin-top: 5px;
    margin-bottom:30px;
}


.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.logo-item {
    width: 100%;
    height: 120px;
    aspect-ratio: 1;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* セクション6: フロー - 修正版 */
.section-6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #fcf0e3;
}

.flow-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1000px;
}

.flow-image {
    width: 100%;
    max-width: 448px;
    height: auto;
    aspect-ratio: 448 / 348;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.flow-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flow-text {
    text-align: center;
    width: 100%;
}

.flow-text h3 {
    font-size: clamp(20px, 3vw, 40px);
    font-weight: 700;
    color: #48a0ff;
    margin-bottom: 15px;
}

.flow-text p {
    font-size: clamp(14px, 2.5vw, 30px);
    font-weight: 700;
    color: #333;
    line-height: 1.5;
}

/* フォームセクション */
.section-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #fff;
}

.form-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #000;
}

.contact-form {
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.label-text {
    font-size: clamp(16px, 2.5vw, 30px);
    font-weight: 700;
    color: #000;
}

.required {
    background-color: #e26a6a;
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #b0b0b0;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.textarea-label {
    font-size: clamp(16px, 2.5vw, 30px);
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
    display: block;
}

.privacy-notice {
    font-size: clamp(14px, 2vw, 24px);
    font-weight: 700;
    color: #000;
    margin: 20px 0;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    max-width: 520px;
    height: 70px;
    background-color: #48a0ff;
    color: white;
    border: none;
    border-radius: 35px;
    font-size: clamp(18px, 3vw, 36px);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto;
    display: block;
}

.btn-submit:hover {
    background-color: #3a8ae6;
}

/* フッター - 修正版 */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    width: 100%;
    background-color: #5a5a5a;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.footer-logo {
    width: 170px;
    height: 80px;
    background-image: url('images/logo_ogix.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.footer-divider {
    width: 1px;
    height: 80px;
    background-color: #ccc;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: white;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #48a0ff;
}

/* コピーライト */
.copyright {
    width: 100%;
    background-color: #333;
    padding: 20px;
    text-align: center;
}

.copyright p {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

/* 資料請求ボタン - 修正版 */
.btn-request {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-image: url('images/btn_request.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-request:hover {
    transform: scale(1.1);
}

.request-icon {
    width: 60px;
    height: 50px;
    background-color: white;
    margin-bottom: 10px;
}

.request-icon,
.request-text {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    font-family: "Zen Maru Gothic", Helvetica;
    display: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .section, .section-2, .section-3, .section-4, .section-5, .section-6, .section-form {
        padding: 30px 15px;
    }
    
    .box-point {
        margin-bottom: 30px;
    }
    
    /* point-image のサイズを適切に調整 */
    .point-image {
        min-height: 250px;
        max-width: 90vw;
    }
    
    /* flow-box の配置を明確に縦並びに */
    .flow-box {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    /* flow-image のサイズ調整 */
    .flow-image {
        width: 90%;
        max-width: 400px;
        min-height: auto;
    }

    .flow-text {
        width: 100%;
        text-align: center;
    }
    
    .card {
        width: 280px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .logo-item {
        height: 100px;
    }
    
    .footer-content {
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-divider {
        width: 1px;
        height: 80px;
    }
    
    /* footer-links を縦並びに維持 */
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* 資料請求ボタンのサイズ調整 */
    .btn-request {
        width: 120px;
        height: 120px;
        bottom: 15px;
        right: 15px;
    }
    
    .request-icon {
        width: 50px;
        height: 40px;
    }
    
    .request-text {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .hero-image {
        min-height: 150px;
    }
    
    .problems-image {
        min-height: 200px;
    }
    
    /* より小さな画面での point-image 調整 */
    .point-image {
        min-height: 200px;
        max-width: 95vw;
    }
    
    .card {
        width: 260px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    /* flow-image のさらなる調整 */
    .flow-image {
        width: 95%;
        max-width: 350px;
    }
    
    /* 資料請求ボタンをより小さく */
    .btn-request {
        width: 100px;
        height: 100px;
        bottom: 10px;
        right: 10px;
    }
    
    .request-icon {
        width: 40px;
        height: 30px;
    }
    
    .request-text {
        font-size: 10px;
    }
}

/* デスクトップ対応 */
@media screen and (min-width: 1024px) {
    .box-point {
        flex-direction: row;
        text-align: left;
    }
    
    .point-text {
        text-align: left;
        flex: 1;
    }
    
    .point-image-wrapper {
        flex: 0 0 564px;
    }
    
    .flow-box {
        flex-direction: row;
        align-items: center;
    }
    
    .flow-text {
        text-align: left;
        flex: 1;
    }
    
    .flow-image {
        flex: 0 0 448px;
    }
    
    .carousel {
        gap: 30px;
    }
    
    .card {
        width: 350px;
    }
}

/* Ensure section backgrounds span full browser width */
.section,
.section-2,
.section-4,
.section-6,
.footer,
.copyright {
    width: 100vw;
    position: relative;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section-banner {
        padding: 30px 15px;
    }
    
    .banner-image {
        height: 120px;
    }
    
    .tgs-banner::after {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .section-banner {
        padding: 20px 10px;
    }
    
    .banner-image {
        height: 100px;
    }
    
    .tgs-banner::after {
        font-size: 16px;
    }
    
    .banner-link:hover {
        transform: translateY(-2px);
    }
}

/* TOKYO GAME SHOW 2025 バナーセクション */
.section-banner {
    width: 100%;
    padding: 30px 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    justify-content: center;
    align-items: center;
}

.banner-container {
    width: 100%;
    max-width: 900px;
}

.banner-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(72, 160, 255, 0.3);
}

.banner-image {
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 180;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 120px;
}

.tgs-banner {
    background-image: url('images/bnr_tgs02.png');
}

/* バナーテキストのスタイル */
.banner-text {
    width: 100%;
    max-width: 900px; /* バナーと同じ最大幅 */
    margin-top: 20px;
    padding: 0 20px;
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.6;
    color: #333;
    text-align: left;
    font-weight: 400;
    box-sizing: border-box;
}

/* バナーサブテキスト（リンク）のスタイル */
.banner-subtext {
    width: 100%;
    max-width: 900px;
    margin-top: 15px;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.banner-subtext a {
    display: inline-block;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 600;
    color: #48a0ff;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #48a0ff;
    border-radius: 20px;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner-subtext a:hover {
    color: white;
    background-color: #48a0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 160, 255, 0.3);
}

.banner-subtext a::before {
    content: "→";
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.banner-subtext a:hover::before {
    transform: translateX(3px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section-banner {
        padding: 20px 15px;
    }
    
    .banner-image {
        min-height: 100px;
    }
    
    .banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(72, 160, 255, 0.3);
}
    
    .banner-text {
        margin-top: 15px;
        padding: 0 15px;
        font-size: clamp(12px, 3vw, 16px);
    }
    
    .banner-subtext {
        margin-top: 12px;
        padding: 0 15px;
    }
    
    .banner-subtext a {
        font-size: clamp(11px, 2.5vw, 14px);
        padding: 6px 14px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .section-banner {
        padding: 15px 10px;
    }
    
    .banner-image {
        min-height: 80px;
    }
    
    .banner-text {
        margin-top: 10px;
        padding: 0 10px;
        font-size: clamp(11px, 3.5vw, 14px);
        line-height: 1.5;
    }
    
    .banner-subtext {
        margin-top: 10px;
        padding: 0 10px;
    }
    
    .banner-subtext a {
        font-size: clamp(10px, 3vw, 12px);
        padding: 5px 12px;
        border-radius: 15px;
    }
}