@charset "utf-8";

:root {
    --color-blue-main: #005bac;
    --color-accent: #ff8c00;
    --color-text: #333;
    --cts-width: 1400px;
    --dp-font-jp: 'Noto Sans JP', sans-serif;
}

/* 基本設定 */
body {
    margin: 0;
    font-family: var(--dp-font-jp);
    color: var(--color-text);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.contents__inner {
    max-width: var(--cts-width);
    margin: 0 auto;
    padding-left: 65px;
    padding-right: 65px;
    box-sizing: border-box;
}

.contents { padding: 80px 0; }
.center { text-align: center; }
.ttl-h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: var(--color-blue-main); margin-bottom: 10px; }
.ttl-sub { font-size: 18px; color: #666; margin-bottom: 50px; }

/* 共通パーツ */
.arrow::after,
.btn-detail::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    vertical-align: middle;
    margin-left: 12px;
    transition: 0.3s;
}
.arrow::after { transform: translateY(-2px) rotate(135deg); }
.btn-detail::after { transform: translateY(-1px) rotate(45deg); }

/* --- Hero Section --- */
.contents--hero {
    background: url('../../../contents/ads-biz-1/img/bg.webp') no-repeat center center / cover;
    padding: 0;
    color: var(--color-text);
}
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 650px;
}
.hero-left { width: 50%; z-index: 2; }
.hero-label {
    display: inline-block;
    color: #e60012;
    font-size: 36px;
    font-weight: 700;
}
.hero-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    margin: 5px 0 20px;
}
.hero-sub {
    font-size: 18px;
    margin-bottom: 35px;
    color: #444;
}
.hero-right { width: 50%; text-align: right; }
.hero-right img { 
    max-width: 100%; 
    height: auto; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-link:hover { opacity: 0.9; transform: translateY(-2px); }

/* --- Model Cards (修正済み) --- */
.model-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

.model-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 30px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible; /* バッジを縁に合わせるためvisibleに変更 */
}

.model-catch {
    display: block;
    width: calc(100% + 40px);
    margin: -30px -20px 20px -20px;
    background: #f4f7fa;
    color: var(--color-blue-main);
    padding: 12px 0;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
}

/* バッジ：右上に吸着 [修正点] */
.badge-recommend {
    position: absolute;
    top: -30px;
    right: 0;
    background: #e60012;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 4px 4px 0 0;
    z-index: 5;
}

/* 商品名：高さを揃える [修正点] */
.model-name {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--color-blue-main);
    padding-bottom: 8px;
    margin-bottom: 15px;
    min-height: 3em; /* 2行分程度の高さを確保 */
    display: flex;
    align-items: center;
}

.model-img-box {
    text-align: center; margin: 15px 0; height: 270px;
    display: flex; align-items: center; justify-content: center;
}
.model-img-box img { max-height: 100%; }
.model-spec-list { list-style: none; padding: 0; font-size: 13px; margin-bottom: 20px; flex-grow: 1; }
.model-spec-list li { padding: 5px 0; border-bottom: 1px dashed #eee; }
.model-price { font-size: 24px; font-weight: 700; color: #e60012; text-align: center; margin-bottom: 15px; }
.tax { font-size: 0.7em; }

.btn-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #555;
    color: #fff;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
}
.btn-detail:hover { background: var(--color-blue-main); }

/* --- Other Grids --- */
.card-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}
.card-item {
    background: #fff;
    padding: 40px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
}
.card-item .icon { font-size: 40px; margin-bottom: 15px; }
.card-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

/* AI Section */
.ai-chat-area {
    background: #fff;
    border: 2px solid var(--color-blue-main);
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.ai-input-wrap { display: flex; gap: 10px; margin-top: 20px; }
.ai-input-wrap input { flex-grow: 1; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.ai-input-wrap button { background: var(--color-blue-main); color: #fff; border: none; padding: 0 25px; border-radius: 4px; cursor: pointer; font-weight: 700; }

/* Animation */
.fade-in { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-bottom { transform: translateY(30px); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

.pc { display: block; }
.sp { display: none; }

/* --- Responsive --- */
@media screen and (max-width: 767px) {
    .pc { display: none; }
    .sp { display: block; }
    .contents__inner { padding-left: 20px; padding-right: 20px; }
    .contents { padding: 50px 0; }
	.contents--hero { padding: 0;}
    .hero-flex {
        flex-direction: column;
        justify-content: center;
        aspect-ratio: 750 / 876;
        min-height: auto;
        padding: 40px 20px 0;
        text-align: center;
    }
    .hero-left, .hero-right { width: 100%; }
    .hero-label {font-size: 20px;}
    .hero-title { font-size: 28px; margin: 5px 0 15px; }
    .hero-sub { font-size: 15px; margin-bottom: 25px; }
    .hero-right { margin-top: 20px; }
    .hero-right img { max-width: 85%; margin: 0 auto; }

    .card-grid, .model-grid { grid-template-columns: 1fr; gap: 20px; }
    /* スマホ時は高さを自動に戻す（1列なので揃える必要がないため） */
    .model-name { min-height: auto; } 
    .ai-input-wrap { flex-direction: column; }
    .ai-input-wrap button { padding: 12px; }
}