@charset "UTF-8";
/* ==========================================================================
   TOP page（index.php）
   ========================================================================== */

/* --------------------------------------------------------------------------
   FV（#slideshow は CMSスライダー差し替え前提の静止画）
   -------------------------------------------------------------------------- */
.hgw-mv {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100vh;
  min-height: 760px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 95% calc(100% - 97.2px), 90% calc(100% - 76.8px), 85% calc(100% - 58.8px), 80% calc(100% - 43.2px), 75% calc(100% - 30px), 70% calc(100% - 19.2px), 65% calc(100% - 10.8px), 60% calc(100% - 4.8px), 55% calc(100% - 1.2px), 50% 100%, 45% calc(100% - 1.2px), 40% calc(100% - 4.8px), 35% calc(100% - 10.8px), 30% calc(100% - 19.2px), 25% calc(100% - 30px), 20% calc(100% - 43.2px), 15% calc(100% - 58.8px), 10% calc(100% - 76.8px), 5% calc(100% - 97.2px), 0 calc(100% - 120px));
}
#slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 760px;
}
#slideshow .swiper-slide,
#slideshow .main_slider__inner {
  width: 100%;
  height: 100%;
}
#slideshow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hgw-mv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 38, 74, 0.5);
}
.hgw-mv__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96%;
  height: 100%;
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 140px;
}
.hgw-mv__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  white-space: nowrap;
  color: #fff;
}
.hgw-mv__en {
  letter-spacing: 0.24em;
  color: #BFE3F8;
}
.hgw-mv__catch {
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.hgw-mv__catch-em { color: #8FD6FB; }
.hgw-mv__lead {
  font-size: 1.7rem;
  line-height: 2;
}

@media (max-width: 896px) {
  .hgw-mv,
  #slideshow { min-height: 600px; }
  .hgw-mv__inner { padding-top: 72px; padding-bottom: 100px; }
  .hgw-mv__text { white-space: normal; gap: 24px; }
  .hgw-mv__catch { font-size: 4rem; }
}
@media (max-width: 639px) {
  .hgw-mv,
  #slideshow { height: 80vh; min-height: 560px; }
  .hgw-mv__catch { font-size: 2.8rem; }
  .hgw-mv__lead { font-size: 1.4rem; text-align: left; }
  .hgw-mv__lead br { display: none; }
}

/* --------------------------------------------------------------------------
   CASE（こんなお悩みはありませんか？）
   -------------------------------------------------------------------------- */
.hgw-case {
  margin-top: -120px;
  padding: 240px 0 120px;
}
.hgw-case__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  gap: 48px 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 16px;
}
.hgw-case__illust {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
}
.hgw-case__illust img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: calc(100% + 48px);
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.hgw-case__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 44px 24px 36px;
  background: #fff;
  border: 1px solid #DCEAF5;
}
.hgw-case__card--1 { grid-column: 1; grid-row: 1; }
.hgw-case__card--2 { grid-column: 3; grid-row: 1; }
.hgw-case__card--3 { grid-column: 1; grid-row: 2; }
.hgw-case__card--4 { grid-column: 3; grid-row: 2; }
.hgw-case__badge {
  position: absolute;
  top: -16px;
  left: 32px;
}
.hgw-case__ttl {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.hgw-case__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 72px;
  text-align: center;
}
.hgw-case__message {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hgw-case__message-main {
  font-size: 2.6rem;
  letter-spacing: 0.04em;
}

/* 元データは1280px前提で nowrap。1200px固定表示ではカード幅を超えるため折り返す */
@media (max-width: 1279px) {
  .hgw-case__ttl { white-space: normal; }
}
@media (max-width: 896px) {
  .hgw-case { padding: 180px 0 60px; }
  .hgw-case__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .hgw-case__illust { grid-column: 1 / -1; grid-row: auto; height: 240px; order: 5; }
  .hgw-case__card--1, .hgw-case__card--2, .hgw-case__card--3, .hgw-case__card--4 { grid-column: auto; grid-row: auto; }
  .hgw-case__summary { margin-top: 40px; }
  .hgw-case__message-main { font-size: 2rem; }
}
@media (max-width: 639px) {
  .hgw-case__grid { grid-template-columns: 1fr; }
  .hgw-case__card br { display: none; }
}

/* --------------------------------------------------------------------------
   STRENGTH（萩原萬商店の強み）
   POINTラベルは写真下端から24pxはみ出す設計（clipしない）
   -------------------------------------------------------------------------- */
.hgw-point {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.hgw-point__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hgw-point__photo {
  position: relative;
  height: 280px;
  margin-bottom: 12px;
  border-radius: 4px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hgw-point__photo--y70 { background-position: center 70%; }
.hgw-point__label {
  position: absolute;
  left: 0;
  bottom: -24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 20px 4px 0;
  background: #fff;
  border-radius: 0 4px 0 0;
}
.hgw-point__label-en {
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: #096fc8;
}
.hgw-point__label-num {
  font-size: 3.2rem;
  line-height: 1;
  color: #019dea;
}
.hgw-point__ttl {
  margin: 12px 0 -10px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.6;
}
.hgw-point__text { font-size: 1.5rem; }

@media (max-width: 896px) {
  .hgw-point { grid-template-columns: 1fr; gap: 48px; }
  .hgw-point__photo { height: 240px; }
  .hgw-point__ttl { font-size: 1.8rem; }
}

/* --------------------------------------------------------------------------
   PRODUCTS（取扱商品）
   -------------------------------------------------------------------------- */
.hgw-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hgw-product-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.hgw-product-card__body {
  text-align: center;
  line-height: 1.5;
}
.hgw-product-card__name { font-size: 1.7rem; }
.hgw-product-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  border-top: 1px dashed #9CC6E6;
  border-bottom: 1px dashed #9CC6E6;
}
.hgw-product-extra__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #DCEAF5;
  color: #096fc8;
}
.hgw-product-extra__text { font-size: 1.5rem; }

/* --------------------------------------------------------------------------
   OUR VISION（萩原萬商店が目指すこと）
   -------------------------------------------------------------------------- */
.hgw-vision {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.hgw-vision__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hgw-vision__ink { color: #1A2B3C; }
.hgw-vision__text {
  font-size: 1.7rem;
  line-height: 2.3;
}
.hgw-vision__btn { margin-top: 8px; }
.hgw-vision__photos {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  height: 380px;
}
.hgw-vision__sub { position: relative; }
.hgw-vision__photo {
  border-radius: 14px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hgw-vision__photo--main { background-position: 50% 45%; }
.hgw-vision__photo--top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 205px;
}
.hgw-vision__photo--bottom {
  position: absolute;
  bottom: 0;
  left: -36px;
  right: 0;
  aspect-ratio: 3 / 2;
  border: 6px solid #fff;
}

@media (max-width: 896px) {
  .hgw-vision { grid-template-columns: 1fr; gap: 40px; }
  .hgw-vision__text { font-size: 1.5rem; line-height: 2; }
}
@media (max-width: 639px) {
  .hgw-vision__photos { height: 300px; }
  .hgw-vision__photo--top { height: 160px; }
  .hgw-vision__photo--bottom { left: -24px; }
}

/* --------------------------------------------------------------------------
   NATIONWIDE（全国どこからでも、ご相談いただけます）
   -------------------------------------------------------------------------- */
.hgw-nationwide {
  position: relative;
  overflow: hidden;
  margin-top: -40px;
  padding: 0 0 120px;
}
.hgw-nationwide__circle {
  left: 50%;
  top: 50%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
}
.hgw-nationwide__inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0 0 40px;
}
.hgw-nationwide__map {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-left: auto;
}
.hgw-nationwide__map-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.45;
}
.hgw-nationwide__body {
  position: absolute;
  top: 16%;
  left: -60px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 500px;
}
.hgw-nationwide__text { text-wrap: pretty; }
.hgw-nationwide__btn { margin-top: 8px; }

.hgw-pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(9, 111, 200, 0.22);
  transform: translate(-50%, -50%);
}
.hgw-pin__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #096fc8;
}
.hgw-pin-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #096fc8;
  border-radius: 4px;
  white-space: nowrap;
  color: #096fc8;
  line-height: 1.3;
}
.hgw-pin-label__main {
  font-size: 1.5rem;
  font-weight: 700;
}
.hgw-pin-label__sub { font-size: 1.1rem; }
.hgw-pin--hyogo,
.hgw-pin-label--hyogo { left: 36.9%; top: 68.2%; }
.hgw-pin-label--hyogo { transform: translate(-50%, calc(-100% - 20px)); }
.hgw-pin--kagoshima,
.hgw-pin-label--kagoshima { left: 20.9%; top: 88.8%; }
.hgw-pin-label--kagoshima { transform: translate(calc(-100% - 20px), -50%); }

@media (max-width: 896px) {
  .hgw-nationwide { margin-top: 0; padding: 0 20px 60px; }
  .hgw-nationwide__inner { padding: 0; }
  .hgw-nationwide__body { position: relative; top: auto; left: auto; max-width: none; margin-bottom: 24px; }
  .hgw-nationwide__map { display: flex; flex-direction: column; }
  .hgw-nationwide__map-img { order: 2; }
  .hgw-pin, .hgw-pin-label { display: none; }
}

/* --------------------------------------------------------------------------
   オープニング（ロゴのローダー）
   白い幕 → ブルーの幕の順に上へ抜ける。幕の下端はFVと同じ谷型アーチ
   -------------------------------------------------------------------------- */
.hgw-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.hgw-loader.is-active { display: block; }
.is-loading,
.is-loading body { overflow: hidden; }

.hgw-loader__panel,
.hgw-loader__curtain {
  position: absolute;
  inset: 0;
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
}
/* 下端の谷型アーチ（幕と一緒に動く） */
.hgw-loader__panel::after,
.hgw-loader__curtain::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10%;
  width: 120%;
  height: 120px;
  margin-top: -1px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: inherit;
}
.hgw-loader__panel {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.hgw-loader__curtain {
  z-index: 1;
  background: #096fc8;
}
.hgw-loader__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  transition: opacity 0.8s ease, transform 1s ease;
}
/* ロゴを左から右へなぞるように表示 */
.hgw-loader__logo {
  display: block;
  width: 260px;
  height: auto;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: translateY(8px);
  animation: hgw-logo-reveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes hgw-logo-reveal {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateY(8px); }
  15%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; transform: translateY(0); }
}
/* 現在ページの3ドットと同じモチーフ（濃・淡・濃） */
.hgw-loader__dots {
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: hgw-fade-in 0.8s ease 1.2s forwards;
}
.hgw-loader__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #096fc8;
  animation: hgw-dot-pulse 1.6s ease-in-out infinite;
}
.hgw-loader__dots span:nth-child(2) {
  background: #019dea;
  animation-delay: 0.25s;
}
.hgw-loader__dots span:nth-child(3) { animation-delay: 0.5s; }
@keyframes hgw-dot-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  40%      { transform: translateY(-6px); opacity: 1; }
}
@keyframes hgw-fade-in {
  to { opacity: 1; }
}

/* 退場 */
.hgw-loader.is-done .hgw-loader__body {
  opacity: 0;
  transform: translateY(-24px);
}
.hgw-loader.is-done .hgw-loader__panel {
  transform: translateY(calc(-100% - 120px));
  transition-delay: 0.4s;
}
.hgw-loader.is-done .hgw-loader__curtain {
  transform: translateY(calc(-100% - 120px));
  transition-delay: 0.7s;
}

/* 幕が抜けた後、FVのテキストを順に表示（オープニングを見せた時だけ） */
.has-loader .hgw-mv__text > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.has-loader.is-loaded .hgw-mv__text > * {
  opacity: 1;
  transform: none;
}
.has-loader.is-loaded .hgw-mv__en      { transition-delay: 1.4s; }
.has-loader.is-loaded .hgw-mv__catch   { transition-delay: 1.65s; }
.has-loader.is-loaded .hgw-mv__lead    { transition-delay: 1.9s; }

/* 動きを減らす設定の端末：アニメーションを省き、短いフェードのみ */
@media (prefers-reduced-motion: reduce) {
  .hgw-loader__logo,
  .hgw-loader__dots { animation: none; clip-path: none; opacity: 1; transform: none; }
  .hgw-loader__dots span { animation: none; opacity: 1; }
  .hgw-loader__panel,
  .hgw-loader__curtain { transition: opacity 0.4s ease; }
  .hgw-loader.is-done .hgw-loader__panel,
  .hgw-loader.is-done .hgw-loader__curtain { transform: none; opacity: 0; transition-delay: 0s; }
  .has-loader .hgw-mv__text > * { transform: none; transition: opacity 0.4s ease; transition-delay: 0s; }
}
