@charset "UTF-8";

:root {
	--green: #428728;
	--text: #000;
	--container: 1200px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}
button {
	font: inherit;
}

.ippin {
	padding: 280px 20px clamp(50px, 7vw, 100px) ;
}

.ippin__inner {
	max-width: var(--container);
	margin: 0 auto;
}

.ippin__title {
	margin: 0 0 28px;
	text-align: center;
	color: var(--green);
	font-size: clamp(26px, 3vw, 45px);
	font-weight: 700;
	font-family: 'M PLUS Rounded 1c', sans-serif;
}

.ippin__nav-wrap {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(8px);
	padding: 16px 0;
	margin-bottom: 40px;
}

.ippin__nav-toggle {
	display: none;
}

.ippin__nav {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}

.ippin__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid #000;
	background: #fff;
	font-size: 15px;
	text-align: center;
	transition: background-color .25s, color .25s, border-color .25s;
	cursor: pointer;
}

.ippin__nav-btn:hover,
.ippin__nav-btn.is-active {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.ippin__section {
	scroll-margin-top: 120px;
	margin-top: clamp(30px, 3.5vw, 50px);
}

.ippin__section-title {
	margin: 0 0 16px;
	background: var(--green);
	color: #fff;
	padding: 6px 16px;
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 700;
}

.ippin__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 26px;
}

/* カード */
.product-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	cursor: pointer;
}

.product-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid #cfcfcf;
}

.product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.product-card:hover .product-card__image img {
	transform: scale(1.05);
}

.product-card__body {
	padding-left: 10px;
	border-left: 5px solid var(--green);
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 120px;
}

.product-card__name {
	margin: 0;
	font-size: clamp(18px, 1.4vw, 20px);
	line-height: 1.45;
}

.product-card__association {
	font-size: clamp(12px, 1vw, 14px);
	line-height: 1.5;
}

.product-card__action {
	margin-top: auto;
	align-self: flex-end;
	border: 0;
	background: transparent;
	color: var(--green);
	font-size: 15px;
	font-weight: 700;
	padding: 0;
	cursor: pointer;
}

/* モーダル */
.modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 1100;
}

.modal.is-open {
	display: block;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.modal__dialog {
	position: relative;
	max-width: 1200px;
	width: min(calc(100% - 40px), 1200px);
	max-height: calc(100vh - 48px);
	margin: 24px auto;
	background: #fff;
	overflow: auto;
	box-shadow: var(--shadow);
}

.modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	background: var(--green);
	color: #fff;
	padding: 10px 16px;
}

.modal__head-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.modal__logo {
	width: clamp(36px, 5vw, 70px);
	display: grid;
	place-items: center;
	margin-bottom: -20px;
}

.modal__logo img{
	width: 100%;
}

.modal__title {
	margin: 0;
	font-size: clamp(16px, 2vw, 28px);
}

.modal__back {
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
	font-size: clamp(12px, 1vw, 16px);
}

.modal__content {
	padding: 36px 32px 40px;
	background: #fff;
}

.modal__main {
	display: grid;
	gap: 32px;
	align-items: start;
}

/* ギャラリー */
.modal__gallery {
	min-width: 0;
}

.gallery {
	position: relative;
	width: min(100%, 600px);
	margin: 0 auto;
	border: 1px solid #cfcfcf;
}

.gallery__viewport {
	overflow: hidden;
	width: 100%;
}

.gallery__track {
	display: flex;
	transition: transform .35s ease;
	will-change: transform;
}

.gallery__item {
	flex: 0 0 100%;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 200px;
	background: #e8e8e8;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 22px;
}

.gallery__arrow[hidden] {
	display: none;
}

.gallery__arrow--prev {
	left: 5px;
}

.gallery__arrow--next {
	right: 5px;
}

.gallery__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 14px 0 0;
}

.gallery__dots:empty {
	display: none;
}

.gallery__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #cfcfcf;
	cursor: pointer;
}

.gallery__dot.is-active {
	background: var(--green);
}

.modal__meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 18px;
	min-width: 0;
}

.modal__text-left {
	display: grid;
	gap: 16px;
}

.modal__info {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	align-items: center;
}

.modal__product-name,
.modal__association {
	margin: 0;
	padding-left: 12px;
	border-left: 5px solid var(--green);
	font-size: clamp(16px, 1.2vw, 18px);
	line-height: 1.5;
	font-weight: 700;
}

.modal__desc {
	border-left: 5px solid var(--green);
	padding-left: 12px;
	font-size: clamp(14px, 1vw, 16px);
}

.modal__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: flex-end;
}

.modal__link {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px 22px;
	color: #fff;
	font-weight: 700;
	text-align: center;
	background: var(--green);
	transition: opacity .25s;
	font-size: 16px;
}

.modal__link:hover {
	opacity: .7;
}

body.is-modal-open {
	overflow: hidden;
}

.modal__dialog:focus,
.modal__dialog:focus-visible {
	outline: none;
}

.ippin-link-hidden {
	display: none !important;
}

@media (max-width: 1024px) {
	.ippin__nav {
		grid-template-columns: repeat(4, 1fr);
	}

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

@media (max-width: 960px) {
	.ippin {
		padding: 140px 20px clamp(50px, 7vw, 100px);
	}

	.ippin__title {
		margin-bottom: 20px;
	}

	.ippin__nav-wrap {
		position: sticky;
		top: 0;
		z-index: 30;
		padding: 10px 0;
		margin-bottom: 28px;
		overflow: visible;
	}

	.ippin__nav-toggle {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		min-height: 48px;
		padding: 0 16px;
		border: 1px solid #000;
		background: #fff;
		position: relative;
		font-size: 15px;
		z-index: 32;
		color:#000;
	}

	.ippin__nav-toggle::after {
		line-height: 1;
		content: "arrow_drop_down";
		font-family: 'Material Icons';
		font-size: 20px;
		vertical-align: middle;
		color: var(--green);
	}

	.ippin__nav-wrap.is-open .ippin__nav-toggle::after {
		content: "arrow_drop_up";
	}

	.ippin__nav {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		z-index: 31;
		display: none;
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 10px 0 0;
		background: #fff;
	}

	.ippin__nav-wrap.is-open .ippin__nav {
		display: grid;
	}

	.ippin__nav-btn {
		justify-content: flex-start;
		text-align: left;
		min-height: 48px;
		padding: 0 16px;
	}

	.ippin__section {
		scroll-margin-top: 68px;
		margin-top: 42px;
	}

	.ippin__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	.modal__dialog {
		width: min(calc(100% - 20px), 1100px);
		margin: 10px auto;
		max-height: calc(100vh - 20px);
	}

	.modal__head {
		padding: 10px;
	}

	.modal__logo {
		margin-bottom: 0;
	}

	.modal__content {
		padding: 18px 14px;
	}

	.modal__meta {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.modal__links {
		gap: 8px;
	}

	.modal__link {
		padding: 10px 20px;
	}
}

@media (max-width: 480px) {
	.ippin__grid {
		grid-template-columns: 1fr;
	}
}