@charset "utf-8";
/* 基本スタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: url("images/bg2.jpg") repeat;
    background-attachment: fixed;
    color: #ffffff;
    font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
    height: auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

body::before {
    background: url("images/bg1.webp") no-repeat center top;
    background-size: cover;
    content: "";
    height: 65%;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 0;
}

/* 上下左右中央寄せ */
.content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* 中央寄せ */
.center {
    display: block;
    text-align: center;
}

/* 左寄せ */
.left{
    text-align: left;
}

/* 見出し1 */
.card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
}

/* 見出し2 */
h2 {
    position: relative;
    padding-left: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
}

h2:before {
    font-family: "Font Awesome 5 Free";
    content: "\f7b6";
    font-weight: 900;
    position: absolute;
    font-size: 18px;
    left: 0;
    top: 0;
    padding-right: 4px;
}

/* 見出し3 */
h3 {
    position: relative;
    padding: 0 1.2em 0 0;
    border-bottom: 1px solid #d8d8d8;
    margin: 10px 0;
}

h3::before {
    content: '\02666';
    padding-right: 4px;
}

/* リスト */
.card ul {
    margin-left: 15px;
}

.card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 24px 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 4px 12px rgba(255, 255, 255, 0.1);
    max-width: 300px;
    font-size: 12px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    object-fit: cover;
    margin-bottom: 16px;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.profile-button {
    background-color: #90e0ef;
    border: none;
    border-radius: 3px;
    padding: 10px 16px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: #d8d8d8;
}

/* モーダル */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    width: 90%;
    max-width: 320px;
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    background: #fff;
}

.modal-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    background: #e9e9e9;
    transition: background-color 0.3s;
}

.modal-tab.active {
    background: #fff;
    font-weight: bold;
    border-bottom: 2px solid #0077cc;
}

.modal-content {
    padding: 20px;
    color: #333;
    font-size: 0.85rem;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-content.active {
    display: block;
}

/* アイコン */
.card .avatar {
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    height: 80px;
    margin-bottom: 16px;
    object-fit: cover;
    width: 80px;
}

/* ソーシャルリンク */
.sns-links a {
    align-items: center;
    color: rgba(255,255,255,.85);
    display: inline-flex;
    font-size: 1.6rem;
    justify-content: center;
    line-height: 0;
    margin: 30px 8px;
    vertical-align: middle;
}

.sns-links a:hover {
    color: #90e0ef;
}

.sns-links {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.fonts-loaded .sns-links {
    visibility: visible;
    opacity: 1;
}

/* リンク */
.modal-content a {
    color: #0077cc;
    transition: color .3s ease;
}

/* リンクホバー */
.modal-content a:hover {
    color: #90e0ef;
}

.sns-links a:hover {
    color: #0077cc;
}

/* 外部リンクにアイコン */
a[target=_blank]::after {
    font-family: "Font Awesome 5 Free";
    content: "\f35d";
    font-size:  10px;
    font-weight: 600;
    vertical-align: middle;
    padding-left: 2px;
}

a.remove::after{
    content: none;
}

/* リンクテキスト */
.sns-links a,
.site a {
    position: relative;
    text-decoration: none;
}

.sns-links a::after,
.site a::after {
    font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
    font-weight: 400;
    border-radius: 4px;
    bottom: -20px;
    color: #ffffff;
    content: attr(data-label);
    font-size: 11px;
    left: 50%;
    opacity: 0;
    padding: 2px 6px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .2s ease;
    white-space: nowrap;
}

.site {
    padding: 6px;
}

/* ふわっと表示 */
.sns-links a:hover::after,
.site a:hover::after {
    opacity: 1;
}

.card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ボタンリンク装飾 */
.profile-button{
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    width: 120px;
    text-align: center;
    user-select: none;
    transition: background 0.3s ease, transform 0.2s ease;
    display: block;
    color: #d8d8d8;
    text-decoration: none;
    font-size: 15px;
}

/* ボタン */
.profile-button,.tab-button {
    text-align: center;
    margin: 0 auto;
    max-width: 120px;
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.profile-button.center a{
    text-align: center;
    margin: 0 auto;
    max-width: 120px;
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.profile-button.center a:hover{
    color: #d8d8d8;
}

/* 好きなものリスト */
.modal dl {
    width: 100%;
    margin: 1rem auto;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.5rem;
}

.modal dt {
    margin: 0;
    padding: 0 5px;
    color :#fff;
    background-color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal dd {
    margin: 0;
    display: flex;
    align-items: center;
    word-break: keep-all;
}

/* Webkit (Chrome, Safari, Edge) */
.profile-content::-webkit-scrollbar {
    width: 4px;
}

.profile-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 3px;
}

.profile-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox */
.profile-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
}
