/* Qt ページ専用スタイル（/solutions/qt/qt.css）。すべて #main-qt 配下に限定。共通クラスは上書きしない。 */
/* 対象: Qtとは（/solutions/qt/whats-qt/）、Qt導入事例（/solutions/qt/implementation-case-studies/） */
/* SP のブレークポイントは共通 CSS（responsive/base-res.css）に合わせて 640px */
/* 2026-10-21: 「Qtに関するお問い合わせ」2 カード（モジュール solution_qt_contact）を Qt 関連 7 ページ（#main-product-detail）でも使うため、お問い合わせ系のセレクタに #main-product-detail を追加 */

/* 共通 */
#main-qt .qt-section { padding: 40px 0 80px; }
#main-qt .qt-ttl, #main-product-detail .qt-contact .qt-ttl { font-size: 2.125rem; font-weight: 700; line-height: 1.5; margin-bottom: 36px; } /* 他ページの見出し（dev-detail-section h3）と同じ大きさ */
#main-qt .qt-lead, #main-product-detail .qt-contact .qt-lead { font-size: 0.9375rem; margin-bottom: 40px; }
#main-qt .qt-section img { display: block; max-width: 100%; height: auto; }

/* 1. 導入 */
#main-qt .qt-intro-body { display: flex; align-items: center; gap: 60px; }
#main-qt .qt-intro-txt { flex: 1 1 50%; font-size: 0.9375rem; }
#main-qt .qt-intro-img { flex: 1 1 50%; margin: 0; }
#main-qt .qt-intro-img img { width: 513px; margin: 0 auto; }

/* 2. 3つのメリット */
#main-qt .qt-merit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
#main-qt .qt-merit { background: #fff; border-radius: 18px; box-shadow: 0 0 20px rgba(67, 75, 87, 0.1); padding: 40px 30px 36px; text-align: center; }
#main-qt .qt-merit-icon { width: auto; height: 48px; margin: 0 auto 16px; }
#main-qt .qt-merit-ttl { font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
#main-qt .qt-merit p { font-size: 0.9375rem; line-height: 1.8; text-align: left; } /* リード文と同じ大きさ */

/* 3. 関連サービス・ソリューション（9 カード） */
#main-qt .qt-services { background-color: #F2F8FD; padding: 80px 0; margin: 40px 0 0; }
#main-qt .qt-service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
#main-qt .qt-service-list > li { display: flex; }
#main-qt a.qt-service { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 8px; padding: 18px 20px 44px; color: #1D1D1D; text-decoration: none; transition: box-shadow 0.2s ease; }
#main-qt a.qt-service:hover { box-shadow: 0 0 20px rgba(67, 75, 87, 0.15); }
#main-qt a.qt-service::after { content: ""; position: absolute; right: 16px; bottom: 14px; width: 22px; height: 22px; border-radius: 50%; border: solid 1px #397BDF; background: #fff no-repeat center / 9px url("/assets/images/common/arrow-blue.svg"); transition: background-color 0.2s ease; }
#main-qt a.qt-service:hover::after { background: #397BDF no-repeat center / 9px url("/assets/images/common/arrow-white-right.svg"); }
#main-qt .qt-tag { align-self: flex-start; display: inline-block; font-size: 0.75rem; font-weight: 700; line-height: 1; padding: 6px 12px; border-radius: 20px; margin-bottom: 10px; color: #1D1D1D; }
#main-qt .qt-tag.-sogo { background-color: #8FDDB4; }
#main-qt .qt-tag.-hanbai { background-color: #F4A7A7; }
#main-qt .qt-tag.-service { background-color: #CDB0F2; }
#main-qt .qt-tag.-kaihatsu { background-color: #E8CC7A; }
#main-qt .qt-tag.-seihin { background-color: #9DBDEB; }
#main-qt .qt-service-ttl { font-size: 1rem; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
#main-qt .qt-service-txt { font-size: 0.8125rem; line-height: 1.6; color: #777; }

/* 4. アイ・エス・ビーのQt導入支援（6 項目、2 列×3 行。リンクにはしない） */
#main-qt .qt-support-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 80px; margin-top: 20px; }
#main-qt .qt-support-item { display: flex; align-items: flex-start; gap: 20px; }
#main-qt .qt-support-num { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: solid 1px #1D1D1D; font-size: 1.125rem; line-height: 1; font-family: "Roboto", sans-serif; }
#main-qt .qt-support-body { flex: 1 1 auto; min-width: 0; }
#main-qt .qt-support-ttl { font-size: 1.5rem; font-weight: 700; line-height: 1.5; margin: 0 0 18px; }
#main-qt .qt-support-sub { color: #397BDF; font-weight: 700; padding-bottom: 12px; margin-bottom: 14px; border-bottom: solid 1px #A8A8A8; }
#main-qt .qt-support-txt { font-size: 0.9375rem; line-height: 1.9; color: #6B6B6B; }

/* 5. Qtでの豊富な開発実績（スライダー。ISB トップと同じ見え方。送るときに左端カードがふわっと消える。qt.js が操作。ボタンとインジケーターは共通 CSS の div.slide-area_btn を流用） */
#main-qt .qt-cases-section { overflow: hidden; background-color: #F4F9FE; padding: 80px 0; margin-top: 40px; }
#main-qt .qt-cases-slider { position: relative; }
#main-qt .qt-slide-viewport { overflow: visible; touch-action: pan-y; }
#main-qt .qt-slide-list { display: flex; gap: 16px; width: max-content; will-change: transform; }
#main-qt .qt-slide { flex: 0 0 auto; display: flex; will-change: opacity; }
#main-qt .qt-slide a { position: relative; display: flex; flex-direction: column; width: 290px; background: #fff; box-shadow: 0 0 12px rgba(67, 75, 87, 0.06); color: #1D1D1D; text-decoration: none; -webkit-user-drag: none; }
#main-qt .qt-slide-img { display: block; aspect-ratio: 289 / 176; overflow: hidden; }
#main-qt .qt-slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; pointer-events: none; }
#main-qt .qt-slide a:hover .qt-slide-img img { transform: scale(1.05); }
#main-qt .qt-slide-body { display: block; padding: 18px 22px 52px; }
#main-qt .qt-slide-ttl { display: block; font-size: 1rem; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
#main-qt .qt-slide-txt { display: block; font-size: 0.8125rem; line-height: 1.6; color: #5C6577; }
#main-qt .qt-slide a::after { content: ""; position: absolute; right: 22px; bottom: 18px; width: 18px; height: 14px; background: no-repeat center / contain url("/assets/images/common/arrow-blue.svg"); transition: transform 0.2s ease; }
#main-qt .qt-slide a:hover::after { transform: translateX(4px); }
#main-qt .qt-cases-slider .slide-area_btn { margin-top: 30px; }
#main-qt .qt-cases-more { margin-top: 50px; }
#main-qt a.qt-btn-more { max-width: 427px; height: 62px; margin: 0 auto; }

/* 6. Qtに関するお問い合わせ（2 カード） */
#main-qt .qt-contact { padding-top: 80px; }
#main-qt .qt-contact-list, #main-product-detail .qt-contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
#main-qt .qt-contact-card, #main-product-detail .qt-contact-card { display: flex; flex-direction: column; border: solid 1px #64B5F6; border-radius: 8px; padding: 28px 46px 20px; background: #fff; }
#main-qt .qt-contact-card.-license, #main-product-detail .qt-contact-card.-license { border-color: #7DDBA6; }
#main-qt .qt-contact-label, #main-product-detail .qt-contact-label { position: relative; font-size: 0.875rem; font-weight: 700; color: #1E88E5; padding-bottom: 12px; margin-bottom: 14px; }
#main-qt .qt-contact-card.-license .qt-contact-label, #main-product-detail .qt-contact-card.-license .qt-contact-label { color: #10A957; }
#main-qt .qt-contact-label::after, #main-product-detail .qt-contact-label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: currentColor; }
#main-qt .qt-contact-ttl, #main-product-detail .qt-contact-ttl { font-size: 1.5rem; font-weight: 700; line-height: 1.5; color: #1B2A4A; margin-bottom: 12px; }
#main-qt .qt-contact-txt, #main-product-detail .qt-contact-txt { font-size: 0.875rem; line-height: 1.8; color: #5C6577; margin-bottom: 20px; flex: 1 1 auto; }
#main-qt a.qt-contact-btn, #main-product-detail a.qt-contact-btn { position: relative; display: flex; align-items: center; justify-content: center; max-width: 400px; height: 50px; padding: 0 48px; border-radius: 25px; background-color: #0A84D6; color: #fff; font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: opacity 0.2s ease; }
#main-qt .qt-contact-card.-license a.qt-contact-btn, #main-product-detail .qt-contact-card.-license a.qt-contact-btn { background-color: #0BAF5C; }
#main-qt a.qt-contact-btn::after, #main-product-detail a.qt-contact-btn::after { content: "→"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1rem; font-weight: 400; }
#main-qt a.qt-contact-btn:hover, #main-product-detail a.qt-contact-btn:hover { opacity: 0.85; }
/* Qt 関連ページ（#main-product-detail の .left-area 内、PC 幅 740px）: 幅が狭いので余白と見出しを詰める。inner-1040 は使わない */
#main-product-detail .qt-contact { padding: 48px 0 0; }
#main-product-detail .qt-contact-card { padding: 24px 24px 20px; }
#main-product-detail .qt-contact-ttl { font-size: 1.25rem; }
#main-product-detail a.qt-contact-btn { padding: 0 40px 0 20px; }

/* 導入事例ページ: 事例 6 ブロック */
#main-qt .qt-cases-lead { margin-bottom: 50px; }
#main-qt .qt-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 30px; }
#main-qt .qt-case { scroll-margin-top: 140px; }
#main-qt .qt-case-img { margin: 0 0 20px; aspect-ratio: 345 / 180; overflow: hidden; border-radius: 4px; }
#main-qt .qt-case-img img { width: 100%; height: 100%; object-fit: cover; }
#main-qt .qt-case-ttl { font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
#main-qt .qt-case-sub { font-size: 0.9375rem; font-weight: 700; color: #397BDF; margin-bottom: 6px; }
#main-qt .qt-case-sub.-dark { color: #1D1D1D; margin-top: 24px; }
#main-qt .qt-case-txt { font-size: 0.8125rem; line-height: 1.9; }
#main-qt .qt-case-txt a { color: #397BDF; }
#main-qt .qt-case-list > li { position: relative; font-size: 0.8125rem; line-height: 1.7; padding-left: 1.1em; margin-bottom: 4px; }
#main-qt .qt-case-list > li::before { content: "●"; position: absolute; left: 0; top: 0; font-size: 0.7em; line-height: 2.4; }

/* 導入事例ページ: 下部メニュー（モジュール solution_qt_bottommenu） */
#main-qt .qt-bottommenu { padding-top: 0; }
#main-qt .qt-bottommenu-box { background-color: #F2F8FD; border-radius: 12px; padding: 40px 40px 56px; }
#main-qt .qt-bottommenu-ttl { font-size: 1.5rem; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
#main-qt .qt-bottommenu-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#main-qt .qt-bottommenu-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; background: #fff; border-radius: 6px; padding: 14px 18px; color: #397BDF; font-size: 0.875rem; font-weight: 700; line-height: 1.5; text-decoration: none; transition: background-color 0.2s ease; }
#main-qt .qt-bottommenu-list a::after { content: ""; flex: 0 0 12px; width: 12px; height: 12px; background: no-repeat center / 12px url("/assets/images/common/arrow-blue.svg"); }
#main-qt .qt-bottommenu-list a:hover { background-color: #E5EFFD; }

/* SP */
@media (max-width: 640px) {
    #main-qt .qt-section { padding: 20px 0 60px; }
    #main-qt .qt-ttl, #main-product-detail .qt-contact .qt-ttl { font-size: 1.5rem; margin-bottom: 24px; }
    #main-qt .qt-lead, #main-product-detail .qt-contact .qt-lead { margin-bottom: 28px; }
    #main-qt .qt-intro-body { flex-direction: column; gap: 30px; }
    #main-qt .qt-merit-list { grid-template-columns: 1fr; gap: 20px; }
    #main-qt .qt-services { padding: 60px 0; }
    #main-qt .qt-service-list { grid-template-columns: 1fr; gap: 12px; }
    #main-qt .qt-intro-img img { width: 100%; }
    #main-qt .qt-support-list { grid-template-columns: 1fr; gap: 40px; }
    #main-qt .qt-support-item { gap: 14px; }
    #main-qt .qt-support-num { width: 34px; height: 34px; font-size: 1rem; }
    #main-qt .qt-support-ttl { font-size: 1.1875rem; margin-bottom: 12px; }
    #main-qt .qt-cases-section { padding: 60px 0; }
    #main-qt .qt-slide a { width: calc(100vw - 100px); }
    #main-qt a.qt-btn-more { height: 56px; }
    #main-qt .qt-contact { padding-top: 60px; }
    #main-qt .qt-contact-list, #main-product-detail .qt-contact-list { grid-template-columns: 1fr; }
    #main-qt .qt-contact-card, #main-product-detail .qt-contact-card { padding: 24px 20px 20px; }
    #main-qt .qt-contact-ttl, #main-product-detail .qt-contact-ttl { font-size: 1.1875rem; }
    #main-qt a.qt-contact-btn, #main-product-detail a.qt-contact-btn { height: auto; min-height: 50px; padding: 8px 40px 8px 20px; font-size: 0.75rem; line-height: 1.4; text-align: center; }
    #main-qt a.qt-contact-btn::after, #main-product-detail a.qt-contact-btn::after { right: 16px; }
    #main-qt .qt-cases-slider .slide-area_btn { margin-top: 20px; }
    #main-qt .qt-cases-slider .slide-area_btn div.btn-container { bottom: auto; margin: 0 auto; top: calc((100vw - 100px) * 176 / 289 / 2 - 21px); }
    #main-qt .qt-cases { grid-template-columns: 1fr; gap: 50px; }
    #main-qt .qt-case { scroll-margin-top: 90px; }
    #main-qt .qt-bottommenu-box { padding: 30px 20px 40px; }
    #main-qt .qt-bottommenu-ttl { font-size: 1.25rem; }
    #main-qt .qt-bottommenu-list { grid-template-columns: 1fr; }
}

/* タブレット（2 カラム） */
@media (min-width: 641px) and (max-width: 1000px) {
    #main-qt .qt-merit-list { grid-template-columns: 1fr; }
    #main-qt .qt-service-list { grid-template-columns: repeat(2, 1fr); }
    #main-qt .qt-support-list { gap: 50px 40px; }
    #main-qt .qt-contact-card, #main-product-detail .qt-contact-card { padding: 24px 24px 20px; }
    #main-product-detail a.qt-contact-btn { height: auto; min-height: 50px; padding: 8px 40px 8px 20px; line-height: 1.4; text-align: center; }
    #main-qt .qt-cases { grid-template-columns: repeat(2, 1fr); }
    #main-qt .qt-bottommenu-list { grid-template-columns: repeat(2, 1fr); }
}
