@charset "UTF-8";
/* CSS Document */

.pebora-rice-chart * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .pebora-rice-chart {
            width: 100%;
    max-width: 1000px;
			min-height: 580px;
			border-radius: 12px;
    margin: 0 auto;
    display: block;  /* ← 追加 */
    overflow: visible;  /* ← 追加 */
    position: relative;  /* ← 追加 */
			padding: 24px 0;
        }
.pebora-rice-chart::after {
    content: "";
    display: table;
    clear: both;
}
        .chart-wrapper {
            position: relative;
    width: 100%;
    padding-bottom: 100%!important;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
        }
        .chart-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 8%;
        }
        .axis {
            position: absolute;
            background: #cbd5e0;
        }
        .axis-vertical {
            left: 50%;
            top: 0;
            width: 2px;
            height: 100%;
            transform: translateX(-50%);
        }
        .axis-horizontal {
            top: 50%;
            left: 0;
            width: 100%;
            height: 2px;
            transform: translateY(-50%);
        }
        .axis-label {
            position: absolute;
            font-weight: bold;
            text-align: center;
            border-radius: 10px;
            white-space: nowrap;
			font-size: 1.1rem!important;
			line-height:1.6!important;
        }
        .axis-label.top {
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
            color: white;
			padding: 6px 16px;
        }

        .axis-label.bottom {
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
			padding: 6px 16px;
        }

        .axis-label.left {
            left: -18px;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            writing-mode: vertical-rl;
			font-feature-settings: "valt";
			padding: 16px 6px;
        }

        .axis-label.right {
            right: -18px;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            writing-mode: vertical-rl;
			font-feature-settings: "valt";
			padding: 16px 6px;
        }

        /* お米の銘柄ラベル */
        .rice-item {
            position: absolute;
            padding: 6px 12px;
            background: white;
            border: 2px solid #fbbf24;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.8rem;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transform: translate(-50%, -50%);
        }

        .rice-item:hover {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            color: white;
            transform: translate(-50%, -50%) scale(1.1);
            box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
            z-index: 10;
        }

        /* モーダル */
        .pebora-modal {
			display: none;
            position: fixed;
            z-index: 999999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
        }

        .pebora-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            max-width: 700px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            position: relative;
        }

        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(50px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
.modal-close-container {
    position: sticky;
    top: -10px;
    z-index: 100;
    padding: 10px 10px;
    margin: -40px -40px 0 -40px;  /* モーダルのpaddingを打ち消す */
    display: flex;
    justify-content: flex-end;
}
        .modal-close {
            position: absolute;
            right: 20px;
            top: 0;
            font-size: 2rem;
            font-weight: bold;
            color: #999;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
			background: #fff;
			box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
        }

        .modal-close:hover {
            background: #f3f4f6;
            color: #333;
        }

        h3.modal-title {
            font-size: 1.6rem;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 4px solid #d9b981;
			vertical-align: middle!important;
        }
			.modal-title-sub {
            font-size: 0.8rem!important;
				background: #f1f1eb;
				padding: 4px 8px;
				border-radius: 12px;
				margin-left: 6px;
				vertical-align: middle!important;
				white-space: nowrap;
        }

        .modal-body {
            display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: flex-start;
			background: #f7f7f3;
			padding: 20px 28px;
			margin-bottom: 24px;
        }
			.modal-body-right{
				width: 220px;
				border-radius: 8px;
				overflow: hidden;
			}
			.modal-body-left{
				width: calc(100% - 240px);
			}
			#modal-description{
				font-weight: bold;
				font-size: 1.1rem;
				padding: 12px 0;
			}
			.modal-characteristic{
				font-size: 0.9em;
			}
.product-link-container {
    background: #fff;
	max-width: 320px;
	width: 100%;
	margin: 20px auto;
}

.product-link-btn {
    display: block;
	width: 100%;
    padding: 12px 40px!important;
    background: #960020!important;
    color: #fff!important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
	line-height: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
	text-align: center;
	border-radius: 12px;
}

.product-link-btn:hover {
    background: #cd002c!important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

        /* レスポンシブ対応 */
        @media (max-width: 768px) {
            .chart-wrapper {
                padding-bottom: 140%!important;
            }

            .pebora-rice-chart h2 {
                font-size: 1.3rem;
            }

            .rice-item {
                font-size: 0.6rem;
				line-height: 1.3;
                padding: 7px 12px;
            }

            .axis-label {
                font-size: 0.75rem;
                padding: 6px 10px;
            }
        .axis-label.top,
			.axis-label.bottom {
				font-size: 0.7rem;
			padding: 3px 16px;
        }
            .axis-label.left,
            .axis-label.right {
                font-size: 0.7rem;
				padding: 16px 3px;
            }

            .modal-content {
                padding: 25px;
            }

            .modal-title {
                font-size: 1.4rem;
            }
			.modal-body {
            display: block;
			margin-bottom: 24px;
        }
			.modal-body-right{
				width: 100%;
			}
			.modal-body-left{
				width: 100%;
			}
			#modal-description{
				font-size: 1.2rem;
				padding: 12px 0;
			}
        }
        @media (max-width: 480px) {
			.chart-wrapper {
        padding-bottom: 150%!important;  /* さらに縦長に */
    }
            .rice-item {
                font-size: 0.6rem;
                padding: 4px 8px;
            }

            .axis-label {
                font-size: 0.65rem;
            }
        }
			.lineup_box{
				cursor: pointer;
			}
			.lineup_box:hover{
				opacity: 0.5;
			}