/*
Theme Name: 放課後タンキュー部
Theme URI: https://tanq.club/
Author: tanqbu
Description: 放課後タンキュー部 公式テーマ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: tanqbu
*/

:root {
    --c-blue: #2e76c4;
    --c-blue-dark: #1f4f8b;
    --c-blue-soft: #9ac3e8;
    --c-pink: #dc6680;
    --c-yellow: #fff4a3;
    --c-line: #bcd9f0;
    --c-text: #1a1a1a;
    --site-max: 800px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    background: #fff;
    color: var(--c-text);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    height: 64px;
}
.site-header__logo {
    display: flex;
    align-items: center;
    height: 100%;
}
.site-header__logo img { height: 32px; width: auto; display: block; }
.menu-toggle, .menu-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}
.menu-toggle::before {
    content: "";
    display: block;
    width: 28px;
    height: 18px;
    background:
        linear-gradient(#fff, #fff) top/100% 2px no-repeat,
        linear-gradient(#fff, #fff) center/100% 2px no-repeat,
        linear-gradient(#fff, #fff) bottom/100% 2px no-repeat;
}
.menu-close::before {
    content: "×";
    font-size: 28px;
    line-height: 1;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay,
.lp-news,
.lp-archive,
.lp-single,
.sticky-cta { container-type: inline-size; }

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--site-max);
    z-index: 40;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}
body { padding-bottom: clamp(56px, 13vw, 100px); }
.menu-overlay__header {
    background: var(--c-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    height: 64px;
    flex: 0 0 auto;
}
.menu-overlay__header img { height: 32px; width: auto; display: block; }
.menu-overlay nav { padding: 16px; max-width: var(--site-max); margin: 0 auto; width: 100%; }
.menu-overlay nav ul { list-style: none; margin: 0; padding: 0; }
.menu-overlay nav li {
    border-bottom: 2px dotted var(--c-line);
    padding: 18px 8px;
}
.menu-overlay nav a {
    color: var(--c-blue-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    display: block;
}
.menu-overlay .lp-btn { margin-top: auto; }

.frame {
    position: relative;
    width: 100%;
    max-width: var(--site-max);
    margin: 0 auto;
    aspect-ratio: 1125 / 17944.2;
}
.frame > * { position: absolute; display: block; }
.frame img, .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.frame a { text-decoration: none; line-height: 0; }
.frame-anchor { left: 0; width: 1px; height: 1px; }

.lp-news,
.lp-archive,
.lp-single {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 32px 16px;
}
.lp-news { padding-bottom: 72px; }

.lp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3.5cqw 7cqw;
    color: #fff;
    font-weight: 700;
    font-size: 3.2cqw;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
}
.lp-btn::after {
    content: "›";
    position: absolute;
    right: 2.5cqw;
    top: 50%;
    transform: translateY(-50%);
    width: 3.6cqw;
    height: 3.6cqw;
    border: 0.25cqw solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4cqw;
    line-height: 1;
    padding-bottom: 0.3cqw;
}
.lp-btn--apply { background: var(--c-pink); }
.lp-btn--more { background: var(--c-blue-dark); margin-top: 24px; }
.lp-btn--back { background: var(--c-blue-soft); color: #1a1a1a; margin-top: 32px; }

.lp-news__title {
    text-align: center;
    margin: 48px 0 24px;
    font-size: 28px;
}
.lp-news__title span {
    background: linear-gradient(transparent 55%, var(--c-yellow) 55%);
    color: var(--c-blue-dark);
    padding: 0 12px;
    font-weight: 800;
}
.lp-news__list { list-style: none; padding: 0; margin: 24px 0 0; }
.lp-news__list li { border-bottom: 1px solid #ddd; padding: 18px 4px; }
.lp-news__list a { color: #000; text-decoration: none; display: block; }
.lp-news__date { display: block; font-size: 14px; margin-bottom: 6px; }
.lp-news__heading { font-size: 18px; font-weight: 700; margin: 0; }

.lp-archive__list { list-style: none; padding: 0; margin: 0; }
.lp-archive__item { padding: 16px 0 28px; }
.lp-archive__item + .lp-archive__item {
    border-top: 2px dotted var(--c-blue-soft);
    padding-top: 28px;
}
.lp-archive__thumb { display: block; width: 100%; height: auto; margin-bottom: 14px; }
.lp-archive__date { display: block; font-size: 16px; margin: 4px 0; }
.lp-archive__heading { font-size: 22px; font-weight: 700; margin: 4px 0 0; line-height: 1.45; }
.lp-archive__item a { color: #000; text-decoration: none; }

.lp-single__thumb { width: 100%; height: auto; margin: 0 0 24px; display: block; }
.lp-single__date { display: block; font-size: 18px; margin: 12px 0 8px; font-weight: 700; }
.lp-single__title { font-size: 26px; font-weight: 800; margin: 0 0 24px; line-height: 1.4; }
.lp-single__body { font-size: 18px; line-height: 1.9; }

.frame--atender { aspect-ratio: 1125.378 / 14426.481; margin-top: clamp(16px, 4vw, 32px); }
.frame--business { aspect-ratio: 1125 / 9972.6; }
.frame--hero { aspect-ratio: 1125 / 1797; }
