/* ==========================================================================
   ネイルギャラリー & レビューページ個別スタイル (nails-gallery.css)
   ========================================================================== */

/* --- 1. 自動スライドショーのスタイル --- */
.slider-section {
    background-color: #000;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 450px;
}

.slide-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(85%);
}

.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--pure-white);
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.slide-caption h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.slide-caption p {
    font-size: 14px;
    font-family: var(--font-sans);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-pink);
    transform: scale(1.2);
}

/* --- 2. 店長一押しネイルのスタイル --- */
.recommended-section {
    background-color: var(--pure-white);
}

.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.recommended-card {
    display: table;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--off-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    table-layout: fixed;
}

.rec-image, .rec-text {
    display: table-cell;
    vertical-align: middle;
    width: 50%;
    text-align: left;
}

.rec-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.rec-text {
    padding: 40px;
}

.badge {
    display: inline-block;
    background-color: #8d7060; /* 木目カレンダー調のブラウンでおしゃれな高級感 */
    color: var(--pure-white);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rec-text h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.rec-text .price {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-pink);
    margin-bottom: 15px;
}

.rec-text .description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.rec-points span {
    display: inline-block;
    font-size: 12px;
    background-color: var(--light-pink);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 5px;
    color: var(--text-dark);
}

/* --- 3. 種類別ギャラリーのスタイル --- */
.category-section {
    background-color: var(--light-pink);
}

.tab-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.tab-btn {
    background-color: var(--pure-white);
    border: 1px solid #e1d8da;
    padding: 10px 24px;
    margin: 0 4px;
    font-size: 13px;
    font-family: var(--font-sans);
    cursor: pointer;
    border-radius: 25px;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--text-dark);
    color: var(--pure-white);
    border-color: var(--text-dark);
}

.gallery-grid {
    display: block;
    font-size: 0;
}

.gallery-item {
    display: inline-block;
    width: 33.333%;
    padding: 10px;
    font-size: 14px;
    vertical-align: top;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    background-color: var(--pure-white);
    padding: 15px;
    border-radius: 0 0 4px 4px;
    border: 1px solid rgba(225, 216, 218, 0.5);
    border-top: none;
}

.item-info h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.item-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- 4. レビュー記入欄・一覧のスタイル --- */
.review-section {
    background-color: var(--off-white);
}

.review-grid {
    display: table;
    width: 100%;
    margin-top: 40px;
    table-layout: fixed;
}

.review-form-wrapper, .review-list-wrapper {
    display: table-cell;
    vertical-align: top;
    width: 50%;
    background-color: var(--pure-white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.review-form-wrapper { border-right: 15px solid var(--off-white); }
.review-list-wrapper { border-left: 15px solid var(--off-white); }

.review-form-wrapper h3, .review-list-wrapper h3 {
    font-size: 18px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--light-pink);
    padding-bottom: 10px;
}

.form-row-twin {
    display: flex;
    gap: 15px;
}

.form-row-twin .form-group {
    flex: 1;
}

/* 横並びの星評価ラジオボタン */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.star-rating-input input[type="radio"]:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    background-color: var(--primary-pink);
    color: #4a282e;
    font-weight: bold;
}

.btn-review-submit {
    width: 100%;
    padding: 12px;
    background-color: #8d7060;
    border: 1px solid #8d7060;
    color: var(--pure-white);
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-review-submit:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

/* レビュー表示カード */
.review-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 5px;
}

.review-card {
    background-color: var(--off-white);
    border: 1px solid var(--light-pink);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-header .stars {
    color: var(--dark-pink);
    font-weight: bold;
    font-size: 16px;
}

.review-header .rev-date-time {
    font-size: 11px;
    color: var(--text-muted);
}

.rev-price-tag {
    font-size: 12px;
    font-weight: 500;
    color: #8d7060;
    margin-bottom: 8px;
}

.rev-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .slider-container { height: 300px; }
    .slide-caption h3 { font-size: 20px; }
    .recommended-card { display: block; }
    .rec-image, .rec-text { display: block; width: 100%; }
    .rec-image img { height: 260px; }
    .gallery-item { width: 50%; }
    .review-grid { display: block; }
    .review-form-wrapper, .review-list-wrapper { display: block; width: 100%; padding: 25px; }
    .review-form-wrapper { border-right: none; margin-bottom: 30px; }
    .review-list-wrapper { border-left: none; }
    .form-row-twin { flex-direction: column; gap: 0; }
}