/* ========== サポートページ固有スタイル ========== */

/* キービジュアル（support用） */
.keyvisual--support {
    background-image: url('../images/support/bg_keyvisual.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .keyvisual--support {
        background-image: url('../images/support/bg_keyvisual@2x.jpg');
    }
}

/* サポートコンテナ */
.Support-container {
    display: flex;
    gap: 4rem;
    padding-top: 5rem;
    padding-bottom: 8rem;
    margin-left: -10rem;
}

/* サイドバー */
.Support-sidebar {
    width: 28rem;
    flex-shrink: 0;
    position: sticky;
    top: 10rem;
    height: fit-content;
}

.Support-nav {
    background: #fff;
    border: 1px solid #E1E6DF;
    border-radius: 0;
}

.Support-nav__item {
    display: flex;
    align-items: center;
    padding: 1.8rem 2rem;
    cursor: pointer;
    border-bottom: 1px solid #E1E6DF;
    transition: all 0.3s ease;
    color: #6F6F6F;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
}

.Support-nav__item:last-child {
    border-bottom: none;
}

.Support-nav__item:hover {
    background: #F7F7F7;
    color: #009B4C;
}

.Support-nav__item.is-active {
    background: #009B4C;
    color: #fff;
}

.Support-nav__item.is-active .Support-nav__icon svg {
    fill: #fff;
}

.Support-nav__icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.Support-nav__icon svg {
    width: 100%;
    height: 100%;
    fill: #009B4C;
    transition: fill 0.3s ease;
}

/* メインコンテンツ */
.Support-main {
    flex: 1;
    min-width: 0;
}

.Support-section {
    display: none;
    background: #fff;
    border: none;
    padding: 0;
}

.Support-section.is-active {
    display: block;
}

.Support-section__title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #009B4C;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #009B4C;
}

.Support-section__description {
    font-size: 1.6rem;
    color: #6F6F6F;
    margin-bottom: 3rem;
    line-height: 1.875;
}

/* AIチャットセクション */
.Chat-catchcopy {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.Chat-iframe-wrapper {
    display: flex;
    justify-content: center;
    margin: 12rem 0 3rem;
}

.Chat-iframe-inner {
    position: relative;
    display: inline-block;
}

.Chat-iframe-wrapper iframe {
    max-width: 100%;
    border: 1px solid #E1E6DF;
    display: block;
}

.Chat-kuma {
    position: absolute;
    top: -100px;
    left: 10px;
    width: 150px;
    height: 150px;
    z-index: 10;
}

.Chat-notice {
    background: #F7F7F7;
    padding: 1.5rem 2rem;
    font-size: 1.4rem;
    color: #6F6F6F;
    text-align: center;
}

/* モバイルのみ表示 */
.sp-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* FAQ（アコーディオン） */
.Faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.Faq-item {
    border: 1px solid #E1E6DF;
}

.Faq-question {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: #F7F7F7;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.Faq-question:hover {
    background: #E1E6DF;
}

.Faq-question.is-open {
    background: #009B4C;
    color: #fff;
}

.Faq-question__icon {
    width: 3.2rem;
    height: 3.2rem;
    background: #009B4C;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.Faq-question.is-open .Faq-question__icon {
    background: #fff;
    color: #009B4C;
}

.Faq-question__text {
    flex: 1;
    font-size: 1.6rem;
    font-weight: 500;
}

.Faq-question__toggle {
    width: 2.4rem;
    height: 2.4rem;
    position: relative;
    flex-shrink: 0;
}

.Faq-question__toggle::before,
.Faq-question__toggle::after {
    content: '';
    position: absolute;
    background: #6F6F6F;
    transition: transform 0.3s ease, background 0.3s ease;
}

.Faq-question.is-open .Faq-question__toggle::before,
.Faq-question.is-open .Faq-question__toggle::after {
    background: #fff;
}

.Faq-question__toggle::before {
    width: 1.6rem;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.Faq-question__toggle::after {
    width: 2px;
    height: 1.6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.Faq-question.is-open .Faq-question__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.Faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.Faq-answer.is-open {
    max-height: 50rem;
}

.Faq-answer__inner {
    padding: 2rem;
    background: #fff;
    display: flex;
    align-items: flex-start;
}

.Faq-answer__icon {
    width: 3.2rem;
    height: 3.2rem;
    background: #f39c12;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.Faq-answer__text {
    font-size: 1.5rem;
    line-height: 1.875;
    color: #6F6F6F;
}

.Faq-contact-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #009B4C;
    text-decoration: none;
    font-weight: 500;
}

.Faq-contact-link:hover {
    text-decoration: underline;
}

/* 取扱説明書ライブラリ */
.Manual-guide {
    background: #F7F7F7;
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.Manual-guide__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.Manual-guide__image {
    background: #fff;
    border: 2px dashed #E1E6DF;
    padding: 4rem;
    margin-bottom: 2rem;
}

.Manual-guide__image img {
    max-width: 45rem;
    width: 100%;
    height: auto;
}

.Manual-guide__caption {
    font-size: 1.4rem;
    color: #6F6F6F;
    line-height: 1.8;
}

/* セルフメンテナンスガイド */
.Maintenance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.Maintenance-card {
    background: #F7F7F7;
    padding: 3rem;
}

.Maintenance-card__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
}

.Maintenance-card__subtitle {
    font-size: 1.4rem;
    color: #6F6F6F;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E1E6DF;
}

.Maintenance-step {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.Maintenance-step:last-child {
    margin-bottom: 0;
}

.Maintenance-step__number {
    background: #009B4C;
    color: #fff;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 2rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.Maintenance-step__content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.Maintenance-step__content p {
    font-size: 1.4rem;
    color: #6F6F6F;
    line-height: 1.7;
}

.Maintenance-merit {
    display: flex;
    margin-bottom: 2rem;
}

.Maintenance-merit:last-of-type {
    margin-bottom: 2.5rem;
}

.Maintenance-merit__icon {
    width: 4rem;
    height: 4rem;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.Maintenance-merit__icon svg {
    width: 2rem;
    height: 2rem;
    fill: #fff;
}

.Maintenance-merit__content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.Maintenance-merit__content p {
    font-size: 1.4rem;
    color: #6F6F6F;
    line-height: 1.7;
}

/* エラーコード検索 */
.Error-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.Error-tab {
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #009B4C;
    background: #fff;
    color: #009B4C;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.Error-tab:hover {
    background: #e8f5e9;
}

.Error-tab.is-active {
    background: #009B4C;
    color: #fff;
}

.Error-panel {
    display: none;
}

.Error-panel.is-active {
    display: block;
}

.Error-search-box {
    margin-bottom: 2.5rem;
}

.Error-search-input {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    border: 1px solid #E1E6DF;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.Error-search-input:focus {
    outline: none;
    border-color: #009B4C;
}

.Error-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2.5rem;
}

.Error-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.Error-table th {
    background: #009B4C;
    color: #fff;
    padding: 1.5rem;
    text-align: left;
    font-weight: 500;
}

.Error-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #E1E6DF;
    vertical-align: top;
}

.Error-table tr:hover td {
    background: #F7F7F7;
}

.Error-code {
    font-weight: 700;
    color: #009B4C;
    white-space: nowrap;
}

.Error-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
}

.Error-type.is-indoor {
    background: #e8f5e9;
    color: #2e7d32;
}

.Error-type.is-outdoor {
    background: #fff3e0;
    color: #e65100;
}

.Error-type.is-system {
    background: #e3f2fd;
    color: #1565c0;
}

.Error-type.is-warning {
    background: #fff8e1;
    color: #f57f17;
}

.Error-type.is-info {
    background: #f3e5f5;
    color: #7b1fa2;
}

.Error-notice {
    background: #F7F7F7;
    padding: 1.5rem 2rem;
    font-size: 1.4rem;
    color: #6F6F6F;
}

.Error-notice-link {
    color: #009B4C;
    text-decoration: none;
    font-weight: 500;
}

.Error-notice-link:hover {
    text-decoration: underline;
}

/* 修理・点検のご相談 */
.Repair-intro {
    margin-bottom: 3rem;
}

.Repair-intro .Support-section__description {
    text-align: left;
}

.Repair-advice {
    background: #F7F7F7;
    border-left: 4px solid #009B4C;
    padding: 2rem;
    margin-top: 3rem;
}

.Repair-advice__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.Repair-advice p {
    font-size: 1.4rem;
    color: #6F6F6F;
    line-height: 1.7;
}

/* ボタンセンター配置 */
.Button-center {
    text-align: center;
}

.Button-center .Button {
    display: inline-block;
}

/* モバイルメニュー */
.Support-mobile-toggle {
    display: none;
    width: 100%;
    padding: 1.5rem;
    background: #009B4C;
    color: #fff;
    border: none;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.Support-mobile-toggle svg {
    width: 2rem;
    height: 2rem;
    fill: #fff;
}

/* ========== レスポンシブ ========== */

@media screen and (max-width:968px) {
    .Support-container {
        flex-direction: column;
        padding-top: 3rem;
        gap: 2.5rem;
        margin-left: 0;
    }

    .Support-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .Support-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        background: transparent;
        border: none;
    }

    .Support-nav__item {
        flex: 1 1 calc(33.333% - 1rem);
        min-width: 18rem;
        background: #fff;
        border: 1px solid #E1E6DF;
        justify-content: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .Support-nav__item.is-active {
        border-color: #009B4C;
    }

    .Support-nav__icon {
        margin-right: 0.8rem;
    }

    .Support-section {
        padding: 3rem 2rem;
    }

    .Maintenance-grid {
        grid-template-columns: 1fr;
    }

    .keyvisual__inner {
        height: 30rem;
    }

    .keyvisual__title {
        font-size: 2.4rem;
    }
}

@media screen and (max-width:768px) {
    .Support-mobile-toggle {
        display: flex;
        font-size: 3rem;
        padding: 1.8rem;
    }

    .Support-nav {
        display: none;
        flex-direction: column;
    }

    .Support-nav.is-open {
        display: flex;
    }

    .Support-nav__item {
        flex: none;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        font-size: 2.6rem;
        padding: 2rem;
    }

    .Support-nav__icon {
        width: 3.2rem;
        height: 3.2rem;
    }

    .Support-section {
        padding: 2.5rem 1.5rem;
    }

    .Support-section__title {
        font-size: 4.2rem;
    }

    .Support-section__description {
        font-size: 2.6rem;
        line-height: 1.9;
    }

    .Chat-catchcopy {
        font-size: 3rem;
    }

    .Chat-description {
        font-size: 2.6rem;
    }

    .Chat-notice {
        font-size: 2.6rem;
    }

    .Chat-iframe-wrapper {
        margin-left: 0;
        margin-right: 0;
        margin-top: 15rem;
    }

    .Chat-iframe-inner {
        width: 100%;
    }

    .Chat-kuma {
        width: 100px;
        height: 100px;
        top: -80px;
        left: 10px;
        right: auto;
    }

    .Chat-iframe-wrapper iframe {
        width: 100%;
        height: 75rem;
    }

    .Faq-question {
        padding: 2rem;
    }

    .Faq-question__icon,
    .Faq-answer__icon {
        width: 4rem;
        height: 4rem;
        font-size: 2.4rem;
    }

    .Faq-question__text {
        font-size: 2.6rem;
    }

    .Faq-answer__text {
        font-size: 2.6rem;
        line-height: 1.9;
    }

    .Faq-contact-link {
        font-size: 2.6rem;
    }

    .Error-table {
        font-size: 2.4rem;
    }

    .Error-table th,
    .Error-table td {
        padding: 1.2rem 1rem;
        vertical-align: middle;
    }

    /* コード列を中央揃え・一行に収める */
    .Error-table th:first-child,
    .Error-table td:first-child {
        text-align: center;
        white-space: nowrap;
    }

    /* 種別列を中央揃え */
    .Error-table th:nth-child(2),
    .Error-table td:nth-child(2) {
        text-align: center;
    }

    /* 種別のラベルを大きく */
    .Error-type {
        font-size: 2.2rem;
        padding: 0.5rem 1rem;
    }

    /* 症状・内容列のテキストサイズを小さく */
    .Error-table td:nth-child(3) {
        font-size: 2rem;
    }

    .Error-tabs {
        gap: 1.5rem;
    }

    .Error-tab {
        padding: 1.5rem 3rem;
        font-size: 2.4rem;
    }

    .Error-search-input {
        font-size: 2.6rem;
    }

    .Error-notice {
        font-size: 2.4rem;
    }

    .Manual-guide {
        padding: 3rem;
    }

    .Manual-guide__title {
        font-size: 3.2rem;
    }

    .Manual-guide__caption {
        font-size: 2.6rem;
        line-height: 1.9;
    }

    .Maintenance-card {
        padding: 3rem;
    }

    .Maintenance-card__title {
        font-size: 3.2rem;
    }

    .Maintenance-card__subtitle {
        font-size: 2.6rem;
    }

    .Maintenance-step__number {
        font-size: 2.4rem;
        padding: 0.8rem 2.5rem;
    }

    .Maintenance-step__content h4 {
        font-size: 2.8rem;
    }

    .Maintenance-step__content p {
        font-size: 2.6rem;
        line-height: 1.8;
    }

    .Maintenance-merit__content h4 {
        font-size: 2.8rem;
    }

    .Maintenance-merit__content p {
        font-size: 2.6rem;
        line-height: 1.8;
    }

    .Repair-checklist li {
        font-size: 2.6rem;
    }

    .Repair-advice__title {
        font-size: 3rem;
    }

    .Repair-advice p {
        font-size: 2.6rem;
        line-height: 1.8;
    }

    .keyvisual__inner {
        height: 25rem;
        padding-top: 12.6rem;
    }

    .keyvisual__title {
        font-size: 4.2rem;
    }

    .keyvisual__title::before {
        font-size: 2rem;
    }
}

/* アクセシビリティ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカススタイル */
.Support-nav__item:focus,
.Faq-question:focus,
.Error-search-input:focus {
    outline: 2px solid #009B4C;
    outline-offset: 2px;
}

/* アニメーション軽減設定対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 緑色ボタン */
.Button--green {
    max-width: 45rem;
}
.Button--green a {
    background: #009B4C;
    border-color: #009B4C;
    padding: 0 4rem;
}
.Button--green a:hover {
    background: #fff;
    color: #009B4C;
}
.Button--green a::after {
    background-image: url('../images/common/icon_arrow-white.svg');
}
.Button--green a:hover::after {
    background-image: url('../images/common/icon_arrow-green.svg');
}

/* ボタン余白調整 */
.Button-center .Button a {
    padding: 1.5rem 4rem;
    height: auto;
}

/* ステップ画像 */
.Maintenance-step__image {
    margin-bottom: 1rem;
    max-width: 30rem;
}
.Maintenance-step__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* モバイル用ボタン調整 */
@media screen and (max-width: 768px) {
    .Button--green {
        max-width: 100%;
    }
    .Button-center .Button,
    .Repair-intro .Button {
        max-width: 100%;
    }
    .Button-center .Button a,
    .Repair-intro .Button a {
        padding: 1.4rem 4.5rem 1.4rem 1.5rem;
        font-size: 18px;
    }
    .Button-center .Button a::after,
    .Repair-intro .Button a::after {
        right: 1rem;
        width: 1rem;
        height: 0.7rem;
    }
}
