@charset "utf-8";
body{background-color: #e4ecee;}

h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    border-left: 5px solid var(--main-color);
    padding-left: 15px;
    margin: 60px 0 30px;
}

.concept-box {
    margin-bottom: 40px;
    padding: clamp(20px, 5vw, 30px);
    background: #dae4e6;
    border-radius: 15px;
}

header img {
    padding-left: 0;
}

/* ==========================================================================
   2. Overview Section (概要テーブル)
   ========================================================================== */
.overview-section {
    max-width: 800px; /* 前回の整理に合わせ調整 */
    margin: 40px auto 30px;
    padding: 10px;
}

.overview-table {
    border-top: 1px solid #d9d9d9;
}

.overview-row {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #d9d9d9;
}

/* 汎用ラベルとテーブル用ラベルの共存 */
.overview-row .label {
    flex-shrink: 0;
    width: 140px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--gray-label);
}

.value {
    margin: 0;

    color: var(--text-color);
}

/* ==========================================================================
   3. Tab System (タブ・コンテンツ切り替え)
   ========================================================================== */
.page-tab-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.btn-page-tab {
    flex: 1;
    max-width: 180px;
    padding: 12px;
    font-weight: bold;
    color: #888;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-page-tab.is-active {
    color: #fff;
    background: var(--main-color);
}

.tab-text p {
    display: block;
    padding: 6px;
    text-align: center;
    border-bottom: 1px dotted #b8b8b8;
}

.page-content {
    display: none;
}

.page-content.is-active {
    display: block;
}

/* ==========================================================================
   4. Hero Visual (スマホ・モックアップ表示)
   ========================================================================== */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    margin-bottom: 60px;
}

.hero-device {
    z-index: 1;
    width: 200px;
    transition: all 0.4s ease;
}

.top-mockup {
    position: relative;
    padding: 0 5px 20px;
    background: #7a7a7a;
    border: 6px solid #accfd2;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.top-mockup .screen {
    aspect-ratio: 9 / 19;
    margin-top: 20px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #382929;
}

.top-mockup img {
    display: block;
    width: 100%;
}

/* --- Hero Responsive (Desktop) --- */
@media (min-width: 768px) {
    .hero-visual { gap: 40px; }
    .hero-device { filter: grayscale(1); opacity: 0.4; transform: scale(0.9); }
    .hero-device.is-active {
        filter: grayscale(0); opacity: 1; transform: scale(1.1); z-index: 10;
    }
}

/* --- Hero Responsive (Mobile) --- */
@media (max-width: 767px) {
    .hero-device { position: absolute; width: 170px; }
    .device-top { transform: translateX(-30px) rotate(-5deg); opacity: 0.6; }
    .device-sub { transform: translateX(30px) rotate(5deg); opacity: 0.6; }
    .hero-device.is-active { transform: translateX(0) scale(1.1); opacity: 1; z-index: 10; }
}

/* ==========================================================================
   5. Feature Section (カード型・画像切り替え)
   ========================================================================== */
.feature-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.feature-header h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--main-color);
}

.feature-description {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

/* --- Image Switch Area --- */
.feature-image-area {
    flex: 1.2;
    width: 100%;
    margin-top: 70px;
}

.flat-image-frame {
    line-height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.switch-img {
    display: none;
    width: 100%;
    height: auto;
}

.switch-img.is-active {
    display: block;
}

.switch-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-switch {
    padding: 8px 25px;
    font-weight: bold;
    color: var(--main-color);
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--main-color);
    border-radius: 30px;
}

.btn-switch.is-active {
    color: #fff;
    background: var(--main-color);
}

/* ==========================================================================
   6. Assignment & Improvement (課題と改善ボックス)
   ========================================================================== */
.point-section {
    margin-bottom: 100px;
    padding: 10px;
}

.sub-title-item {
    display: block;
    margin-bottom: 20px;
    padding-left: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    border-left: 4px solid #d1d8e0;
}

.content-box {
    position: relative;
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 12px;
}

/* 課題・改善共通ラベル */
.label {
    display: inline-block;
    padding: 2px 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
}

/* 課題セクション */
.assignment-box {
    background-color: #f5f7f9;
    border: 1px solid #e1e8ed;
}
.assignment-box .label {
    color: #fff;
    background-color: #a5b1c2;
}

/* 改善セクション */
.improvement-box {
    background-color: #f0f9f6;
    border: 1px solid #d1eadd;
}
.improvement-box .label {
    color: #fff;
    background-color: #778ca3; /* 落ち着いたトーン */
}

/* テキスト強調 */
strong {
    color: #2f3542;
    background: linear-gradient(transparent 70%, #dff9fb 70%);
}



/* PC用レイアウト調整 */
@media (min-width: 768px) {
    .feature-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }
    .feature-section:nth-of-type(even) {
        flex-direction: row-reverse;
    }
    .feature-header {
        flex: 1;
    }
}


@media (max-width: 500px) {
    .overview-row {
        display: block;
    }
    .label{padding: 0;}
    .content-box .label{padding: 3px 10px;}
    .content-box{
        padding: 20px 18px;
    }

    .feature-section{
        border-radius: 0px;
    }

    .feature-image-area{margin-top: 0;}
}