@charset "utf-8";

/* =================================
   Base Styles
================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif JP', sans-serif;
    background-image: url('/wp-content/themes/ikemen/title/sengokueien/shindan/images/bg-pc.webp');
    background-repeat: repeat-y, repeat-y;
    background-size: 100% auto, 100% auto;
    color: #452D15;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ol, ul {
    list-style: none;
    padding-inline-start: 0;
}

.sengokueien-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* =================================
   Breadcrumb
================================= */
.breadcrumb_wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
}

.breadcrumb_inner {
    display: flex;
    flex-wrap: wrap;
    line-height: 1.4;
    font-size: 13px;
    color: #452D15;
}

.breadcrumb_inner li {
    padding: 0 4px;
    color: #452D15;
}

.breadcrumb_inner li a {
    color: #452D15;
    text-decoration: none;
}

.breadcrumb_inner li:first-child {
    padding-left: 0;
}

.breadcrumb_inner li + li {
    position: relative;
    padding-left: 12px;
}

.breadcrumb_inner li + li::before {
    content: "/";
    display: block;
    position: absolute;
    left: 0px;
    top: 50%;
    width: auto;
    height: auto;
    background: transparent;
    color: #452D15;
    transform: translateY(-50%);
}

/* =================================
   Top Section
================================= */
.top-section {
    position: relative;
    width: 100%;
}

.top-circle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    pointer-events: none;
}

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

.diagnosis-embed-area {
    position: relative;
    z-index: 2;
    padding-top: 50px;
}

.black-screen-placeholder {
    width: 90%;
    max-width: 1000px;
    height: 400px;
    background-color: #000;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-lead-text {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0 20px;
}

.top-lead-text .text-gradient {
    background: linear-gradient(90deg, #DB6143 0%, #E3B774 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.top-lead-text .text-color-accent {
    color: #DB6143;
    font-weight: 700;
}

/* =================================
   CTA Button & Animation
================================= */
.cta-container {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 100px;
}

.cta-button {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    position: relative;
    transition: opacity 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    opacity: 0.85;
}

.cta-base {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
}

.cta-characters {
    position: absolute;
    bottom: 77%;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
    pointer-events: none;
}

.cta-chara {
    width: 43%;
    height: auto;
    transform-origin: center bottom;
    animation: swayHead 3.5s ease-in-out infinite;
}

.cta-chara--right {
    animation-delay: -1.75s;
}

/* 結果ページ：OSストアバッジ（App Store / Google Play）
   ユニバーサルリンク（両OS同一URL）の場合も2つとも表示する */
.cta-store-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 20px auto 0;
    padding: 0;
    list-style: none;
}

.cta-store-badges li {
    margin: 0;
}

.cta-store-badges a {
    display: block;
    transition: opacity 0.3s ease;
}

.cta-store-badges a:hover {
    opacity: 0.85;
}

.cta-store-badges img {
    display: block;
    width: auto;
    height: 50px;
}

.floating-cta {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes swayHead {
    0%, 100% {
        transform: rotate(-6deg);
    }
    50% {
        transform: rotate(6deg);
    }
}

/* =================================
   Campaign Banner
================================= */
.campaign-banner-area {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 60px auto 0;
    padding: 0 15px;
    max-width: 1200px;
}

.campaign-banner-area--result {
    max-width: 620px;
}

.campaign-banner-link {
    display: block;
    transition: opacity 0.3s;
}

.campaign-banner-link:hover {
    opacity: 0.85;
}

.campaign-banner-link img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.campaign-banner-text-link{
    display: block;
    width: fit-content;
    margin: 16px auto 72px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #452D15;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.campaign-banner-text-link:hover {
    opacity: 0.7;
}

.campaign-banner-text-link span{
    border-bottom: 1px solid #452D15;
    padding-bottom: 0px;
}

/* =================================
   About Section
================================= */
.about-section {
    position: relative;
    z-index: 2;
    padding: 72px 20px 100px;
    text-align: center;
}

.section-title-img {
    margin: 0 auto 16px;
    max-width: 780px;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 120px;
    background-color: #FFF5E3;
}

.about-desc {
    font-size: 24px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 16px;
    font-weight: 600;
}

.about-desc .text-accent {
    color: #DB6143;
    font-weight: 700;
}

.about-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.about-img-item {
    flex: 1;
    max-width: 310px;
}

.about-img-item img {
    width: 100%;
    height: auto;
}

.about-img-item.img-item-1 {
    transform: translateY(40px);
}

.about-img-item.img-item-2 {
    transform: translateY(80px);
}

.about-img-item.img-item-3 {
    transform: translateY(0px);
}

/* =================================
   Characters Section
================================= */
.characters-section {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.characters-section .section-title-img {
    margin: 0 auto 64px;
    max-width: 560px;
}

.faction-block {
    margin-bottom: 105px;
}

.faction-header {
    text-align: center;
    margin-bottom: 54px;
    max-width: 475px;
    margin-left: auto;
    margin-right: auto;
}

.faction-header img {
    width: 100%;
    height: auto;
}

.character-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0 auto;
}

.character-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 235px;
}

.character-card img {
    width: 100%;
    height: auto;
    display: block;
}

.grid-cols-4 {
    width: 100%;
    max-width: 1012px;
}
.grid-cols-4 .character-card {
    width: calc(25% - 18px);
}

.grid-cols-3 {
    width: 100%;
    max-width: 753px;
}
.grid-cols-3 .character-card {
    width: calc(33.3333% - 16px);
}

/* =================================
   Info Section (サービス概要・SNS)
================================= */
.info-section {
    position: relative;
    z-index: 2;
    padding: 72px 32px 100px;
    background-color: #EBDAB8;
    background-image: url('/wp-content/themes/ikemen/title/sengokueien/shindan/images/info-bg-pc.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.info-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-heading {
    text-align: center;
    margin-bottom: 32px;
}

.info-heading img {
    height: auto;
    max-height: 30px;
    width: auto;
}

.service-info-box {
    flex: 1;
    max-width: 480px;
}

.service-details {
    display: flex;
    gap: 24px;
}

.app-icon {
    width: 80px;
    flex-shrink: 0;
}

.service-text {
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.service-text dt {
    width: 5em;
    font-weight: bold;
    margin-bottom: 6px;
}

.service-text dd {
    width: calc(100% - 5em);
    margin: 0 0 6px 0;
}

.sns-links-box {
    flex: 1;
    max-width: 400px;
}

.sns-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 0;
    margin: 0;
}

.sns-icons li a {
    display: block;
    width: 72px;
    transition: opacity 0.3s;
}

.sns-icons li a:hover {
    opacity: 0.8;
}

/* =================================
   Footer
================================= */
.lp-footer {
    background-color: #452D15;
    color: #fff;
    text-align: center;
    padding: 24px 32px;
    position: relative;
    z-index: 2;
}

.footer-links {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 16px;
    margin: 0;
}


/* =================================
   Responsive Design (PC 1040px以下)
================================= */
@media screen and (max-width: 1040px) {
    .grid-cols-4 {
        max-width: 753px;
    }
    .grid-cols-4 .character-card {
        width: calc(33.3333% - 16px);
    }
}

/* =================================
   Responsive Design (SP: ～767px)
================================= */
@media screen and (max-width: 767px) {
    body {
        background-image: url('/wp-content/themes/ikemen/title/sengokueien/shindan/images/bg-sp.webp');
    }
    .breadcrumb_wrap {
        padding: 20px 15px 0;
    }

    .sengokueien-wrapper {
        max-width: 767px;
    }

    .black-screen-placeholder {
        height: 250px;
    }

    .top-lead-text {
        font-size: clamp(16px, 8.35px + 2.04vw, 24px);
        padding: 0 15px;
    }

    .cta-container{
        margin-top: clamp(70px, 40px + 8vw, 100px);
        padding: 0 15px;
    }

    .cta-store-badges {
        gap: 12px 16px;
        margin-top: 16px;
    }

    .cta-store-badges img {
        height: clamp(38px, 30px + 2.1vw, 50px);
    }

    .campaign-banner-area{
        margin: 32px auto 0;
    }

    .campaign-banner-text-link {
        font-size: clamp(18px, 12px + 1.6vw, 24px);
        margin: 8px auto 40px;
    }

    .about-section{
        padding: 40px 20px 54px;
    }

    .about-content{
        padding: 32px 24px 80px;
    }

    .about-desc {
        font-size: clamp(16px, 12px + 1.07vw, 20px);
        text-align: justify;
        line-height: 2.0;
        margin: 0 0 12px;
    }

    .about-images {
        gap: 10px;
    }

    .about-img-item.img-item-1 {
        transform: translateY(20px);
    }

    .about-img-item.img-item-2 {
        transform: translateY(40px);
    }

    .about-img-item.img-item-3 {
        transform: translateY(0px);
    }

    .characters-section {
        padding: 16px 15px 40px;
    }

    .faction-block {
        margin-bottom: 80px;
    }

    .faction-header{
        margin-bottom: 32px;
    }

    .character-grid {
        gap: 12px;
    }

    .grid-cols-4 .character-card,
    .grid-cols-3 .character-card {
        width: calc(33.3333% - 8px);
    }

    /* ▼ Info Section (SP) ▼ */
    .info-section {
        background-image: url('/wp-content/themes/ikemen/title/sengokueien/shindan/images/info-bg-sp.webp');
        padding: 32px 32px 40px;
    }

    .info-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .info-heading img {
        max-height: 24px;
    }

    .service-details {
        justify-content: center;
        gap: 16px;
    }

    .app-icon {
        width: 75px;
    }

    .service-text dt {
        width: 4.5em;
    }

    .service-text dd {
        width: calc(100% - 4.5em);
    }

    .sns-icons li a {
        width: clamp(45px, 28px + 4.53vw, 62px);
    }

    .floating-cta {
        bottom: 6px;
    }
}

/* =================================
   Responsive Design (SP: ～550px)
================================= */
@media screen and (max-width: 550px) {
    .grid-cols-4 .character-card,
    .grid-cols-3 .character-card {
        width: calc(50% - 6px);
    }
}

/* =================================
   診断中画面の表示制御
   （診断プレイ中のみ非表示にし、結果表示で元に戻す）
================================= */
/* body:has(.shindan-wrap[data-state="playing"]) .top-lead-text,
body:has(.shindan-wrap[data-state="playing"]) .about-section,
body:has(.shindan-wrap[data-state="playing"]) .characters-section,
body:has(.shindan-wrap[data-state="playing"]) .info-section {
    display: none;
} */