/* FV */
.event-page-fv {
    margin: 0 auto;
    display: flex;
}

.event-page-fv .fv-inner {
    display: grid;
    grid-template-columns: 5fr 5fr;
    min-height: 70vh;
}

.event-page-fv .fv-text {
    padding-left: 10%;
    padding-right: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.event-page-fv .fv-text .mv-text {
    margin: 4rem 0 5.6rem;
}

.event-page-fv .fv-text .contact-button {
    margin: 0;
}

.fv-image img {
    width: 100%;
    height: 95%;
    object-fit: cover;
}

/* お悩み */
.worries-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.worries-box {
    border-radius: 0 20px 0 20px;
    box-sizing: border-box;
}
.worries-box.box-shadow {
    box-shadow: 0px 4px 20px rgb(0 0 0 / 0.08);
}


/* アイコン＋見出し */
.worries-head {
    border-radius: 0 20px 0 0;
    background-color: #eae9e9;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 1.2rem;
    padding: 2rem 2.4rem;
}

.worries-icon {
    width: 30px;
    flex-shrink: 0;
}

.worries-icon img {
    width: 100%;
    height: auto;
}

.worries-title {
    font-size: 2rem;
}

/* 説明文 */
.worries-desc {
    text-align: left;
    padding: 2.4rem 4rem;
}

/* 矢印 */
.icon-box {
    max-width: 50px;
    width: 100%;
    margin: 8rem auto;
}

/* 解決 */
.ranobe-pop h3 .font {
    font-family: "Noto Sans JP", sans-serif;
}

.solution-wrapper .ranobe-pop h3 {
    position: relative;
    display: inline-block;
    /* 装飾を文字にフィットさせる */
    padding: 0 1.5rem;
    /* テキストと装飾の間隔調整 */
}

.solution-wrapper .ranobe-pop h3::before,
.solution-wrapper .ranobe-pop h3::after {
    content: "";
    position: absolute;
    bottom: 22px;
    width: 40px;
    /* 装飾の長さ（調整可） */
    height: 6px;
    /* 太さ4px */
    background: #6285FC;
    border-radius: 4px;
    /* 丸みを持たせる */
}

.solution-wrapper .ranobe-pop h3::before {
    left: 16px;
    transform: translate(-120%, -50%) rotate(60deg);
}

.solution-wrapper .ranobe-pop h3::after {
    right: 16px;
    transform: translate(120%, -50%) rotate(-60deg);
}

/* 解決 */
.solution-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 8rem;
}

.solution-text-box {
    flex: 1;
    text-align: left;
    padding: 12rem 4rem 8rem 8rem;
}

.solution-text-box h4 {
    font-size: 3rem;
    color: #2253E6;
    font-weight: 700;
    margin-bottom: 2.4rem;
}

.solution-img {
    flex: 1;
}

.solution-img img {
    aspect-ratio: 16/9;
    height: 100%;
    object-fit: cover;
}

/* 左上ラベルSOLUTION */
.solution-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto;
    background-color: #6285FC;
    width: fit-content;
    color: #ffffff;
    padding: 1.6rem 6.4rem;
    border-radius: 20px 0 20px 0;
    position: absolute;
}

.solution-number .step {
    font-size: 2rem;
    border-bottom: 1px solid #ffffff;
}

.solution-number .step-number {
    font-size: 3.2rem;
    line-height: 0;
}

/* 機能 */
.event-functions {
    background-color: #f5f7ff;
    padding: 8rem 0;
}

.event-functions-inner {
    max-width: 1600px;
    width: 90%;
    margin: 0 auto;
}

/* 見出し */
.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 4.8rem;
    z-index: 1;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1.3em;
    width: 100%;
    height: 15px;
    background-color: #e0e6ff;
    z-index: 0;
}

/* カード一覧 */
.functions-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem 4rem;
    max-width: 100%;
    margin: 0 auto;
}

/* カード */
.function-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.4rem;
}

.function-image {
    margin-bottom: 1.6rem;
}

.function-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.function-card h3 {
    font-size: 2rem;
    margin-bottom: 2.4rem;
    position: relative;
    display: inline-block;
    z-index: 1;
    white-space: nowrap;
}

.function-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12px;
    background-color: #eceffd;
    z-index: -1;
}

.function-card p {
    text-align: left;
}

/* おすすめ機種 */
section.stared-devices {
    width: 90%;
}

.tab-container.sp-only {
    display: none;
}

.tab-container {
    display: flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    border: 5px solid #6285FC;
}

/* 左側のタブリスト */
.tab-menu {
    max-width: 400px;
    width: 100%;
    background: #F8FBFF;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    border-radius: 15px 0 0 15px;
}

.tab-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-radius: 0;
    color: #636363;
}

.tab-menu button.active {
    background: #6285FC;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
}

.tab-menu button:first-child.active {
    border-radius: 10px 0 0 0;
}

.tab-menu button:nth-child(5).active {
    border-radius: 0 0 0 10px;
}

.tab-menu button img.tab-arrow {
    width: 20px;
    height: 20px;
}

.tab-menu button:hover {
    opacity: 0.7;
}

.tab-menu button.active:hover {
    opacity: 1;
}

/* 右側のタブ内容領域 */
.tab-contents {
    flex: 1;
}

.tab-contents-wrapper.pc-only {
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    padding: 26px;
}

.tab-content h3 {
    font-size: 2rem;
    color: #2253E6;
}

.tab-device-wrapper {
    display: flex;
    /* ---------- 組み合わせの時は横並びに ---------- */
    justify-content: center;
    align-items: center;
    gap: 2.4rem;
    margin: 3.2rem auto -0.8rem;
}

.tab-device-wrapper .icon-box {
    max-width: 25px;
    margin: 0;
}

.tab-device-box {
    max-width: 160px;
    width: 100%;
    min-height: 137px;
    padding: 0.8rem 2rem 1.6rem;
    border-radius: 10px;
}

.tab-device-box p {
    font-size: 1.6rem;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 8px;
}

.tab-device-box .device-box-img img {
    max-height: 100px;
    height: 100%;
    margin: 0 auto;
}

/* 金額 */
.device-price-wrapper {
    display: inline-block;
    position: relative;
    font-weight: 700;
}

/* 文字の後ろに線（背景色）を引く */
.device-price-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1.3em;
    width: 100%;
    height: 15px;
    background-color: #eceffd;
    z-index: 0;
}

/* 文字を前面に出す */
.device-price-wrapper>span {
    position: relative;
    z-index: 1;
}

.device-price-wrapper .price {
    font-weight: 700;
    font-size: 4.5rem;
    padding: 0 1.6rem;
    display: inline-block;
}

/* お見積もりバージョン（文字だけ小さく） */
.device-price-wrapper .price.small {
    font-size: 4.5rem;
    line-height: 1.2;
    padding: 0 0.4rem;
}

.device-price-wrapper .yen {
    font-size: 4rem;
}

.device-price-wrapper .slash,
.device-price-wrapper .week {
    font-size: 2.5rem;
}

.tab-content .contact-button {
    margin-top: 2.4rem;
}

/* よくある質問 */
.faq-section {
    max-width: 1000px;
    width: 100%;
    text-align: left;
    margin: 0 auto;
    border: 5px solid #6285FC;
    border-radius: 20px;
}

.faq-section:first-child {
    margin: 0 auto;
}

.answer-text {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-mark {
    flex-shrink: 0;
    color: #6285FC;
    margin-right: 2.4rem;
    font-weight: 700;
}

.answer-text .faq-mark {
    color: #FF7979;
}

.faq-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.faq-item {
    border-bottom: 1px solid #6285FC;
}

.faq-item:last-of-type {
    border-bottom: none;
}

.faq-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.faq-category-title {
    font-weight: bold;
    margin-bottom: 2.4rem;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    background: #ffffff;
    border: none;
    padding: 2.4rem;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
    border-radius: 20px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    font-size: 30px;
    color: #6285FC;
}

.faq-item.active .faq-question::after {
    content: '−';
    color: #6285FC;
    font-size: 30px
}

.faq-text {
    font-weight: 700;
}

.faq-answer {
    background: #fff;
    padding-left: 2.4rem;
}

.faq-item:last-child .faq-answer {
    border-radius: 0 0 20px 20px;
    /* 下だけ角丸 */
}

/* 他ページへ */
.other-event {
    padding: 16rem 0;
}

.other-event-buttons {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.other-event-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 300px;
    width: 100%;
    padding: 1.6rem 0;
    border-radius: 10px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(90deg, #506FD6 0%, #6285FC 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-event-btn img {
    width: 0.8rem;
    height: auto;
}

.other-event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}



/* FV */
@media screen and (max-width: 1100px) {
    .event-page-fv .fv-inner {
        display: flex;
        flex-direction: column-reverse;
        justify-content: start;
    }

    .fv-image img {
        aspect-ratio: 2 / 1;
        height: 100%;
        object-position: bottom;
    }

    .event-page-fv .fv-text {
        padding: 0;
        text-align: center;
        margin-top: 1.6rem;
    }

    .event-page-fv .fv-text .mv-text {
        margin: 2.4rem 0 4rem;
    }

    .event-page-fv .fv-text .contact-button {
        margin: auto;
    }
}

/* お悩み */
/* -------------------------
   Tablet以下（1列）
------------------------- */
@media screen and (max-width: 1120px) {
    .worries-inner {
        max-width: 90%;
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* -------------------------
   Smartphone
------------------------- */
@media screen and (max-width: 599px) {

    .worries-head {
        gap: 1em;
        padding: 1.6rem;
    }

    .worries-icon {
        width: 24px;
    }

    .worries-title {
        font-size: 1.6rem;
    }

    .worries-desc {
        padding: 1.6rem 2.4rem;
    }
}

/* 解決 */
@media screen and (max-width: 1120px) {
    .solution-inner {
        width: 90%;
    }

    .solution-text-box {
        padding: 10rem 4rem;
    }

    .solution-number {
        padding: 1.6rem 4rem;
    }

    .solution-text-box h4 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .solution-inner {
        margin: 0 auto 4rem;
    }

    .solution-text-box {
        padding: 6.4rem 2.4rem 3.2rem;
    }

    .solution-text-box h4 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .icon-box {
        max-width: 30px;
        margin: 4rem auto;
    }

    .solution-wrapper .ranobe-pop h3 {
        font-size: 1.8rem;
    }

    .solution-wrapper .ranobe-pop h3::before,
    .solution-wrapper .ranobe-pop h3::after {
        bottom: 14px;
        width: 30px;
        /* 装飾の長さ（調整可） */
        height: 4px;
        /* 太さ4px */
    }

    /* SOLUTIONラベル */
    .solution-number {
        padding: 1.2rem 2.4rem;
    }

    .solution-number .step {
        font-size: 1.4rem;
    }

    .solution-number .step-number {
        font-size: 2.5rem;
        margin-bottom: 0.1em;
    }

    .solution-img.bottom img {
        object-position: top;
    }
}

@media screen and (max-width: 700px) {
    .solution-inner {
        display: block;
    }

    .solution-img img {
        height: auto;
    }
}

/* 機能 */
@media screen and (max-width: 1600px) {
    .functions-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-functions-inner {
        width: 80%;
    }

    .function-card {
        padding: 2.4rem 6rem;
    }
}

@media screen and (max-width: 1000px) {
    .functions-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .function-card {
        padding: 2.4rem 7rem;
    }

    .event-functions-inner {
        width: 90%;
    }
}

@media screen and (max-width: 555px) {
    .section-title {
        font-size: 2rem;
    }

    .function-card {
        padding: 2.4rem;
    }

    .function-card h3 {
        font-size: 1.6rem;
    }
}

/* ---------- おすすめタブレット（アコーディオン） ---------- */
@media (max-width: 1000px) {
    .tab-container.sp-only {
        display: block;
        overflow: hidden;
        width: 95%;
    }

    .pc-only {
        display: none;
    }

    .tab-content h3 {
        color: #6285fc;
    }

    .tab-content.active {
        padding: 0;
    }

    .tab-container {
        flex-direction: column;
        box-shadow: none;
    }

    .tab-menu {
        display: none;
        /* 左メニューは非表示 */
    }

    .tab-contents {
        padding: 0;
        overflow: hidden;
    }

    .tab-item {
        border-bottom: 2px solid #ffffff;
    }

    .tab-item:last-child {
        border: none;
    }

    .tab-container.sp-only .tab-item:first-child .tab-toggle {
        border-radius: 15px 15px 0 0;
        /* 左上・右上 */
    }

    /* 最後のタブで、閉じているときだけ角丸 */
    .tab-container.sp-only .tab-item:last-child .tab-toggle:not(.active) {
        border-radius: 0 0 15px 15px;
    }

    /* 開いた時は角丸なし */
    .tab-container.sp-only .tab-item:last-child .tab-toggle.active {
        border-radius: 0;
    }

    /* ＋マーク */
    .tab-toggle::after {
        content: '+';
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 3rem;
        color: #ffffff;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* アクティブ時（−マーク） */
    .tab-toggle.active::after {
        content: '−';
        color: #ffffff;
    }

    .tab-container.sp-only .tab-toggle {
        width: 100%;
        text-align: left;
        padding: 16px 24px;
        font-size: 20px;
        border: none;
        background: #6285FC;
        color: #ffffff;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .tab-container.sp-only .tab-body h3 {
        color: #2253E6;
    }

    .tab-container.sp-only .tab-body.active {
        display: block;
    }

    .tab-container.sp-only .tab-item .tab-arrow {
        width: 15px;
    }

    .tab-container.sp-only .tab-item .tab-body a {
        display: block;
    }

    .device-price-wrapper::after {
        bottom: 1em;
    }

    .tab-container.sp-only .tab-item .tab-body a {
        margin: 1.6rem auto 0;
    }
}

/* ---------- おすすめSP（アコーディオン） ---------- */
@media (max-width: 768px) {
    .tab-container.sp-only .tab-toggle {
        font-size: 1.6rem;
        padding: 1.6rem;
    }

    .tab-toggle::after {
        font-size: 2rem;
    }
}

@media (max-width: 550px) {
    .tab-container.sp-only .tab-toggle {
        padding: 1.6rem 0.8rem;
    }

    .tab-container.sp-only .tab-body h3 {
        font-size: 1.6rem;
    }

    .tab-container.sp-only .tab-body {
        padding: 0 8px;
    }

    .tab-device-wrapper {
        gap: 1rem;
        margin: 4rem auto 0;
    }

    .tab-device-box {
        max-width: 110px;
        padding: 1.6rem;
        min-height: fit-content;
        position: relative;
    }

    .tab-device-box p {
        font-size: 1.3rem;
        font-weight: 600;
        position: absolute;
        top: -24px;
        left: 50%;
        transform: translateX(-50%);
    }

    .tab-device-wrapper .icon-box {
        max-width: 20px;
    }

    .device-price-wrapper .yen,
    .device-price-wrapper .slash {
        font-size: 3rem;
    }

    .device-price-wrapper .week {
        font-size: 2rem;
    }

    .device-price-wrapper::after {
        bottom: 0.5em;
        height: 10px;
    }

    .device-price-wrapper.small::after {
        bottom: 0;
    }

    .device-price-wrapper .price {
        font-size: 3rem;
        padding: 0 0.8rem;
    }

    .device-price-wrapper .price.small {
        font-size: 2rem;
        margin-top: 0.8rem;
    }

    .tab-container.sp-only .tab-item .tab-body a {
        margin: 2.4rem auto 0;
    }
}

/* よくある質問 */
@media (max-width: 1120px) {
    .faq-section {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .faq-section {
        width: 90%;
        margin: 4rem auto;
    }

    .faq-question {
        padding: 1.6rem;
        padding-right: 4rem;
        align-items: start;
    }

    .faq-answer {
        padding-left: 1.6rem;
        padding-right: 5rem;
    }

    .faq-mark {
        font-size: 1.6rem;
        margin-right: 1rem;
        margin-top: 0.2em;
    }

    .faq-text {
        font-size: 1.4rem;
        color: #000000;
    }

    .faq-item.active .faq-question::after {
        font-size: 2rem;
        right: 1.6rem;
    }

    .faq-question::after {
        font-size: 2rem;
        right: 1.6rem;
    }

    .faq-category-title {
        font-size: 2rem;
    }
}

/* 他ページへ */
@media screen and (max-width: 768px) {
    .other-event {
        padding: 8rem 0;
    }

    .other-event-buttons {
        max-width: 90%;
        gap: 2.4rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .other-event-btn {
        font-size: 1.4rem;
        padding: 1.6rem 0.8rem;
        width: 90%;
    }
}

@media screen and (max-width: 555px) {
    .other-event-buttons {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }
}