/* 共通設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    position: relative;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 20%;
    height: 100vh;
    background: linear-gradient(135deg, #e6b6ee, #e8d2f5);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-icon {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    object-position: top;
    /* ← ここで表示位置を上寄りにする */
    box-shadow: 0px 0px 0px 10px #f4aaf7;
    border: dashed 2px #e183ee;
    border-radius: 8px;
}

.sidebar-header h1 {
    font-size: 1rem;
    color: #883888;
}

.sidebar-header p {
    font-size: 0.8rem;
    color: #666;
}

.sidebar-nav ul {
    list-style: none;
    width: 100%;
    padding: 0;
}

.sidebar-nav li {
    margin: 15px 0;
}

.sidebar-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    display: block;
    transition: 0.3s;
}

.sidebar-nav a:hover {
    color: #a233d6;
}

.sidebar-links {
    margin-top: auto;
    width: 100%;
    font-size: 0.9rem;
}

.sidebar-links a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #666;
}

.sidebar-links a:hover {
    color: #ed6df8;
}

/* 背景や画像の重ね合わせ構造 */
.kasaneru {
    position: fixed;
    width: 80%;
    height: 100vh;
    background: url() no-repeat center center;
    background-size: cover;
    overflow: hidden;
    margin-left: 20%;
}

/* 立ち絵の設定 */
.tatie-img {
    height: 100vh;
    width: 100%;
    max-width: 100%;
    display: block;
    z-index: 3;
    position: relative;
}

/* 光のエフェクトを絶対位置で重ねる */
.hikari {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hikari img {
    position: absolute;
    top: 100%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(0deg);
}

.hikari-1 {
    width: 300px;
    animation: rotate-center 5s linear infinite;
}

.hikari-2 {
    width: 2000px;
    animation: rotate-center 3s linear infinite;
}

.hikari-3 {
    width: 2500px;
    animation: rotate-center 9s linear infinite;
}

/* 回転アニメーション */
@keyframes rotate-center {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.text-left,
.text-right {
    position: absolute;
    writing-mode: vertical-rl;
    /* 縦書き（右から下へ） */
    text-orientation: upright;
    /* ひらがな・漢字を縦向きに */
    font-size: 1.5em;
    line-height: 2;
    color: #333;
    top: 20%;
}

.text-left {
    left: 5%;
    background: linear-gradient(135deg, #fce0ff, #edc0ff);
    border: 3px dotted #9c46ff;
    /* 点線の縁取りで可愛さUP */
    border-radius: 20px;
    /* 角を丸く */
    box-shadow: 0 5px 15px rgba(255, 192, 203, 0.5);
    /* ふんわり影 */
}

.text-left p {
    font-family: 'Zen Maru Gothic', cursive;
    /* 丸ゴシック系でふんわり */
    color:#9c46ff;
    /* 濃いピンクでアクセント */
    font-size: 2rem;
    text-shadow: 1px 1px 2px #fff;
    /* 白い影でやさしい印象に */
}


.text-right {
    margin-right: 5%;
    background: linear-gradient(135deg, #ffe0f0, #ffc0cb);
    border: 3px dotted #9c46ff;
    /* 点線の縁取りで可愛さUP */
    border-radius: 20px;
    /* 角を丸く */
    box-shadow: 0 5px 15px rgba(255, 192, 203, 0.5);
    /* ふんわり影 */
}

.text-right p {
    font-family: 'Zen Maru Gothic', cursive;
    /* 丸ゴシック系でふんわり */
    color: #9c46ff;
    /* 濃いピンクでアクセント */
    font-size: 2rem;
    text-shadow: 1px 1px 2px #fff;
    /* 白い影でやさしい印象に */
}

.blank-space {
    height: 100vh;
}


.profile-section {
    margin-left: 20%;
    padding: 40px;
    background: #fff0ff;
    min-height: 500px;
    position: relative;
    z-index: 8;
}

.profile-header {
    text-align: center;
    margin-bottom: 50px;
}

.profile-header h1 {
    font-size: 3rem;
    color: #9c46ff;
}

.profile-header h2 {
    font-size: 1.5rem;
    color: #666;
}
.profile-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}

.profile-image {
    width: 280px;
    border-radius: 10px;
}

.profile-text {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.8;
}

.profile-text ul {
    padding-left: 20px;
}

.profile-text ul li {
    margin-bottom: 10px;
}

.feature-section {
    margin-left: 20%;
    padding: 40px;
    background: #fff0ff;
    min-height: 500px;
    position: relative;
    z-index: 8;
}
  .feature-header {
    text-align: center;
    margin-bottom: 50px;
}

.feature-header h1 {
    font-size: 3rem;
    color: #9c46ff;
}

.feature-header h2 {
    font-size: 1.5rem;
    color: #666;
}

  .feature-title {
    text-align: center;
    font-size: 2rem;
    color: #9c46ff;
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
  }
  
  .feature-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 4px;
    background-color: #9c46ff;
    margin: 0.5rem auto 0;
  }
  
  .feature-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature-text {
    flex: 1 1 60%;
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
  }
  
  .feature-text h3 {
    font-size: 1.5rem;
    color: #9c46ff;
    margin-bottom: 1rem;
    border-bottom: 2px solid #9c46ff;
    display: inline-block;
  }
  
  .feature-image {
    flex: 1 1 35%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
  }
  

.fanart-section {
    margin-left: 20%;
    padding: 40px;
    background: #fff0f5;
    min-height: 500px;
    position: relative;
    z-index: 8;
}

.fanart-header {
    text-align: center;
    margin-bottom: 50px;
}

.fanart-header h1 {
    font-size: 3rem;
    color: #9c46ff;
}

.fanart-header h2 {
    font-size: 1.5rem;
    color: #666;
}

.fanart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    /* 小さめのカードに対応 */
    gap: 15px;
    /* カード間の隙間も少しだけに */
    justify-items: center;
    /* 各カードを中央寄せ */
    padding: 20px 0;
}

.fanart-card-link {
    display: block;
    width: 120px;
    /* カード自体も小さく */
    height: 120px;
    /* 高さも揃える（オプション） */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.fanart-card-link:hover {
    transform: scale(1.1);
}

.fanart-img {
    width: 100%;
    /* 親要素にぴったり合わせる */
    height: 100%;
    /* これで正方形にフィットさせる */
    object-fit: cover;
    /* 画像をはみ出さず切り取る */
    display: block;
}


.fanart-card-link:hover .fanart-img {
    transform: scale(1.05);
    /* ホバー時にちょっと拡大 */
}

.timeline-section {
    margin-left: 20%;
    padding: 60px 40px;
    background: #fbe1ffe7;
    min-height: 100vh;
    position: relative;
    z-index: 8;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header h1 {
    font-size: 3rem;
    color: #a64ce2;
}

.timeline-header h2 {
    font-size: 1.5rem;
    color: #666;
}

.timeline-underline {
    width: 60px;
    height: 4px;
    background: #ff99e9;
    margin: 20px auto;
    border-radius: 2px;
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ff99cc;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-date {
    font-size: 1.2rem;
    color: #9a33d6;
    margin-bottom: 10px;
    font-weight: bold;
}

.timeline-content {
    background: rgba(255, 240, 250, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(255, 153, 204, 0.2);
    display: inline-block;
    max-width: 90%;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #a233d6;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 1rem;
    color: #666;
}



.timeline-content img {
    align-items: center;
    width: 100%;
}


.badge-section {
  margin-left: 20%;
  padding: 60px 40px;
  background: #fff0f5;
  min-height: 500px;
  position: relative;
  z-index: 8;
}

.badge-header {
  text-align: center;
  margin-bottom: 40px;
}

.badge-header h1 {
  font-size: 2.5rem;
  color: #9c46ff;
}

.badge-header h2 {
  font-size: 1.2rem;
  color: #999;
}

.underline {
  width: 50px;
  height: 3px;
  background: #ff99cc;
  margin: 15px auto;
  border-radius: 2px;
}

.badge-section {
  margin-left: 20%;
  padding: 60px 40px;
  background: #fff0f5;
  min-height: 500px;
  position: relative;
  z-index: 8;
}

.badge-header {
  text-align: center;
  margin-bottom: 40px;
}

.badge-header h1 {
  font-size: 2.5rem;
  color: #9c46ff;
}

.badge-header h2 {
  font-size: 1.2rem;
  color: #999;
}

.underline {
  width: 50px;
  height: 3px;
  background: #ff99cc;
  margin: 15px auto;
  border-radius: 2px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
}

.badge-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 15px;
  width: 100%;
  max-width: 180px;
  box-shadow: 0 4px 10px rgba(255, 182, 193, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.badge-card:hover {
  transform: translateY(-5px);
}

.badge-img-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.ring-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 50%;
}

.badge-img.inner-img {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
  background: #fff0f5;
}

.badge-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff0f5;
  padding: 5px;
  margin-bottom: 10px;
}

.badge-info {
  text-align: center;
  width: 100%;
}

.winner-name {
  font-size: 1rem;
  color: #9c46ff;
  word-break: break-word;
}
@media screen and (max-width: 1024px) {

    /* サイドバーを普通の位置に戻す */
    .sidebar {
        position: static;
        /* 固定解除、通常フローに戻す */
        width: 100%;
        height: auto;
        margin: 0;
        padding: 20px 10px;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        /* 縦並びのまま */
        align-items: center;
        gap: 10px;
        /* 各要素の間にスペースをあける */
        z-index: 10;
    }

    .kasaneru {
        position: fixed;
        width: 100%;
        height: 100%;
        background: url(konomin/konominimg/konomin-phone-bg.png)no-repeat center center;
        background-size: cover;
        overflow: hidden;
        margin-left: 20%;
    }

    .blank-space {
        min-height: 300px;
    }


    /* 立ち絵の設定 */
    .tatie-img {
        height: auto;
        width: 100%;
        max-width: 100%;
        display: block;
        z-index: 3;
        position: relative;
    }


    /* サイドバー内のヘッダー部分 */
    .sidebar-header {
        text-align: center;
        margin-bottom: 10px;
        z-index: 10;
    }

    .sidebar-icon {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
        z-index: 10;
    }

    .sidebar-header h1 {
        font-size: 1rem;
        z-index: 10;
    }

    .sidebar-header p a {
        font-size: 0.8rem;
        text-decoration: none;
        z-index: 10;
    }

    .sidebar-nav ul {
        list-style: none;
        padding: 0;
        margin: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        z-index: 10;
    }

    .sidebar-nav li {
        font-size: 0.9rem;
        text-align: center;
        z-index: 10;
    }

    .sidebar-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin-top: 10px;
        z-index: 10;
    }

    .sidebar-links a {
        font-size: 0.8rem;
        text-decoration: none;
    }


    /* メインコンテンツは横のマージンをなくす */
    .kasaneru,
    .fanart-section,
    .timeline-section,
    .badge-section {
        margin-left: 0;
        width: 100%;
    }

    .profile-section {
        margin-left: 0;
    }
    .feature-section {
        margin-left: 0;
    }
}


@media screen and (max-width: 768px) {

    .profile-section {
        margin-left: 0;
        padding: 40px;
        min-height: 500px;
        position: relative;
        z-index: 8;
    }
    .feature-section {
        margin-left: 0;
        padding: 40px;
        min-height: 500px;
        position: relative;
        z-index: 8;
    }
    .timeline-section {
        padding: 40px 20px;
        margin-left: 0;
        width: 100%;
    }

    .timeline-header h1 {
        font-size: 2rem;
        text-align: center;
    }

    .timeline-header h2 {
        font-size: 1.2rem;
        text-align: center;
    }

    .timeline {
        position: relative;
        padding: 20px 0;
        max-width: 100%;
    }

    /* 縦線を左に固定 */
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15px;
        width: 3px;
        height: 100%;
        transform: none;
        z-index: 1;
    }

    /* ★ ここが重要 ★ */
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        position: relative;
        width: 100%;
        padding-left: 40px;
        padding-right: 10px;
        margin-bottom: 40px;
        text-align: left !important;
        /* ← ここで強制的に左寄せ */
        left: 0 !important;
        /* ← 左寄せに上書き */
        box-sizing: border-box;
    }

    .timeline-date {
        font-size: 1rem;
        margin-bottom: 5px;
        display: block;
    }

    .timeline-content {
        padding: 10px;
        border-radius: 10px;
        width: calc(100% - 50px);
        position: relative;
        z-index: 2;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        
        margin-bottom: 5px;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .timeline-content img {
        width: 100%;
        height: auto;
        margin-top: 10px;
        border-radius: 8px;
    }
}