/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: May 07 2026 | 01:48:08 */
/* ==========================================================================
   About Section (Desktop First / px / clamp)
   ========================================================================== */
.p-about {
  position: relative;
  width: 100%;
  padding: 0 0 clamp(60px, 8vw + 20px, 120px) 0;
}

.p-about__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4%;
}

/* --- 見出しエリア --- */
.p-about__header {
  text-align: center;
  margin-bottom: 40px; /* 装飾線までの余白 */
}

.p-about__en {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: clamp(48px, 4vw + 20px, 64px);
  font-weight: 400;
  line-height: 1;
  color: #3e3e3e;
  margin: 0;
}

.p-about__ja {
  display: block;
  font-size: clamp(13px, 0.5vw + 10px, 14px);
  font-weight: 700;
  color: #666;
  margin-top: 12px;
}

/* --- グリッドと装飾線のラッパー --- */
.p-about__grid-wrapper {
  position: relative;
  padding-top: 40px; /* 装飾の縦線が降りてくるスペース */
}

/* スマホ向けの上書き */
@media (max-width: 767px) {
  .p-about__grid-wrapper {
    padding-top: 0; /* スマホ時は線を消すので余白もリセット */
  }
}

/* --- 装飾用の線（PCベース） --- */
.p-about__line {
  position: absolute;
  top: 0;
  left: calc(50% - 280px);
  width: 50%;     /* 左端から中央までの幅 */
  height: 40px;   /* グリッドに降りてくる高さ */
  border-top: 1px solid #3e3e3e;
  border-left: 1px solid #3e3e3e;
}

/* スマホ向けの上書き */
@media (max-width: 767px) {
  .p-about__line {
    display: none; /* 画面幅が狭い場合は非表示にする */
  }
}

/* --- グリッドレイアウト（PCベース：3列） --- */
.p-about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* スマホ向けの上書き（スマホベース：2列でコンパクトに） */
@media (max-width: 767px) {
  .p-about__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- グリッドアイテム --- */
.p-about__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
}

/* 黒いオーバーレイ（初期状態は薄く） */
.p-about__item::after {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  transition: background-color 0.4s ease;
  content: '';
}

/* ホバー時のオーバーレイ（少し濃くする） */
.p-about__item:hover::after {
  background-color: rgba(0, 0, 0, 0.5);
}

.p-about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* ホバー時の画像拡大 */
.p-about__item:hover .p-about__img {
  transform: scale(1.05);
}

/* アイテム内のテキスト */
.p-about__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

/* ホバー時にテキストも少しだけ浮き上がらせる */
.p-about__item:hover .p-about__title {
  transform: translate(-50%, -50%) scale(1.05);
}

@media (max-width: 767px) {
	.p-about__title {
		font-size: 20px;
	}
}