/* 全体のトーン調整 */
body {
    font-family: 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    background-color: #f5f7f9; /* わずかに青みのあるグレーで清潔感を */
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

.title {
    text-align: center;
    padding: 60px 0 40px;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #1a2a3a;
    text-transform: uppercase;
}

/* タブ全体のコンテナ */
.tabs {
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

/* ラジオボタンを隠す */
.tabs input[type="radio"] {
    display: none;
}

/* タブのラベル（ボタン）のデザイン */
.tabs label {
    display: inline-block;
    padding: 12px 35px;
    margin: 0 5px 15px 0;
    background: #e0e4e8;
    color: #7f8c8d;
    cursor: pointer;
    border-radius: 4px; /* スタイリッシュな微小の角丸 */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* ホバーと選択時の挙動 */
.tabs label:hover {
    background: #d1d8dd;
}

.tabs input[type="radio"]:checked + label {
    background: #1a2a3a; /* 深みのあるネイビー */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* タブ内容のエリア */
.tab_contents {
    display: none;
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin-top: 10px;
}

/* 選択されたタブのみ表示 */
input#mobilej_tab:checked ~ #mobilej_content,
input#bijoude_tab:checked ~ #bijoude_content,
input#iqserver_tab:checked ~ #iqserver_content {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* コンテンツ内の見出し（h2）は非表示（または控えめに） */
.tab_contents h2 {
    font-size: 1.2rem;
    border-left: 4px solid #1a2a3a;
    padding-left: 15px;
    margin-bottom: 40px;
    color: #1a2a3a;
}

/* 画像の並び（行） */
.row {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* 下揃えにすることでサイズ違いも綺麗に見えます */
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.row:last-child {
    border-bottom: none;
}

/* 各画像ユニット */
.row div {
    flex: 0 1 auto;
    text-align: center;
}

.row h3 {
    font-size: 0.75rem;
    color: #95a5a6;
    margin-bottom: 15px;
    font-weight: 400;
}

/* 画像の装飾 */
.row img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.row img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* モーダル */
#imgModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* 白背景の高級感 */
    justify-content: center;
    align-items: center;
}

#imgModal img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

#closeModal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #1a2a3a;
    font-size: 50px;
    font-weight: 200;
    cursor: pointer;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .tab_contents {
        padding: 30px 20px;
    }
}