/* =============================================
   Single — 共通
   ============================================= */

.ah-single {
    padding-bottom: 80px;
}

/* =============================================
   Single Post（お知らせ）
   ============================================= */

/* ヘッダー */
.ah-single--post .ah-single__header {
    padding: 48px 0 36px;
    text-align: center;
}

.ah-single--post .ah-single__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.5;
    margin: 16px 0 12px;
    color: #1a1a1a;
}

.ah-single--post .ah-single__date {
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.06em;
    margin: 0;
}

/* サムネイル */
.ah-single__thumb {
    max-width: 800px;
    margin: 0 auto 52px;
    padding: 0 32px;
}

.ah-single__img {
    width: 100%;
    height: auto;
    display: block;
}

.ah-single__img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #eeeeee 0%, #e0e0e0 100%);
}

/* 本文 */
.ah-single__body {
    margin-bottom: 60px;
}

.ah-single__content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

.ah-single__content p {
    margin: 0 0 1.5em;
}

.ah-single__content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 2em 0 0.8em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

.ah-single__content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.8em 0 0.6em;
}

.ah-single__content img {
    max-width: 100%;
    height: auto;
}

/* 一覧へ戻る */
.ah-single__back {
    padding-top: 40px;
}

.ah-single__back-link {
    font-size: 13px;
    color: #888;
    transition: color 0.15s;
}

.ah-single__back-link:hover {
    color: #1a1a1a;
}

/* 前後ナビ */
.ah-single__nav {
    padding-top: 48px;
    border-top: 1px solid #e8e8e8;
}

.ah-single__nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.ah-single__nav-prev,
.ah-single__nav-next {
    flex: 1;
    max-width: 45%;
}

.ah-single__nav-next {
    text-align: right;
    margin-left: auto;
}

.ah-single__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    transition: color 0.15s;
}

.ah-single__nav-link:hover {
    color: #1a1a1a;
}

.ah-single__nav-next .ah-single__nav-link {
    flex-direction: row-reverse;
}

.ah-single__nav-arrow {
    font-size: 15px;
    color: #bbb;
    flex-shrink: 0;
}

.ah-single__nav-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* =============================================
   Single Product（商品詳細）
   ============================================= */

.ah-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 52px;
    padding-bottom: 80px;
}

/* 画像 */
.ah-product-detail__img {
    width: 100%;
    height: auto;
    display: block;
}

.ah-product-detail__img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #eeeeee 0%, #e0e0e0 100%);
}

/* =============================================
   Product Gallery
   ============================================= */

.ah-product-gallery__main {
    margin-bottom: 8px;
    overflow: hidden;
    width: 100%;
}

.ah-product-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.2s ease;
}

.ah-product-gallery__main-img.is-fading {
    opacity: 0;
}

/* サムネイルストリップ */
.ah-product-gallery__thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ah-product-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

/* 5枚以上: 右端フェード */
.ah-product-gallery__thumbs.has-overflow {
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.ah-product-gallery__thumb-btn {
    flex: 0 0 calc(25% - 5px);
    aspect-ratio: 1;
    padding: 0;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s;
}

.ah-product-gallery__thumb-btn.is-active {
    border-color: #1a1a1a;
}

.ah-product-gallery__thumb-btn:hover:not(.is-active) {
    border-color: #ccc;
}

.ah-product-gallery__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}

.ah-product-gallery__thumb-btn:hover .ah-product-gallery__thumb-img {
    opacity: 0.85;
}

/* 情報 */
.ah-product-detail__info {
    display: flex;
    flex-direction: column;
}

.ah-product-detail__breadcrumb {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.04em;
    margin: 0 0 28px;
}

.ah-product-detail__breadcrumb a {
    color: #aaa;
    transition: color 0.15s;
}

.ah-product-detail__breadcrumb a:hover {
    color: #555;
}

.ah-product-detail__title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.ah-product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.ah-product-detail__date {
    font-size: 12px;
    color: #999;
    letter-spacing: 0.04em;
}

.ah-product-detail__price {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.04em;
    margin: 0 0 28px;
}

.ah-product-detail__description {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 36px;
    flex: 1;
}

.ah-product-detail__description p {
    margin: 0 0 1em;
}

.ah-product-detail__action {
    margin-top: auto;
}

/* 数量 */
.ah-product-detail__qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ah-product-detail__qty-label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

/* カートに入れる */
.ah-btn-cart {
    display: block;
    width: 100%;
    padding: 15px 0;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.18em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    margin-bottom: 10px;
}

.ah-btn-cart:hover {
    background: #333;
}

/* カートを見る（リンクボタン） */
.ah-btn-purchase {
    display: block;
    width: 100%;
    padding: 13px 0;
    background: transparent;
    color: #1a1a1a;
    font-size: 13px;
    letter-spacing: 0.18em;
    border: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.ah-btn-purchase:hover {
    background: #1a1a1a;
    color: #fff;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    .ah-product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }

    .ah-single__thumb {
        padding: 0 20px;
        margin-bottom: 36px;
    }

    .ah-single__nav-inner {
        flex-direction: column;
        gap: 16px;
    }

    .ah-single__nav-prev,
    .ah-single__nav-next {
        max-width: 100%;
        text-align: left;
    }

    .ah-single__nav-next .ah-single__nav-link {
        flex-direction: row;
    }
}
