
/* ==========================================
   TBPOST WORLD
   RETRO LUXURY / EDITORIAL DESIGN
========================================== */

/* FONTS */

@font-face {
  font-family: "Lobster";
  src: url("./fonts/Lobster-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NewClearMincho";
  src: url("./fonts/NewClear-mincho.ttf") format("truetype");
  font-display: swap;
}

/* COLORS */

:root {
  --blue: #0644e8;
  --deep-blue: #092d9b;
  --red: #db3528;
  --ivory: #faf8ef;
  --white: #fff;
  --ink: #252b3c;
  --line: #d8d9d4;
}

/* ==========================================
   BASE
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lobster", "NewClearMincho", serif;
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* 印刷物のようなノイズ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(75, 48, 30, .16) .45px,
    transparent .7px
  );
  background-size: 5px 5px;
  opacity: .1;
}

/* 背景の巨大タイポグラフィ */

body::after {
  content: "WORLD";
  position: fixed;
  right: 2vw;
  bottom: -3vw;
  z-index: -1;
  font-family: "Lobster", cursive;
  font-size: 15vw;
  line-height: 1;
  color: rgba(6, 68, 232, .035);
  pointer-events: none;
}

::selection {
  background: var(--blue);
  color: white;
}

/* ==========================================
   MAIN VISUAL
========================================== */

.world-header {
  position: relative;
  width: 100%;
  padding: 80px 30px;
  display: flex;
  justify-content: center;
  background: var(--ivory);
  border-bottom: 1px solid var(--blue);
}

/* 小さなエディトリアルラベル */

.world-header::before {
  content: "TBPOST / THE WORLD";
  position: absolute;
  top: 25px;
  left: 3vw;
  font-family: "Lobster", cursive;
  font-size: 12px;
  color: var(--red);
}

.world-main-image {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;

  padding: 8px;
  background: white;
  border: 1px solid var(--blue);
  box-shadow: 14px 14px 0 var(--blue);
}

/* ==========================================
   SECTION LAYOUT
========================================== */

.world-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 140px 40px;
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.world-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

/* 左右交互 */

.world-section.reverse {
  flex-direction: row-reverse;
}

/* ==========================================
   IMAGES
========================================== */

.world-image {
  flex: 1;
  min-width: 0;
  max-width: 550px;
}

.world-image img {
  display: block;
  width: 100%;
  height: auto;

  padding: 10px;
  background: #fffdf8;
  border: 1px solid var(--blue);

  filter: saturate(.88) contrast(1.04);

  transition:
    transform .5s cubic-bezier(.16, 1, .3, 1),
    filter .4s,
    border-color .4s,
    box-shadow .4s;
}

.world-image img:hover {
  transform: translateY(-5px);
  filter: saturate(1.12) contrast(1.05);
  border-color: var(--red);
  box-shadow: 8px 8px 0 rgba(6, 68, 232, .16);
}

/* ==========================================
   TEXT
========================================== */

.world-text {
  flex: 1;
  min-width: 0;
  max-width: 500px;
  text-align: left;
}

/* セクション番号 */

.world-section:nth-child(1) .world-text::before {
  content: "Scene 01";
}

.world-section:nth-child(2) .world-text::before {
  content: "Scene 02";
}

.world-section:nth-child(3) .world-text::before {
  content: "Scene 03";
}

.world-text::before {
  display: block;
  margin-bottom: 15px;
  font-family: "Lobster", cursive;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--red);
}

/* 見出し */

.world-text h2 {
  font-family: "Lobster", "NewClearMincho", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--blue);
}

.world-text h2::after {
  content: "✳";
  display: block;
  width: auto;
  height: auto;
  margin-top: 18px;
  background: none;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1;
  color: var(--red);
}

/* 本文 */

.world-text p {
  margin-top: 25px;
  font-family: "Lobster", "NewClearMincho", serif;
  font-size: 1rem;
  line-height: 2.2;
  letter-spacing: .04em;
  color: var(--ink);
}

/* ==========================================
   HOME BUTTON
========================================== */

.home-btn-container {
  margin: 40px 0 140px;
  text-align: center;
}

.home-btn {
  display: inline-block;
  padding: 18px 60px;

  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);

  font-family: "Lobster", "NewClearMincho", serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-decoration: none;

  transition: background .3s, color .3s;
}

.home-btn:hover {
  background: var(--blue);
  color: white;
}

/* 矢印なし */

.home-btn::after {
  content: none;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  padding: 50px 20px;
  background: var(--blue);
  border-top: 4px double var(--ivory);
  color: white;

  font-family: "Lobster", "NewClearMincho", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {

  .world-header {
    padding: 70px 30px 80px;
  }

  .world-main-image {
    max-width: calc(100% - 14px);
    box-shadow: 10px 10px 0 var(--blue);
  }

  .world-content {
    padding: 90px 20px;
    gap: 100px;
  }

  .world-section,
  .world-section.reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }

  .world-image,
  .world-text {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .world-text h2 {
    font-size: 2rem;
  }

}

@media (max-width: 600px) {

  .world-header {
    padding: 65px 25px 70px;
  }

  .world-content {
    padding: 70px 20px;
    gap: 80px;
  }

  .world-text::before {
    font-size: 1.1rem;
  }

  .world-text h2 {
    font-size: 1.8rem;
  }

  .world-text p {
    font-size: .95rem;
  }

  .home-btn-container {
    margin: 30px 0 100px;
  }

  .home-btn {
    padding: 15px 50px;
  }

  .footer {
    padding: 40px 20px;
  }

}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }

}
