.sticky-link a {
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  margin-top: 1rem;
  margin-left: 31rem;
  margin-bottom: 20px;
  color: #6b7280;
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid rgba(209, 213, 219, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.sticky-link a:hover{
  background: linear-gradient(135deg, rgba(180, 220, 240, 0.7), rgba(200, 235, 250, 0.7));
  transform: translateY(-0.5px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.settings-tab {
  position: absolute;
  top: 50px;
  right: 70px;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
}

.settings-tab > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-tab a {
  text-decoration: none;
  color: #6b6b5f;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  padding: 7px 12px;
  border-radius: 2px;
  background: rgba(249, 241, 228, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 180, 160, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-align: center;
  min-width: 110px;
  opacity: 0.75;
}

.settings-tab a:hover {
  color: #3d6b52;
  background: rgba(249, 241, 228, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  opacity: 1;
  transform: translateY(-2px);
}

.flash-alert{
  font-size: 13px;
  display: inline-block;
  background-color: #aab9bb;
  /* margin-left: 2rem; */
}


.profile-wrapper{
  width: 100%;
  display: flex;
  gap: 130px;
  justify-content: center; 
}

.profile-image-text{
  display: flex;
}

.profile-box {
  align-items: center;
  margin-top: 50px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: contain;
  /* box-shadow: 2px 4px 18px rgba(0, 0, 0, 0.534); */
  opacity: 0.8;
}

.profile-name{
  font-size: 18px;
  margin-left: 7px;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.298);
  opacity: 0.9;
}

.profile-text {
 background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 22px,
    #dcdcdc 23px
  );
  background-color: #ededeaa8;
  color: #130a0489;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word; /* この二つは改行の処理 */
  height: 150px;
  width: 150px;
  line-height: 15px;
  margin-left: 20px;
  padding: 2rem;
  font-family: 'Zen Old Mincho', serif;
  border-radius: 1px;
  text-shadow:2px 2px 6px rgba(61, 58, 58, 0.274);
  opacity: 0.8;
}

.sticky-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 160px); /* 3列、幅固定！ */
  width: 100%;
}

.sticky-note {
  font-size: 12px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.7), rgba(255, 248, 240, 0.7));
  padding: 1.2rem;
  width: 100%;
  max-width: 170px;
  height: 150px;
  border: 1px solid rgba(220, 200, 180, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 0.95;
  backdrop-filter: blur(8px);
  color: #5a5a5a;
  line-height: 1.5;
  font-weight: 300;
  transition: all 0.5s ease;
  position: relative;
}

/* 無造作に傾き + ゆらぎ */
.sticky-note:nth-child(odd) {
  transform: rotate(-2deg) scale(0.99) translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.75), rgba(254, 245, 235, 0.75));
}
.sticky-note:nth-child(even) {
  transform: rotate(1.5deg) scale(1.01) translateY(1px);
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.7), rgba(255, 248, 240, 0.7));
}

/* ホバー時に前へ動く */
.sticky-note:hover {
  transform: rotate(0deg) scale(1.02);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  opacity: 1;
} 

.delete-btn{
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;    
  border: none;            
  font: inherit;           /* ボタン特有のフォントをリセット */
  color: rgba(180, 100, 100, 0.5);            
  cursor: pointer;        
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  transition: all 0.3s ease;
}

.delete-btn:hover {
  color: rgba(180, 100, 100, 0.8);
  transform: scale(1.1);
}

.tab-wrapper {
  margin-top: 25px;
}

/* ラベルのスタイル */
.tab-wrapper label {
  padding: 0.5rem 1rem;
  cursor: pointer;
  background: #f0f0f0;
  margin-right: 0.5rem;
  border-radius: 5px 5px 0 0;
  border: 1px solid #3565ac35;
  border-bottom: 1px solid #3565ac;
  opacity: 0.8;
}

/* チェックされたタブの見た目 */
input[type="radio"]:checked + label {
  background: #ddd;
  font-weight: bold;
}

/* ラジオボタンは非表示に */
.tab-wrapper input[type="radio"] {
  display: none;
}

.tab-content {
  display: none;
}

/* 選択された方のコンテンツを強制的に表示する */
  #tab1:checked ~ #content1,
  #tab2:checked ~ #content2 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    margin-top: 1rem;
  }

.mypage-spots{
  box-sizing: border-box; /* パディングやボーダーを幅に含める */
  padding: 100px 70px 90px 70px;
  /* margin-left: 30px; */
  border-bottom: 1px solid rgba(146, 115, 84, 0.3);
}

.mypage-spots img{
  width:150px;
  height:150px;
  object-fit: contain;
  /* box-shadow: 4px 4px 24px rgb(105, 104, 104); */
  transition: all 0.7s ease;
  opacity: 0.9;

}

.mypage-spots img:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.spot-link {
  text-decoration: none;
  color: inherit; 
}

.mypage-spot-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);  
  white-space: nowrap;/* 改行されないように */
  text-overflow: ellipsis; /* テキストが親要素の幅を超えた場合に、「…」と表示 */
  max-width: 170px; 
}

/* ここからレスポンシブ------------------------------------- */
@media screen and (max-width: 1100px) {
  
  .settings-tab {
    top: 25px;
    right: 30px;
  }

  .settings-tab a {
    font-size: 11px;
    min-width: 95px;
  }

  .profile-wrapper {
    gap: 50px;
    margin-left: 70px;
  }

  .profile-image-text{
    display: block;/* アイコンとプロフィール文を縦並びに */
  }
  
  .profile-name {
    font-size: 16px;
  }

  .profile-text {
    padding: 20px;
    margin-left: 0;
  }

  .sticky-container {
    height: 200px;
    padding-right: 100px;
  }

  .sticky-note {
    width: 130px;
    height: 120px;    
  }
}

@media screen and (max-width: 850px) {

  .sticky-link a{
    margin-left: 20px;
    margin-top: 0;
    position: relative;
    top: 835px;
  }

  .settings-tab {
    position: static;
  }

  .settings-tab > ul {
    flex-direction: row;
    gap: 5px;
  }

  .settings-tab a {
    font-size: 10px;
    padding: 7px 9px;
  }

  .flash-alert{
    padding: 2px 6px;
    font-size: 11px;
    margin-top: 1rem;
  }

  .profile-wrapper {
    flex-direction: column;
    gap: 80px;
    margin:30px 0;
  }

  .profile-image-text{
    display: flex;
    justify-content:center;
    gap: 70px;
  }

  .profile-box {
    display:flex;
    align-items:flex-start;
    flex-direction: column; 
  }

  .profile-name {
    padding-top: 10px;
    padding-right:70px;
    border-bottom: 1px solid	 #516d31;
  }

  .profile-text{
    box-sizing: border-box;
    width: 200px;
    padding: 10px 20px 178px 30px;
  }

  .sticky-note {
    width: 150px;
    height: 130px;
    margin-left: 20px;
  }

  .tab-wrapper{
    margin-top: 285px;
  }
  
  #tab1:checked ~ #content1,
  #tab2:checked ~ #content2 {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media screen and (max-width: 635px) {

  .sticky-link a{
    /* margin: 0; */
    top: 600px;
  }

  .flash-alert{
    margin: 0;
    position:relative;
    top: 250px;
    left: 20px;
    font-size: 12px;
  }

  .profile-wrapper{
    margin: 0;
  }

  .profile-box{
    margin-top: 20px;
  }

  .avatar{
    width: 130px;
    height: 130px;
  }

  .profile-text{
    max-width: 300px;
    min-width: 250px;
    padding: 10px 30px 5px 30px;
  }

  .sticky-container {
    grid-template-columns: repeat(5, 40px);
  }

  .tab-wrapper{
    margin-top:130px;
  }

}

@media screen and (max-width: 524px) {

  .sticky-link a{
    top: 730px;
    padding: 3px 9px;
  }

  .flash-alert{
    top: 440px;
  }

  .profile-image-text{
    display:block;
    margin-left:40px;
  }

  .sticky-container {
    grid-template-columns: repeat(5, 30px);
  }

  .sticky-note {
    width: 120px;
    height:120px;
  }

  .tab-wrapper{
    margin-top:80px;
  }

  #tab1:checked ~ #content1,
  #tab2:checked ~ #content2 {
    grid-template-columns: repeat(1, 1fr);
  }

}