@charset "utf-8";

:root{
    --header-height:110px;
}

html {
    scroll-behavior: smooth;
}

/* 全体 */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: burlywood;
    background-size: cover;
    background-repeat: no-repeat;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    color: white;
    z-index: 1000;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 100, 180,1),rgba(255, 100, 180,0.9),rgba(255, 100, 180,0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* スクロールした後 */
.header.scrolled::before {
    opacity: 1;
}

.header.scrolled {
    color: black;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-top {
    margin-left: 20px;
    padding: 15px;
    font-size: 30px;
    font-weight: bold;
    font-style: italic;
}

.header-nav {
    position: relative;
    background: transparent;
    z-index: 10;
    transition: background 0.5s ease, border-bottom 0.5s ease;
}

.header.scrolled .header-nav {
    background: rgba(255,255,255,1);
    border-bottom: 3px solid rgb(30, 255, 255);
}

.header-nav ul {
    display: flex;
    justify-content: left;
    padding: 6px 0;
    list-style: none;
    margin: 0 0 0 30px;
}

.header-nav a {
    position: relative;
    text-decoration: none;
    overflow: hidden;
    color: white;
    font-size: 15px;
    padding: 7px 12px;
    z-index: 4;
    transition: color 0.3s ease;
}

.header.scrolled .header-nav a {
    color: black;
    z-index: 4;
}

/* 背景アニメーション用 */
.header-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: rgba(30, 255, 255, 0.7);  /* ボタン色*/
    z-index: -1;
    transition: height 0.3s ease;
}

/* 下から上に満ちる */
.header-nav a:hover::before {
    height: 100%;
}


.hero {
    height: 100vh;
    background-image: url("./images/minecraft_.JPG");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin: 20px;
    min-width: 900px;
    padding-top: var(--header-height);
}

.content {
    background: rgba(255,255,255,0.4);
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.7);
    flex: 1;
}

#section-1, #section-2 {
    scroll-margin-top: calc(var(--header-height) + 30px);
}

.main_title {
    text-align: center;
    padding: 20px;
    font-size: 40px;
    color: white;
    background-size: cover;
    text-decoration: underline;
}

.introduce {
    background-image: url(./images/myphoto_header.jpg);
}

.myphoto {
    text-align: center;
}

.myphoto img {
    width: 70%;
}

.myphoto div {
    font-size: 15px;
}

.self-intro {
    padding: 10px;
    text-align: center;
    font-size: large;
}

.important {
    font-weight: bold;
    color: crimson;
}

.joke {
    text-decoration: line-through;
    font-size: 0.9em;
    opacity: 0.8;
}

.table-myinfo {
    display: grid;
    grid-template-columns: auto 1fr;
    border: 2px solid black;
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.table-L {
    padding: 10px;
    background: linear-gradient(to right, rgba(30, 255, 255, 1),rgba(30, 255, 255, 0));
}

.table-R {
    padding: 10px;
    background: linear-gradient(to bottom, rgba(200, 200, 200, 0), rgba(200, 200, 200, 1), rgba(200, 200, 200, 0));
    transition: background 0.3s ease;
}

.table-R:hover {
    background: linear-gradient(to bottom, rgba(200, 200, 200, 1), rgba(200, 200, 200, 1), rgba(200, 200, 200, 1));
}

.table-ranking {
    display: grid;
    margin: 10px;
    grid-template-columns: 1fr 1fr 1fr;
    border-radius: 8px;
    overflow: hidden;
}

.ranktable {
    padding: 10px;
    border-bottom: 2px solid black;
}

.first {
    padding: 10px;
    background: linear-gradient(to right, rgba(255, 217, 0, 0.2),rgba(255, 217, 0, 0.8),rgba(255, 217, 0, 0.2));
}

.second {
    padding: 10px;
    background: linear-gradient(to right, rgba(192, 192, 192, 0.2),rgba(192, 192, 192, 0.8),rgba(192, 192, 192, 0.2));
}

.third {
    padding: 10px;
    background: linear-gradient(to right, rgba(192, 112, 34, 0.2),rgba(192, 112, 34, 0.8),rgba(192, 112, 34, 0.2));
}

.under-rank {
    text-align: left;
    grid-column: 1 / 4;
    background-color: rgba(192, 192, 192, 0.5);
}

.note {
    opacity: 0.6;
    font-size: 0.8em;
}

.link {
    background-image: url(./images/pgm_header.jpg);
}

a[target="_blank"]:after {
    margin: 0 0 0 3px;
    
    font-family: "Font Awesome 5 Free";
    font-size: 0.8em;
    content: '\f35d';
    font-weight: 900;
}

.place {
    display: grid;
    margin: 20px;
    grid-template-columns: auto 1fr;
    border: 2px solid black;
    border-radius: 8px;
}

.place-table {
    padding: 10px;
}

.linktable-top {
    grid-column: 1 / 3;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 20px;
}

#kaneko996-dev {
    background: rgb(255, 100, 180);
}
#kanekoyusuke {
    background: rgb(30, 255, 255);
}
#p-ss {
    background-color: rgb(20, 155, 155);
}

.nickname {
    font-weight: bold;
}

.imagebox {
    position: relative;
}

.place-table img {
    max-width: 400px;
    height: auto;
}

.place-footer {
    position: absolute;
    width: 400px;
    bottom: 15px;
    background: white;
    color: black;
    z-index: 2;
}

.place-footer-top {
    padding: 5px;
    margin: 0 0 0 5px;
}

.place-footer ul {
    display: flex;
    justify-content: left;
    gap: 0px;
    padding: 4px 0;
    list-style: none;
    margin: 0 0 0 10px;
}

.place-footer a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    color: black;
    min-width: 25px;
    border-bottom: 4px solid rgb(128, 128, 128);
    font-size: 15px;
    padding: 3px 10px;
}

.place-footer a#yt {
    border-bottom: 4px solid rgb(255, 0, 0);
}
.place-footer a#twitch {
    border-bottom: 4px solid rgb(100, 65, 165);
}
.place-footer a#x {
    border-bottom: 4px solid rgb(0, 172, 238);
}
.place-footer a#insta {
    border-bottom: 4px solid rgb(252, 204, 99);
}
.place-footer a#openrec {
    border-bottom: 4px solid rgb(255, 128, 0);
}
.place-footer a#mirrativ {
    border-bottom: 4px solid rgb(5, 220, 185);
}
.place-footer a#soundcloud {
    border-bottom: 4px solid rgb(255, 85, 0);
}

.place-footer a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    z-index: -1;
    background: rgba(128, 128, 128, 0.7);
    transition: height 0.3s ease;
}

.place-footer a#yt::before {
    background: rgba(255, 0, 0, 0.7);
}
.place-footer a#twitch::before {
    background: rgba(100, 65, 165, 0.7);
}
.place-footer a#x::before {
    background: rgba(0, 172, 238, 0.7);
}
.place-footer a#insta::before {
    background: rgba(252, 204, 99, 0.7);
}
.place-footer a#openrec::before {
    background: rgba(255, 128, 0, 0.7);
}
.place-footer a#mirrativ::before {
    background: rgba(5, 220, 185, 0.7);
}
.place-footer a#soundcloud::before {
    background: rgba(255, 85, 0, 0.7);
}

.place-footer a:hover::before {
    height: 100%;
}

.table-basho {
    padding: 0 0 0 20px;
}

.contact {
    text-align: center;
}

.page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 130px;
    height: 30px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-top.show {
    opacity: 1;
}

.page-top.show:hover::before {
    height: 100%;
}
/* 目次 */
.toc {
    width: 180px;
    position: sticky;
    top: 20px;
    background: rgba(243, 100, 180, 0.7);
    padding: 5px;
}

.update {
    text-align: right;
    padding: 5px;
}