@import url("https://use.typekit.net/rsi4pih.css");

/* ======================================================================
   1. FONTS & GLOBAL UTILITIES (フォント・全体設定)
====================================================================== */
@font-face {
    font-family: "Avenir";
    src: url(/wordpress/wp-content/themes/otakaraya/assets/fonts/avenir-black-03.woff2)
        format("woff2");
}

.is-sp {
    display: none !important;
}

.footer__head2024,
.footer__foot2024,
.footer__cta {
    display: none;
}

@media (max-width: 767px) {
    .is-sp {
        display: block !important;
    }

    .is-pc {
        display: none !important;
    }
}

/* ======================================================================
   2. MAIN BACKGROUND & LAYOUT (背景・大枠レイアウト)
====================================================================== */
main {
    background-image: url(/wordpress/wp-content/themes/otakaraya/assets/img/buy-sougou/shop_slide_img.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

main:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

/* ======================================================================
   3. LEFT PANEL (左側パネルのベーススタイル)
====================================================================== */
.left_panel {
    flex: 1;
    position: relative;
    display: flex;
    padding: 4rem 4rem 0 0;
}

.left_content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.left_content h1 {
    font-family: "Avenir", "Noto Sans JP", sans-serif;
    font-size: 2.8rem;
    margin: 0;
    letter-spacing: 2px;
}

.left_content .slogan {
    font-size: 1.6rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.left_content .description {
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.left_content nav {
    display: flex;
    gap: 2rem;
}

.left_content nav a {
    color: white;
    text-decoration: none;
    font-size: var(--font-m);
    position: relative;
    cursor: pointer;
}

.left_content nav a::after {
    content: "";
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

.left_content nav a.active::after {
    transform: scaleX(1);
}

.whatsapp_btn {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    background-color: #00b04f;
    color: white;
    padding: 0.8rem 2rem 0.8rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 2.5rem;
    width: 100%;
}

.whatsapp_btn img {
    margin-right: 10px;
    width: 2rem;
}

.whatsapp_btn span {
    position: relative;
}

.whatsapp_btn span::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border: 0;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    right: -0.75rem;
    bottom: 0;
    margin: auto;
}

/* ======================================================================
   4. TYPOGRAPHY & COMMON COMPONENTS (共通見出し・ボタン等)
====================================================================== */
section {
    position: relative;
}

h2 {
    font-size: var(--font-6xl);
    text-align: center;
    margin: 0;
    font-family: "futura-pt", sans-serif;
    font-weight: 400 !important;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-style: normal;
}

h3 {
    font-size: var(--font-2xl);
    text-align: center;
    margin: 0;
    font-family: "futura-pt", sans-serif;
    font-weight: 400 !important;
    font-style: normal;
}

h4 {
    font-size: var(--font-m);
    text-align: center;
    margin: 10px 0 20px 0;
    font-family: "futura-pt", sans-serif;
    font-weight: 400 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: normal;
}

.sub_heading {
    font-size: var(--font-xl);
    text-align: center;
    margin: 0.4rem 0;
    font-family: "Yu Go", sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.shop_info {
    background-color: white;
    padding: 6% 5%;
    color: black;
}

.buying_info {
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f7f7f7;
}

/* ABOUT US エリア専用の背景画像 */
#aboutus .buying_info {
    background-image: url(/wordpress/wp-content/themes/otakaraya/assets/img/buy/about_bg.jpg);
}

/* BRAND エリア専用の背景画像 */
#brand .buying_info {
    background-image: url(/wordpress/wp-content/themes/otakaraya/assets/img/buy/sell_brand_back.jpg);
}

.buying_info > * {
    position: relative;
    z-index: 2;
}

.buying_info p {
    text-align: center;
}

.common_btn {
    text-align: center;
}

.common_btn a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-size: var(--font-m);
}

/* ======================================================================
   5. FIRST VIEW (メインビジュアルとロゴ・テキストの重なり)
====================================================================== */
.fv_img {
    position: relative;
}

.fv_img img {
    width: 100%;
    max-width: 100%;
    display: block;
}

.fv_overlay_container {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    z-index: 1;
}

.fv_text_overlay {
    color: white;
    font-size: var(--font-l);
    font-weight: normal;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

.fv_logo_overlay {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.8));
}

@media (max-width: 1025px) {
    .fv_overlay_container {
        top: 15%;
    }

    .fv_text_overlay {
        font-size: 1.2rem;
    }

    .fv_logo_overlay {
        max-width: 80%;
    }
}

.buy_sell_section {
    display: flex;
    justify-content: space-between;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2rem 1rem;
    gap: 2rem;
}

.buy_sell_section a {
    width: 100%;
    padding: 1rem 0;
    font-size: var(--font-m);
    cursor: pointer;
}

.buy_sell_section .sell_btn {
    background-color: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.buy_sell_section .buy_btn {
    background-color: white;
    color: black;
}

/* ======================================================================
   6. SP DISPLAY AREA & HEADER/NAV (中央パネルとスマホ用ヘッダー)
====================================================================== */
.sp_display {
    width: 100%;
    height: auto;
    min-height: 100vh;
}

@media (max-width: 1025px) {
    body {
        overflow: auto;
    }

    .sp_display {
        overflow-y: visible;
        scrollbar-width: none !important;
    }

    .sp_display.is-menu-open {
        overflow: visible !important;
    }
}

/* ======================================================================
   7. SECTIONS (Campaign, About, Category, Brand, Service, Reviews)
====================================================================== */
.campaign_banner {
    margin: 40px 0 20px 0;
}

.campaign_annotation {
    font-size: var(--font-xs);
    line-height: 1.2;
}

.about_description {
    text-align: center;
    font-family: "Yu Go", sans-serif;
    font-weight: 500;
    margin: 1rem 0 3rem;
    line-height: 1.8;
    font-size: var(--font-m);
}

.about_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about_image {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

.about_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about_text {
    margin-top: 1rem;
    font-size: var(--font-m);
    font-weight: normal;
    line-height: 1.5;
    color: #000;
}

.item_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: var(--font-m);
    margin-top: 3rem;
}

.grid_item {
    position: relative;
    text-align: center;
}

.grid_item.wide {
    grid-column: span 2;
}

.grid_item img {
    width: 100%;
    height: auto;
}

.item_label {
    font-size: var(--font-m);
    text-align: center;
    margin: 10px 0 20px 0;
    font-family: "futura-pt", sans-serif;
    font-weight: 400 !important;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-style: normal;
}

.other_brand {
    font-size: var(--font-3xl);
    text-align: center;
    margin-top: 60px;
    font-family: "futura-pt", sans-serif;
    font-weight: 400 !important;
    text-transform: uppercase;
    font-style: normal;
}

.other_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: var(--font-m);
    margin: 3rem 0;
}

.other_grid .grid_item {
    position: relative;
    text-align: center;
    border: solid 1px #5f5f5f;
    background-color: white;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 4.5rem;
    box-sizing: border-box;
}

.other_grid .grid_item .item_label {
    margin: 0;
    line-height: 1.2;
}

.service_info {
    padding: 4rem 0 0;
    background-color: #ffffff;
}

.service_panels {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}

.service_panel {
    position: relative;
    width: 100%;
}

.service_panel img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8);
}

.panel_content {
    position: absolute;
    top: 77.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 100%;
    text-align: center;
}

.panel_title {
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px black;
}

.panel_subtitle {
    text-align: center;
    margin: 0.4rem 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px black;
    font-size: var(--font-l);
    font-family: "Yu Go", sans-serif;
}

.slider-container {
    margin-top: 3rem;
}

.splide__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.splide__arrow {
    height: 100% !important;
    border-radius: 0 !important;
    background-color: white !important;
}

.splide__arrow--prev {
    left: 0;
}

.splide__arrow--next {
    right: 0;
}

.store-details h3 {
    font-size: var(--font-l);
    margin: 1rem 0 0.5rem 0;
    text-align: center;
}

.store-details p {
    font-size: var(--font-s);
    text-align: center;
    line-height: 2;
}

.language-support {
    margin-top: 1.5rem;
}

.language-support .title {
    font-size: var(--font-m);
    margin-bottom: 0.8rem;
    text-align: center;
}

.language-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.language-tags span {
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    color: white;
    background-color: black;
    font-weight: bold;
}

.action-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.action-icons a {
    color: #000000;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-circle {
    width: 4rem;
    height: 4rem;
    border: 2px solid #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.icon-circle svg {
    width: 28px;
    height: 28px;
    fill: #000000;
}

.reviews_list {
    max-width: 800px;
    margin: 0 auto;
}

.review_card {
    background: #fff;
    border-radius: 4px 25px 4px 25px;
    box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #cccccc;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    text-align: left;
}

.review_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.review_stars {
    color: #e60012;
    font-size: 1.4rem;
    letter-spacing: 0.2rem;
}

.review_date {
    font-size: var(--font-s);
    font-family: "Avenir", sans-serif;
    color: #000;
    letter-spacing: 0.05em;
    padding-top: 0.4rem;
}

.review_content {
    font-size: var(--font-s);
    line-height: 2;
    margin-bottom: 0.5rem;
    color: #000;
    letter-spacing: 0.05em;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.review_content.is-truncated {
    max-height: 6em;
}

.review_more_btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    font-family: "futura-pt", sans-serif;
    font-weight: 400 !important;
    font-size: var(--font-s);
    cursor: pointer;
    padding: 0.5rem 0;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    color: #000;
}

.review_more_btn::after {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    margin-left: 0.6rem;
    margin-bottom: 0.2rem;
    transition: transform 0.3s;
}

.review_more_btn.is-open::after {
    transform: rotate(-135deg);
    margin-bottom: -0.2rem;
}

.review_author {
    text-align: right;
    font-family: "Avenir", sans-serif;
    font-weight: 700;
    font-size: var(--font-m);
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

.btn_black {
    margin-top: 3.5rem;
    text-align: center;
}

.btn_black a {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 1.2rem 0;
    width: 100%;
    max-width: 320px;
    text-decoration: none;
    font-family: "futura-pt", sans-serif;
    font-weight: 400 !important;
    font-size: var(--font-m);
    letter-spacing: 2px;
    transition: opacity 0.3s;
}

.btn_black a:hover {
    opacity: 0.8;
}

@media (max-width: 1025px) {
    .review_card {
        padding: 2rem 1.5rem;
        border-radius: 4px 20px 4px 20px;
    }
}

/* ======================================================================
   9. PC VIEW OVERRIDES (PC表示用の上書き指定 1025px以上)
====================================================================== */
@media (min-width: 1025px) {
    body {
        overflow: hidden !important;
        background-color: #1a1a1a;
    }

    main {
        position: relative;
    }

    main::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100vh;
        height: 100dvh !important;
        max-width: 1920px;
        margin: 0 auto;
        padding: 0 3% !important;
        position: relative;
        z-index: 2;
        box-sizing: border-box !important;
    }

    .left_panel {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        padding: 4rem 4rem 0 0;
        container-type: inline-size;
    }

    .left_content .slogan {
        font-size: 7cqw;
        line-height: 1.6;
        margin-bottom: 1rem;
        letter-spacing: 2px;
    }

    .whatsapp_btn {
        padding: 0.8rem 1.6rem;
    }

    .left_logo_img {
        width: 100%;
        max-width: 320px;
        margin-bottom: 3rem;
        filter: brightness(0) invert(1);
    }

    .sp_display {
        flex: 1.25;
        width: 100%;
        height: 88dvh !important;
        min-height: auto;
        overflow-y: scroll;
        overflow-x: hidden;
        border-radius: 40px 40px 0 0;
        background-color: #fff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        scrollbar-width: none;
        margin-top: 0 !important;
        align-self: flex-end !important;
    }

    .sp_display::-webkit-scrollbar {
        display: none;
    }

    .sp_display .icon-circle {
        width: 13cqw !important;
        height: 13cqw !important;
    }

    .sp_display .icon-circle svg,
    .sp_display .icon-circle img {
        width: 7cqw !important;
        height: 7cqw !important;
    }

    .right_panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        padding-right: 2rem;
        height: 100%;
        position: relative;
    }

    .right_panel #cp-block {
        width: 100% !important;
        margin: 0;
    }

    .right_panel #cp-block .cp-head {
        display: none;
    }

    .right_panel #cp-block .cp-annotation {
        padding: 0 !important;
    }

    .right_panel #cp-block .cp-wrap {
        background: #fff;
        outline: 2px solid #e60012;
        outline-offset: 0px;
        border-radius: 0.4em;
    }

    .right_nav {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 15vh;
    }

    .right_nav a {
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
        font-family: "futura-pt", sans-serif;
        font-weight: 400 !important;
        position: relative;
        width: fit-content;
        cursor: pointer;
        padding-bottom: 0.2rem;
    }

    .right_nav a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #ffffff;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease-out;
    }

    .right_nav a:hover::after,
    .right_nav a.active::after {
        transform: scaleX(1);
    }

    .buy-campaign-nav {
        width: 80%;
    }

    .buy-campaign-nav .campaignbanner {
        margin: 0 !important;
    }

    .buy-campaign-nav .campaignbanner img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* ======================================================================
   10. 4K DISPLAYS (超高解像度向け: 2561px以上)
====================================================================== */
@media (min-width: 2561px) {
    .sp_display {
        align-self: center !important;
        height: 1200px !important;
        max-height: 90dvh !important;
        border-radius: 40px !important;
        border-bottom: none !important;
    }
}

#cp-block {
    width: 100% !important;
    margin: 0 !important;
}

.buy-campaign-nav #cp-block .cp-date-text,
.buy-campaign-nav #cp-block .cp-header,
.buy-campaign-nav #cp-block .cp-head {
    display: none !important;
}
