:root {
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --header-bg: #eef2f6;
    --high-intensity-bg: #fff5f5;
    --high-intensity-border: #e74c3c;
    --font-family: 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding: 0;
    padding-bottom: 80px;
    /* Space for footer */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.common-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    background-color: var(--card-bg);
}

/* Common Header Text Style for List Page */
.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

/* Main Map Placeholder (List Page) */
.main-map-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 400px;
    background-color: #ddd;
    border-radius: 8px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
}

/* Table Styles (List Page) */
.table-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background-color: var(--header-bg);
    border-bottom: 2px solid var(--border-color);
}

th {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr.intensity-3 {
    background-color: #ffe5e5;
}

tr.intensity-4 {
    background-color: #ffcccc;
}

tr.intensity-5- {
    background-color: #ff9999;
}

tr.intensity-5\+ {
    background-color: #ff6666;
}

tr.intensity-6- {
    background-color: #ff3333;
}

tr.intensity-6\+ {
    background-color: #ee0000;
    color: white;
}

tr.intensity-7 {
    background-color: #bb0000;
    color: white;
}

tr.intensity-6\+ .intensity-badge,
tr.intensity-7 .intensity-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

tr.intensity-3 td,
tr.intensity-4 td,
tr.intensity-5- td,
tr.intensity-5\+ td,
tr.intensity-6- td {
    color: #333;
}

.th-time {
    width: 25%;
}

.th-location {
    width: 40%;
}

.th-mag {
    width: 20%;
    text-align: center;
}

.th-intensity {
    width: 15%;
    text-align: center;
}

td.cell-center {
    text-align: center;
}

.mag-val {
    font-family: monospace;
}

.intensity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #eee;
    font-weight: bold;
    font-size: 12px;
}

tr.high-intensity .intensity-badge {
    background-color: var(--high-intensity-border);
    color: white;
}

/* Notice Area */
.notice-area {
    background-color: #fff9e6;
    border: 1px solid #ffeeba;
    border-left: 4px solid #f1c40f;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .container,
    .common-container,
    .payment-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 600px) {

    th,
    td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .th-time {
        width: auto;
    }

    .th-location {
        width: auto;
    }

    .container,
    .common-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* --- Top Page Styles --- */
.top-header {
    background-color: #3ca2e0;
    color: white;
    text-align: center;
    padding: 12px;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.top-header h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.highlight-yellow {
    color: #f1c40f;
}

.info-box {
    text-align: center;
    padding: 15px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.gray-box {
    background-color: #dcdcdc;
    /* Gray background */
    color: #333;
}

.alert-box {
    background-color: #ffb8b8;
    /* Pink/Red background */
    color: #c0392b;
    font-weight: bold;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.date-update {
    text-align: center;
    padding: 10px;
    background-color: white;
}

.last-updated-bar {
    background-color: #f1c40f;
    color: #333;
    text-align: center;
    padding: 8px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 0;
}

.update-badge {
    border: 1px solid #3ca2e0;
    color: #333;
    padding: 4px 12px;
    background-color: #fff;
    font-size: 13px;
    display: inline-block;
}

.map-area {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.map-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* List Page Map */
.list-map-area {
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.list-map-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Active nav item */
.nav-item.active .material-icons-round {
    color: #3ca2e0;
}

.nav-item.active .nav-text {
    color: #3ca2e0;
    font-weight: 600;
}

.map-placeholder-img {
    width: 100%;
    aspect-ratio: 2/3;
    /* Taller for Japan map */
    background-color: #f9f9f9;
    border: 1px solid #eee;
    position: relative;
    /* Create a Japan-ish shape approximation or just placeholder */
    background-image: radial-gradient(#ddd 2px, transparent 2px);
    background-size: 20px 20px;
}

.map-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-weight: bold;
}

.prediction-box {
    position: absolute;
    border: 2px solid #e74c3c;
    background-color: rgba(231, 76, 60, 0.2);
    transform: rotate(-15deg);
}

.box-1 {
    width: 30%;
    height: 20%;
    top: 20%;
    right: 15%;
}

.box-2 {
    width: 25%;
    height: 18%;
    top: 35%;
    right: 25%;
}

.news-section,
.history-section {
    background-color: #dcdcdc;
    padding: 15px;
    margin-bottom: 0;
    /* Small gap like image */
    text-align: center;
}

.history-section {
    background-color: #ffffff;
    padding-top: 10px;
}

.section-header {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.news-list,
.history-list {
    list-style: none;
    padding: 0;
    font-size: 13px;
    color: #333;
}

.news-list li,
.history-list li {
    margin-bottom: 4px;
}

.dots {
    font-weight: bold;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 10px;
    text-align: center;
    flex: 1;
}

.nav-item .material-icons-round {
    font-size: 24px;
    margin-bottom: 4px;
    color: #555;
}

.nav-item:hover .material-icons-round {
    color: #3ca2e0;
}

/* フッターナビのロック表示 */
.nav-item.nav-locked {
    position: relative;
}

.nav-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 200, 200, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-lock-overlay .material-icons-round {
    font-size: 26px !important;
    color: #555;
}

.nav-item.nav-locked > span:not(.nav-lock-overlay) {
    opacity: 0.3;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
}

/* Guide Page Styles */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guide-item {
    border-bottom: 1px solid #eee;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-item a {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-item a:hover {
    background-color: #f9f9f9;
}

.guide-item a::after {
    content: '›';
    font-size: 20px;
    color: #ccc;
    font-weight: bold;
}

/* Pro項目のハイライトスタイル */
.guide-item-pro {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    border-left: 3px solid #f1c40f;
}

.guide-item-pro a {
    font-weight: 700;
    color: #d4a000;
}

.guide-item-pro a:hover {
    background-color: #fff59d;
}

.guide-cancel {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.guide-cancel a {
    color: #999;
    text-decoration: underline;
    font-size: 14px;
}

.content-body {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    border-left: 4px solid #3ca2e0;
    padding-left: 10px;
}

.content-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Page Specific Common Styles */
.list-page-title {
    font-size: 18px;
    margin: 16px 0;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.pinpoint-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pinpoint-section h3 {
    font-size: 18px;
    font-weight: 700;
    border-left: 4px solid #3ca2e0;
    padding-left: 10px;
    margin-bottom: 20px;
    color: #333;
}

.pinpoint-image-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.pinpoint-image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.past-section {
    background-color: #fcfcfc;
}

.past-section h3 {
    border-left-color: #666;
}

/* Auth Styles */
.auth-top-buttons {
    display: flex;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    background-color: #fff;
    margin-bottom: 2px;
}

.auth-btn {
    flex: 1;
    max-width: 180px;
    text-align: center;
    padding: 12px 5px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.auth-btn.signup {
    background-color: #f1c40f;
    color: #333;
}

.auth-btn.login {
    background-color: #3ca2e0;
    color: white;
}

.auth-container {
    padding: 20px;
    background: #fff;
}

.auth-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.auth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #3ca2e0;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.auth-footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.auth-footer-links a {
    color: #3ca2e0;
    text-decoration: underline;
}

/* Password Toggle Styles */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .auth-input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verification Code Styles */
.verify-code-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.verify-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Step Progress Bar */
.step-bar-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.step-bar-title {
    font-size: 16px;
    font-weight: 700;
    color: #3ca2e0;
    margin-bottom: 15px;
}

.step-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    gap: 15px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #ccc;
    position: relative;
    width: 50px;
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.step-item.active {
    color: #3ca2e0;
}

.step-item.active .step-circle {
    border-color: #3ca2e0;
    background-color: #3ca2e0;
    color: #fff;
}

.step-item.complete .step-circle {
    border-color: #3ca2e0;
    color: #3ca2e0;
}

/* Register Table Styles */
.register-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.register-table th,
.register-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.register-table th {
    background-color: #fcfcfc;
    width: 30%;
    font-size: 14px;
}

.register-table .sub-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    font-weight: normal;
}

.fixed-text {
    font-size: 16px;
    color: #333;
}

/* Payment Tabs */
.payment-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.payment-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.payment-tab.active {
    color: #3ca2e0;
    border-bottom-color: #3ca2e0;
}

.payment-content {
    display: none;
}

.payment-content.active {
    display: block;
}

.input-row {
    margin-bottom: 15px;
}

.input-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 700;
}

.card-logos {
    margin-bottom: 15px;
}

.card-logos img {
    height: 25px;
    margin-right: 10px;
}

.carrier-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.carrier-box {
    border: 1px solid #ddd;
    padding: 20px 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f9f9f9;
}

.carrier-box:hover {
    border-color: #3ca2e0;
    background-color: #f0f7ff;
}

.carrier-box img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
}

/* News Link Item (Top Page) */
.news-link-item {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 8px 40px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 280px;
}

.news-link-item:hover {
    background-color: #f0f7ff;
    color: #3ca2e0;
    border-color: #3ca2e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.new-label {
    background-color: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
    line-height: 1;
    flex-shrink: 0;
}

/* Back Link Button (Common) */
.back-link {
    text-align: center;
    margin: 30px 0;
}

.back-link a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3ca2e0;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.back-link a:hover {
    background-color: #2d8bc7;
}

/* Update Highlight Box (更新情報ボックス) */
.update-highlight-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    border-left: 4px solid #3ca2e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(60, 162, 224, 0.15);
}

.update-highlight-box .update-date {
    display: inline-block;
    background-color: #3ca2e0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.update-highlight-box p {
    margin: 0;
    line-height: 1.7;
    color: #333;
    font-size: 14px;
}

/* ピンポイント画像ギャラリー */
.pinpoint-gallery-section {
    background-color: #fff;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.pinpoint-gallery-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.last-updated-date {
    display: table;
    margin: 0 auto 20px auto;
    background-color: #fff;
    color: #3ca2e0;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 30px 8px 34px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(60, 162, 224, 0.15);
    border: 2px solid #edf2f7;
    position: relative;
}

.last-updated-date::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 14px;
    width: 8px;
    height: 8px;
    background-color: #f1c40f;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 6px rgba(241, 196, 15, 0.6);
}

.pinpoint-gallery-wrapper {
    overflow: hidden;
    position: relative;
}

.pinpoint-gallery-track {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* Ensure it takes full width of container */
}

/* Custom scrollbar for the gallery */
.pinpoint-gallery-track::-webkit-scrollbar {
    height: 8px;
}

.pinpoint-gallery-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pinpoint-gallery-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.pinpoint-gallery-track::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.pinpoint-gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.pinpoint-gallery-container::-webkit-scrollbar {
    height: 6px;
}

.pinpoint-gallery-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.pinpoint-gallery-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.pinpoint-gallery-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.pinpoint-gallery-item {
    flex: 0 0 auto;
    /* Prevent shrinking/growing */
    width: 85%;
    /* Slightly less than 100% to show next slide peek */
    max-width: 400px;
    cursor: pointer;
    transition: transform 0.2s ease;
    scroll-snap-align: center;
    /* Center snap */
}

.pinpoint-gallery-item:hover {
    opacity: 0.8;
}

.pinpoint-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pinpoint-detail-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background-color: #3ca2e0;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pinpoint-detail-btn:hover {
    background-color: #2d8bc7;
}

/* ドットインジケーター（ページネーション） */
.pinpoint-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 0 4px 0;
}

.pinpoint-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.pinpoint-gallery-dot:hover {
    background-color: #a0a0a0;
    transform: scale(1.3);
}

.pinpoint-gallery-dot.active {
    background-color: #3ca2e0;
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(60, 162, 224, 0.4);
}

.pinpoint-gallery-footer {
    text-align: center;
    margin-top: 5px;
}

/* 画像拡大モーダル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.image-modal-close:hover {
    color: #e74c3c;
}

/* Payment Options (Moved from payment_select.html) */
.payment-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.payment-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.payment-option {
    display: block;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    text-align: left;
    /* Ensure left align */
}

.payment-option:hover {
    border-color: #3ca2e0;
    /* Use theme blue instead of #4A90A4 */
    background: #f8fcfd;
}

.payment-option-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.payment-option-desc {
    font-size: 13px;
    color: #666;
}

.carrier-docomo {
    color: #c00;
    font-weight: bold;
}

.carrier-au {
    color: #f60;
    font-weight: bold;
}

.carrier-softbank {
    color: #000;
    font-weight: bold;
}

/* === ロックオーバーレイ（課金制限用） === */
.locked-section {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 200, 200, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.lock-overlay .lock-icon {
    font-size: 36px;
    color: #888;
    margin-bottom: 8px;
}

.lock-overlay .lock-text {
    font-size: 13px;
    color: #666;
    font-weight: 700;
}

/* 課金制限モーダル */
.paywall-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.paywall-modal-overlay.active {
    display: flex;
}

.paywall-modal {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: paywall-modal-in 0.25s ease-out;
}

@keyframes paywall-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.paywall-modal .modal-lock-icon {
    font-size: 48px;
    color: #3ca2e0;
    margin-bottom: 12px;
}

.paywall-modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.paywall-modal p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.paywall-modal .modal-upgrade-btn {
    display: inline-block;
    padding: 12px 36px;
    background-color: #f1c40f;
    color: #333;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.paywall-modal .modal-upgrade-btn:hover {
    background-color: #e0b300;
}

.paywall-modal .modal-close-btn {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
}

.paywall-modal .modal-close-btn:hover {
    color: #666;
}

/* === プラン比較テーブル === */
.plan-comparison-section {
    margin-bottom: 24px;
}

.plan-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    table-layout: fixed;
}

.plan-table thead tr {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f6 100%);
}

.plan-feature-col {
    width: 40%;
    padding: 16px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
}

.plan-col {
    width: 20%;
    padding: 14px 8px;
    text-align: center;
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

/* Proプランのハイライト列 */
.plan-col-highlight {
    background: linear-gradient(180deg, #fffde7 0%, #fff9c4 100%);
    border-left: 2px solid #f1c40f;
    border-right: 2px solid #f1c40f;
    border-top: 2px solid #f1c40f;
}

.plan-recommend-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f1c40f, #e0a800);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.plan-header-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-header-price {
    font-size: 18px;
    font-weight: 700;
    color: #3ca2e0;
}

.plan-header-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* テーブルボディ */
.plan-feature-cell {
    padding: 14px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    line-height: 1.4;
}

.plan-check-cell {
    padding: 14px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
}

.plan-cell-highlight {
    background-color: #fffef5;
    border-left: 2px solid #f1c40f;
    border-right: 2px solid #f1c40f;
}

/* 最終行のハイライトセルに下ボーダーを付ける */
.plan-table tbody tr:last-child .plan-cell-highlight {
    border-bottom: 2px solid #f1c40f;
}

.plan-circle {
    color: #27ae60;
    font-weight: 700;
}

.plan-cross {
    color: #ccc;
    font-weight: 400;
}

/* 行のホバー効果 */
.plan-table tbody tr:hover {
    background-color: #f9fbfd;
}

.plan-table tbody tr:hover .plan-cell-highlight {
    background-color: #fffce8;
}

/* === 現在のプラン表示 === */
.current-plan-section {
    margin-bottom: 24px;
}

.current-plan-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 2px;
}

.current-plan-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #3ca2e0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(60, 162, 224, 0.12);
}

.current-plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.current-plan-icon .material-icons-round {
    font-size: 24px;
    color: #3ca2e0;
}

.current-plan-info {
    flex: 1;
}

.current-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.current-plan-detail {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.current-plan-badge {
    background-color: #3ca2e0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* === プラン変更ボタン === */
.plan-change-section {
    text-align: center;
    margin-bottom: 30px;
}

.plan-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #f1c40f, #e0a800);
    color: #333;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(241, 196, 15, 0.3);
}

.plan-change-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(241, 196, 15, 0.4);
    background: linear-gradient(135deg, #f5d442, #e0a800);
}

.plan-change-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(241, 196, 15, 0.3);
}

.plan-change-btn .material-icons-round {
    font-size: 20px;
}

.plan-change-note {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .plan-feature-col {
        width: 35%;
        padding: 12px 8px;
        font-size: 11px;
    }

    .plan-col {
        padding: 10px 4px;
    }

    .plan-header-name {
        font-size: 13px;
    }

    .plan-header-price {
        font-size: 14px;
    }

    .plan-header-price span {
        font-size: 10px;
    }

    .plan-feature-cell {
        padding: 10px 8px;
        font-size: 11px;
    }

    .plan-check-cell {
        padding: 10px 4px;
        font-size: 16px;
    }

    .current-plan-card {
        padding: 12px 14px;
    }

    .current-plan-name {
        font-size: 16px;
    }

    .plan-change-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* === プラン変更モーダル === */
.plan-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.plan-modal-overlay.active {
    display: flex;
}

.plan-modal {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: plan-modal-in 0.25s ease-out;
    position: relative;
}

@keyframes plan-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.plan-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.plan-modal-close:hover {
    color: #333;
}

.plan-modal-icon {
    margin-bottom: 8px;
}

.plan-modal-icon .material-icons-round {
    font-size: 40px;
    color: #3ca2e0;
}

.plan-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.plan-modal-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* ラジオボタングループ */
.plan-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
}

.plan-radio-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.plan-radio-item:hover {
    border-color: #b8d8f0;
    background-color: #f8fcff;
}

/* ラジオボタンを隠す */
.plan-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 選択時のスタイル */
.plan-radio-item:has(input:checked) {
    border-color: #3ca2e0;
    background-color: #f0f8ff;
    box-shadow: 0 2px 8px rgba(60, 162, 224, 0.15);
}

.plan-radio-content {
    flex: 1;
}

.plan-radio-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.plan-radio-price {
    font-size: 18px;
    font-weight: 700;
    color: #3ca2e0;
}

.plan-radio-price span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

/* カスタムラジオチェックマーク */
.plan-radio-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.plan-radio-item:has(input:checked) .plan-radio-check {
    border-color: #3ca2e0;
    background-color: #3ca2e0;
}

.plan-radio-item:has(input:checked) .plan-radio-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
}

/* 「現在のプラン」タグ */
.plan-current-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background-color: #3ca2e0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 「おすすめ」タグ */
.plan-recommend-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f1c40f, #e0a800);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 変更ボタン */
.plan-modal-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3ca2e0, #2d8bc7);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.plan-modal-submit:hover {
    background: linear-gradient(135deg, #4ab0ef, #3ca2e0);
    box-shadow: 0 3px 10px rgba(60, 162, 224, 0.3);
}

/* キャンセルボタン */
.plan-modal-cancel {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.plan-modal-cancel:hover {
    color: #666;
}

/* ==============================================
   マイページ スタイル
   ============================================== */

/* --- ユーザープロフィールカード --- */
.mypage-profile-card {
    background: linear-gradient(135deg, #3ca2e0 0%, #2d8bc7 60%, #1a6fa0 100%);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 6px 24px rgba(60, 162, 224, 0.3);
    position: relative;
    overflow: hidden;
}

/* 装飾の円 */
.mypage-profile-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.mypage-profile-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.mypage-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.mypage-avatar .material-icons-round {
    font-size: 40px;
    color: #fff;
}

.mypage-email {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    word-break: break-all;
    position: relative;
    z-index: 1;
}

.mypage-member-since {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

/* --- プラン情報セクション --- */
.mypage-plan-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.mypage-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mypage-section-title .material-icons-round {
    font-size: 20px;
    color: #3ca2e0;
}

.mypage-plan-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
    border-radius: 10px;
    border: 1px solid #d4e8f7;
}

.mypage-plan-name-wrap {
    display: flex;
    flex-direction: column;
}

.mypage-plan-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.mypage-plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #3ca2e0;
}

.mypage-plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f1c40f, #e0a800);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.mypage-next-billing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.mypage-next-billing .material-icons-round {
    font-size: 20px;
    color: #f1c40f;
}

.mypage-billing-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.mypage-billing-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- アクションボタン --- */
.mypage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.mypage-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.mypage-action-btn:hover {
    border-color: #3ca2e0;
    background: #f8fcff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 162, 224, 0.12);
}

.mypage-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mypage-action-icon.email-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.mypage-action-icon.email-icon .material-icons-round {
    color: #3ca2e0;
}

.mypage-action-icon.password-icon {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.mypage-action-icon.password-icon .material-icons-round {
    color: #e91e63;
}

.mypage-action-icon.plan-icon {
    background: linear-gradient(135deg, #fff9c4, #fff176);
}

.mypage-action-icon.plan-icon .material-icons-round {
    color: #f9a825;
}

.mypage-action-icon .material-icons-round {
    font-size: 22px;
}

.mypage-action-label {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

/* --- チャット伝言板 --- */
.mypage-chat-section {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.mypage-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa, #eef2f6);
    border-bottom: 1px solid #eee;
}

.mypage-chat-header .material-icons-round {
    font-size: 20px;
    color: #3ca2e0;
}

.mypage-chat-header-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.mypage-chat-body {
    padding: 20px 16px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f9fafb;
}

/* スクロールバー */
.mypage-chat-body::-webkit-scrollbar {
    width: 5px;
}

.mypage-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.mypage-chat-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* メッセージ共通 */
.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
    animation: chat-fade-in 0.3s ease-out;
    align-self: flex-start;
}

@keyframes chat-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ユーザーアバター（全メッセージ共通） */
.chat-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3ca2e0, #2d8bc7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-user-avatar .material-icons-round {
    font-size: 18px;
    color: #fff;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-time {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    white-space: nowrap;
}

.chat-sender-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 3px;
    padding-left: 40px;
}

/* メッセージ入力エリア */
.mypage-chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* 名前入力欄 */
.mypage-chat-name-input {
    width: 70px;
    padding: 10px 10px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 13px;
    outline: none;
    background: #f9f9f9;
    font-family: var(--font-family);
    transition: border-color 0.2s;
    text-align: center;
    flex-shrink: 0;
}

.mypage-chat-name-input:focus {
    border-color: #3ca2e0;
    background: #fff;
}

.mypage-chat-name-input::placeholder {
    color: #bbb;
}

.mypage-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    background: #f9f9f9;
    font-family: var(--font-family);
    transition: border-color 0.2s;
}

.mypage-chat-input:focus {
    border-color: #3ca2e0;
    background: #fff;
}

.mypage-chat-input::placeholder {
    color: #bbb;
}

.mypage-chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3ca2e0, #2d8bc7);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(60, 162, 224, 0.25);
    flex-shrink: 0;
}

.mypage-chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(60, 162, 224, 0.35);
}

.mypage-chat-send-btn .material-icons-round {
    font-size: 20px;
    color: #fff;
}

/* 日付区切り */
.chat-date-divider {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    padding: 4px 12px;
    background: #eef2f6;
    border-radius: 12px;
    align-self: center;
    font-weight: 500;
}

/* --- マイページレスポンシブ --- */
@media (max-width: 480px) {
    .mypage-profile-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .mypage-email {
        font-size: 15px;
    }

    .mypage-actions {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .mypage-action-btn {
        padding: 14px 6px;
    }

    .mypage-action-label {
        font-size: 11px;
    }

    .mypage-plan-name {
        font-size: 18px;
    }

    .mypage-chat-body {
        max-height: 320px;
    }

    .chat-message {
        max-width: 90%;
    }

    .mypage-chat-name-input {
        width: 60px;
        padding: 10px 6px;
        font-size: 12px;
    }
}

/* ==============================================
   解約ボタン スタイル
   ============================================== */
.cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #fff;
    color: #e74c3c;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.cancel-btn:hover {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
    transform: translateY(-1px);
}

.cancel-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.cancel-btn .material-icons-round {
    font-size: 20px;
}