
:root {
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #ffffff;
  --color-background-alt: #f8f8f8;
  --color-background-light: #f9f9f9;
  --color-border: #e0e0e0;
  --color-light-gray: #F5F5F5;
  --color-medium-gray: #E0E0E0;
  --color-dark-gray: #777777;
  --border-color: #dddddd;
  --spacing-xs: 0.4rem;
  --spacing-sm: 0.8rem;
  --spacing-md: 1.6rem;
  --spacing-lg: 2.4rem;
  --spacing-xl: 3.2rem;
  --spacing-xxl: 4.8rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-color-hover: rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max-width: 120rem;
  --transition-normal: 0.3s ease;
}

.logged-header a {
  position: relative;
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
}

.logged-header a.active, .user-menu-dropdown a.active {
  color: var(--color-primary);
}

.logged-header a:hover:after,
.logged-header a.active:after {
  width: 80%;
}

.logged-header a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}


section {
  padding: var(--spacing-xxl) 0 0;
}


/**** item詳細 ****/
.page-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.page-header h1 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.page-header h1:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
}

.page-header p {
  color: var(--color-dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

.item-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  gap: 20px;
}

li.alert.alert-danger {
  color: red;
  margin-bottom: var(--spacing-s);
}


/* Item detail section */
.item-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  margin-top: 35px;
  width: 100%;
}

.item-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* box-shadow: var(--shadow-sm); */
}

.main-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.03);
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.item-artist {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  font-weight: 500;
}

.item-description {
  font-size: 1.8rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  word-break: break-all;
}

.item-specs {
  background-color: var(--color-background-alt);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
}

.spec-item {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.spec-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-light);
}

.spec-detail {
  /* font-size: 1.8rem; */
  /* font-weight: 700; */
  color: var(--color-text);
}

.cta-buttons {
  margin-top: auto;
  display: flex;
  gap: var(--spacing-md);
}

/* Item description section */
.item-description-section {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
}

.description-content {
  font-size: 1.6rem;
  line-height: 1.7;
}

.description-content p {
  margin-bottom: var(--spacing-lg);
}

.cardset-history .spec-title {
  padding-left: var(--spacing-md);
}

.cardset-history li {
  padding: var(--spacing-xs) var(--spacing-md);
  border-bottom: 1px solid #ddd;
}

.cardset-history h4 {
  font-weight: 500;
}


.feature-list {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-lg);
}

.feature-list li {
  position: relative;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.info-box {
  background-color: rgba(75, 139, 255, 0.1);
  border-left: 4px solid var(--color-secondary);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-box h3 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.card-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.preview-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.preview-info h3 {
  margin-bottom: var(--spacing-sm);
}

/* Registration section */
.item-register-section {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
  min-width: 50%;
}

.item-section-title {
  font-size: 2.4rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.item-auth-container {
  max-width: 60rem;
  margin: 0 auto;
}

.item-auth-container p {
  margin-bottom: var(--spacing-m);
}

.item-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
}

.item-auth-tab {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-auth-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.item-auth-panel {
  display: none;
}

.item-auth-panel.active {
  display: block;
}

.item-auth-form {
  margin-bottom: var(--spacing-lg);
}

.item-auth-form .form-group {
  margin-bottom: var(--spacing-md);
}

.item-auth-form .form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.item-auth-form .form-group input, .item-auth-form .form-group select, .item-auth-form .form-group textarea,
.item-serial-form .form-group input, .item-serial-form .form-group select, .item-serial-form .form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item-auth-form .button-primary,
.item-serial-form .button-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
}


.item-auth-form .button-primary:hover,
.item-serial-form .button-primary:hover {
  background-color: var(--color-primary-dark);
}


.item-auth-form .button-primary:disabled,
.item-serial-form .button-primary:disabled {
  background-color: var(--color-gray-500);
  cursor:not-allowed;
}

.button-full {
  width: 100%;
}

.item-auth-form .button,
.item-serial-form .button  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  margin-top: 15px;
}

.item-auth-help {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-text-light);
}

.item-auth-help a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* .serial-register-section {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
} */

.serial-register-section h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.register-options {
  margin-top: var(--spacing-m);
}

.register-options .box-label-option {
  margin: var(--spacing-s) auto 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .item-container {
    flex-direction: column;
    gap: 0;
  }

  .item-detail {
    grid-template-columns: 1fr;
  }
  
  .item-image {
    max-width: 50rem;
    margin: 0 auto;
  }
  
  .card-preview {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .preview-image {
    max-width: 40rem;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
  }

  .item-container {
    padding: 0;
  }

  .item-detail {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .auth-tabs {
    flex-direction: column;
    border-bottom: none;
  }
  
  .auth-tab {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
  }
  
  .auth-tab.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
  }
}

/* Animation for elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-detail, .item-description-section, .register-section {
  animation: fadeInUp 0.6s ease-out forwards;
}

.item-description-section {
  animation-delay: 0.2s;
}

.register-section {
  animation-delay: 0.4s;
}



/**** マイページ ****/
/* Card Grid Styles */
.cards-container, .history-container {
  margin-bottom: var(--spacing-xxxl);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal);

  border: .5px solid #e5e5e5;
}

.card-inner {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover .card-inner {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-info {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fbfbfb;
  min-height: 110px;
}

.card-info h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.card-info p {
  color: var(--color-dark-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}


.item-detail img {
  height: auto;
  border-radius: var(--radius-md);
}


/* Selected Card State */
.card.selected .card-inner {
  box-shadow: 0 0 0 3px var(--primary-color), var(--shadow-md);
}

.card.selected::after {
  content: '選択中';
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background-color: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}

/* Expired Card State */
.card.expired .card-inner {
  opacity: 0.8;
}

.expired-tag {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-l);
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-medium-gray);
  background-color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--color-light-gray);
  border-color: var(--color-dark-gray);
}

.pagination-btn.active, .current-page {
  background-color: var(--color-primary);
  border-color: var(--primary-color);
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

#gachaModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lottieBox {
  pointer-events:none;
  margin-left: 1%;
  width: 70%;
}

#reward {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: .4s;
}

#reward.show {
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#reward h3 {
  font-size: 2.5rem;
  max-width: 70%;
  text-align: center;
  margin-bottom: var(--spacing-m);
  color: var(--color-primary-dark);
}

#reward p {
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 950px) {
  #lottieBox {
    width: 110%;
  }

  #reward h3 {
    font-size: 2rem;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-m);
  }
}

@media (max-width: 560px) {
  #lottieBox {
    width: 135%;
  }

  #reward p {
    font-size: 1.3rem;
  }
}

@media (min-width: 1400px) {
  
}


/* Card Selection Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 75, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0);
  }
}

.card.selected .card-inner {
  animation: pulse 1.5s infinite;
}

.not_cards {
  display: flex;
  justify-content: center;
}

.not_cards p {
  color: var(--color-dark-gray);
  max-width: 700px;
}


@media (max-width: 768px) {
  section {
    padding: var(--spacing-l) 0;
    position: relative;
  }

  .page-header {
    margin-bottom: var(--spacing-xs);
  }

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

  .card-info {
    padding: var(--spacing-md);
  }
}

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/**** itemダウンロード ****/
.card-details {
  background-color: var(--color-background-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-top: auto;
}

.download-section {
  margin-bottom: var(--spacing-xxl);
}

.download-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.download-section-title {
  font-size: 2rem;
  margin: 0;
}

.download-all-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background-color: var(--color-primary);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.content-item {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--shadow-color);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.content-thumbnail {
  position: relative;
  padding-top: 66.67%;
  overflow: hidden;
}

.content-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.download-section .content-overlay { /* */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.download-section .download-media-type {
  background: #333;
  opacity: .8;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px;
}

.download-section .content-info {
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.download-section .content-details {
  flex: 1;
  margin-right: var(--spacing-md);
}

.download-section .content-title {
  font-size: 1.4rem;
  margin: 0 0 var(--spacing-xs);
  line-height: 1.3;
}

.content-subtitle {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.download-btn {
  background-color: var(--color-primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.play-btn {
  background-color: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}

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

.content-item:hover .content-overlay {
  opacity: 1;
}

.content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color-hover);
}

.content-item:hover .content-thumbnail img {
  transform: scale(1.05);
}

.play-btn:hover {
  transform: scale(1.1);
  background-color: white;
}

/* Modal styles */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  background-color: white;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.modal-container.active .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-close, #closeBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-fast);
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.modal-content {
  padding: var(--spacing-xl);
}

.modal-title {
  font-size: 1.5rem;
  margin: 0 0 var(--spacing-lg);
  text-align: center;
}

/* Audio modal */
.audio-player {
  width: 100%;
  padding: var(--spacing-xl) 0;
}

.audio-player audio {
  width: 100%;
}

/* Video modal */
.video-modal .modal-content {
  padding: var(--spacing-lg);
}

.video-player {
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.video-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
}

/* Image modal */
.image-viewer {
  width: 100%;
  text-align: center;
}

.image-viewer img {
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
}

/* Responsive */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    padding: var(--spacing-lg);
  }
  
  .modal-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
  }
  
  .audio-player {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 576px) {
  .content-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .modal {
    width: 95%;
  }
  
  .modal-content {
    padding: var(--spacing-md);
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}



/**** history ****/
.history-section {
  padding: 0;
}

.history-container {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  /* margin-bottom: var(--spacing-xxxl); */
}

.history-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.user-history-count {
  padding: var(--spacing-m);
  text-align: end;
  border-bottom: 2px solid #ddd;
}

.history-table-wrapper ul {
  padding: var(--spacing-md);
}

.history-table-wrapper li {
  padding: var(--spacing-sm);
  border-bottom: 1px solid #ddd;
}

.history-date {
  color: var(--color-dark-gray);
  font-size: 1.4rem;
}

.history-table-wrapper li h4 {
  margin-left: 1rem;
  font-size: 1.6rem;
  font-weight: 500;
}

.history-itemset {
  margin-left: 1rem;
  color: var(--color-dark-gray);
  font-size: 1.3rem;
}

@media (max-width: 768px) {
}



/* user-contact */
.user-contact-section .section-title-contact {
  color: inherit;
}

.user-contact-section .contact-form {
  margin-bottom: 60px;
}




.password-box .contact-form {
  max-width: 600px;
}

.password-form-text {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: var(--spacing-m);
}


/* ===========================
   ユーザーヘッダー
   =========================== */
/* ボタン共通 */
.header .btn {
  display:inline-block;
  padding:0.6rem 1rem;
  transition:background .2s;
  font-weight: 600;
}

/* ドロップダウン本体 */
.dropdown { 
  position:relative;
  display: flex;
  flex-direction: column;
}
.dropdown-toggle {
  cursor:pointer;
}

/* summary のデフォルト ▶ を消す */
/* .dropdown-toggle::marker {
  display:none;
} */

.dropdown-menu {
  position:absolute;
  right:0;
  top:calc(100% + .25rem);
  min-width:180px;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:6px;
  box-shadow:0 3px 8px rgba(0,0,0,.08);
  padding:.25rem 0;
  z-index:900;
  display:none;
}

.dropdown[open] .dropdown-menu {
  display:block;
}

.dropdown-menu .btn {
  display:block;
  width:100%;
  text-align:left;
  padding:.5rem 1rem;
  background:none;
}

.dropdown-menu .btn:hover {
  background:#f5f5f5;
}

/* SP 内（ハンバーガーメニュー展開中）のドロップダウンは absolute 不要 */
.user-menu-dropdown .dropdown-menu {
  position:static;
  border:none;
  box-shadow:none;
}

/* レスポンシブ：768px を境に PC/SP 切替え */
@media (max-width:768px){
  .logged-header {
    display:none;
  }
  .header-cta-ps {
    display:block;
  }
  .header .btn {
    width: 100%;
  }
  .dropdown-menu .btn {
    text-align: center;
  }
}
@media (min-width:769px){
  .logged-header {
    display:flex;
    gap:.75rem;
    align-items:center;
  }
  .header-cta-ps {
    display:none;
  }
}

