@charset "UTF-8";

/** fv **/
.fv {
  margin-left: calc((1000px - 100vw) / 2);
  position: relative;
  height: 570px;
  width: calc(100% + ((100vw - 1000px) / 2));
}
.fv figure {
  margin-right: 70px;
  overflow: hidden;
  position: absolute;
  height: 100%;
  width: calc(100% - 70px);
}
.fv figure img {
  position: absolute;
  left: calc(50% - 7vw);
  top: calc(50% - 2vw);
  transform: translateY(-50%);
  max-width: initial;
  height: calc(100% + 38vw);
  width: auto;
}
.fv h2 {
  display: table;
  margin-left: auto;
  padding-top: 50px;
  position: relative;
}
@media screen and (max-width: 1040px) {
  .fv {
    margin-left: 0;
    height: 50vw;
    width: calc(100% - 4vw);
  }
  .fv figure {
    margin-right: 0;
    width: calc(100% - 6vw);
  }
  .fv figure img {
    left: calc(50% - 12vw);
    top: calc(50% - 2vw);
    height: calc(100% + 45vw);
  }
  .fv h2 {
    padding-top: 5vw;
    width: 12vw;
  }
}

@media screen and (max-width: 780px) {
  .fv {
    margin-left: -6vw;
    height: 108vw;
    width: calc(100% + 6vw);
  }
  .fv figure {
    margin-right: 0;
    width: 100%;
  }
  .fv figure img {
    left: calc(50% - 37vw);
    top: calc(50% - 6vw);
    height: calc(100% + 30vw);
  }
  .fv h2 {
    margin-right: 3vw;
    padding-top: 70.5vw;
    width: 20vw;
  }
}

/** intro **/
.intro {
  font-family: "A1 Mincho", serif;
  margin-top: 100px;
}
.intro h3 {
  font-size: 38px;
  letter-spacing: 2px;
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
  width: 300px;
}
.intro h3 span {
  letter-spacing: 6px;
}
.intro p {
  font-size: 18px;
  line-height: 2;
  margin-right: -5px;
  text-shadow: 0 0 #000;
}
@media screen and (max-width: 1040px) {
  .intro {
    margin: 0 2vw;
    margin-top: 10vw;
  }
  .intro h3 {
    font-size: 3.4vw;
    letter-spacing: 0.2vw;
    width: 28vw;
  }
  .intro h3 span {
    letter-spacing: 0.6vw;
  }
  .intro p {
    font-size: 1.7vw;
    margin-right: -0.5vw;
  }
}
@media screen and (max-width: 780px) {
  .intro {
    margin: 0;
    margin-top: 12vw;
  }
  .intro h3 {
    font-size: 5.8vw;
    letter-spacing: 0.6vw;
    margin-bottom: 9vw;
    width: 100%;
  }
  .intro h3 span {
    letter-spacing: 0.6vw;
  }
  .intro p {
    font-size: 3.4vw;
    margin-right: -0.5vw;
  }
}

/* =========================
   Hero
========================= */

.p-speciality-hero {
  padding: 80px 20px 48px;
}

.p-speciality-hero__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
}

.p-speciality-hero__title {
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.p-speciality-hero__lead {
  font-size: 0.98rem;
  line-height: 1.9;
}

/* =========================
   CATEGORY NAV（中央揃え）
========================= */

.p-speciality-categoryNav {
  background-color: #ffffff;
  border-bottom: 1px solid #e3e3e3;
  border-top: 1px solid #e3e3e3;
  padding: 24px 20px;
  text-align: center; /* ★全体中央揃え */
}

.p-speciality-categoryNav__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
}

/* 見出し CATEGORY を中央に */

.p-speciality-categoryNav__heading {
  color: #7f8a81;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  margin: 0 0 12px;
  text-align: center; /* ★中央揃え */
  text-transform: uppercase;
}

/* ボタンの並びを中央に */

.p-speciality-categoryNav__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  gap: 3%;
  padding: 0;
  width: 100%;
}

@media screen and (max-width: 780px) {
  .p-speciality-categoryNav__list {
    grid-template-columns: repeat(1, 1fr);
    max-width: 500px;
    margin: 0 auto;
  }
}
/* ボタン（通常：グレー） */

.p-speciality-categoryNav__link {
  -moz-column-gap: 6px;
  -webkit-text-decoration: none;
  align-items: center;
  background-color: #0f7f4a;
  border-radius: 6px;
  color: #ffffff;
  column-gap: 6px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 0;
  text-decoration: none;
  border: 1px solid #0f7f4a;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  width: 100%;
  display: inline-block;
}

/* ホバー（グリーン） */

.p-speciality-categoryNav__link:hover,
.p-speciality-categoryNav__link:focus-visible {
  background-color: #ffffff;
  border: 1px solid #0f7f4a;
  color: #0f7f4a;
  opacity: 0.95;
}

/* 英語ラベル */

.p-speciality-categoryNav__en {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
  text-transform: uppercase;
}

/* =========================
   Section
========================= */

.p-speciality-section {
  padding: 56px 20px;
}

.p-speciality-section__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
}

.p-speciality-section__header {
  margin-bottom: 24px;
}

.p-speciality-section__title {
  border-bottom: 0.1rem solid #ccc;
  padding-bottom: 1.6rem;
  font-weight: 700;
}

.p-speciality-section__en {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-left: 8px;
}

.p-speciality-section__description {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.9;
  margin-top: 1.6rem;
}

/* ここは swiper に任せるので display:grid は削除推奨 */

.p-speciality-cardList {
  list-style: none;
  margin: 0;
  padding: 0; /* display: grid; ← これは外す */
}

/* スライドとしての最低限 */

.p-speciality-cardList__item.swiper-slide {
  height: auto;
}

.p-speciality-slider {
  overflow: hidden;
  position: relative;
  margin-top: 1.6rem;
}

/* ナビのスタイル（簡易） */

.p-speciality-slider__nav {
  display: flex;
  justify-content: space-between;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
}

.p-speciality-slider__prev,
.p-speciality-slider__next {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  height: 32px;
  pointer-events: auto;
  width: 32px;
}

.p-speciality-slider__prev::before,
.p-speciality-slider__next::before {
  border-right: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  content: "";
  display: block;
  height: 10px;
  margin: 0 auto;
  transform: rotate(225deg);
  width: 10px;
}

.p-speciality-slider__next::before {
  transform: rotate(45deg);
}

/* =========================
   Responsive
========================= */

/* ページ全体背景 */

.p-speciality {
  background-color: #f5f5f5; /* ページ全体の背景色 */
  color: #333333;
  font-size: 16px;
  line-height: 1.7;
}

/* Hero 背景（必要なら色分け） */

.p-speciality-hero {
  background-color: #ffffff; /* ヒーロー部分は白背景 */
  padding: 80px 20px 48px;
}

/* セクション毎の背景（交互色など） */

.p-speciality-section {
  background-color: #ffffff; /* 各セクションの背景色 */
  padding: 56px 20px;
}

.p-speciality-section:nth-child(even) {
  background-color: #f9f9f9; /* 偶数セクションは薄いグレー、交互で色分けする場合 */
}

/* カード */

.p-speciality-card {
  -webkit-text-decoration: none;
  background-color: #ffffff; /* カード背景色 */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p-speciality-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* サムネイル部分 */

.p-speciality-card__thumb {
  aspect-ratio: 4/3;
  background-color: #eaeaea; /* 画像読み込み前の背景の色 */
  overflow: hidden;
  width: 100%;
}

.p-speciality-card__thumb img {
  -o-object-fit: cover;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* カード本文 */

.p-speciality-card__body {
  background-color: #ffffff; /* カード本文部分の背景、必要であれば透明や別色に */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 16px 16px 18px;
  row-gap: 8px;
}

/* カテゴリナビ背景（もし背景をつけたいなら） */

.p-speciality-categoryNav {
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  border-top: 1px solid #eeeeee;
  padding: 24px 20px;
}


.future-message {
  padding: clamp(56px, 7vw, 96px) 20px;
  color: #2b2b2b;
  
}

.future-message__inner {
  max-width: 980px; /* 背景の余白感を優先 */
  margin: 0 auto;
  text-align: center;
}

.future-message__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.12em; /* 見本の少し広め */
  line-height: 1.9;
  font-size: clamp(20px, 2.2vw, 26px);
}

.future-message__title span {
  display: block;
}

.future-message__body {
  margin: clamp(26px, 3.2vw, 42px) auto 0;
  max-width: 760px; /* 本文の行長を見本に寄せる */
  font-size: clamp(12px, 1.25vw, 14px);
  letter-spacing: 0.11em;
  line-height: 2.25;
  font-weight: 400;
}

.future-message__body p {
  margin: 0;
}

/* 見本は段落ごとの空きが小さめ（ほぼ1行送り） */
.future-message__body p + p {
  margin-top: 0.35em;
}

/* 端末が小さい時の詰まりを防ぐ */
@media (max-width: 480px) {
  .future-message__body {
    letter-spacing: 0.08em;
    line-height: 2.1;
  }
  .future-message__title {
    letter-spacing: 0.1em;
  }
}