:root {
  --bg-white: #ffffff;
  --accent-red: #ff0000;
  --wire-gray: #b2b2b2;
  --slider-green: #00ff21;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 先方のcss解除 */
#wrapper {
  overflow: visible;
}

* {
  box-sizing: border-box;
}
.active-tailor {
  margin: 0;
  padding: 0;
  background-color: var(--bg-white);
  color: #333333;
  font-family: "Noto Serif JP", serif;
  background-color: #F0EBE5;
  /* overflow-x: hidden; */
  /* padding-top: 116px;  */
  /* ヘッダーの高さ分、全体を下げる */
}

/* --- ヘッダー基本設定 --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: #000;
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo {
  width: 158px;
}
.header-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: #fff;
  text-decoration: none;
}

.header-logo img {
  background-color: inherit;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.insta-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

.insta-link:hover {
  opacity: 0.7;
}

.active-tailor .insta-link svg {
  width: 20px;
  height: 20px;
}

/* スマホヘッダー対応 */
@media (max-width: 750px) {
  .header-logo {
  width: 190px;
}

  .main-header {
    height: 60px;
  }
  /* body {
    padding-top: 60px;
  } */
  .header-inner {
    padding: 0 20px;
  }
  .header-logo a {
    font-size: 1.2rem;
  }
}

/* --- オープニング演出 --- */
.opening-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.fv-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.fv-img-wrapper img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.fv-img-wrapper .is-sp {
  display: none;
}
@media (max-width: 750px) {
  .fv-img-wrapper .is-sp {
    display: block;
  }
  .fv-img-wrapper .is-pc {
    display: none;
  }
}

/* 文字のフワッとする演出 */
.fv-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -40%);
  z-index: 999;
  text-align: center;
  color: #fff;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1.5s ease;
}
.active-tailor .fv-text img {
  width: 660px;
  width: 34.3%;
  margin: 0 auto;
  background-color: inherit;
}
@media (max-width: 750px) {
  .fv-text {
    top: 50.5%;
  }
  .active-tailor .fv-text img {
    width: 94%;
  }
}

/* JSでクラスがついた時の状態 */
.fv-text.js-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.fv-text h1 {
  font-size: 4rem;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
/* スマホ時の文字サイズ調整 */
@media (max-width: 750px) {
  .fv-text h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.5em;
  }
}

.fv-text p {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

/* --- 共通フェード設定 --- */
.reveal {
  opacity: 0;
  filter: blur(12px);
  transition:
    opacity 1.2s var(--ease-expo),
    transform 1.2s var(--ease-expo),
    filter 1.2s var(--ease-expo);
  will-change: opacity, transform;
}

.reveal.fade-up {
  transform: translateY(60px);
}
.reveal.fade-down {
  transform: translateY(-60px);
}
.reveal.fade-left {
  transform: translateX(60px);
}
.reveal.fade-right {
  transform: translateX(-60px);
}

.reveal.js-visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

/* 親要素の設定（オーバーレイ基準） */
.reveal {
  position: relative;
  overflow: hidden;
}

.main-header img {
  width: 100%;
  height: auto;
  display: block;
}

.active-tailor img {
    width: 100%;
  height: auto;
  display: block;
}

/* --- リンクボタン設定 --- */
.link-wrapper {
  width: 100%;
  max-width: 1500px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 40px;
  padding: 10px 12px;
  border: 1px solid #333;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
}

.hover-link {
  position: relative;
  text-decoration: none;
  color: #333;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.3s;
}

.hover-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: #333;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.hover-link:hover::after {
  width: 100%;
}

@media (max-width: 750px) {
  .link-wrapper {
    width: calc(100% - 30px);
    gap: 0px 25px;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
  }
  .hover-link {
    font-size: 14px;
  }
}

/* ==========================================
            PC版レイアウト
       ========================================== */
@media (min-width: 751px) {
  .sp-only {
    display: none !important;
  }
  .container-pc {
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
  }
  .container-pc-mt {
    margin-top: 60px;
  }

  /* テキストエリア */
  .text-p1 {
    margin: 0 auto;
  }
  .text-p1 h3 {
    text-align: center;
    font-size: 30px;
    color: #333333;
    font-family: "Noto Serif JP", serif;
    font-weight: 500;
    margin: 0;
  }

  .text-p2 {
    margin: 0 auto;
    margin-top: 37px;
  }
  .text-p2 p {
    margin: 0;
    text-align: center;
    letter-spacing: -0.26px;
    font-size: 17px;
    line-height: 2;
  }

  .text-p3 {
    margin: 0 auto;
    margin-top: 60px;
    max-width: 1500px;
  }
  .text-p3 p {
    margin: 0;
    text-align: left;
    letter-spacing: -0.26px;
    font-size: 15px;
    line-height: 2;
  }

  /* リンクのマージン */
  .link-wrapper-p1,
  .link-wrapper-p2,
  .link-wrapper-p3,
  .link-wrapper-p4 {
    margin-top: 60px;
  }

  /* グリッドレイアウト */
  .grid-15 {
    display: grid;
    grid-template-columns: repeat(1500, 1fr);
    gap: 0px;
    align-items: end;
    max-width: 1500px;
    margin: 0 auto;
  }

  .grid-15-p1 {
    margin-top: 100px;
  }
  .grid-15-p2 {
    margin-top: 60px;
  }
  .grid-15-p3 {
    margin-top: 224px;
  }
  .grid-15-p4 {
    margin-top: 224px;
  }
  .grid-15-p5 {
    margin-top: 224px;
  }

  /* グリッド内アイテム配置 */
  .p1-1 {
    grid-column: 1 / 677;
    aspect-ratio: 676/937;
    max-width: 676px;
    grid-row: 1 / 2;
  }
  .p1-2 {
    grid-column: 824 / 1230;
    aspect-ratio: 406/440;
    max-width: 406px;
    grid-row: 1 / 2;
    align-self: start;
  }
  .p1-3 {
    grid-column: 1093 / 1500;
    aspect-ratio: 406/438;
    max-width: 406px;
    align-self: end;
    grid-row: 1 / 2;
  }

  .p2-1 {
    grid-column: 271 / 677;
    aspect-ratio: 406/438;
    max-width: 406px;
  }
  .p2-2 {
    grid-column: 824 / 1470;
    align-self: start;
  }
  .p2-2 p {
    margin: 0;
    text-align: left;
    letter-spacing: -0.26px;
    font-size: 17px;
    line-height: 2;
  }

  .p3-1 {
    grid-column: 270 / 676;
    grid-row: 1;
    aspect-ratio: 406/438;
    max-width: 406px;
    align-self: start;
  }
  .p3-2 {
    grid-column: 1 / 676;
    grid-row: 2;
    align-self: start;
    margin-top: 20px;
  } /* 微調整:マージン追加 */
  .p3-2 p {
    margin: 0;
    text-align: left;
    letter-spacing: -0.26px;
    font-size: 17px;
    line-height: 2;
  }
  .p3-3 {
    grid-column: 824 / 1500;
    grid-row: 1 / 3;
    aspect-ratio: 676/937;
    max-width: 676px;
    align-self: start;
    justify-self: end;
  }

  .p4-1 {
    grid-column: 1 / 677;
    grid-row: 1 / 3;
    aspect-ratio: 676/937;
    max-width: 676px;
    align-self: start;
    justify-self: start;
  }
  .p4-2 {
    grid-column: 824 / 1230;
    grid-row: 1;
    aspect-ratio: 406/438;
    max-width: 406px;
    align-self: start;
  }
  .p4-3 {
    grid-column: 824 / 1470;
    grid-row: 2;
    align-self: start;
  }
  .p4-3 p {
    margin: 0;
    text-align: left;
    letter-spacing: -0.26px;
    font-size: 17px;
    line-height: 2;
  }

  .p5-1 {
    grid-column: 270 / 676;
    grid-row: 1;
    aspect-ratio: 406/438;
    max-width: 406px;
    align-self: start;
  }
  .p5-2 {
    grid-column: 1 / 676;
    grid-row: 2;
    align-self: start;
  }
  .p5-2 p {
    margin: 0;
    text-align: left;
    letter-spacing: -0.26px;
    font-size: 17px;
    line-height: 2;
  }
  .p5-3 {
    grid-column: 824 / 1500;
    grid-row: 1 / 3;
    aspect-ratio: 676/937;
    max-width: 676px;
    align-self: start;
    justify-self: end;
  }
}

/* ==========================================
            スマホ版レイアウト
       ========================================== */
@media (max-width: 750px) {
  .pc-only {
    display: none !important;
  }
  .container-sp {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }
  .container-sp-mt {
    margin-top: 30px;
  }

  .s-full {
    width: 100%;
  }
  .s-center {
    margin: 0 auto;
  }
  .s-right {
    margin-left: auto;
    margin-right: 0;
  }
  .s-left {
    margin-left: 0;
    margin-right: auto;
  }
  .s-flex {
    display: flex;
    justify-content: space-between;
  }

  /* テキスト共通 */
  .text-sp1,
  .text-sp2,
  .text-sp3,
  .text-sp4,
  .text-sp5,
  .text-sp6,
  .text-sp7 {
    margin: 0 auto;
    width: calc(100% - 30px);
  }

  .text-sp1 h3 {
    text-align: center;
    font-size: 24px;
    color: #333;
    font-family: "Noto Serif JP", serif;
    font-weight: 500;
    margin: 0;
  }
  .text-sp2 {
    margin-top: 20px;
  }
  .text-sp2 p {
    margin: 0;
    text-align: center;
    letter-spacing: -0.26px;
    font-size: 15px;
    line-height: 2;
  }

  .text-sp3,
  .text-sp4,
  .text-sp5,
  .text-sp6 {
    margin-top: 20px;
  }
  .text-sp3 p,
  .text-sp4 p,
  .text-sp5 p,
  .text-sp6 p {
    margin: 0;
    text-align: left;
    letter-spacing: -0.26px;
    font-size: 14px;
    line-height: 1.8;
  }

  .text-sp7 {
    margin-top: 42px;
  }
  .text-sp7 p {
    margin: 0;
    text-align: left;
    letter-spacing: -0.26px;
    font-size: 10px;
    line-height: 1.8;
  }

  /* リンクマージン */
  .link-wrapper-sp1,
  .link-wrapper-sp2,
  .link-wrapper-sp3 {
    margin-top: 20px;
  }

  /* 画像レイアウト */
  .sp-01,
  .sp-05,
  .sp-07,
  .sp-09 {
    aspect-ratio: 345/478;
    width: 92%;
    margin-top: 80px;
  }
  .sp-02,
  .sp-06,
  .sp-08,
  .sp-10 {
    aspect-ratio: 207/225;
    width: 55%;
    margin-top: 20px;
  }
  .sp-02,
  .sp-08 {
    margin-left: 15px;
  }
  .sp-06,
  .sp-10 {
    margin-right: 15px;
  }

  .sp-03 {
    aspect-ratio: 162/176;
    width: 43%;
    margin-top: 20px;
    margin-left: 15px;
  }
  .sp-04 {
    aspect-ratio: 162/176;
    width: 43%;
    margin-top: 20px;
    margin-right: 15px;
  }
}
