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

/* Variables */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Yu Gothic", Meiryo, sans-serif;
  --font-heading: "Livvic", sans-serif;
  --color-bg: rgb(14, 13, 13);
  --color-text: #ffffff;
  --color-link: #1db7ff;
}

/* Base */
body {
  font-family: sans-serif;
  font-weight: 600;
  background-color: var(--color-bg);
  padding-left: 400px;
    padding-right: 400px;
}


p {
  color: var(--color-text);
  padding-top: 50px;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
}

a:visited {
  color: var(--color-link);
}

a:hover {
  text-decoration: underline;
}

.about-link,
.home-link {
  position: fixed;
  top: 20px;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 100;
color: white;
}
.about-link:visited,
.home-link:visited {
  color: white;
}

.about-link {
  left: 40px;
}

.home-link {
  right: 40px;
}

/* Headings */
h1 {
  position: relative;
  font-size: 62px;
  color: white;
  padding-bottom: 10px;
  padding-top: 40px;
}

h1::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.856);
}

h2 {
  border-bottom: 1px solid black;
  width: fit-content;
  padding: 10px 0;
  margin-top: 50px;
}

h3 {
  font-size: 32px;
  border: 1px solid black;
  width: fit-content;
  padding: 5px;
  margin-top: 100px;
}

/* Lists */
li {
  border: 1px solid black;
  width: fit-content;
  padding: 3px;
  margin: 5px;
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 160px;
}

.hero img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 78px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: none;
  padding: 0;
  margin: 0;
  width: auto;
    white-space: nowrap;
  width: max-content;
}

.hero h1::after {
  content: none;
}

/* Gallery */
.gallary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 27px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallary figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.gallary figure.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallary figure a {
  display: block;
  height: 100%;
}

.gallary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.1s ease;
}

.gallary img:hover {
  filter: brightness(0.9);
}

.gallary figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: rgb(250, 250, 250);
  text-align: left;
  font-weight: 500;
  pointer-events: none;
}

.gallary figure.featured figcaption {
  font-size: 27px;
  padding: 60px 20px 18px;
}

/* Data table */
.data-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  color: white;
  margin-left: 0px;
  margin-top: 50px;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  border: 1px solid white;
  padding: 6px 10px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
}

.data-table img {
  width: 60px;
  aspect-ratio: 16 / 9;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  width: 100px; /* ICON列 */
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  width: 160px; /* NAME列 */
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  width: 100px; /* DIFFICULTY列 */
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
  width: 70px; /* SPOTS列 */
}

/* Video */
video {
  padding-left: 0px;
  padding-top: 50px;
  max-width: 100%;
  height: auto;
}

/* Mobile utility */
.mobile-break {
  display: none;
}

/* Responsive (max-width: 600px) */
@media (max-width: 600px) {
  .mobile-break {
    display: inline;
  }

  body {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h1::after {
    left: 0;
    right: 0;
  }

  .hero {
    height: 500px;
    margin-bottom: 0px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

  .hero h1 {
    font-size: 52px;
    white-space: nowrap;
    text-align: center;
  }

  .hero img {
    max-width: 222%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }

  .about-link,
  .home-link {
    font-size: 24px;
    font-weight: 600;
  }

  .about-link,
.home-link {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

  .about-link {
    left: 20px;
  }

  .home-link {
    right: 20px;
  }

  .gallary {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 20px;
  }

  .gallary figure.featured figcaption {
    font-size: 24px;
    padding: 40px 14px 12px;
  }

  h1,
  h2,
  p,
  ul,
  video,
  .gallary,
  .data-table {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .data-table th:nth-child(1),
  .data-table td:nth-child(1) {
    width: 90px; /* ICON列 */
  }

  .data-table th:nth-child(2),
  .data-table td:nth-child(2) {
    width: 120px; /* NAME列 */
  }

  .data-table th:nth-child(3),
  .data-table td:nth-child(3) {
    width: 100px; /* DIFFICULTY列 */
  }

  .data-table th:nth-child(4),
  .data-table td:nth-child(4) {
    width: 60px; /* SPOTS列 */
  }


}