/* =========================================================
   HANFORD STORE FRONT PAGE
   front-page.php
========================================================= */


/* Front page root reset: override old global layout rules */
body.home #primary.htop-page,
body.home main#primary.htop-page {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body.home #main,
body.home #content,
body.home #container,
body.home .site-content {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

body.home .htop-page .htop-container {
	width: min(1240px, calc(100% - 48px)) !important;
	max-width: 1240px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

body.home .htop-page h1,
body.home .htop-page h2,
body.home .htop-page h3,
body.home .htop-page p,
body.home .htop-page ul,
body.home .htop-page ol {
	writing-mode: horizontal-tb !important;
	text-orientation: mixed !important;
}

.htop-page {
	--htop-navy: #0b3552;
	--htop-navy-dark: #06243a;
	--htop-gold: #b8895a;
	--htop-gold-light: #d6b58e;
	--htop-beige: #eee8e1;
	--htop-bg: #f6f4f1;
	--htop-card: #fff;
	--htop-ink: #242729;
	--htop-muted: #6c7378;
	--htop-line: #dde1e3;
	--htop-shadow: 0 18px 44px rgba(24, 42, 55, 0.09);

	color: var(--htop-ink);
	background: #fff;
	overflow: hidden;
}

.htop-page *,
.htop-page *::before,
.htop-page *::after {
	box-sizing: border-box;
}

.htop-page img {
	display: block;
	width: 100%;
	height: auto;
}

.htop-page a {
	text-decoration: none;
}

.htop-container {
	width: min(1240px, calc(100% - 48px));
	margin-inline: auto;
}

/* Heading
--------------------------------------------------------- */

.htop-section-heading {
	margin-bottom: 48px;
	text-align: center;
}

.htop-section-heading > p,
.htop-section-heading > div > p {
	margin: 0 0 9px;
	color: var(--htop-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.24em;
}

.htop-section-heading h2 {
	margin: 0;
	color: var(--htop-navy);
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.htop-section-heading > span,
.htop-section-heading > div > span {
	display: block;
	margin-top: 14px;
	color: var(--htop-muted);
	font-size: 14px;
	line-height: 1.8;
}

.htop-section-heading--left {
	display: flex;
	gap: 30px;
	align-items: flex-end;
	justify-content: space-between;
	text-align: left;
}

.htop-text-link {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 14px;
	align-items: center;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--htop-navy);
	color: var(--htop-navy);
	font-size: 13px;
	font-weight: 700;
}

/* Buttons
--------------------------------------------------------- */

.htop-button {
	display: inline-flex;
	gap: 20px;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 15px 24px;
	border: 1px solid var(--htop-navy);
	font-size: 14px;
	font-weight: 700;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.htop-button:hover {
	transform: translateY(-2px);
	opacity: 0.88;
}

.htop-button--primary {
	background: var(--htop-navy);
	color: #fff;
}

.htop-button--primary:hover {
	color: #fff;
}

.htop-button--outline {
	background: transparent;
	color: var(--htop-navy);
}

/* Hero
--------------------------------------------------------- */

.htop-hero {
	padding: clamp(64px, 8vw, 110px) 0 0;
	background:
		linear-gradient(135deg, rgba(238,232,225,0.88), rgba(255,255,255,0.98));
}

.htop-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: clamp(46px, 7vw, 96px);
	align-items: center;
}

.htop-hero__eyebrow {
	margin: 0 0 16px;
	color: var(--htop-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.28em;
}

.htop-hero h1 {
  margin: 0;
  color: var(--htop-navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.htop-hero__lead {
	margin: 28px 0 0;
	color: var(--htop-muted);
	font-size: clamp(17px, 2vw, 21px);
	font-weight: 600;
	line-height: 1.9;
}

.htop-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.htop-hero__visual {
	position: relative;
	min-height: 590px;
}

.htop-hero__main-image,
.htop-hero__sub-image {
	position: absolute;
	overflow: hidden;
	background: #e9e5e0;
	box-shadow: var(--htop-shadow);
}

.htop-hero__main-image img,
.htop-hero__sub-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.htop-hero__main-image:hover img,
.htop-hero__sub-image:hover img {
	transform: scale(1.025);
}

.htop-hero__main-image {
	inset: 0 9% 8% 0;
}

.htop-hero__sub-image {
	right: 0;
	bottom: 0;
	width: 42%;
	height: 43%;
	border: 9px solid #f7f3ee;
}

.htop-hero__main-image > span,
.htop-hero__sub-image > span {
	position: absolute;
	right: 16px;
	bottom: 14px;
	padding: 7px 11px;
	background: rgba(6,36,58,0.86);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.htop-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 78px;
	border-top: 1px solid var(--htop-line);
	border-bottom: 1px solid var(--htop-line);
}

.htop-trust-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	padding: 26px 22px;
}

.htop-trust-item + .htop-trust-item {
	border-left: 1px solid var(--htop-line);
}

.htop-trust-item > i {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--htop-gold);
	font-size: 17px;
}

.htop-trust-item strong {
	display: block;
	color: var(--htop-navy);
	font-size: 14px;
}

.htop-trust-item p {
	margin: 5px 0 0;
	color: var(--htop-muted);
	font-size: 11px;
	line-height: 1.65;
}

/* Category
--------------------------------------------------------- */

.htop-category-section {
	padding: clamp(78px, 9vw, 122px) 0;
	background: #fff;
}

.htop-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.htop-category-card {
	position: relative;
	min-height: 330px;
	padding: 34px;
	border: 1px solid var(--htop-line);
	background: #fff;
	color: var(--htop-ink);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.htop-category-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--htop-shadow);
}

.htop-category-card__icon {
	display: grid;
	width: 64px;
	height: 64px;
	place-items: center;
	border-radius: 50%;
	background: var(--htop-bg);
	color: var(--htop-gold);
	font-size: 23px;
}

.htop-category-card > p {
	margin: 24px 0 6px;
	color: var(--htop-gold);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.htop-category-card h3 {
	margin: 0;
	color: var(--htop-navy);
	font-size: 25px;
}

.htop-category-card > span {
	display: block;
	margin-top: 17px;
	color: var(--htop-muted);
	font-size: 14px;
	line-height: 1.8;
}

.htop-category-card > small {
	display: block;
	margin-top: 20px;
	color: var(--htop-navy);
	font-size: 11px;
	line-height: 1.7;
}

.htop-category-card__arrow {
	position: absolute;
	right: 28px;
	bottom: 28px;
	color: var(--htop-gold);
}

/* Product
--------------------------------------------------------- */

.htop-product-section {
	padding: clamp(82px, 9vw, 132px) 0;
	background: var(--htop-bg);
}

.htop-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.htop-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--htop-line);
	box-shadow: 0 9px 24px rgba(24,42,55,0.05);
}

.htop-product-card__image {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eceff0;
}

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

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

.htop-product-card__type {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 7px 10px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.htop-product-card__type--cart {
	background: #b96d3e;
}

.htop-product-card__type--order {
	background: var(--htop-navy);
}

.htop-product-card__type--service {
	background: var(--htop-gold);
}

.htop-product-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.htop-product-card__en {
	margin: 0 0 6px;
	color: var(--htop-gold);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.15em;
}

.htop-product-card h3 {
	margin: 0;
	font-size: 19px;
	line-height: 1.5;
}

.htop-product-card h3 a {
	color: var(--htop-navy);
}

.htop-product-card__description {
	margin: 14px 0 0;
	color: var(--htop-muted);
	font-size: 13px;
	line-height: 1.8;
}

.htop-product-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.htop-product-card__tags li {
	padding: 6px 9px;
	background: var(--htop-bg);
	color: var(--htop-muted);
	font-size: 10px;
}

.htop-product-card__bottom {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--htop-line);
}

.htop-product-card__bottom strong {
	color: var(--htop-navy);
	font-family: Georgia, serif;
	font-size: 16px;
}

.htop-product-card__bottom > a {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	color: var(--htop-navy);
	font-size: 11px;
	font-weight: 700;
}

/* Feature banner
--------------------------------------------------------- */

.htop-feature-banner {
	padding: clamp(80px, 9vw, 125px) 0;
	background: #fff;
}

.htop-feature-banner__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
	gap: clamp(45px, 7vw, 90px);
	align-items: center;
}

.htop-feature-banner__image {
	aspect-ratio: 7 / 5;
	overflow: hidden;
	background: #eee9e4;
	box-shadow: var(--htop-shadow);
}

.htop-feature-banner__image img {
	height: 100%;
	object-fit: cover;
}

.htop-feature-banner__content > p {
	margin: 0 0 10px;
	color: var(--htop-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.htop-feature-banner__content h2 {
	margin: 0;
	color: var(--htop-navy);
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.45;
}

.htop-feature-banner__content > span {
	display: block;
	margin-top: 20px;
	color: var(--htop-muted);
	font-size: 14px;
	line-height: 2;
}

.htop-feature-banner__content > a {
	display: inline-flex;
	gap: 20px;
	align-items: center;
	margin-top: 28px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--htop-navy);
	color: var(--htop-navy);
	font-size: 13px;
	font-weight: 700;
}

/* Industry
--------------------------------------------------------- */

.htop-industry-section {
	padding: clamp(80px, 9vw, 128px) 0;
	background: var(--htop-navy-dark);
}

.htop-industry-section .htop-section-heading h2 {
	color: #fff;
}

.htop-industry-section .htop-section-heading > span {
	color: rgba(255,255,255,0.58);
}

.htop-industry-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.htop-industry-card {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	color: #fff;
}

.htop-industry-card > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.htop-industry-card:hover > img {
	transform: scale(1.045);
}

.htop-industry-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 22%, rgba(3,20,32,0.88) 100%);
}

.htop-industry-card__content {
	position: absolute;
	right: 20px;
	bottom: 18px;
	left: 20px;
}

.htop-industry-card__content p {
	margin: 0 0 4px;
	color: var(--htop-gold-light);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.17em;
}

.htop-industry-card__content h3 {
	margin: 0;
	font-size: 18px;
}

.htop-industry-card__content span {
	display: block;
	margin-top: 7px;
	color: rgba(255,255,255,0.66);
	font-size: 10px;
}

.htop-industry-card > i {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid rgba(255,255,255,0.35);
	border-radius: 50%;
}

/* Order
--------------------------------------------------------- */

.htop-order-section {
	padding: clamp(80px, 9vw, 128px) 0;
	background: #fff;
}

.htop-order-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.htop-order-card {
	padding: 34px;
	border: 1px solid var(--htop-line);
	background: #fff;
	box-shadow: var(--htop-shadow);
}

.htop-order-card--order {
	background: var(--htop-bg);
}

.htop-order-card__label {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--htop-gold);
	font-size: 12px;
	font-weight: 700;
}

.htop-order-card h3 {
	margin: 18px 0 0;
	color: var(--htop-navy);
	font-size: 25px;
}

.htop-order-card ol {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.htop-order-card li {
	padding: 18px;
	border: 1px solid var(--htop-line);
	background: #fff;
}

.htop-order-card li span {
	display: block;
	color: var(--htop-gold);
	font-family: Georgia, serif;
	font-size: 21px;
}

.htop-order-card li strong {
	display: block;
	margin-top: 8px;
	color: var(--htop-navy);
	font-size: 13px;
}

.htop-order-card > a {
	display: inline-flex;
	gap: 15px;
	align-items: center;
	margin-top: 28px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--htop-navy);
	color: var(--htop-navy);
	font-size: 13px;
	font-weight: 700;
}

/* CTA
--------------------------------------------------------- */

.htop-cta {
	padding: clamp(72px, 8vw, 105px) 0;
	background: var(--htop-beige);
}

.htop-cta__inner {
	display: flex;
	gap: 46px;
	align-items: center;
	justify-content: space-between;
}

.htop-cta__inner > div:first-child > p {
	margin: 0 0 10px;
	color: var(--htop-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.htop-cta h2 {
	margin: 0;
	color: var(--htop-navy);
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.5;
}

.htop-cta__inner > div:first-child > span {
	display: block;
	max-width: 700px;
	margin-top: 16px;
	color: var(--htop-muted);
	font-size: 14px;
	line-height: 1.9;
}

.htop-cta__buttons {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
}

/* Tablet
--------------------------------------------------------- */

@media (max-width: 1100px) {
	.htop-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.htop-industry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.htop-trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.htop-trust-item:nth-child(3) {
		border-top: 1px solid var(--htop-line);
		border-left: 0;
	}

	.htop-trust-item:nth-child(4) {
		border-top: 1px solid var(--htop-line);
	}

	.htop-cta__inner {
		display: block;
	}

	.htop-cta__buttons {
		margin-top: 28px;
	}
}

/* Mobile
--------------------------------------------------------- */

@media (max-width: 767px) {
	.htop-container {
		width: min(100% - 32px, 1240px);
	}

	.htop-section-heading {
		margin-bottom: 34px;
	}

	.htop-section-heading--left {
		display: block;
	}

	.htop-text-link {
		margin-top: 20px;
	}

	.htop-hero {
		padding-top: 58px;
	}

	.htop-hero__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.htop-hero h1 {
		font-size: clamp(39px, 11vw, 56px);
	}

	.htop-hero__lead br {
		display: none;
	}

	.htop-hero__buttons {
		display: grid;
		grid-template-columns: 1fr;
	}

	.htop-hero__visual {
		min-height: auto;
		padding: 0 22px 32px 0;
	}

	.htop-hero__main-image {
		position: relative;
		inset: auto;
		aspect-ratio: 4 / 3;
	}

	.htop-hero__sub-image {
		width: 44%;
		height: 44%;
		border-width: 6px;
	}

	.htop-trust-grid {
		grid-template-columns: 1fr;
		margin-top: 48px;
	}

	.htop-trust-item + .htop-trust-item,
	.htop-trust-item:nth-child(3),
	.htop-trust-item:nth-child(4) {
		border-top: 1px solid var(--htop-line);
		border-left: 0;
	}

	.htop-category-grid {
		grid-template-columns: 1fr;
	}

	.htop-category-card {
		min-height: auto;
		padding: 28px 24px 72px;
	}

	.htop-product-grid {
		grid-template-columns: 1fr;
	}

	.htop-feature-banner__inner {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.htop-feature-banner__content h2 br {
		display: none;
	}

	.htop-industry-grid {
		grid-template-columns: 1fr;
	}

	.htop-order-grid {
		grid-template-columns: 1fr;
	}

	.htop-order-card {
		padding: 26px 20px;
	}

	.htop-order-card ol {
		grid-template-columns: 1fr;
	}

	.htop-order-card li {
		display: flex;
		gap: 16px;
		align-items: center;
	}

	.htop-order-card li strong {
		margin-top: 0;
	}

	.htop-cta__buttons {
		display: grid;
		grid-template-columns: 1fr;
	}

	.htop-cta h2 br {
		display: none;
	}
}
/* =========================================================
   TOP HERO 最終調整
========================================================= */

/* PC */
@media (min-width: 768px) {

  .htop-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(40px, 5vw, 70px);
  }

  .htop-hero h1 {
    font-size: clamp(36px, 3.7vw, 54px);
    line-height: 1.35;
    letter-spacing: 0.025em;
  }

  .htop-hero h1 span {
    display: block;
    white-space: nowrap;
  }

  .htop-hero h1 span + span {
    margin-top: 8px;
  }

}


/* スマホ */
@media (max-width: 767px) {

  .htop-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .htop-hero__content {
    width: 100%;
    min-width: 0;
  }

  .htop-hero h1 {
    font-size: 38px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  .htop-hero h1 span {
    display: block;
    white-space: normal;
  }

  .htop-hero h1 span + span {
    margin-top: 4px;
  }

  .htop-hero__visual {
    width: 100%;
    min-height: auto;
    padding: 0 20px 28px 0;
  }

  .htop-hero__main-image {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .htop-hero__sub-image {
    right: 0;
    bottom: 0;
    width: 43%;
    height: 43%;
  }

}