/* 全体 */
.csc-form {
  max-width: 700px;
  margin: 0 auto;
}

/* タイトル */
.csc-form-title {
  text-align: center;
  margin-bottom: 20px;
}

/* テーブル */
.csc-table {
  width: 100%;
  border-collapse: collapse;
}

.csc-table th,
.csc-table td {
  border: 1px solid #ccc;
  padding: 12px;
  vertical-align: middle;
}

.csc-table th {
  width: 30%;
  background: #f5f5f5;
  text-align: left;
}

/* 入力欄 */
.csc-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 必須 */
.csc-required {
  color: red;
}

/* 補助テキスト */
.csc-help-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* ボタン */
.csc-submit-area {
  text-align: center;
  margin-top: 20px;
}

.csc-button {
  background: #7cc241;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 45px;
  cursor: pointer;
}

.csc-button:hover {
  opacity: 0.9;
}

/* Google */
.csc-google-area {
  text-align: center;
  margin-top: 20px;
}

.csc-google-button {
  display: inline-block;
  background: #ff994b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 2px 2px 5px 0 #33333352;
  font-weight: 500;
}
.csc-google-button:hover {
  color: #fff;
  opacity: 0.9;
}

/* ログインリンク */
.csc-login-link {
  text-align: center;
  margin-top: 15px;
}

/* 区切り */
.csc-divider {
  margin: 30px 0;
  border-top: 1px solid #ddd;
}

/* アラート */
.csc-alert {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.csc-alert-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: red;
}

.csc-alert-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.csc-genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mypage-wrapper{
    max-width:900px;
    margin:0 auto;
}

.mypage-header-card{
    display:flex;
    justify-content:space-between;
    gap:30px;
    padding:30px;
    border:1px solid #e5e5e5;
    border-radius:16px;
    margin-bottom:40px;
    background:#fff;
}

.mypage-user-name{
    font-size: 1.1rem;
    font-weight:700;
    margin-bottom:10px;
}

.mypage-google-status{
    color:#4285F4;
    margin-bottom:10px;
}

.mypage-review-count{
    margin-bottom:20px;
}

.mypage-section-label{
    font-weight:700;
    margin-bottom:10px;
}

.mypage-genre-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.mypage-genre-tag{
    padding:6px 12px;
    border-radius:999px;
    background:#f3f3f3;
    font-size:13px;
}
.mypage-genre-tag.is-major {
    background:#7cc35e4a;
    font-weight: 600;
}

.mypage-header-actions{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.mypage-action-button{
    display:flex;
    justify-content:center;
    align-items:center;
    min-width:220px;
    height:48px;
    border-radius:8px;
    background: #84c355;
    color:#fff;
    text-decoration:none;
}

.mypage-action-button.is-logout{
    background:#666;
}

.mypage-review-section{
    margin-bottom:60px;
}

.mypage-section-title{
    font-size: 1.1rem;
    margin-bottom:25px;
}

.mypage-review-list{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.mypage-review-item{
    display:flex;
    gap:20px;
    padding:20px;
    border:1px solid #eee;
    border-radius:14px;
    background:#fff;
}

.mypage-review-thumb{
    width:120px;
    flex-shrink:0;
}

.mypage-review-thumb img{
    width:100%;
    height: 100%;
    object-fit: contain;
}

.mypage-review-body{
    flex:1;
}

.mypage-review-meta{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-bottom:10px;
}

.mypage-review-title{
    font-size: 1rem;
    font-weight:700;
}

.mypage-review-score{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
}

.mypage-review-score img{
    height:22px;
}

.mypage-review-text{
    line-height:1.5;
}
.is-spoiler .mypage-review-text{
    line-height:1.9;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}
.is-spoiler.open .mypage-review-text {
    filter: blur(0);
}

.is-spoiler button {
    background: #fff;
    border: 1px solid #6ad348;
    color: #6ad348;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
}

.mypage-pagination{
    display:flex;
    justify-content:center;
    margin-top:40px;
}

.mypage-pagination .page-numbers{
    display:flex;
    justify-content:center;
    align-items:center;
    width:42px;
    height:42px;
    border-radius:8px;
    background:#f3f3f3;
    margin:0 4px;
    text-decoration:none;
}

.mypage-pagination .current{
    background:#111;
    color:#fff;
}

.mypage-delete-box{
    border-top:1px solid #ddd;
    padding-top:30px;
}

.mypage-delete-box summary{
    cursor:pointer;
    color:#cc0000;
    font-weight:700;
}

.mypage-delete-inner{
    margin-top:20px;
    padding:20px;
    background:#fff5f5;
    border-radius:12px;
}

.mypage-delete-warning{
    color:#cc0000;
    font-weight:700;
}

.mypage-delete-check{
    display:block;
    margin:20px 0;
}

.mypage-delete-button{
    background:#cc0000;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:14px 20px;
    cursor:pointer;
}

@media (max-width:768px){

    .mypage-header-card{
        flex-direction:column;
    }

    .mypage-review-item{
        flex-direction:column;
    }

    .mypage-review-thumb{
        width:100%;
    }

    .mypage-review-meta{
        flex-direction:column;
        gap:8px;
    }

    .mypage-action-button{
        width:100%;
    }

}