@charset "UTF-8";

:root {
    --admax-blue: #5aa5e7;
    --admax-blue2: #0156a1;
    --admax-accent: #ff9900;
    --text-color: #333333;
    --bg-gray: #f4f4f4;
    --border-color: #7c7979;
}

body {
    font-family: "Meiryo", "MS PGothic", sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container3 {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.3em;
    padding: 0 26px;
}

.container{
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.container2 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 26px;
    font-size: 1.3em;
    line-height: 1.9;
}

.container2 h2 {
    font-size: 30px;
}

.container2 strong {
    font-size: 1.2em;
}

/* --- ヘッダー・メインビジュアル --- */
.main-visual {
    background-color: var(--admax-blue);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.main-visual h1 {
    font-size: 28px;
    margin: 0;
    letter-spacing: 2px;
}

.main-visual p {
    margin-top: 15px;
    font-size: 18px;
}

/* --- キービジュアルエリア --- */
.kv-area {
    margin: 0 0 40px 0;
    text-align: center;
}

.kv-wrapper {
    position: relative;
    width: 100%;
    /* aspect-ratioを削除し、表示したい高さを直接指定します */
    /* 16:9の上下を計30%削った後の高さに相当する値（例: 40vhや500pxなど） */
    height: 450px;
    background: #eee;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.kv-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-positionで、元画像のどの部分を中心に見せるか調整します */
    /* clip-pathで上10%下20%削っていたので、少し上にずらすと元の構図に近くなります */
    object-position: center 40%;
    filter: brightness(60%);
    display: block;
    /* clip-pathは削除します */
}

.kv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
    /* clip-pathは削除します */
}

.kv-overlay h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    text-align: center;
}

.kv-overlay p {
    margin: 0;
    font-size: 27px;
    text-align: center;
    max-width: 90%;
}

.kv-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: right;
    padding: 0 20px;
}

/* --- セクション共通 --- */
section {
    padding: 50px 0;
}

.bg-gray {
    background-color: var(--bg-gray);
}

/* --- 見出しスタイル (ASTERIAページ風) --- */
h2 {
    font-size: 24px;
    color: var(--admax-blue2);
    border-bottom: 2px solid var(--admax-blue);
    padding-bottom: 10px;
    margin-bottom: 30px;
    position: relative;
}

h2::before {
    content: "★";
    margin-right: 10px;
}

h3 {
    font-size: 20px;
    color: var(--admax-blue);
    margin-top: 30px;
    border-left: 5px solid var(--admax-blue);
    padding-left: 15px;
}

/* --- サービスモデル（4ステップ） --- */
.process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.process-box {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
}

.process-box h4 {
    color: var(--admax-blue);
    margin: 0 0 10px 0;
    font-size: 20px;
    border-bottom: 1px solid var(--admax-blue);
}

/* --- 技術・強み（カード） --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-color: var(--admax-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 91, 172, 0.3);
}

.card h4 {
    color: var(--admax-blue);
    margin-top: 0;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card2 {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-color: var(--admax-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 91, 172, 0.3);
}

.card2 h4 {
    color: var(--admax-blue);
    margin-top: 0;
}

/* --- テーブル --- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-color: var(--admax-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 91, 172, 0.3);
}

.spec-table th,
.spec-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
}

.spec-table th {
    background-color: var(--admax-blue);
    color: #fff;
    width: 30%;
    text-align: left;
}

/* --- CTAボタン (ASTERIA風) --- */
.cta-area {
    text-align: center;
    padding: 40px 0;
}

.btn-contact {
    display: inline-block;
    background-color: #fff;
    color: var(--admax-blue);
    border: 2px solid var(--admax-blue);
    padding: 15px 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-contact:hover {
    background-color: var(--admax-blue);
    color: #fff;
}

.recruit-link {
    display: block;
    margin-top: 20px;
    color: var(--admax-accent);
    text-decoration: underline;
    font-weight: bold;
}

/* サムネイル画像のラッパー設定 */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 横長で統一 */
    margin: 15px 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee;
    /* 読み込み前のプレースホルダー色 */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 画像自体のスタイリング */
.solution-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 枠いっぱいに収め、比率を保つ */
    object-position: center;
    transition: transform 0.3s ease;
}

.process-box:hover .solution-thumb {
    transform: scale(1.08);
    /* ホバー時にわずかに拡大する演出（任意） */
}

/* ソリューション具体例のボックス（process-box）のカスタマイズ */
.process-box {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    border-radius: 8px;
    /* 角を少し丸めることでシャドウを馴染ませます */

    /* アドマックスブルーのシャドウ設定 */
    /* 水平 垂直 ぼかし 広がり カラー */
    border-color: var(--admax-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 91, 172, 0.3);

}

/* タイトル下のサムネイル画像ラッパーにも少し調整 */
.thumbnail-wrapper {
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
    /* 画像の境界を少し際立たせる */
    border: 1px solid rgba(0, 91, 172, 0.1);
}

/* ASTERIA風スタイルの場合、pタグとの余白を調整 */
.process-box p {
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* --- アコーデオンスタイル --- */
.accordion-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-toggle:hover {
    color: var(--admax-accent);
}

.accordion-toggle::before {
    content: "▼";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.accordion-toggle.collapsed::before {
    transform: rotate(-90deg);
}

.accordion-content {
    display: none;
    animation: slideDown 0.3s ease;
}

.accordion-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
    }

    .process-box::after {
        content: "▼";
        display: block;
        text-align: center;
        color: var(--admax-blue);
        margin-top: 10px;
    }

    .process-box:last-child::after {
        content: none;
    }

    th {
        display: block;
        width: 100% !important;
    }

    td {
        display: block;
        width: 100%;
    }
}

/* カルーセルの全幅設定 */
.carousel-item {
    height: 65vh;
    /* 画面高さの65%に設定。お好みで調整してください */
    min-height: 400px;
    background: #000;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    /* 画像の比率を保ったまま枠いっぱいに広げる */
    /* 明度を40%〜60%程度に下げると文字が読みやすくなります */
    filter: brightness(0.7);}

/* 文字の背景に重なりを付けて読みやすくする */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 暗めのオーバーレイ */
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 20%;
    padding: 0 5%;
}

.carousel-caption h2 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    border: none;
    /* 既存h2の装飾をリセット */
    color: #fff;
    font-size:2.8rem;
}

/* コントロールボタンのカスタマイズ */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    /* ボタンの反応範囲を少し狭めて誤操作を防止 */
    z-index: 10;
    /* キャプションより前面に出す */
    opacity: 0.5;
    /* 通常時は控えめに表示 */
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    /* ホバーした時だけはっきり見せる */
}

/* 矢印のサイズ調整（お好みで） */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    /* アドマックスブルーの影を少し入れると高級感が出ます */
    filter: drop-shadow(0 0 5px rgba(0, 91, 172, 0.5));
}

/* 地図のフルワイド設定 */
.map-full-width {
    width: 100%;
    line-height: 0;
    /* 下部の微小な隙間を削除 */
    overflow: hidden;
}

/* スマホ表示では少し高さを抑えるとスクロールの邪魔になりにくい */
@media (max-width: 768px) {
    .map-full-width iframe {
        height: 350px;
    }
}
