@charset "UTF-8";

/* ==========================================
   1. 共通設定・リセット
   ========================================== */
* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #333;
    font-size: 18px;
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
}

a i {
    padding-left: 1em;
}

.pc-only {
    display: none !important;
}

/* ==========================================
   2. コンテンツボックス（基本スタイル）
   ========================================== */
.content-box {
    background: #fff;
    margin: 1rem 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.box-title {
    color: #fff;
    padding: 0.7rem;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    margin: 0;
    display: block;
}

.box-blue .box-title {
    background: #5b7bb1;
}

.box-blue .box-lead {
    color: #5b7bb1;
}

.box-green .box-title {
    background: #82b541;
}

.box-green .box-lead {
    color: #82b541;
}

.box-gray .box-title {
    background: #808080;
}

.box-red .box-title {
    background: #fff;
    color: #d7000f;
    border-top: 3px solid #d7000f;
}

.box-body {
    padding: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.box-lead {
    font-weight: bold;
    color: #d7000f;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.box-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.box-link {
    display: block;
    background: #ff6d00;
    color: #fff;
    text-align: center;
    padding: 0.7rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ==========================================
   3. スマホ表示（〜639px）
   ========================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
}

.header-red-bar {
    background-color: rgba(215, 0, 15, 0.9) !important;
    height: 75px;
    display: flex;
    align-items: center;
}

.header-flex {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hamburger-btn {
    width: 75px;
    height: 75px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.hamburger-btn::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.4);
}

.menu-icon-img {
    width: 42px;
    height: auto;
}

.menu-label {
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    margin-top: 2px;
}

.header-logo-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-logo {
    width: 100%;
    max-width: 260px;
    height: 65px;
    margin: 0;
}

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

.top-hero {
    background: #fff;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.top-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #777;
    z-index: 10;
    text-shadow:
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px -2px 0 #fff,
        0px 2px 0 #fff,
        0px -2px 0 #fff,
        -2px 0px 0 #fff,
        2px 0px 0 #fff,
        0px 0px 3px #fff;
}

.hero-right .hero-highlight {
    font-size: 1.5rem;
}

/* ==========================================
   更新情報・フッター
   ========================================== */
.info-section {
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    width: 100%;
}

.info-title {
    border-left: 4px solid #d7000f;
    padding-left: 0.6rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.copyright-bar {
    background: #d7000f;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.75rem;
}

.copyright {
    color: #fff;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 0.5rem 0;
    padding: 0;
    color: #fff;
}

.footer-links li {
    position: relative;
    padding: 0 10px;
}

.footer-links li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -2px;
    color: #fff;
}

.footer-links li a:hover {
    text-decoration: underline;
}

.news-item {
    font-size: 0.9rem;
}

/* ==========================================
   4. タブレット（640px〜1023px）
   ========================================== */
@media (min-width: 640px) {
    .sp-only {
        display: none !important;
    }

    .pc-only {
        display: block !important;
    }

    body {
        background: #fff;
    }

    .site-header {
        position: static;
        border-top: 3px solid #d7000f;
    }

    .header-utility {
        height: 30px;
    }

    .header-utility-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .site-description {
        font-size: 11px;
        color: #666;
        margin: 0;
    }

    .header-red-bar {
        background-color: transparent !important;
        height: auto;
        padding: 0;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding: 0 15px;
    }

    .main-logo {
        width: 300px;
        height: auto;
        margin-bottom: -4px;
    }

    .pc-main-nav {
        flex: 1 1 auto;
        margin-bottom: -1px;
    }

    .pc-main-nav ul {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        gap: 15px;
        list-style: none;
        margin: 0;
    }

    .pc-main-nav li a {
        display: block;
        text-indent: -9999px;
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: contain;
        height: 40px;
    }

    .pc-main-nav li:nth-child(1) a {
        background-image: url('images/gnavi_websolutions.jpg');
    }

    .pc-main-nav li:nth-child(2) a {
        background-image: url('images/gnavi_expertsystem.jpg');
    }

    .pc-main-nav li:nth-child(3) a {
        background-image: url('images/gnavi_faq.jpg');
    }

    .pc-main-nav li:nth-child(4) a {
        background-image: url('images/gnavi_contact.jpg');
    }

    .pc-main-nav li:nth-child(1) {
        flex: 0 0 145px;
    }

    .pc-main-nav li:nth-child(2) {
        flex: 0 0 120px;
    }

    .pc-main-nav li:nth-child(3) {
        flex: 0 0 85px;
    }

    .pc-main-nav li:nth-child(4) {
        flex: 0 0 77px;
    }

    .main-layout-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem;
        padding: 0;
        margin-top: 1.6rem;
    }

    .top-hero {
        padding: 0 15px;
    }

    .hero-right {
        font-size: 1.8rem;
    }

    .hero-right .hero-highlight {
        font-size: 2.3rem;
    }

    .content-box .box-title {
        display: none;
    }

    .content-box {
        background-color: #fff;
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% auto;
        margin: 0;
    }

    .box-body {
        padding-left: 1.8rem;
        padding-right: 1.8rem;
        padding-bottom: 1.8rem;
    }

    .box-blue {
        background-image: url('images/toppage_websolutions.jpg');
    }

    .box-green {
        background-image: url('images/toppage_expert.jpg');
    }

    .box-gray {
        background-image: url('images/toppage_com.jpg');
    }

    .box-red {
        background-image: url('images/toppage_contact.jpg');
    }

    .box-blue .box-body,
    .box-green .box-body {
        padding-top: 220px;
    }

    .box-gray .box-body,
    .box-red .box-body {
        padding-top: 105px;
    }

    .copyright-bar {
        font-size: 0.85rem;
    }
}

/* ==========================================
   5. PC ワイド表示（1024px〜）
   ========================================== */
@media (min-width: 1024px) {
    body {
        background-image: url('images/back1.jpg');
        background-repeat: repeat-x;

        /* 変更：太くなった赤いラインを画面外へ多めに逃がして完全に隠す */
        background-position: center -50px;

        background-attachment: fixed;

        /* 復活：画像を上下いっぱいに広げる */
        background-size: 100% 100%;
    }

    .container,
    .top-hero {
        max-width: 1000px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
    }

    .header-flex {
        padding: 0 !important;
    }

    .header-utility {
        height: 40px;
    }

    .header-logo-area {
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    .main-logo {
        margin-left: 0 !important;
        width: 345px !important;
        max-width: 345px !important;
        margin-bottom: -5px;
    }

    .pc-main-nav {
        margin-top: 0;
        margin-bottom: -2px;
    }

    .pc-main-nav ul {
        gap: 20px;
    }

    .pc-main-nav li a {
        height: 70px;
    }

    .pc-main-nav li:nth-child(1) {
        flex-basis: 200px !important;
    }

    .pc-main-nav li:nth-child(2) {
        flex-basis: 165px !important;
    }

    .pc-main-nav li:nth-child(3) {
        flex-basis: 115px !important;
    }

    .pc-main-nav li:nth-child(4) {
        flex-basis: 105px !important;
    }

    .main-layout-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 0.62fr;
        grid-template-rows: 1fr 1fr;
        gap: 1.2rem;
        align-items: stretch;
    }

    .box-body {
        align-items: stretch;
    }

    .box-blue {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .box-green {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .box-gray {
        grid-column: 3;
        grid-row: 1 / 2;
    }

    .box-red {
        grid-column: 3;
        grid-row: 2 / 3;
    }

    .box-gray .box-body,
    .box-red .box-body {
        padding-top: 80px;
    }

    .box-gray .box-link,
    .box-red .box-link {
        font-size: 0.75rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ==========================================
   7. PC ワイド表示（1280px〜）
   ========================================== */
@media (min-width: 1280px) {

    .container,
    .top-hero {
        max-width: 1200px !important;
    }

    .box-blue .box-body,
    .box-green .box-body {
        padding-top: 270px;
    }
}