/* あんしんパンダクラブ（旧 /ansinpanda/ の移植）。reset / base / 共通パーツ CSS は head パーシャル側で読む。 */

:root {
    --color-panda-primary: #1f8e5a;
    --color-panda-background: #f6f5e4;
    --color-panda-rose: #ec77a3;
    --color-panda-pink: #f5bacc;
    --color-panda-lime: #f4f7eb;
    --panda-radius: 6px;
    --panda-max-width-text: 640px;
    --panda-max-width-data: 720px;
}

.section {
    padding: 64px 5%;
}

.section__wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1030px;
}

.panda-breadcrumb {
    padding-block: 16px;
}

.text-ansin {
    color: var(--color-panda-primary);
    font-weight: bold;
}

.text-panda {
    color: var(--color-panda-rose);
    font-weight: bold;
}

.panda-title {
    padding: 1.5rem;
    color: #fff;
    background-color: var(--color-panda-primary);
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

/* --- あんしんパンダクラブとは --- */

.panda-intro {
    background-image: url("/anshinpanda/img/brand.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.panda-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.panda-intro-name {
    display: flex;
    justify-content: center;
    gap: 0.3em;
    color: var(--color-panda-lime);
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.panda-intro-name::before,
.panda-intro-name::after {
    content: "";
    width: 1em;
    background-image: url("/anshinpanda/img/heart.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.panda-intro-img {
    width: 80%;
    max-width: 640px;
    padding-bottom: 1rem;
}

.panda-heart {
    position: relative;
}

.panda-heart-frame {
    width: 100%;
}

.panda-heart-panda {
    position: absolute;
    top: 9%;
    left: 50%;
    transform: translateX(-50%);
    width: 44%;
}

.panda-intro-text {
    width: 100%;
    max-width: var(--panda-max-width-text);
    padding: 1rem 1.5rem;
    background-color: var(--color-panda-lime);
    border-radius: var(--panda-radius);
}

.panda-intro-data {
    width: 100%;
    max-width: var(--panda-max-width-data);
}

.panda-intro-data-item {
    display: flex;
}

.panda-intro-data-item-field {
    display: grid;
    place-content: center;
    min-width: 7em;
    padding: 0.5em;
    color: #fff;
    background-color: var(--color-panda-pink);
    font-weight: bold;
}

.panda-intro-data-item-value {
    flex-grow: 1;
    padding: 0.5em 1em;
    background-color: var(--color-panda-lime);
}

.panda-intro-data-item:not(:last-child) .panda-intro-data-item-field {
    background-image: linear-gradient(to right, #fff 2px, transparent 2px);
    background-size: 4px 1px;
    background-position: left bottom;
    background-repeat: repeat-x;
}

.panda-intro-data-item:not(:last-child) .panda-intro-data-item-value {
    background-image: linear-gradient(to right, var(--color-panda-pink) 2px, transparent 2px);
    background-size: 6px 1px;
    background-position: left bottom;
    background-repeat: repeat-x;
}

/* --- もっと詳しく --- */

.panda-detail {
    background-color: var(--color-panda-background);
}

.panda-detail-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.panda-detail-title {
    color: var(--color-panda-primary);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.panda-detail-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: var(--panda-max-width-text);
}

.panda-detail-body-data {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panda-detail-body-data-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panda-detail-body-data-item-field,
.panda-detail-body-data-item-value {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: var(--panda-radius);
}

.panda-detail-body-data-item-field::before,
.panda-detail-body-data-item-value::before {
    content: "";
    display: block;
    margin-top: 0.3rem;
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
}

.panda-detail-body-data-item-field::before {
    background-image: url("/anshinpanda/img/nikukyu.png");
}

.panda-detail-body-data-item-value::before {
    background-image: url("/anshinpanda/img/face.png");
}

.panda-detail-body-message {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panda-detail-body-message-bubble {
    position: relative;
    padding: 1rem;
    margin-right: 0.5rem;
    background-color: #fff;
    border-radius: var(--panda-radius);
}

.panda-detail-body-message-img {
    width: 20%;
    min-width: 3rem;
}

/* --- TVCM --- */

.panda-tvcm {
    background-color: #fff;
}
