* {
    box-sizing: border-box;
}

/* 画面全体を高さ100%に */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #4a2a3f;
    background: #000;
    overflow-wrap: break-word;
}

/* 全ページのボタンhover時のカーソルの状態 */
a,
button {
    cursor: pointer;
}

/* 無効状態 */
a.disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* =========================
   page-bg Background
========================= */
.page-bg {
    position: fixed;
    inset: 0;
    background-image: url("../img/page-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* コンテンツ */
.page-content {
    position: relative;
    z-index: 1;
}

/* 読みやすくする層 */
.page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* =========================
   タイトル
========================= */
h1 {
    text-align: center;
    font-size: clamp(40px, 2.2vw, 56px);
    line-height: 1.5;
    letter-spacing: 0.08em;

    color: rgba(90, 50, 120, 0.85);
    font-weight: 600;

    text-shadow:
        0 2px 6px rgba(255, 255, 255, 0.7),
        0 0 18px rgba(255, 180, 220, 0.45);
}

h1 span {
    display: inline;
    margin-top: 12px;
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: rgba(90, 50, 120, 0.85);

    text-shadow:
        0 2px 6px rgba(255, 255, 255, 0.7),
        0 0 18px rgba(255, 180, 220, 0.45);
}

h2 {
    font-size: clamp(22px, 1.8vw, 26px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-align: center;
}

.lead {
    text-align: center;
}

.btn {
    text-align: center;
}

p {
    margin: 30px 0 30px 0;
    color: rgba(72, 59, 59, 0.9);
    font-size: 1.05rem;
    line-height: 2.4;
    letter-spacing: 0.04em;
}

/* =========================
   single_uranai_form.php
========================= */

/* 「無料」を強調 */
.lead .highlight {
    font-weight: 700;
    color: #8b5cf6;
    /* 紫系で目立たせる */
}

/* ログアウトボタン */
.logout-button {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* =========================
   パンくずリスト
========================= */
.breadcrumb-nav {
    max-width: none;
    padding: 6px;
    font-size: 14px;
    color: rgba(248, 239, 255, 0.75);
    position: relative;
    z-index: 50;
}

.breadcrumb-nav ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 0;
    list-style: none;
}

/* ★ を消すだけ */
.breadcrumb-nav li:first-child::before {
    content: none !important;
}


/* 区切り記号 ＞ */
.breadcrumb-nav li+li::before {
    content: "＞";
    margin: 0 6px;
    font-weight: bold;
    color: rgba(248, 239, 255, 1);
}

/* リンク */
.breadcrumb-nav a {
    color: rgba(248, 239, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 現在地 */
.breadcrumb-nav span[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
}

/* 結果画面のボタン共通css */
.result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    padding: 16px 28px;

    font-size: 14.5px;
    letter-spacing: 0.12em;
    font-weight: 600;

    color: rgba(255, 245, 255, .95);
    text-decoration: none;

    border-radius: 999px;

    background: linear-gradient(135deg,
            rgba(190, 120, 255, .95),
            rgba(140, 90, 220, .95));

    box-shadow:
        0 10px 26px rgba(120, 70, 200, .45),
        0 0 18px rgba(180, 120, 255, .35);

    transition: transform .25s ease, box-shadow .25s ease;
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(140, 90, 220, .55),
        0 0 26px rgba(200, 140, 255, .45);
}

/* =========================
   スマホ対応
========================= */
@media (max-width: 767px) {

    .breadcrumb-nav {
        font-size: 12px;
        margin: 8px auto 16px;
    }
}

/* 戻るボタン（視認性強化版） */
.back-button {
    position: absolute;
    left: 40px;
    top: 200px;
    z-index: 100;
    padding: 11px 22px;
    font-size: 16px;
    letter-spacing: 0.06em;

    color: #ffffff;
    text-decoration: none;

    background: linear-gradient(135deg,
            rgba(255, 190, 235, 0.55),
            rgba(170, 130, 255, 0.55));

    border: 1px solid rgba(255, 240, 255, 0.85);
    border-radius: 16px;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow:
        0 6px 18px rgba(190, 120, 255, 0.45),
        0 0 28px rgba(255, 210, 245, 0.55),
        inset 0 0 12px rgba(255, 255, 255, 0.25);

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.8);

    animation: backButtonPulse 3.8s ease-in-out infinite;

    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);

    background: linear-gradient(135deg,
            rgba(255, 210, 245, 0.75),
            rgba(190, 150, 255, 0.75));

    box-shadow:
        0 10px 28px rgba(210, 150, 255, 0.65),
        0 0 40px rgba(255, 220, 250, 0.75);
}

.back-button-sp {
    display: none;
}

/* 呼吸する光 */
@keyframes backButtonPulse {

    0%,
    100% {
        box-shadow:
            0 6px 18px rgba(190, 120, 255, 0.45),
            0 0 26px rgba(255, 210, 245, 0.45),
            inset 0 0 12px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow:
            0 8px 22px rgba(210, 150, 255, 0.6),
            0 0 36px rgba(255, 220, 250, 0.65),
            inset 0 0 16px rgba(255, 255, 255, 0.35);
    }
}

@media (max-width: 900px) {
    .back-button {
        display: none;
    }

    .back-nav {
        width: 100%;
        display: flex;
        justify-content: center;

        margin: 0 0 10%;
        position: relative;
        z-index: 20;
    }

    .back-button-sp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 60%;
        max-width: 320px;

        padding: 14px 28px;
        font-size: 1rem;
        letter-spacing: 0.08em;

        color: #ffffff;
        text-decoration: none;

        background: linear-gradient(135deg,
                rgba(255, 190, 235, 0.55),
                rgba(170, 130, 255, 0.55));

        border: 1px solid rgba(255, 240, 255, 0.85);
        border-radius: 999px;

        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

        box-shadow:
            0 6px 18px rgba(190, 120, 255, 0.45),
            0 0 28px rgba(255, 210, 245, 0.55),
            inset 0 0 12px rgba(255, 255, 255, 0.25);

        text-shadow:
            0 0 6px rgba(255, 255, 255, 0.8);

        /* スマホ用：hover不要、でもタップ感は欲しい */
        transition:
            transform 0.15s ease,
            box-shadow 0.25s ease;
    }

    .back-button-sp:active {
        transform: scale(0.96);
        box-shadow:
            0 4px 12px rgba(190, 120, 255, 0.4),
            0 0 18px rgba(255, 210, 245, 0.45);

    }
}

/* =========================
   （スマホ専用）
========================= */
@media (max-width: 767px) {

    .main-content {
        width: 100%;
    }

    .breadcrumb-nav {
        display: none;
    }

    /* タイトル h1 */
    h1 {
        margin: 10% 0;
        line-height: 1.3;
        text-align: center;
        font-size: clamp(26px, 6vw, 34px);
    }

    /* h1 span */
    h1 span {
        display: block;
        font-size: 0.5em;
        font-size: 6vw;
        line-height: 1.3;
        text-align: center;
        font-size: clamp(18px, 8vw, 18px);
        color: rgba(90, 50, 120, 0.85);
    }

    p {
        line-height: 2.6;
        font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    }

    .page-bg-inner {
        padding: 2%;
    }
}

@media (max-width: 400px) {
    .lead-text {
        margin-top: 60px;
    }
}