html, body {
    height: 100%;
}

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px); /* vhからbodyのpadding分を引く */
}

.product-page .page-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.product-page .container {
    margin: 0;
    flex: 1 1 800px;
}

.related-videos-column {
    flex: 0 0 180px;
    position: sticky;
    top: 20px;
    margin-top: 200px;
}

.related-videos-heading {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1em;
    color: #333;
    text-align: center;
}

.related-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-videos-empty {
    font-size: 0.85em;
    color: #777;
    text-align: center;
    margin-top: 12px;
}

.related-video-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.related-video-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-video-card img {
    display: block;
    width: 100%;
    height: auto;
}

.related-video-title {
    font-size: 0.85em;
    line-height: 1.4;
    padding: 8px 10px 10px;
    color: #333;
}

.card-affiliate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto 10px 10px;
    padding: 6px 10px;
    border: 1px solid #e91e63;
    border-radius: 999px;
    background: #fff;
    color: #e91e63;
    font-size: 0.78em;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.card-affiliate-button:hover {
    background: #e91e63;
    color: #fff;
}

.related-videos-inline {
    display: none;
}

.related-videos-inline .related-videos-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.related-video-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 0;
}

.related-video-sale-badge {
    background: #e91e63;
    color: #fff;
    font-size: 0.7em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
}

.related-video-sale-countdown {
    font-size: 0.75em;
    font-weight: 600;
    color: #e91e63;
}

.popular-videos-section {
    margin-top: 20px;
}

.popular-videos-section + .featured-ranking-section {
    margin-top: 16px;
}

.popular-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.ranking-page .popular-videos-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.actress-page .popular-videos-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.search-page .popular-videos-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.actress-sort-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 0 12px;
}

.actress-sort-button {
    border: 1px solid #e91e63;
    background: #fff;
    color: #e91e63;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.actress-sort-button.is-active {
    background: #e91e63;
    color: #fff;
}

.actress-sort-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.popular-video-card {
    align-self: stretch;
}

.popular-video-card .card-affiliate-button {
    margin-top: auto;
}

.popular-video-thumb {
    position: relative;
    display: block;
}

.popular-video-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.popular-video-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 6px;
}

.popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+16) {
    display: none;
}

.popular-videos-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e91e63;
    background: #fff;
    color: #e91e63;
    font-weight: 600;
    cursor: pointer;
}
.genre-list-button {
    background: #ffffff;
    border: none;
    color: #4d4c4c;
}
.genre-list-action {
    text-align: right;
}



.popular-videos-section.popular-videos-expanded .popular-videos-more {
    display: none;
}

.popular-videos-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ranking-page-header {
    text-align: center;
    margin: 12px 0 20px;
}

.ranking-page-title {
    margin: 8px 0 0;
    font-size: 2.2em;
    color: #e91e63;
}

.actress-page-header {
    text-align: center;
    margin: 12px 0 20px;
}

.actress-page-title {
    margin: 8px 0 0;
    font-size: 2.2em;
    color: #e91e63;
}

.actress-page-ruby {
    margin: 6px 0 0;
    font-size: 0.95em;
    color: #777;
}

.search-page-header {
    text-align: center;
    margin: 12px 0 20px;
}

.search-page-title {
    margin: 8px 0 0;
    font-size: 2.2em;
    color: #e91e63;
}

.genre-page-header {
    text-align: center;
    margin: 12px 0 20px;
}

.genre-page-title {
    margin: 8px 0 0;
    font-size: 2.2em;
    color: #e91e63;
}

.genre-page-description {
    margin: 6px 0 0;
    font-size: 0.95em;
    color: #777;
}

.genre-section {
    margin-top: 20px;
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e91e63;
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    background: #fff;
}

.genre-tag:hover {
    background: #e91e63;
    color: #fff;
}

.search-filter-section {
    margin-top: 20px;
}

.search-filter-list {
    display: grid;
    gap: 16px;
}

.search-filter-card {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.search-filter-title {
    margin: 0 0 10px;
    font-size: 1.1em;
    color: #333;
}

.search-filter-form {
    display: flex;
    margin-bottom: 10px;
}

.search-filter-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-filter-button {
    padding: 10px 20px;
    border: none;
    background-color: #e91e63;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-filter-button:hover {
    background-color: #c2185b;
}

.search-tag-results {
    display: grid;
    gap: 10px;
}

.search-tag-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.search-tag-row:hover {
    border-color: #e91e63;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.15);
}

.search-tag-name {
    font-weight: 600;
    color: #333;
}

.search-tag-meta {
    font-size: 0.9em;
    color: #777;
}

.search-tag-action {
    margin-top: 4px;
    font-size: 0.85em;
    color: #e91e63;
    font-weight: 600;
}

.search-selected-section {
    margin-top: 16px;
}

.search-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #e91e63;
    border-radius: 999px;
    background: #fff;
}

.search-selected-tag-label {
    font-size: 0.85em;
    color: #e91e63;
}

.search-selected-tag-name {
    font-weight: 600;
    color: #333;
}

.search-selected-tag-remove {
    text-decoration: none;
    color: #e91e63;
    font-weight: 700;
}

.search-selected-clear {
    display: inline-block;
    margin-top: 8px;
    color: #e91e63;
    text-decoration: none;
}

.search-selected-clear:hover {
    text-decoration: underline;
}

.actress-search-section {
    margin-top: 16px;
}

.actress-ranking-section {
    margin-top: 20px;
}

#actress-search-form {
    display: flex;
    margin-bottom: 12px;
}

#actress-search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#actress-search-form button {
    padding: 10px 20px;
    border: none;
    background-color: #e91e63;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

#actress-search-form button:hover {
    background-color: #c2185b;
}

.actress-search-results {
    display: grid;
    gap: 10px;
}

.actress-search-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.actress-search-row:hover {
    border-color: #e91e63;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.15);
}

.actress-search-thumb img {
    display: block;
    width: 80px;
    height: auto;
    border-radius: 6px;
    background: #f7f7f7;
}

.actress-search-name {
    font-weight: 600;
    color: #333;
}

.actress-search-ruby {
    font-size: 0.9em;
    color: #777;
}

.actress-search-empty {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 8px;
}

.actress-ranking-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.actress-ranking-updated {
    font-size: 0.85em;
    font-weight: 400;
    color: #999;
    white-space: nowrap;
}

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

.featured-ranking-grid .actress-ranking-card:nth-child(n+11) {
    display: none;
}

.actress-ranking-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.actress-ranking-card:hover {
    border-color: #e91e63;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.12);
}

.actress-ranking-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.actress-ranking-name {
    font-size: 0.85em;
    font-weight: 600;
    padding: 8px 10px 0;
    color: #333;
}

.actress-ranking-ruby {
    font-size: 0.8em;
    padding: 0 10px 10px;
    color: #777;
}

.actress-profile-section {
    margin-top: 16px;
}

.actress-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e91e63;
    background: #fff;
    color: #e91e63;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
}

.actress-profile-back:hover {
    background: #fff0f6;
}

.actress-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.actress-profile-image img {
    width: 260px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f7f7f7;
}

.actress-profile-info {
    flex: 1;
    min-width: 240px;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-hero {
    background: linear-gradient(135deg, #fff5f8, #ffffff);
    border: 1px solid #f5d0df;
    border-radius: 12px;
    padding: 28px;
}

.about-eyebrow {
    margin: 0 0 8px;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    color: #c2185b;
    font-weight: 700;
}

.about-title {
    margin: 0 0 12px;
    font-size: 2em;
    color: #e91e63;
    text-align: left;
}

.about-lead {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.about-primary-button,
.about-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.about-primary-button {
    background: #e91e63;
    color: #fff;
    border: 1px solid #e91e63;
}

.about-secondary-button {
    background: #fff;
    color: #e91e63;
    border: 1px solid #e91e63;
}

.about-section h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 1em;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.about-card {
    border: 1px solid #f0e4e8;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.08);
}

.about-card p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.about-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    counter-reset: about-step;
}

.about-steps li {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fafafa;
    position: relative;
    padding-left: 54px;
}

.about-steps li::before {
    counter-increment: about-step;
    content: counter(about-step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e91e63;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
}

.about-step-title {
    font-weight: 700;
    color: #333;
}

.about-step-text {
    color: #555;
}

.about-note-list {
    margin: 0;
    padding-left: 18px;
    color: #555;
    line-height: 1.7;
}

.about-faq {
    display: grid;
    gap: 12px;
}

.about-faq-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.about-faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.actress-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.actress-info-row {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f3f3;
}

.actress-info-row dt {
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.actress-info-row dd {
    margin: 0;
    color: #222;
    line-height: 1.6;
    word-break: break-word;
}

.ranking-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+16) {
    display: flex;
}

.actress-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+16) {
    display: flex;
}

.search-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+16) {
    display: flex;
}

.popular-videos-empty {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 12px;
}

@media (max-width: 1200px) {
    .ranking-page .popular-videos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .actress-page .popular-videos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .search-page .popular-videos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .actress-ranking-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .featured-ranking-grid .actress-ranking-card:nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 900px) {
    .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-page .popular-videos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+11) {
        display: none;
    }

    .ranking-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+11) {
        display: flex;
    }

    .actress-page .popular-videos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .actress-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+11) {
        display: flex;
    }

    .search-page .popular-videos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+11) {
        display: flex;
    }

    .actress-ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .featured-ranking-grid .actress-ranking-card:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 640px) {
    .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-page .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+6) {
        display: none;
    }

    .ranking-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+6) {
        display: flex;
    }

    .actress-page .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actress-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+6) {
        display: flex;
    }

    .search-page .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-page .popular-videos-section:not(.popular-videos-expanded) .popular-video-card:nth-child(n+6) {
        display: flex;
    }

    .actress-ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .actress-search-row {
        grid-template-columns: 64px 1fr;
        align-items: start;
    }

    .actress-search-thumb img {
        width: 64px;
    }

    .actress-search-ruby {
        grid-column: 2 / -1;
    }

    .actress-profile {
        flex-direction: column;
        align-items: center;
    }

    .actress-profile-image img {
        width: min(70vw, 280px);
    }
}

@media (max-width: 480px) {
    .ranking-page .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actress-page .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-page .popular-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actress-ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .product-page .page-layout {
        flex-direction: column;
    }

    .related-videos-column {
        display: none;
    }

    .product-page .container {
        order: 1;
    }

    .related-videos-inline {
        display: block;
    }
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.site-title {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

main {
    flex-grow: 1;
}

footer {
    text-align: center;
    padding: 20px 0 24px;
    background-color: #e0e0e0;
    margin: 40px -20px -20px;
    border-radius: 0 0 8px 8px;
}

.footer-credit {
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer-links-row a {
    display: inline-block;
}

footer img {
    vertical-align: middle;
}

/* 共有固定ボタン */
.share-fab {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
}

.share-fab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-fab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.share-fab-x {
    background-color: #0f1419;
}

.share-fab-threads {
    background-color: #101010;
}

.share-fab-facebook {
    background-color: #1877f2;
}

@media (max-width: 640px) {
    .share-fab {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .share-fab-button {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

h1 {
    text-align: center;
    color: #e91e63;
}

h2 {
    text-align: center;
    color: #e91e63;
    margin-top: 0;
}

#search-form {
    display: flex;
    margin-bottom: 20px;
}

#search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#search-form button {
    padding: 10px 20px;
    border: none;
    background-color: #e91e63;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

#search-form button:hover {
    background-color: #c2185b;
}

.content-section {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.content-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-weight: 600;
}

#result-container {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    gap: 20px;
    margin-top: 20px;
}

#product-info {
    width: 100%; /* 全幅に変更 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央揃え */
}

#product-title {
    font-size: 1.2em;
    margin-top: 0;
    text-align: center; /* 中央揃え */
}

/* product-details の修正 */
.product-details {
    display: flex; /* 画像と価格情報を横並びにする */
    align-items: center; /* 中央揃え */
    justify-content: center; /* 中央揃え */
    gap: 20px; /* 画像と価格情報の間隔 */
    flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
}

.product-details img {
    width: min(100%, 350px); /* 画像の表示幅を明示する */
    max-width: 350px; /* 画像の最大幅を調整 */
    max-height: 400px; /* 画像の最大の高さを制限 */
    object-fit: contain; /* アスペクト比を維持 */
    border-radius: 4px;
}

#details-right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* price-info-container の追加 */
#price-info-container {
    flex-grow: 1; /* 残りのスペースを埋める */
    display: flex;
    flex-direction: column; /* 価格情報を縦積み */
    gap: 5px; /* 各価格カテゴリ間の間隔 */
}

/* 各価格カテゴリのスタイル */
.price-category {
    display: flex;
    align-items: baseline; /* ベースラインで揃える */
    font-size: 1.2em; /* フォントサイズを大きく */
}

.category-name {
    font-weight: bold;
    margin-right: 10px; /* 右側のマージンを調整 */
}

.category-name a {
    color: #333; /* リンクの色を調整 */
    text-decoration: none;
}

.category-name a:hover {
    text-decoration: underline;
}

.normal-price {
    color: #e91e63; /* 通常価格の色 */
    font-weight: bold;
}

.original-price {
    color: #999; /* 通常価格の色（セール時） */
    text-decoration: line-through; /* 取り消し線 */
    margin-right: 5px;
}

.sale-price {
    color: #4caf50; /* セール価格の色 */
    font-weight: bold;
    font-size: 1.1em; /* セール価格を少し大きく */
}

/* 「ダウンロード」ボタンのスタイル（枠線と中央配置） */
#affiliate-link,
.affiliate-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e91e63; /* ブランドカラーの枠線 */
    border-radius: 9999px;
    background-color: #e91e63;
    color: #fff; /* 文字を白抜き */
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    align-self: center;
    width: auto;
    box-sizing: border-box;
    margin-top: 1rem; /* 1行分の余白 */
}

/* 価格推移グラフ右下のボタン配置 */
.chart-download {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .product-page .page-layout {
        align-items: stretch;
    }

    .product-page .container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #chart-container {
        height: 300px;
    }
}

#chart-container {
    width: 100%; /* 全幅に変更 */
    position: relative;
    height: 400px;
}

#price-chart {
    width: 100%;
    height: 100%;
}

.error {
    color: #d32f2f;
    background-color: #ffcdd2;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

#search-suggestions ul {
    list-style: none;
    padding: 0;
}

#search-suggestions li {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#search-suggestions li:hover {
    background-color: #f0f0f0;
}

.price-link {
    text-decoration: none;
    color: inherit;
}

/* 検索例セクション */
#search-examples {
    margin: 10px 0 20px;
    padding: 12px 14px;
    border: 1px dashed #cfd8dc;
    background: #fafafa;
    border-radius: 6px;
}

.examples-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #455a64;
    margin-bottom: 8px;
}

.examples-badge {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.examples-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.examples-list .example-link {
    text-decoration: none;
    color: #000; /* 見出し側は黒 */
    display: inline-block;
    font-weight: 700; /* ラベルを太字に */
}

.examples-list .example-link:hover {
    text-decoration: underline;
}

.examples-list .example-text {
    color: #757575; /* 具体例はグレー */
    font-weight: 400; /* 具体例は通常太さ */
}

.examples-bullet {
    font-size: 0.5em; /* ▶ を半分の大きさに */
    line-height: 1;
    margin-right: 6px;
}

.price-summary-section {
    margin-top: 30px;
}

.price-matrix-table {
    border-collapse: collapse;
    margin: 0 auto;
    width: 100%;
    max-width: 760px;
}

.price-matrix-table th,
.price-matrix-table td {
    border: 1px solid #d0d0d0;
    padding: 12px 10px;
    text-align: center;
}

.price-matrix-table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.price-matrix-table th[scope="row"] {
    background-color: #fafafa;
    font-weight: 600;
}

.matrix-sale-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #e91e63;
}

.matrix-list-price {
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
}

.product-detail-section {
    margin-top: 30px;
}

.product-detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 24px;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.product-detail-row {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f3f3;
}

.product-detail-row dt {
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.product-detail-row dd {
    margin: 0;
    color: #222;
    line-height: 1.6;
    word-break: break-word;
}

.product-heading {
    text-align: center;
    color: #e91e63;
    margin-bottom: 10px;
}

.product-lead {
    text-align: center;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
}

.product-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.product-list-table th,
.product-list-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.product-list-table th {
    background: #f7f7f7;
    font-weight: 600;
    white-space: nowrap;
}

.product-list-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.product-list-table a {
    color: #2b6cb0;
    text-decoration: none;
}

.product-list-table a:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.pagination .page-link {
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    color: #2b6cb0;
    text-decoration: none;
    background-color: #fff;
    font-size: 0.95em;
}

.pagination .page-link:hover {
    background-color: #f0f4ff;
}

.pagination .page-link.current {
    background-color: #2b6cb0;
    color: #fff;
    pointer-events: none;
    border-color: #2b6cb0;
}

@media (max-width: 640px) {
    .product-list-table thead {
        display: none;
    }

    .product-list-table,
    .product-list-table tbody,
    .product-list-table tr,
    .product-list-table td {
        display: block;
        width: 100%;
    }

    .product-list-table tr {
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        padding: 8px 10px;
    }

    .product-list-table td {
        border: none;
        padding: 6px 0;
    }

    .product-list-table td::before {
        content: attr(data-label) "：";
        font-weight: 600;
        margin-right: 6px;
        color: #555;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 20px;
    }

    .about-title {
        font-size: 1.6em;
    }

    .about-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-steps li {
        padding-left: 48px;
    }

    .about-steps li::before {
        left: 12px;
        top: 12px;
    }
}

