/* 基本的なスタイル */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Jost", sans-serif;
    line-height: 1.6;
}

/* ヘッダーを少し透過させ、ページ上部に固定 */
header {
    z-index: 980;
    background-color: #ffffff;
}

/* メインコンテンツの最小の高さを確保 */
main {
    min-height: calc(100vh - 200px); /* ビューポートの高さからヘッダーとフッターの高さを引く */
}

/* Hero Section (Text Only) */
.hero-section-text-only {
    background-color: #1a1a1a;
    background-image: url('../img/top_bg_bw.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.hero-section-text-only h1 {
    font-family: "Jost", sans-serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 800px; /* Constrain width for readability */
    color: #ffffff;
}

.hero-section-text-only ul {
    list-style: none;
    padding-left: 0;
    max-width: 700px; /* Constrain width */
    text-align: left; /* Align list items to the left */
}

.hero-section-text-only ul li {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    letter-spacing: 0.05em;
}

.hero-section-text-only ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: 500;
}

/* セクションの見出し */
.uk-heading-section {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: left;
    border-left: 10px solid black;
    padding-left: 15px;
    font-size: 1.6rem;
}

.uk-heading-divider {
    font-size: 1.5rem;
}

.uk-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.uk-text-lead {
    font-size: 1.1rem;
    font-weight: 200;
    letter-spacing: 0.05em;
}

/* メンバー/アーティスト紹介カード */
.member-card .uk-card-media-top img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.member-card-description {
    font-size: 0.9rem;
}

/* カード全体のタイトルスタイル */
.uk-card-title {
	font-size: 1.3rem;
	line-height: 1.4;
	font-weight: 600;
}

/* アーティストページのカードタイトルに追加のマージンを設定 */
.member-card .uk-card-title {
    margin-top: 15px;
}

/* フッター */
.site-footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* 画像グリッド */
.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 正方形を維持 */
    background-color: #f0f0f0; /* プレースホルダーの色 */
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aspect-ratio-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.box-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

/* ヘッダーの高さ調整 */
.uk-navbar-container {
    height: 120px; /* ロゴの高さに合わせて調整 */
    background-color: #ffffff !important;
}

.uk-navbar-container > .uk-container,
.uk-navbar-container > .uk-container > div[uk-navbar] {
    height: 100%;
}

.uk-navbar-left,
.uk-navbar-right {
    align-items: stretch;
}

/* ロゴのスタイリング */
.uk-logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: auto;
    height: 80px;
    max-width: 100%;
    transition: height 0.3s ease;
}

.logo-mobile {
    display: none;
}

/* Joinリンク */
.external-link-container {
    display: flex;
    align-items: center;
    padding-left: 15px; /* メニューとの間隔 */
    border-right: 10px solid #000;
    padding-right: 15px; /* 右の線とのスペース */
    align-self: stretch;
}

.join-link {
    font-weight: 700;
    color: #000 !important;
    text-decoration: none;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.join-link:hover {
    color: #000 !important;
    text-decoration: underline;
}

/* メニューの縦並び */
.uk-navbar-right .uk-nav-default {
    justify-content: center;
}

.uk-navbar-right .uk-nav-default > li > a {
    padding: 4px 0;
    font-size: 0.9rem;
    font-family: "Jost", sans-serif;
    font-weight: 500;
}

/* スマホ用外部リンクボタン */
.external-link-button-mobile {
    width: 100%;
    margin-top: 15px;
    background-color: #fff !important;
    color: #000 !important;
    justify-content: center;
    font-weight: 500;
    transition : all 0.5s ease 0s;
}

.external-link-button-mobile:hover{
    background-color: grey !important;
    color: white !important;
}

/* 画面幅が1920px以上の場合のロゴサイズ固定 */
@media (min-width: 1920px) {
    .logo-svg {
        height: 140px; /* 1920px以上でのロゴの高さ */
    }

    .uk-navbar-container {
        height: 180px;
    }
}

/* スマホ用のグリッド調整 */
@media (max-width: 767px) {
    .image-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Global responsive fixes */
/* 画像やSVGがコンテナをはみ出さないようにする */
img,
picture,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ヘッダー / ナビのモバイル最適化 */
@media (max-width: 767px) {
    /* ヘッダーをコンパクトに */
    .uk-navbar-container {
        height: 80px;
    }

    /* ロゴを小さくしてバランスを取る */
    .logo-svg {
        height: 64px;
    }

    /* Logo Swapping */
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block;
    }

    /* Center Logo */
    .uk-navbar-container div[uk-navbar] {
        position: relative;
    }
    .uk-navbar-left {
        width: 100%;
        justify-content: center;
    }
    .uk-navbar-right.uk-hidden@m { /* This is the mobile toggle container */
        position: absolute;
        top: 50%;
        right: 15px; /* Adjust as needed */
        transform: translateY(-50%);
    }

    /* デスクトップ用の縦書きJoinリンクはモバイルでは非表示（オフキャンバス側にボタンあり） */
    .external-link-container {
        display: none;
    }

    /* ナビメニューを縦積みに寄せる（UIkitの挙動に依存せず安定させる） */
    .uk-navbar-right .uk-nav-default {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    /* ヒーローの余白と文字サイズを調整 */
    .hero-section-text-only {
        padding: 3rem 1rem;
        min-height: 50vh;
    }

    .hero-section-text-only h1 {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-section-text-only ul {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-section-text-only ul li {
        font-size: 1rem;
    }

    /* セクション見出しの文字サイズを小さく */
    .uk-heading-section {
        font-size: 1.5rem;
    }

    .box-text {
        font-size: 1.2rem;
    }
}

.text-link {
    color: #000;
    text-decoration: none; /* Remove default underline */
    font-weight: 500;
    letter-spacing: 0.1em;
    position: relative; /* Needed for pseudo-element positioning */
    padding-bottom: 5px; /* Space for the underline */
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 20px); /* Wider than the text */
    height: 1px; /* Underline thickness */
    background-color: #000; /* Underline color */
}

.more-link-container {
    text-align: center;
    margin-top: 40px;
}

/* Coming Soon スタイル */
.coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* 十分な高さを確保 */
    padding: 80px 0; /* 上下の余白を大きく取る */
    text-align: center;
}

.coming-soon p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.1em;
}

/* Animation for hero text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

/* Staggered animation delays */
.hero-section-text-only h1.fade-in-up {
    animation-delay: 0.2s;
}

.hero-section-text-only li.fade-in-up:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-section-text-only li.fade-in-up:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-section-text-only li.fade-in-up:nth-child(3) {
    animation-delay: 0.8s;
}

.hero-section-text-only li.fade-in-up:nth-child(4) {
    animation-delay: 1s;
}

/* Contact Page Sections */
.contact-section {
    padding: 4rem 2rem;
}

.contact-section-black {
    background-color: #000; /* Black */
    color: #fff;
}

.contact-section h2 {
    font-size: 1.8rem;
    font-weight: 500; /* Bold */
    margin: 20px 0 20px 0;
}

.contact-section .uk-text-lead {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section-black a {
    color: #fff;
    text-decoration: underline;
}

.contact-section-black a:hover {
    color: #ccc;
}

.contact-heading-wrapper {
    background-color: #f0f0f0; /* A different light gray */
    padding: 2rem;
    display: block;
    margin-bottom: 2rem;
}

.contact-heading-wrapper h2 {
    font-family: "Jost", sans-serif;
    font-weight: 500;
}

.email-link {
    font-size: 1.5rem !important; /* Use !important to ensure override */
    font-weight: 500;
}

/* 黒ボタン */
.uk-button-black {
    background-color: #000;
    color: #fff;
}

.uk-button-black:hover {
    background-color: #333;
    color: #fff;
}

h1, h2, h3, h4 {
    font-family: "Jost", sans-serif !important;
}

.uk-grid .uk-card-body {
    padding: 20px;
}

.site-footer a {
    color: #000;
}

.site-footer a:hover {
    color: #808080; /* グレー */
}

.member-image-wrapper {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background-color: whitesmoke;
    margin: 0 auto 15px; /* top, horizontal auto, bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aspect-ratio-box .box-text {
    margin-top: 0.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    font-family: "Jost", sans-serif;
}