﻿/* =========================================================
   Count Basie Fan Site
   Discography Detail Pages
   ========================================================= */


/* ---------- Base ---------- */

html {
    background: #111111;
}

body {
    margin: 0;
    padding: 0;
    background: #111111;
    color: #dddddd;

    font-family:
        "Meiryo",
        "メイリオ",
        "Yu Gothic",
        "游ゴシック",
        sans-serif;

    font-size: 15px;
    line-height: 1.7;
}


/* ---------- Header / Footer ---------- */

.site-header,
.site-footer {
    width: 100%;
    text-align: center;
}

.site-header {
    padding: 22px 0 12px;
}

.site-footer {
    padding: 35px 0 30px;
}

.site-nav {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 6px 14px;

    padding: 0 15px;

    box-sizing: border-box;
}

.site-nav a {
    color: #dddddd;

    text-decoration: none;

    font-weight: 600;
}

.site-nav a:hover {
    color: #d6a84f;
}

.site-nav .current {
    color: #d6a84f;
}

.site-nav span {
    color: #666666;
}

.copyright {
    margin: 8px 15px 0;

    color: #777777;

    font-size: 12px;
}


/* ---------- Main ---------- */

.page-container {
    width: 100%;

    max-width: 1000px;

    margin: 0 auto;

    padding: 10px 15px 40px;

    box-sizing: border-box;
}


/* ---------- Heading ---------- */

.page-heading {
    text-align: center;

    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0 0 12px;

    color: #eeeeee;

    font-size: 30px;

    line-height: 1.3;

    font-weight: 700;
}

.description {
    margin: 0 0 18px;

    color: #aaaaaa;
}

.thanks {
    margin: 0;

    color: #888888;

    font-size: 13px;
}

.thanks a {
    color: #aaaaaa;
}

.thanks a:hover {
    color: #d6a84f;
}


/* =========================================================
   Discography Table
   ========================================================= */


/*
 * 表はスマートフォンでも3カラムを維持する。
 *
 * PC:
 *   Jacket | Title | Rec.Date
 *
 * Smartphone:
 *   同じ3カラムを維持し、
 *   画面に収まらない部分は横スクロール。
 */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    -webkit-overflow-scrolling: touch;
}


/*
 * 800px幅を維持。
 *
 * 元サイトの3カラム構成を踏襲し、
 * スマートフォンでも縦積みにしない。
 */

.discography-table {
    width: 800px;
    min-width: 800px;

    margin: 0 auto;

    border-collapse: collapse;
    border-spacing: 0;

    table-layout: fixed;

    background: #181818;
}


/* ---------- Columns ---------- */

.discography-table .cover-column {
    width: 120px;
}

.discography-table .title-column {
    width: auto;
}

.discography-table .date-column {
    width: 200px;
}


/* ---------- Table Cells ---------- */

/*
 * 罫線は使用しない。
 */

.discography-table tbody td {
    padding: 16px 14px;

    border: none;

    vertical-align: middle;
}


/* ---------- Row Background ---------- */

.discography-table tbody tr:nth-child(odd) {
    background: #181818;
}

.discography-table tbody tr:nth-child(even) {
    background: #1b1b1b;
}


/* ---------- Row Interaction ---------- */

.discography-table tbody tr[data-href] {
    cursor: pointer;

    transition:
        background-color 0.15s ease;
}

.discography-table tbody tr[data-href]:hover {
    background: #262626;
}


/*
 * キーボード操作時にもフォーカス位置を確認できるようにする。
 */

.discography-table tbody tr[data-href]:focus {
    outline: 2px solid #d6a84f;
    outline-offset: -2px;
}


/* ---------- Jacket ---------- */

.discography-table td.cover-column {
    text-align: center;

    vertical-align: middle;
}


/*
 * 原則100px幅。
 *
 * 高さはauto。
 *
 * DVDなど縦長の画像についても
 * 高さを制限しない。
 */

.discography-table td.cover-column img {
    display: block;

    width: 100px;
    height: auto;

    max-width: none;

    margin: 0 auto;
}


/*
 * 複数ジャケットの場合。
 */

.discography-table td.cover-column img + img {
    margin-top: 8px;
}


/* ---------- Title ---------- */

.discography-table td.title-column {
    text-align: left;

    font-weight: 600;

    overflow-wrap: break-word;

    word-break: normal;
}

.discography-table td.title-column a {
    color: #dddddd;

    text-decoration: none;
}

.discography-table td.title-column a:hover {
    color: #d6a84f;
}


/* ---------- Recording Date ---------- */

.discography-table td.date-column {
    text-align: center;

    color: #bbbbbb;

    white-space: normal;
}


/* ---------- Links ---------- */

a {
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }


    /* ---------- Header ---------- */

    .site-header {
        padding-top: 18px;
    }

    .site-nav {
        gap: 5px 10px;

        font-size: 13px;
    }


    /* ---------- Main ---------- */

    .page-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-heading {
        margin-bottom: 22px;
    }

    .page-heading h1 {
        font-size: 24px;
    }

    .description {
        font-size: 13px;
    }

    .thanks {
        font-size: 12px;
    }


    /*
     * 表は縮小・縦積みしない。
     *
     * 800px幅を維持して横スクロール。
     */

    .table-wrapper {
        width: 100%;

        overflow-x: auto;
        overflow-y: visible;
    }

    .discography-table {
        width: 800px;
        min-width: 800px;

        margin-left: 0;
        margin-right: 0;
    }


    /* ---------- Mobile Columns ---------- */

    .discography-table .cover-column {
        width: 120px;
    }

    .discography-table .date-column {
        width: 200px;
    }


    /* ---------- Mobile Cells ---------- */

    .discography-table tbody td {
        padding: 12px;
    }

}


/* =========================================================
   Very Small Screens
   ========================================================= */

@media (max-width: 380px) {

    .page-heading h1 {
        font-size: 22px;
    }

    .site-nav {
        font-size: 12px;
    }

}