@charset "utf-8";

:root {
--color-main: #ec6619;
--color-main-dark: #b14d13;
--color-text: #333;
--color-bg: #fffaed;
--color-bg-point: #e8f7fe;
--color-line: #b8b9b9;
--color-white: #fff;
--font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
--container-w: 1200px;
}

* {
    box-sizing: border-box;
}

html {
scroll-behavior: smooth;
height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.8;
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 20px;
}
main {
    flex: 1;
}
/* ----------------------------- Header ----------------------------- */

.site-header {
    background: var(--color-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: var(--container-w);
    margin: 0 auto;
}

.site-logo img {
    width: 200px;   
}

.site-nav {
    display: none;
}

.site-nav ul {
    display: flex;
    gap: 24px;
}
.site-nav li{
    padding-right: 1rem;
    border-right: solid 1px var(--color-text);
}
.site-nav li:last-child{
    border-right: none;
}

.site-nav a {
    font-weight: 700;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-main);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.social-icon img {
    width: 32px;
}
@media (max-width: 960px) {
    .social-icon{
        margin-left: auto;
    }
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px 8px;
    margin-left: 12px;
}

@media (min-width: 960px) {
    .site-nav {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
}
.menu-toggle {
    display: none;
}
.social-icon img {
    width: 44px;
    }
}

/* ------------------------- Mobile slide menu ------------------------- */

.sp-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: #fdfdfd;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    padding: 24px;
}

.sp-menu.is-open {
    transform: translateX(0);
}

.sp-menu__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    margin-bottom: 24px;
}

.sp-menu__title {
    background: var(--color-main);
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sp-menu ul li a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.sp-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 190;
}

.sp-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 960px) {
    .sp-menu,
    .sp-menu-overlay {
    display: none;
    }
}

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

.main-visual {
    width: 100%;
    overflow: hidden;
}

.main-visual img {
    width: 100%;
    object-fit: cover;
}

/* ----------------------------- Sections (cover blocks) ----------------------------- */

.section {
    position: relative;
    background-image: url(../img/bg.webp);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.section__panel {
    padding: 3em 2em;
    border-radius: 12px;
    background-color: rgba(255, 250, 237, 0.92);  

}
/*
.section--news .section__panel {
    background-color: var(--color-bg);
}
.section--lineup .section__panel {
    background-color: var(--color-bg);
}
*/
.section--point{
    background-color: var(--color-bg-point);  
}

.section--point .section__panel {
    background-color: rgba(232, 247, 254, 0.92); 
}

.section--lineup .section__panel,
.carousel {
    background-color: rgba(255, 250, 237, 0.92); 
}


.section__title {
    font-size: 38px;
    line-height: 1;
    text-align: center;
    color: var(--color-main);
    margin: 0 0 8px;
}

.section__subtitle {
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 12px;
}

.section__divider {
    border: none;
    border-top: 4px solid var(--color-main);
    width: 80px;
    max-width: 80px;
    margin: 0 auto 32px;
}

@media (min-width: 768px) {
    .section__title {
    font-size: 55px;
}
    .section__subtitle {
    font-size: 26px;
    }
}

/* ----------------------------- News list ----------------------------- */

.news-list {
    background: var(--color-white);
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 48px;
}

.news-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item__meta {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.news-item__badge {
    background: var(--color-main);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.news-item__title {
    font-weight: 700;
    margin: 0;
}

/* ----------------------------- Book carousel ----------------------------- */

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform 0.6s ease;
}

/* スライド1枚あたりの幅は表示枚数(--slides-visible)から自動計算 */
.carousel-track {
--slides-visible: 2;
--slide-gap: 20px;
}

.carousel-track > p {
    flex: 0 0 calc((100% - (var(--slides-visible) - 1) * var(--slide-gap)) / var(--slides-visible));
    min-width: 0;
}

.carousel-track img {
    width: 100%;
    border-radius: 4px;
}

@media (min-width: 600px) {
    .carousel-track {
    --slides-visible: 3;
}
}

@media (min-width: 960px) {
    .carousel-track {
    --slides-visible: 4;
}
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
}

.carousel-arrow.prev {
    left: 5px;
}

.carousel-arrow.next {
    right: 5px;
}

@media (min-width: 768px) {
    .carousel-arrow {
    width: 40px;
    height: 40px;
    }
}

/* ----------------------------- Point blocks ----------------------------- */

.point-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    margin-bottom: 48px;
}

.point-block:last-child {
    margin-bottom: 0;
}

@media (min-width: 960px) {
    .point-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.point-block.reverse .point-block__image {
    order: 1;
}
.point-block.reverse .point-block__text {
    order: 2;
    }
}

.point-block__text p {
    font-weight: 700;
    margin: 0 0 16px;
}

.point-block__voice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.point-block__voice img {
    width: 40px;
}

.point-block__divider {
    border: none;
    border-top: 3px solid var(--color-main);
    width: 120px;
    margin: 0 0 16px;
}

.point-check-list li {
    position: relative;
    padding-left: 1.6em;
    padding-bottom: .4rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: dashed var(--color-line) 1px;
}

.point-check-list li::before {
    content: "✔︎";
    position: absolute;
    left: 0;
    color: var(--color-main);
}

/* ----------------------------- Tabs (line-up) ----------------------------- */

.tabs__list {
    display: flex;
    width: 100%;
    margin: 0 0 40px;
    gap: 0.8rem;
}

.tabs__list li {
    flex: 1 1 0;
    position: relative;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}


.tabs__button {
    width: 100%;
    border: none;
    background-color: rgba(236, 233, 220, 0.5);
    color: var(--color-text);
    padding: 14px 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.tabs__button[aria-selected="true"],
.tabs__button:hover {
    background: var(--color-main);
    color: #fff;
}

/* 選択中タブの下に吹き出しの三角を表示 */
.tabs__list li:has(button[aria-selected="true"])::after,
.tabs__list li:has(button:hover)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid var(--color-main);
    z-index: 2;
}

@media (min-width: 600px) {
    .tabs__button {
    font-size: 16px;
    padding: 12px 8px;
    }
}

.tabs__panel {
    display: none;
}

.tabs__panel.is-active {
    display: block;
}

.tabs__panel--empty {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 60px 0;
}

/* ----------------------------- Book cards ----------------------------- */

.book-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.book-card:last-child {
    border-bottom: none;
}

@media (min-width: 960px) {
    .book-card {
    grid-template-columns: 63% 37%;
    }
}

.book-card__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .book-card__main {
    grid-template-columns: 35% 1fr;
    align-items: center;
    }
}

.book-card__cover img {
    border-radius: 4px;
    margin: 0 auto;
    max-width: 220px;
}

@media (min-width: 600px) {
    .book-card__cover img {
    max-width: 100%;
    }
}

.book-card__series {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.book-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0 12px;
}

.book-card__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 16px;
}

.book-card__table th,
.book-card__table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.book-card__table th {
    background: var(--color-main);
    color: #fff;
    width: 30%;
}

.book-card__links {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 60%; 
    gap: 12px;
}

.book-card__links a {
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    
    padding: 12px 16px;
    padding-right: 28px;
    background: var(--color-main);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    transition: .3s;
    position: relative;
    text-decoration: none;
}

.book-card__links a:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); 
}

.book-card__links a::after {
    content: ">";
    color: #fff;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}


@media (min-width: 768px) {
    .book-card__links {
        flex-direction: row;
        gap: 16px;
    }

    .book-card__links a {
        flex: 1 1 calc(33.333% - 11px); 
        padding: 10px 16px;
        padding-right: 24px;
    }
    
    .book-card__links a::after {
        right: 10px;
    }
}


@media (min-width: 600px) {
    .book-card__links{
    flex-direction:row;
    flex-wrap: wrap;
    width: 100%;
    }
}


.book-card__links a svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.book-card__sample-title {
    text-align: center;
    font-weight: 700;
    margin: 0 0 10px;
}

.book-card__gallery img {
    cursor: zoom-in;
    border-radius: 2px;
}

/* ----------------------------- Lightbox ----------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox.is-active {
    display: flex;
}

.lightbox img {
    max-width: 80vw;
    max-height: 80vh;
}

.lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.lightbox .lb-nav.prev {
    left: 16px;
}

.lightbox .lb-nav.next {
    right: 16px;
}

.lightbox .lb-nav::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-top: 4px solid #fff;
    border-right: 4px solid #fff;
}

.lightbox .lb-nav.prev::before {
    transform: rotate(-135deg);
}

.lightbox .lb-nav.next::before {
    transform: rotate(45deg);
}

.lightbox .lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

.lightbox .lb-counter {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 14px;
}

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

.site-footer {
    background: #c9c9c9;
    padding: 32px 0;
    text-align: center;
}
.site-footer .container{
    display: flex;
    flex-direction: column;
    justify-content:center;
    font-size: .8rem;
}
.site-footer__copyright {
    margin: 0;
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 2rem;
    font-style: normal;
}


@media (min-width: 600px) {
    .site-footer .container{
    flex-direction: row;
    font-size: 1rem;
    }
    .site-footer__copyright {
        margin-left: auto;
    }
     .site-footer__pp{
        margin-left: auto;
     }
}

.site-footer__pp a:hover{
    color: var(--color-main);
    text-decoration: underline;
}

@media (min-width: 600px) {
    .site-footer__pp{
        text-align: right;
        }
}
/* ----------------------------- Utility ----------------------------- */

.u-mb-0 {
    margin-bottom: 0 !important;
}
