/* ==========================
   Base
   ========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0d1117;
    color: #e6e6e6;
    line-height: 1.7;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 70px; /* 固定ヘッダー分の余白 */
}

a {
    color: #58a6ff;
    text-decoration: none;
}

/* 画像がはみ出さないように */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================
   Header & Navigation
   ========================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 左側ロゴ＋社名 */
.site-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #58a6ff;
}

.site-title img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* PC時のメニュー */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ハンバーガー（PCでは非表示） */
.hamburger {
    display: none;
    flex-direction: column;
    width: 26px;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background: #58a6ff;
    transition: 0.3s;
}

/* ハンバーガー開閉アニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* ==========================
   Hero (TOPページ)
   ========================== */

.hero {
    height: 45vh;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #05070d, #0a1222 40%, #02060d 90%);
}

/* グリッド */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 22px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 22px
        );
    pointer-events: none;
    z-index: 1;
}

/* 光のレイヤー */
.hero::before {
    content: "";
    position: absolute;
    width: 130%;
    height: 130%;
    top: -20%;
    left: -20%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(88,166,255,0.55),
        rgba(0,0,0,0)
    );
    animation: rotateGlow 25s infinite linear;
    z-index: 0;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 斜めに流れる光 */
.moving-light {
    position: absolute;
    top: 0;
    left: -120%;
    width: 240%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(88,166,255,0.25) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: moveLight 10s infinite linear;
    z-index: 2;
}

@keyframes moveLight {
    0% { transform: translateX(-120%) skewX(-20deg); }
    100% { transform: translateX(120%) skewX(-20deg); }
}

/* Hero内テキストは最前面 */
.hero > div {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 12px rgba(88,166,255,0.6);
}

.hero p {
    font-size: 16px;
    text-shadow: 0 0 8px rgba(88,166,255,0.4);
}

/* ==========================
   Page Header (下層ページ)
   ========================== */

.page-header {
    height: 40vh;
    min-height: 260px;
    background: linear-gradient(135deg, #06121f, #0b223b 60%, #040a12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #e6e6e6;
}

/* 流れる光 */
.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(88,166,255,0.18) 55%,
        transparent 70%
    );
    transform: skewX(-20deg);
    animation: sweepLight 8s infinite linear;
}
@keyframes sweepLight {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(150%) skewX(-20deg); }
}

/* グリッド */
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.015) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 24px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 24px
        );
    pointer-events: none;
}

.page-header h1 {
    font-size: 40px;
    margin: 0;
    z-index: 2;
    text-shadow: 0 0 12px rgba(88,166,255,0.35);
}

.page-header p {
    margin-top: 10px;
    font-size: 16px;
    z-index: 2;
    opacity: 0.85;
}

/* ==========================
   Sections & Headings
   ========================== */

.section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

h2 {
    border-left: 5px solid #58a6ff;
    padding-left: 10px;
    color: #58a6ff;
    font-size: 22px;
    margin-bottom: 20px;
}

h3 {
    color: #58a6ff;
    font-size: 18px;
}

/* ==========================
   Box / Cards / Lists
   ========================== */

.box {
    background: #161b22;
    padding: 25px;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid #26303f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* サービスカード一覧 */
.service-cards {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* 各サービスカード */
.service-card {
    background: #151b23;
    border: 1px solid #26303f;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 32%;
}

.service-card i {
    font-size: 40px;
    color: #58a6ff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(88,166,255,0.5);
}

.service-card p {
    font-size: 14px;
    color: #c9d1d9;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* サービス一覧のリンクボックス */
.link-box {
    display: block;
    margin-top: 20px;
    background: #151b23;
    border-radius: 10px;
    border: 1px solid #26303f;
    padding: 20px 20px;
    transition: 0.2s;
}

.link-box:hover {
    background: #1d2633;
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.section .link-box h3,
.section .link-box p {
    color: #ffffff;
}

/* その他のご相談案内 */
.other-support {
    text-align: center;
    margin: 25px 0 10px 0;
    color: #c9d1d9;
    font-size: 15px;
    opacity: 0.85;
}

.other-support-box {
    background: #161b22;
    border: 1px solid #26303f;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.other-support-box p {
    font-size: 15px;
    color: #c9d1d9;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ==========================
   Buttons
   ========================== */

.button-area {
    margin-top: 20px;
    text-align: center;
}

.service-button,
.contact-button,
.submit-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #58a6ff;
    border: 2px solid #58a6ff;
    background: transparent;
    transition: all 0.25s ease;
    text-shadow: 0 0 6px rgba(88,166,255,0.4);
    text-align: center;
}

.service-button:hover,
.contact-button:hover,
.submit-button:hover {
    background: rgba(88,166,255,0.15);
    box-shadow: 0 0 18px rgba(88,166,255,0.55);
    transform: translateY(-2px);
}

/* submitだけ少し太め */
.submit-button {
    padding: 14px 32px;
}

/* ==========================
   Company Overview (会社概要)
   ========================== */

.company-overview {
    background: #161b22;
    padding: 25px 30px;
    border-radius: 10px;
    border: 1px solid #26303f;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.company-overview .row {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid #2a3340;
}

.company-overview .row:last-child {
    border-bottom: none;
}

.company-overview .label {
    width: 180px;
    font-weight: bold;
    color: #58a6ff;
}

.company-overview .value {
    flex: 1;
    color: #d1d5db;
    line-height: 1.7;
}

/* ==========================
   Features / Flow / Price
   ========================== */

.features-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature-card {
    flex: 1;
    min-width: 260px;
    background: #151b23;
    border: 1px solid #26303f;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.feature-card i {
    font-size: 42px;
    margin-bottom: 12px;
    color: #58a6ff;
    text-shadow: 0 0 10px rgba(88,166,255,0.45);
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #58a6ff;
}

.feature-card p {
    font-size: 14px;
    color: #c9d1d9;
    line-height: 1.6;
}

/* Flow */
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.flow-step {
    flex: 1;
    min-width: 260px;
    background: #161b22;
    border: 1px solid #26303f;
    border-radius: 12px;
    text-align: center;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(88,166,255,0.3);
}

.flow-step i {
    font-size: 40px;
    color: #58a6ff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(88,166,255,0.5);
}

.flow-step h3 {
    font-size: 18px;
    color: #58a6ff;
    margin-bottom: 10px;
}

.flow-step p {
    font-size: 14px;
    color: #c9d1d9;
    line-height: 1.6;
}

/* 矢印 */
.flow-arrow {
    font-size: 24px;
    color: #58a6ff;
    text-align: center;
    margin: 0 10px;
    min-width: 20px;
}

.flow-arrow i {
    text-shadow: 0 0 6px rgba(88,166,255,0.5);
}

/* Price */
.price-cards {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 25px;
}

.price-card {
    flex: 1;
    min-width: 260px;
    background: #161b22;
    border: 1px solid #26303f;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(88,166,255,0.3);
}

.price-card i {
    font-size: 42px;
    color: #58a6ff;
    margin-bottom: 15px;
    text-shadow: 0 0 12px rgba(88,166,255,0.5);
}

.price-card h3 {
    color: #58a6ff;
    font-size: 18px;
    margin-bottom: 8px;
}

.price-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #e6e6e6;
    margin-bottom: 10px;
}

.price-card .desc {
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.6;
}

.price-note {
    margin-top: 20px;
    color: #9da5b4;
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================
   Contact Section & Form
   ========================== */

.contact-section {
    max-width: 900px;
    margin: 120px auto 100px auto;
    padding: 50px 30px;
    text-align: center;
    background: #161b22;
    border: 1px solid #26303f;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.contact-section h2 {
    border-left: none;
    padding-left: 0;
    color: #58a6ff;
    font-size: 26px;
    margin-bottom: 20px;
    position: relative;
}

.contact-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #58a6ff;
    margin: 8px auto 0 auto;
    border-radius: 4px;
}

.contact-form {
    background: #161b22;
    border: 1px solid #26303f;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #58a6ff;
    align-self: flex-start;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #2a3340;
    background: #0d1117;
    color: #e6e6e6;
    font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 8px rgba(88,166,255,0.4);
}

/* ==========================
   News & Blog Lists
   ========================== */

.news-list,
.blog-list {
    margin-top: 20px;
}

.news-item,
.blog-item {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #161b22;
    border: 1px solid #26303f;
    border-radius: 8px;
}

.news-date {
    font-size: 13px;
    color: #8b949e;
}

.news-title {
    margin-top: 5px;
    color: #e6e6e6;
    font-size: 15px;
}

.blog-item {
    display: block;
    transition: all .2s ease;
    font-weight: normal;
}

.blog-item:hover {
    box-shadow: 0 0 12px rgba(88,166,255,0.3);
    transform: translateY(-2px);
}

.blog-item h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #e6e6e6;
}

.blog-item span {
    color: #e6e6e6;
    font-size: 13px;
}

/* ==========================
   Footer
   ========================== */

footer {
    background: #10131a;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    color: #777;
    font-size: 13px;
}

/* ==========================
   Responsive (Mobile)
   ========================== */

@media screen and (max-width: 900px) {

    body {
        padding-top: 60px;
    }

    /* ヘッダー */
    .nav-container {
        padding: 10px 16px;
    }

    /* ハンバーガー表示 */
    .hamburger {
        display: flex;
        z-index: 1100;
    }

    /* メニューはドロップダウンで表示 */
    .nav-links {
        position: absolute;
        top: 58px;
        right: 16px;
        background: #161b22;
        border: 1px solid #26303f;
        border-radius: 10px;
        padding: 15px 20px;
        width: 220px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.25);
        display: none;
        z-index: 1050;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
    }

    /* Hero */
    .hero {
        height: auto;
        padding: 120px 20px 80px 20px;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.4;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Page Header */
    .page-header {
        height: auto;
        padding: 70px 20px 50px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Sections */
    .section {
        margin: 60px auto;
        padding: 0 15px;
    }

    /* カード類は1カラムに */
    .service-cards,
    .features-grid,
    .price-cards,
    .flow-steps {
        flex-direction: column;
        gap: 20px;
    }

    .service-card,
    .feature-card,
    .price-card,
    .flow-step,
    .box,
    .other-support-box {
        width: 100%;
        min-width: 0;
    }

    /* 会社概要 */
    .company-overview .row {
        flex-direction: column;
    }
    .company-overview .label {
        width: 100%;
        margin-bottom: 4px;
    }

    /* CONTACTセクション & フォーム */
    .contact-section {
        margin: 60px 10px;
        padding: 30px 20px;
    }

    .contact-form {
        padding: 20px;
    }

    /* ボタン幅 100% */
    .service-button,
    .contact-button,
    .submit-button {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    footer {
        font-size: 12px;
        padding: 15px 0;
    }
}

/* さらに小さい端末向け微調整 */
@media screen and (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }
}


/* ==========================
   修正版：Hero レイアウト正常化
   ========================== */

/* ← 既存の .hero の flex 定義を利用するため、上書きしない */

/* Hero 内テキストだけ確実に中央へ */
.hero > div {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    max-width: 700px;
    width: 100%;
    text-align: center;
}

/* 光エフェクトが前に出すぎないように調整 */
.moving-light {
    z-index: 2;
}
.hero::before,
.hero::after {
    z-index: 1;
}


/* ==========================
   ハンバーガーメニュー z-index 修正
   ========================== */

header {
    z-index: 2000 !important;
}

.hamburger {
    z-index: 3000 !important;
}

.nav-links {
    z-index: 2500 !important;
}


/* ==========================
   PC レイアウト（衝突回避）
   ========================== */
@media screen and (min-width: 901px) {

    /* サービスカード：横並び維持 */
    .service-cards {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 25px;
    }

    .service-card {
        width: 32%;
    }
}


/* ==========================
   モバイルレイアウト修正（破綻防止）
   ========================== */

@media screen and (max-width: 900px) {

    .service-cards {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .service-card {
        width: 100%;
    }

    .button-area a {
        width: 100%;
        display: block;
    }

    /* nav が hero の後ろに入らないように */
    .nav-links {
        position: absolute;
        right: 16px;
        top: 55px;
        width: 230px;
    }
}

.hero {
    position: relative;
}

.hero .moving-light {
    position: absolute !important;
    top: 0;
    left: -120%;
    width: 240%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero > div:not(.moving-light) {
    margin: 0 auto !important;
    text-align: center !important;
    position: relative;
    z-index: 10;
}
