/* ============================================
   トップページ共通
   - デザイン基準：1440px幅 / コンテンツ幅1080px
============================================ */
body.home {
  background: #fff;
}

.top-page .l-inner {
  max-width: 1160px; /* 1080 + padding 40*2 */
}

/* セクション間の余白（デザイン基準 55px） */
.top-page_news,
.top-page_about,
.top-page_stores,
.top-page_recruit {
  padding-top: 55px;
}
@media screen and (max-width: 768px) {
  .top-page_news,
  .top-page_about,
  .top-page_stores,
  .top-page_recruit {
    padding-top: 40px;
  }
}

/* 黒の斜線パターン（ABOUT / RECRUIT 共通） */
.top-page_about__shape,
.top-page_recruit__body::before {
  background-color: #000;
  background-image: var(--stripe);
}

/* ============================================
   FV
============================================ */
/* 写真と同じ形（同じ角の切り方・角度）の黒の斜線シェイプを、左下へ少しずらして写真の後ろに敷く */
.top-page_fv-wrap {
  --fv-shift: 40px;
  --fv-left: 180px;
  position: relative;
  padding-bottom: var(--fv-shift);
  overflow-x: clip; /* SP で左へはみ出す分を切る（横スクロールを出さない） */
}
.top-page_fv-shape {
  position: absolute;
  z-index: 0;
  /* .top-page_fv と同じ箱（下の padding 分を除く）→ 左下へずらす */
  top: 0;
  bottom: var(--fv-shift);
  left: var(--fv-left);
  right: 0;
  translate: calc(var(--fv-shift) * -1) var(--fv-shift);
  background-color: #000;
  background-image: var(--stripe);
  /* 写真と同じ切り方。上辺だけ 32px 下げて、左にはみ出す帯がヘッダーのロゴに掛からないようにする（上辺は写真の下に隠れるので形は変わって見えない） */
  clip-path: polygon(0 32px, 100% 32px, 100% 100%, 30.7% 100%, 0 80.1%);
}
@media screen and (max-width: 768px) {
  .top-page_fv-wrap {
    --fv-shift: 20px;
    --fv-left: 0px;
  }
  .top-page_fv-shape {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 36% 100%, 0 90%);
  }
}

.top-page_fv {
  position: relative;
  z-index: 1;
  /* 左はロゴ（left 25px / 幅146px）のすぐ右まで寄せる。% だと広い画面ほど空くので px で固定 */
  margin-left: var(--fv-left);
  /* 画面の下端ぎりぎりまで（下に敷いたシェイプのずれ分だけ残す） */
  height: calc(100svh - var(--fv-shift));
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30.7% 100%, 0 80.1%);
}
@media screen and (max-width: 768px) {
  .top-page_fv {
    margin-left: 0;
    height: calc(100svh - var(--fv-shift) - 56px); /* 画面下に固定の追従ナビ（56px）があるので、その上で止める */
    min-height: 480px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 36% 100%, 0 90%);
  }
}

.top-page_fv__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.top-page_fv__image img,
.top-page_fv__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-page_fv__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6% 20px 0;
  text-align: center;
}

.top-page_fv__content {
  max-width: 900px;
  margin: 0 auto;
}

.top-page_fv__title {
  font-family: var(--ff-base);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  /* デザインの影＋写真の明るい部分でも読めるよう薄いぼかし影を重ねる */
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), 0 0 24px rgba(0, 0, 0, 0.45);
}
@media screen and (max-width: 1024px) {
  .top-page_fv__title {
    font-size: 42px;
  }
}
@media screen and (max-width: 768px) {
  .top-page_fv__title {
    font-size: 26px;
  }
}

/* 英語のメインキャッチ */
.top-page_fv__en {
  font-family: var(--ff-en);
  font-size: 96px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), 0 0 24px rgba(0, 0, 0, 0.45);
}
@media screen and (max-width: 1024px) {
  .top-page_fv__en {
    font-size: 72px;
  }
}
@media screen and (max-width: 768px) {
  .top-page_fv__en {
    font-size: 40px;
  }
}

/* 英語キャッチがあるときは、日本語は1行のサブキャッチにする */
.top-page_fv__title--sub {
  margin-top: 20px;
  font-size: 30px;
  letter-spacing: 0.08em;
}
.top-page_fv__title--sub br {
  display: none;
}
@media screen and (max-width: 1024px) {
  .top-page_fv__title--sub {
    font-size: 24px;
  }
}
@media screen and (max-width: 768px) {
  .top-page_fv__title--sub {
    margin-top: 14px;
    font-size: 18px;
  }
}

.top-page_fv__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  color: #fff;
  margin-top: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 768px) {
  .top-page_fv__text {
    font-size: 12px;
    margin-top: 16px;
    text-wrap: balance;
  }
  /* PC用の改行は外し、SPは全体で行を均す（最終行に「いきます。」だけ残らないように） */
  .top-page_fv__text br {
    display: none;
  }
}

/* ============================================
   お知らせ（INFORMATION）
============================================ */
.top-page_news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 55px;
  list-style: none;
  padding: 0;
}
@media screen and (max-width: 1024px) {
  .top-page_news__list {
    gap: 24px;
  }
}
@media screen and (max-width: 768px) {
  .top-page_news__list {
    margin-top: 32px;
  }
}
@media screen and (max-width: 640px) {
  .top-page_news__list {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.top-page_news__link {
  display: block;
  text-decoration: none;
}

.top-page_news__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.top-page_news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.top-page_news__link:hover .top-page_news__image img {
  transform: scale(1.05);
}

.top-page_news__date {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 91px;
  height: 40px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: var(--ff-en);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}
@media screen and (max-width: 768px) {
  .top-page_news__date {
    min-width: 72px;
    height: 32px;
    font-size: 14px;
  }
}

.top-page_news__title {
  display: block;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: #000;
  transition: opacity 0.3s;
}
.top-page_news__link:hover .top-page_news__title {
  opacity: 0.6;
}
@media screen and (max-width: 1024px) {
  .top-page_news__title {
    margin-top: 20px;
    font-size: 14px;
  }
}

/* ============================================
   13DINING とは（ABOUT US）
============================================ */
.top-page_about__body {
  position: relative;
  margin-top: 55px;
  padding: 79px 0 36px;
}

.top-page_about__shape {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -90px;
  right: -90px;
  z-index: 0;
  clip-path: polygon(0 0, 84.15% 0, 100% 27.2%, 100% 100%, 15.9% 100%, 0 72.7%);
}
@media screen and (max-width: 1250px) {
  .top-page_about__shape {
    left: -20px;
    right: -20px;
  }
}

.top-page_about__image {
  position: relative;
  z-index: 1;
  margin-left: 12.8%;
  aspect-ratio: 942.9 / 449;
  overflow: hidden;
}
.top-page_about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 店舗外観のスライド：重ねてフェードで切り替える（main.js が .is-active を移す） */
.top-page_about__image .top-page_about__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.top-page_about__image .top-page_about__slide.is-active {
  opacity: 1;
}

.top-page_about__text {
  position: relative;
  z-index: 1;
  width: 63.4%;
  margin-top: -69px;
  background: var(--c-gray);
  padding: 42px 33px 41px;
}
.top-page_about__text p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
}

.top-page_about__btn {
  position: absolute;
  right: 0;
  bottom: 82px;
  z-index: 1;
}

/* 写真の左下に重なる見出し（Figma: 544×86・40px）。本文ボックスとの間は 40px */
.top-page_about__catch {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: -195px 0 0 6px;
  padding: 11px 21px 12px 0;
  background: var(--c-gray);
  color: #fff;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.6;
}
.top-page_about__catch + .top-page_about__text--after-catch {
  margin-top: 40px;
}

@media screen and (max-width: 1024px) {
  .top-page_about__text p {
    font-size: 14px;
  }
  .top-page_about__catch {
    margin-top: -150px;
    font-size: 28px;
  }
  .top-page_about__catch + .top-page_about__text--after-catch {
    margin-top: 24px;
  }
  .top-page_about__btn {
    bottom: 60px;
    width: 300px;
  }
}
@media screen and (max-width: 768px) {
  .top-page_about__body {
    margin-top: 32px;
    padding: 24px 16px 32px;
  }
  .top-page_about__shape {
    clip-path: polygon(0 0, 82% 0, 100% 8%, 100% 100%, 18% 100%, 0 92%);
  }
  .top-page_about__image {
    margin-left: 0;
    aspect-ratio: 4 / 3;
  }
  .top-page_about__text {
    width: 100%;
    margin-top: 16px;
    padding: 24px 20px;
  }
  .top-page_about__catch {
    display: block;
    margin: -28px 0 0;
    padding: 8px 16px;
    font-size: 18px;
    word-break: auto-phrase;
  }
  .top-page_about__catch + .top-page_about__text--after-catch {
    margin-top: 0;
  }
  .top-page_about__text p {
    font-size: 13px;
  }
  .top-page_about__btn {
    position: relative;
    bottom: auto;
    display: flex;
    width: 100%;
    max-width: 360px;
    margin: 24px auto 0;
  }
}

/* ============================================
   採用情報（RECRUIT）
============================================ */
.top-page_recruit__body {
  position: relative;
  margin-top: -43px; /* シェブロンと重ねる */
}
.top-page_recruit__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(0 34.84%, 100% 0, 100% 100%, 0 100%);
}

.top-page .top-page_recruit__inner {
  position: relative;
  z-index: 1;
  height: 753px;
  /* 絶対配置の%基準をコンテンツ幅(1080)に合わせるため padding を外す */
  max-width: 1080px;
  padding-left: 0;
  padding-right: 0;
}
@media screen and (max-width: 1120px) {
  .top-page .top-page_recruit__inner {
    max-width: calc(100% - 40px);
  }
}

.top-page_recruit__photo {
  position: absolute;
  overflow: hidden;
  background: #ddd;
}
.top-page_recruit__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-page_recruit__photo--1 {
  left: -8.3%;
  top: 98px;
  width: 40.7%;
  aspect-ratio: 4 / 3;
}
.top-page_recruit__photo--2 {
  left: 6.6%;
  top: 347px;
  width: 41%;
  aspect-ratio: 443 / 330;
}
@media screen and (max-width: 1250px) {
  .top-page_recruit__photo--1 {
    left: 0;
  }
}

.top-page_recruit__box {
  position: absolute;
  left: 53.7%;
  top: 201px;
  width: 46.3%;
  min-height: 286px;
  background: var(--c-gray);
  padding: 51px 17px 40px 31px; /* Figma: 本文幅 452px（右の余白は 17px） */
}
.top-page_recruit__ttl {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 33px;
}
.top-page_recruit__txt {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: #fff;
}

.top-page_recruit__btn {
  position: absolute;
  right: 0;
  top: 532px;
}

@media screen and (max-width: 1024px) {
  .top-page_recruit__body {
    margin-top: 0;
  }
  .top-page_recruit__body::before {
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }
  .top-page .top-page_recruit__inner {
    height: auto;
    max-width: 100%;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
  }
  .top-page_recruit__photos {
    display: contents;
  }
  .top-page_recruit__photo {
    position: static;
    width: calc(50% - 8px);
  }
  .top-page_recruit__photo--1 {
    align-self: flex-start;
  }
  .top-page_recruit__photo--2 {
    align-self: flex-end;
    margin-top: -12%;
  }
  .top-page_recruit__box {
    position: static;
    width: 100%;
    min-height: 0;
    margin-top: 24px;
    padding: 32px 24px;
  }
  .top-page_recruit__ttl,
  .top-page_recruit__txt {
    font-size: 14px;
  }
  .top-page_recruit__btn {
    position: static;
    align-self: center;
    width: 100%;
    max-width: 360px;
    margin-top: 24px;
  }
}
@media screen and (max-width: 768px) {
  .top-page .top-page_recruit__inner {
    padding: 32px 20px 48px;
  }
  .top-page_recruit__ttl,
  .top-page_recruit__txt {
    font-size: 13px;
  }
  /* SP は文節の切れ目で折り返す（1文字だけ次行に落ちるのを防ぐ） */
  .top-page_recruit__txt {
    word-break: auto-phrase;
  }
}

/* FV スライドショー（ACF top_fv_slides が2枚以上のとき）：重ねた写真をフェードで切り替える（main.js） */
.top-page_fv__slides {
  position: absolute;
  inset: 0;
}
.top-page_fv__image .top-page_fv__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.top-page_fv__image .top-page_fv__slide.is-active {
  opacity: 1;
}
/* 明るい写真（白い店内など）でも白文字が読めるよう、スライドの上に薄く黒を敷く */
.top-page_fv__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
