@charset "UTF-8";

/* =========================
   ご利用の流れ
========================= */
.how-to-section {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 16px;
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
}

.how-to-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(59,130,246,.07);
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-body {
    flex: 1;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.how-to-arrow {
    text-align: center;
    font-size: 20px;
    color: #93c5fd;
    padding: 4px 0;
}

.how-to-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #1e40af;
}

/* =========================
   リセット
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    background:
        radial-gradient(circle at top left, #dbeafe 0%, #eff6ff 28%, #f8fbff 55%, #eef4ff 100%);
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

/* =========================
   全体
========================= */
.app-shell {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 110px;
}

.main-content {
    padding: 18px 16px 24px;
}

/* =========================
   ヒーロー
========================= */
.top-hero {
    padding: 20px 16px 10px;
}

.hero-content {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0f172a 100%);
    border-radius: 24px;
    padding: 24px 20px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.hero-text h1 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: bold;
    margin-bottom: 8px;
    word-break: break-word;
}

.hero-description {
    font-size: 13px;
    opacity: 0.95;
}

.hero-icon-wrap {
    flex-shrink: 0;
}

.hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    backdrop-filter: blur(8px);
}

/* =========================
   在庫表示
========================= */
.stock-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

.stock-label {
    font-size: 13px;
    color: #1d4ed8;
    margin-bottom: 4px;
    font-weight: 600;
}

.stock-value {
    font-size: 30px;
    font-weight: bold;
    color: #0f172a;
    line-height: 1.2;
}

.stock-value span {
    font-size: 15px;
    margin-left: 4px;
    color: #334155;
}

/* =========================
   ステータスカード
========================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    text-decoration: none;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 96px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-title {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #0f172a;
    word-break: break-word;
}

/* =========================
   セクション共通
========================= */
.menu-section,
.chat-section {
    margin-bottom: 24px;
}

.section-header {
    margin-bottom: 14px;
    padding: 0 2px;
}

.section-header h2 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: #64748b;
}

/* =========================
   メニューカード
========================= */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.menu-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    border-color: #93c5fd;
}

.menu-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.menu-card-body {
    flex: 1;
    min-width: 0;
}

.menu-card-body h3 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.5;
}

.menu-card-body p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.special-card {
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    border-color: #bfdbfe;
}

.logout-card {
    border-color: #cbd5e1;
}

.logout-card .menu-card-icon {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* =========================
   バッジ
========================= */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.32);
}

/* =========================
   チャット一覧
========================= */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.chat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.chat-name {
    font-size: 15px;
    font-weight: bold;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.chat-name small {
    font-size: 12px;
    color: #64748b;
    font-weight: normal;
}

.chat-date {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.chat-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-link-text {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
}

.mini-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px dashed #bfdbfe;
    border-radius: 18px;
    padding: 18px;
    color: #64748b;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

/* =========================
   下部固定ナビ
========================= */
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 740px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(191, 219, 254, 0.95);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 6px;
    z-index: 999;
}

.bottom-nav-item {
    text-decoration: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 16px;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 62px;
}

.bottom-nav-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.bottom-icon {
    font-size: 20px;
    line-height: 1;
    position: relative;
}

.bottom-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
}

.nav-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    position: absolute;
    top: -7px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.28);
}

/* =========================
   PC向け微調整
========================= */
@media screen and (min-width: 700px) {
    .main-content {
        padding: 20px 20px 26px;
    }

    .top-hero {
        padding: 20px 20px 10px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   スマホ向け微調整
========================= */
@media screen and (max-width: 480px) {
    .hero-content {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-description {
        font-size: 12px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 14px;
        min-height: 88px;
    }

    .stat-value {
        font-size: 18px;
    }

    .menu-card {
        padding: 16px 14px;
    }

    .menu-card-body h3 {
        font-size: 15px;
    }

    .bottom-nav {
        width: calc(100% - 16px);
        bottom: 8px;
        border-radius: 22px;
        padding: 7px 4px;
    }

    .bottom-label {
        font-size: 10px;
    }
}

/* =========================
   male_profile.php 用
========================= */
.profile-hero .hero-content {
    min-height: 150px;
}

.profile-summary-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-summary-left {
    flex-shrink: 0;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    font-size: 34px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-summary-right {
    flex: 1;
    min-width: 0;
}

.profile-summary-right h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
}

.profile-summary-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
}

.profile-info-card,
.profile-text-card,
.media-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
    padding: 14px 4px;
    border-bottom: 1px solid #e5eefc;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.info-value {
    font-size: 15px;
    color: #0f172a;
    line-height: 1.8;
    word-break: break-word;
}

.profile-long-text {
    font-size: 15px;
    color: #0f172a;
    line-height: 1.9;
    white-space: normal;
    word-break: break-word;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.photo-item {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 12px;
}

.photo-label {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 10px;
}

.profile-photo-modern {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    background: #e2e8f0;
}

.video-wrap {
    width: 100%;
}

.profile-video-modern {
    width: 100%;
    max-width: 720px;
    border-radius: 18px;
    display: block;
    background: #000;
}

.full-width {
    grid-column: 1 / -1;
}

.profile-action-section {
    margin-top: 24px;
}

.profile-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.action-btn:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

.primary-action-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.secondary-action-btn {
    background: #ffffff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

@media screen and (max-width: 700px) {
    .profile-summary-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar {
        width: 84px;
        height: 84px;
        border-radius: 20px;
        font-size: 30px;
    }

    .profile-summary-right h2 {
        font-size: 22px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 2px;
    }

    .info-label {
        font-size: 13px;
        color: #64748b;
    }

    .info-value {
        font-size: 15px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .profile-action-grid {
        grid-template-columns: 1fr;
    }
}