/* ============================================================
   GW MyPage – メインスタイルシート
   キーカラー: #076951
   ============================================================ */

/* ---------- リセット・ベース ---------- */
.gwmp-wrap {
    --gw-green:       #076951;
    --gw-green-light: #0d8f6e;
    --gw-green-dark:  #054d3c;
    --gw-accent:      #e8f5f1;
    --gw-text:        #1a1a1a;
    --gw-text-muted:  #666;
    --gw-border:      #dde8e5;
    --gw-radius:      12px;
    --gw-shadow:      0 2px 16px rgba(7,105,81,.10);
    --gw-shadow-hover:0 6px 24px rgba(7,105,81,.18);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    color: var(--gw-text);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ---------- ① ヒーローセクション ---------- */
.gwmp-hero {
    background: linear-gradient(135deg, var(--gw-green) 0%, var(--gw-green-light) 100%);
    border-radius: var(--gw-radius);
    padding: 36px 32px;
    margin-bottom: 28px;
    color: #fff;
}

.gwmp-hero__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gwmp-hero__avatar {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.gwmp-hero__avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.6);
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    display: block;
}

/* アバター変更オーバーレイ */
#gwmp-avatar-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    cursor: pointer;
    transition: opacity .2s;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#gwmp-avatar-wrap:hover #gwmp-avatar-overlay {
    opacity: 1;
}

.gwmp-avatar-overlay__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.gwmp-avatar-overlay__text {
    font-size: .62rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: .03em;
}

/* アップロード中スピナー */
.gwmp-avatar-overlay--loading {
    opacity: 1 !important;
    background: rgba(0,0,0,.6);
}

.gwmp-avatar-overlay--loading .gwmp-avatar-overlay__icon {
    animation: gwmp-spin .8s linear infinite;
    display: inline-block;
}

@keyframes gwmp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.gwmp-hero__info {
    flex: 1;
    min-width: 160px;
}

.gwmp-hero__name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.gwmp-hero__email {
    font-size: .85rem;
    opacity: .85;
    margin: 0;
}

.gwmp-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- ボタン ---------- */
.gwmp-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
    cursor: pointer;
    white-space: nowrap;
}

.gwmp-btn--primary {
    background: var(--gw-green);
    color: #fff;
}
.gwmp-btn--primary:hover {
    background: var(--gw-green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.gwmp-btn--outline-white {
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
    background: transparent;
}
.gwmp-btn--outline-white:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.gwmp-btn--ghost-white {
    color: rgba(255,255,255,.75);
    background: transparent;
    border: 2px solid transparent;
    font-weight: 400;
}
.gwmp-btn--ghost-white:hover {
    color: #fff;
    border-color: rgba(255,255,255,.4);
}

.gwmp-mt { margin-top: 14px; }

/* ---------- セクション共通 ---------- */
.gwmp-section {
    margin-bottom: 32px;
}

.gwmp-section__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gw-green);
    border-left: 4px solid var(--gw-green);
    padding-left: 10px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwmp-icon {
    font-size: 1.1rem;
}

/* ---------- ② 自己紹介カード ---------- */
.gwmp-card--bio {
    margin-bottom: 28px;
}
.gwmp-bio-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gwmp-btn--outline-green {
    border: 2px solid var(--gw-green);
    color: var(--gw-green);
    background: transparent;
}
.gwmp-btn--outline-green:hover {
    background: var(--gw-accent);
}

.gwmp-btn--ghost {
    border: 2px solid var(--gw-border);
    color: var(--gw-text-muted);
    background: transparent;
}
.gwmp-btn--ghost:hover {
    background: #f5f5f5;
    color: var(--gw-text);
}

.gwmp-bio-text {
    font-size: .92rem;
    line-height: 1.75;
    color: var(--gw-text);
    margin: 0;
    white-space: pre-wrap;
}

.gwmp-bio-empty {
    font-size: .88rem;
    color: var(--gw-text-muted);
    margin: 0;
    font-style: italic;
}

.gwmp-bio-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border: 1px solid var(--gw-border);
    border-radius: 8px;
    font-size: .92rem;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .2s;
    color: var(--gw-text);
}
.gwmp-bio-textarea:focus {
    outline: none;
    border-color: var(--gw-green);
    box-shadow: 0 0 0 3px rgba(7,105,81,.1);
}

.gwmp-bio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.gwmp-bio-counter {
    font-size: .78rem;
    color: var(--gw-text-muted);
}

.gwmp-bio-btns {
    display: flex;
    gap: 8px;
}

.gwmp-bio-note {
    font-size: .75rem;
    color: var(--gw-text-muted);
    margin: 8px 0 0;
}

.gwmp-bio-saved {
    font-size: .8rem;
    color: var(--gw-green);
    font-weight: 600;
    margin-left: 10px;
}

/* ---------- ③ お知らせ ---------- */
.gwmp-notices {
    background: var(--gw-accent);
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    padding: 20px 24px;
}

.gwmp-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gwmp-notice-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gw-border);
}
.gwmp-notice-item:last-child { border-bottom: none; }

.gwmp-notice-date {
    font-size: .8rem;
    color: var(--gw-text-muted);
    white-space: nowrap;
}

.gwmp-notice-title {
    font-size: .9rem;
    color: var(--gw-text);
    text-decoration: none;
}
.gwmp-notice-title:hover {
    color: var(--gw-green);
    text-decoration: underline;
}

/* ---------- メイングリッド ---------- */
.gwmp-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (max-width: 640px) {
    .gwmp-main-grid { grid-template-columns: 1fr; }
}

/* ---------- カード共通 ---------- */
.gwmp-card {
    background: #fff;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    padding: 22px 24px;
    box-shadow: var(--gw-shadow);
    transition: box-shadow .2s;
    margin-bottom: 20px;
}
.gwmp-card:hover {
    box-shadow: var(--gw-shadow-hover);
}

.gwmp-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.gwmp-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gw-green);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwmp-card__link {
    font-size: .8rem;
    color: var(--gw-green);
    text-decoration: none;
    white-space: nowrap;
}
.gwmp-card__link:hover { text-decoration: underline; }

/* ---------- ③ マイ予約カード ---------- */
.gwmp-badge-count {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gw-green);
    background: var(--gw-accent);
    border-radius: 50px;
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.gwmp-booking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gwmp-booking-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--gw-border);
    font-size: .85rem;
}
.gwmp-booking-item:last-child { border-bottom: none; }
a.gwmp-booking-item--link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    border-radius: 6px;
    margin: 0 -8px;
    padding: 6px 8px;
}
a.gwmp-booking-item--link:hover {
    background: #f3f4f6;
}
.gwmp-booking-arrow {
    margin-left: auto;
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 600;
}

.gwmp-booking-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}
.gwmp-booking-link:hover {
    opacity: .7;
}

.gwmp-booking-date {
    color: var(--gw-text-muted);
    flex: 1;
}

.gwmp-booking-status {
    font-size: .75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
}

.gwmp-status--confirmed {
    background: #d4edda;
    color: #155724;
}
.gwmp-status--pending {
    background: #fff3cd;
    color: #856404;
}
.gwmp-status--completed {
    background: #e2e3e5;
    color: #383d41;
}
.gwmp-status--paid {
    background: #dbeafe;
    color: #1e40af;
}
.gwmp-status--attention {
    background: #fce7f3;
    color: #9d174d;
}
.gwmp-status--cancelled,
.gwmp-status--refunded {
    background: #f8d7da;
    color: #721c24;
}

.gwmp-alert--warning {
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .85rem;
}

.gwmp-empty-text {
    font-size: .88rem;
    color: var(--gw-text-muted);
    margin: 0 0 4px;
}

/* ---------- ④ 活動サマリーカード ---------- */
.gwmp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.gwmp-stat {
    text-align: center;
    background: var(--gw-accent);
    border-radius: 10px;
    padding: 14px 8px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.gwmp-stat:hover {
    background: #c6e8de;
    transform: translateY(-2px);
}

.gwmp-stat__num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gw-green);
    line-height: 1;
}

.gwmp-stat__label {
    font-size: .72rem;
    color: var(--gw-text-muted);
}

.gwmp-recent-posts {
    border-top: 1px solid var(--gw-border);
    padding-top: 12px;
}

.gwmp-recent-label {
    font-size: .78rem;
    color: var(--gw-text-muted);
    margin: 0 0 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gwmp-recent-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gwmp-recent-posts li {
    padding: 5px 0;
    border-bottom: 1px solid var(--gw-border);
}
.gwmp-recent-posts li:last-child { border-bottom: none; }

.gwmp-recent-posts a {
    font-size: .85rem;
    color: var(--gw-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gwmp-recent-posts a:hover {
    color: var(--gw-green);
}

/* ---------- セクションヘッド（タイトル＋ボタン横並び） ---------- */
.gwmp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}

.gwmp-section__head .gwmp-section__title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.gwmp-section__head .gwmp-btn--sm {
    flex-shrink: 0;
}

.gwmp-btn--sm {
    padding: 6px 16px;
    font-size: .8rem;
}

/* ---------- ④b お気に入り記事 ---------- */
.gwmp-card--favorites {
    margin-bottom: 28px;
}

.gwmp-fav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gwmp-fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--gw-accent);
    border-radius: 10px;
    text-decoration: none;
    color: var(--gw-text);
    transition: background 0.2s, transform 0.15s;
}
.gwmp-fav-item:hover {
    background: #c6e8de;
    transform: translateY(-2px);
}

.gwmp-fav-item__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.gwmp-fav-item__thumb--empty {
    background: linear-gradient(135deg, #e8f5f1, #d1ede6);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.gwmp-fav-item__title {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- ⑤ 最近見た専門家 ---------- */
.gwmp-recent-advisers {
    background: #fff;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    padding: 22px 24px;
    box-shadow: var(--gw-shadow);
    margin-bottom: 32px;
}

.gwmp-adviser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.gwmp-adviser-card {
    text-align: center;
    text-decoration: none;
    color: var(--gw-text);
    background: var(--gw-accent);
    border-radius: 10px;
    padding: 16px 10px 12px;
    transition: background .2s, transform .15s, box-shadow .15s;
}
.gwmp-adviser-card:hover {
    background: #c6e8de;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(7,105,81,.15);
}

.gwmp-adviser-card__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gw-green);
    margin: 0 auto 8px;
    display: block;
}

.gwmp-adviser-card__name {
    font-size: .82rem;
    font-weight: 600;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gwmp-adviser-card__specialty {
    font-size: .72rem;
    color: var(--gw-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gwmp-adviser-loading {
    color: var(--gw-text-muted);
    font-size: .88rem;
    padding: 12px 0;
}

/* ---------- ⑥ クイックリンク ---------- */
.gwmp-quick-links {
    background: #fff;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    padding: 22px 24px;
    box-shadow: var(--gw-shadow);
}

.gwmp-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.gwmp-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    background: var(--gw-accent);
    border-radius: 10px;
    text-decoration: none;
    color: var(--gw-text);
    transition: background .2s, transform .15s, box-shadow .15s;
    text-align: center;
}
.gwmp-link-card:hover {
    background: #c6e8de;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(7,105,81,.15);
}

.gwmp-link-card__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.gwmp-link-card__label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gw-green-dark);
}

/* ---------- ログイン促進 ---------- */
.gwmp-login-notice {
    background: var(--gw-accent);
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    padding: 24px;
    text-align: center;
    font-size: .95rem;
}
.gwmp-login-notice a {
    color: var(--gw-green);
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 480px) {
    .gwmp-hero { padding: 24px 18px; }
    .gwmp-hero__inner { gap: 14px; }
    .gwmp-hero__name { font-size: 1.2rem; }
    .gwmp-card { padding: 18px 16px; }
    .gwmp-links-grid,
    .gwmp-adviser-grid { grid-template-columns: repeat(3, 1fr); }
    .gwmp-stats-grid { gap: 6px; }
    .gwmp-stat__num { font-size: 1.3rem; }
}
