/* ==================================================
   K-POP-IN | Main Stylesheet
   目次
   01. 基本設定・カラー
   02. ページ全体のレイアウト
   03. ヘッダー・ロゴ・ナビゲーション
   04. TOPページ
   05. RELEASE / LIVE 共通パーツ
   06. LIVEカレンダー
   07. 詳細ページ
   08. フッター
   09. レスポンシブ（PC・スマートフォン）
   ================================================== */


/* 01. 基本設定・カラー
   -------------------------------------------------- */

:root {
    --paper: #fff9ed;
    --ink: #263b70;
    --pink: #ff3e91;
    --yellow: #f6f751;
    --blue: #2878f0;
    --lime: #b8ef45;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}


/* 02. ページ全体のレイアウト
   -------------------------------------------------- */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
	min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--ink);
    font-family: "Arial Rounded MT Bold", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    background: var(--paper);
    background-image: radial-gradient(#d8cdb9 .7px, transparent .7px);
    background-size: 12px 12px;
}

.wrap {
    width: min(1080px, 92%);
    margin-left: auto;
    margin-right: auto;
}
.page-main {
    flex: 1 0 auto;
    padding: 10px 0 55px;
}


/* 03. ヘッダー・ロゴ・ナビゲーション
   -------------------------------------------------- */

.site-header {
    padding: 25px 0 20px;
}

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.logo {
    position: relative;
    display: inline-block;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 1000;
    letter-spacing: -.075em;
    line-height: .9;
    color: #fff;
    -webkit-text-stroke: 2px var(--blue);
    text-shadow: 4px 4px 0 var(--pink), 7px 7px 0 var(--yellow), 9px 10px 0 var(--ink);
    transform: rotate(-3deg);
}

.logo:after {
    content: "✦";
    position: absolute;
    right: -22px;
    top: -15px;
    color: var(--pink);
    font-size: 26px;
    -webkit-text-stroke: 0;
    text-shadow: 2px 2px var(--ink);
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a {
    font-weight: 1000;
    font-size: 14px;
    letter-spacing: .08em;
    padding: 12px 22px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: white;
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(-2deg);
}

.nav a:nth-child(2) {
    background: var(--yellow);
    transform: rotate(2deg);
}

.nav a:nth-child(3) {
    background: var(--pink);
    color: white;
    transform: rotate(-2deg);
}


/* 04. TOPページ
   -------------------------------------------------- */

.sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
}


/* 05. RELEASE / LIVE 共通パーツ
   -------------------------------------------------- */

.section {
    position: relative;
    margin: 30px 0 48px;
    padding: 22px 22px 25px;
    border: 3px solid var(--ink);
    border-radius: 25px;
    box-shadow: 8px 9px 0 var(--ink);
}

.live {
    background: var(--yellow);
}

.release {
    background: var(--blue);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 4px 18px;
}

.heading {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 1000;
    line-height: 1;
    color: white;
    letter-spacing: -.05em;
    -webkit-text-stroke: 1.8px var(--ink);
    text-shadow: 4px 4px 0 var(--pink), 7px 7px 0 var(--ink);
    transform: rotate(-2deg);
    display: inline-block;
}

.release .heading {
    text-shadow: 4px 4px 0 var(--lime), 7px 7px 0 var(--ink);
}

.sub {
    position: relative;
    display: inline-block;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .1em;
    background: var(--pink);
    color: white;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 9px 13px;
    transform: rotate(2deg);
    box-shadow: 3px 4px 0 var(--ink);
}

.sub:after {
    content: "";
    position: absolute;
    left: 17px;
    bottom: -8px;
    width: 12px;
    height: 12px;
    background: var(--pink);
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
}

.release .sub {
    background: var(--lime);
    color: var(--ink);
}

.release .sub:after {
    background: var(--lime);
}

.items {
    display: grid;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 13px 16px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
    min-height: 88px;
    transform: rotate(-.3deg);
}

.item:nth-child(2) {
    transform: rotate(.35deg);
}

.item:nth-child(3) {
    transform: rotate(-.2deg);
}

.artist {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: fit-content;
    margin: 0 0 8px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 1000;
    overflow-wrap: anywhere;
    border: 2px solid var(--ink);
    border-radius: 12px 12px 12px 4px;
    background: var(--pink);
    color: white;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-1.5deg);
}

.artist:after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: -7px;
    width: 10px;
    height: 10px;
    background: inherit;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: skewY(-35deg) rotate(-15deg);
}

.release .artist {
    background: var(--lime);
    color: var(--ink);
    transform: rotate(1.5deg);
}

.item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.meta {
    font-size: 12px;
    color: #65708b;
    font-weight: 800;
}

.arrow {
    font-size: 30px;
    font-weight: 1000;
}

.more {
    display: inline-block;
    margin: 19px 5px 0 auto;
    float: right;
    font-weight: 1000;
    font-size: 13px;
    background: white;
    padding: 9px 15px;
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-1deg);
}

.clear {
    clear: both;
}

.stars {
    position: absolute;
    right: 18px;
    bottom: 10px;
    font-size: 35px;
    color: var(--pink);
    text-shadow: 2px 2px var(--ink);
    transform: rotate(12deg);
}

.release .stars {
    color: var(--lime);
}

.empty {
    font-weight: 800;
    padding: 15px;
}


/* 06. LIVEカレンダー
   -------------------------------------------------- */

.archive-section {
    min-height: 300px;
}

.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 10px auto 22px;
    color: var(--ink);
}

.month-nav strong {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: .04em;
    min-width: 145px;
    text-align: center;
}

.month-nav a,
.month-nav button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: white;
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    color: var(--ink);
}

.view-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 0 20px;
}

.view-tabs button {
    border: 2px solid var(--ink);
    background: white;
    padding: 9px 20px;
    font-weight: 1000;
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transform: rotate(-1deg);
}

.view-tabs button.active {
    background: var(--pink);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.cal-weekday {
    text-align: center;
    font-weight: 1000;
    padding: 7px 2px;
}

.cal-day {
    min-height: 90px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: 10px;
    padding: 6px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.cal-day.muted {
    opacity: .35;
}

.cal-day.selected {
    outline: 4px solid var(--pink);
}

.cal-day b {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.cal-event {
    display: block;
    background: var(--blue);
    color: white;
    border-radius: 5px;
    padding: 3px 4px;
    margin: 3px 0;
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cal-event:nth-of-type(even) {
    background: var(--pink);
}

.cal-more {
    font-size: 10px;
    font-weight: 900;
}

.selected-day {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
}

.selected-day h3 {
    margin: 0 0 10px;
}

.selected-event {
    padding: 8px 0;
    border-top: 1px dashed #aab2c7;
}

.selected-event a {
    font-weight: 900;
}

.selected-event small {
    display: block;
    color: #65708b;
    font-weight: 800;
}


/* 07. 詳細ページ
   -------------------------------------------------- */

.detail-title {
    font-size: clamp(22px, 4vw, 34px);
    margin: 8px 0 15px;
}

.entry-content {
    margin-top: 20px;
    line-height: 1.9;
}

.detail-section {
    padding: 24px;
}


/* 08. フッター
   -------------------------------------------------- */

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--ink);
    color: white;
    padding: 28px 0 40px;
	bottom: 0;
	width: 100%;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.foot b {
    font-size: 27px;
    color: var(--yellow);
    text-shadow: 2px 3px 0 var(--pink);
}


/* 09. レスポンシブ（PC・スマートフォン）
   -------------------------------------------------- */

/* PC */
@media (min-width: 800px) {
    .sections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .section {
        margin: 30px 0 40px;
    }

    .item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 11px;
        padding: 12px;
    }

    .item strong {
        font-size: 14px;
    }

    .meta {
        font-size: 11px;
    }
}

/* スマートフォン */
@media (max-width: 650px) {
    .site-header {
        padding-top: 22px;
    }

    .head {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .nav {
        width: 100%;
        gap: 8px;
    }

    .nav a {
        flex: 1;
        text-align: center;
        padding: 11px 8px;
    }

    .section {
        padding: 18px 13px 22px;
        margin: 26px 0 40px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 11px;
    }

    .item strong {
        font-size: 14px;
    }

    .meta {
        font-size: 10px;
    }

    .artist {
        font-size: 11px;
        padding: 5px 10px;
    }

    .sub {
        font-size: 10px;
    }

    .stars {
        font-size: 26px;
    }

    .cal-day {
        min-height: 68px;
        padding: 4px;
    }

    .cal-event {
        font-size: 8px;
        padding: 2px;
    }

    .calendar-grid {
        gap: 3px;
    }
}
/* iPhone画面下部の余白対策 */
html {
    background-color: var(--ink);
}

.site-footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}