@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
}

.contents-wrapper {
    width: 1100px;
    margin: 0 auto;
    padding-top: 50px;
}

.container {
    display: flex;
}

h1 {
    margin-bottom: 40px;
}

h2 {
    margin-bottom: 30px;
}

h3 {
    margin-bottom: 15px;
}

dl {
    margin-bottom: 20px;
}

dt {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

dd {
    margin-bottom: 8px;
}

dd:last-of-type {
    margin-bottom: 0;
}

.history-year {
    font-weight: 600;
}

/* https://saruwakakun.com/html-css/reference/h-designを参考にした */
/* 右側のコンテンツのh2に対して適用 */
h2 {
    padding: 4px 0 4px 24px;
    color: #333;
    background: transparent;
    border-left: solid 2px hsl(330deg, 65%, 70%);
}

/* 左側のコンテンツを作成 */
.left-contents {
    width: 33%;
    margin-right: 48px;
}

.profile-image  {
    width: 100%;
    margin-bottom: 16px;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
}

/* 右側のコンテンツのh3に対して適用 */
h3 {
    display: inline-block;
}

/* 右側のコンテンツのliに対して適用 */
li {
    display: block;
    background-color: #f9f9f9;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ulに対して適用 */
ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

a {
    text-decoration: none;
    display: inline-block;
    color: hsl(330deg, 65%, 65%);
}

a:hover {
    opacity: 0.4;
}

.separator {
    color: #999;
}

section {
    margin-bottom: 60px;
}

/* 携帯用の設定 */
@media (max-width: 767px) {
    .container {
        flex-direction: column;
        width: 100%;
    }

    .contents-wrapper {
        width: 90%;
        margin: 0 auto;
    }

    .left-contents {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .profile-image {
        text-align: center;
    }

    .profile-image img {
        max-width: 250px;
    }

    .right-contents {
        width: 100%;
    }
    
    section {
        width: 100%;  
    }

    ul {
        width: 100%;  
    
    }
}

/* グローバルナビゲーション */
#global-nav {
    min-width: 250px;
    height: 100vh;
    padding: 16px 0;
    border-right: 4px solid hsla(330deg, 65%, 70%, 0.5);
    transition: transform 150ms ease-out, opacity 150ms ease-out, border-right 150ms ease-out;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(calc(-100% + 4px));
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

#global-nav.open {
    transform: translateX(0);
    border-right: 0;
}

#global-nav a {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 20px;
    border-left: 4px solid transparent;
    display: block;
}

#global-nav a:hover {
    color: hsl(330deg, 65%, 65%);
    border-left-color: hsl(330deg, 65%, 70%);
    opacity: 1;
}

/* ブロック崩し */
#canvas {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ブロック崩し マルチプレイパネル */
#bp-panel {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    width: 210px;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.bp-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    color: hsl(330deg, 65%, 75%);
}

#bp-panel input[type="text"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: 'Noto Sans JP', sans-serif;
}

#bp-panel input[type="text"]::placeholder {
    color: rgba(255,255,255,0.45);
}

#bp-panel input[type="text"]:focus {
    outline: none;
    border-color: hsl(330deg, 65%, 65%);
}

.bp-btns {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.bp-btns button {
    flex: 1;
    padding: 7px 4px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    background: hsl(330deg, 60%, 55%);
    color: #fff;
    transition: background 120ms;
}

.bp-btns button:hover {
    background: hsl(330deg, 60%, 45%);
}

#bp-status {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 10px;
    min-height: 16px;
}

#bp-scores {
    margin-bottom: 10px;
    min-height: 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
}

/* リザルト画面 */
#bp-result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  background: rgba(14, 0, 16, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
}

.bp-result-inner {
  text-align: center;
  color: #fff;
  padding: 40px;
}

.bp-result-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 10px;
  color: hsl(330deg, 65%, 75%);
  margin-bottom: 16px;
}

.bp-result-winner {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 36px;
  color: #fff;
}

.bp-result-ranking {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 320px;
}

.bp-result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 18px;
}

.bp-result-rank {
  font-size: 14px;
  font-weight: 700;
  width: 36px;
  text-align: center;
  opacity: 0.85;
}

.bp-result-name {
  flex: 1;
  text-align: left;
}

.bp-result-score {
  font-size: 22px;
  font-weight: 800;
}

/* ゲームプレイ中のダークモード（ネガポジ反転） */
body.game-playing {
    background: #0e0010;
    filter: invert(1) hue-rotate(180deg);
}
body.game-playing #canvas {
    filter: invert(1) hue-rotate(180deg);
}
