@charset "UTF-8";

/* ====================
root
==================== */
:root {
  --color-main: #856c62;
  --color-bg: #d9d5cf;
  --color-text: #333;
  --font-serif: "Shippori Mincho B1", serif;
  --f-w-normal: 400;
  --f-ls: -0.02em;
  --f-s-h1: clamp(1.75rem, 1.179rem + 2.86vw, 2.25rem);
  --f-s-h2: clamp(1.5rem, 1.214rem + 1.43vw, 1.75rem);
  --f-s-h3: clamp(1.375rem, 1.232rem + 0.71vw, 1.5rem);
  --f-s-h4: clamp(1.25rem, 1.107rem + 0.71vw, 1.375rem);
  --f-s-h5: clamp(1.125rem, 0.982rem + 0.71vw, 1.25rem);
  --f-s-h6: clamp(1rem, 0.857rem + 0.71vw, 1.125rem);
  --f-s-p: clamp(0.875rem, 0.732rem + 0.71vw, 1rem);
  --f-s-small: clamp(0.75rem, 0.607rem + 0.71vw, 0.875rem);
  --f-lh-m: 2em;
  --f-lh-s: 1.5em;
  --g-5: 5px;
  --g-10: 10px;
  --g-20: clamp(0.938rem, 0.58rem + 1.79vw, 1.25rem);
  --g-30: clamp(1.25rem, 0.536rem + 3.57vw, 1.875rem);
  --g-40: clamp(1.875rem, 1.161rem + 3.57vw, 2.5rem);
  --g-60: clamp(2.5rem, 1.071rem + 7.14vw, 3.75rem);
  --g-75: clamp(4.688rem, 1.875rem + 12.5vw, 5.625rem);
}

/* ====================
base
==================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #5a514d;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: var(--f-s-p);
  font-weight: var(--f-w-normal);
  letter-spacing: var(--f-ls);
  line-height: var(--f-lh-m);
  margin: 0;
}

body.is-nav-open {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
figure,
ul,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--f-w-normal);
  letter-spacing: 0;
  line-height: var(--f-lh-s);
}

h1 {
  font-size: var(--f-s-h1);
}

h2 {
  font-size: var(--f-s-h2);
}

h3 {
  font-size: var(--f-s-h3);
}

h4 {
  font-size: var(--f-s-h4);
}

h5 {
  font-size: var(--f-s-h5);
}

h6 {
  font-size: var(--f-s-h6);
}

ul {
  padding: 0;
}

/* ====================
layout
==================== */
.site-shell {
  background: #fff url("../images/back_repeat.jpg") repeat-y top center / 100% auto;
  margin: 0 auto;
  overflow: hidden;
  width: min(100%, 480px);
}

body::before, body::after  {
    position: fixed;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100svh;
    width: max(0px, calc(50% - 240px));
    top: 0;
    opacity: 0.2;
}
body::before {
  background-image: url(../images/img_back_left_01.jpg);
  left: 0;
}
body::after {
  background-image: url(../images/img_back_right_01.jpg);
  right: 0;
}

.c-section {
  padding: var(--g-60) var(--g-40);
}

/* ====================
common parts
==================== */
.c-section-title {
  color: var(--color-main);
  font-size: var(--f-s-h3);
  margin-bottom: var(--g-20);
}

.c-section-title--marker {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  font-size: var(--f-s-h2);
  gap: var(--g-5);
}

.c-section-title--marker span {
  background: var(--color-main);
  color: #fff;
  display: inline-block;
  padding: 0 var(--g-10);
}

.history__chapter {
  border-bottom: 1px solid var(--color-main);
  color: var(--color-main);
  display: block;
  font-size: var(--f-s-small);
  letter-spacing: var(--f-ls);
  line-height: var(--f-lh-s);
  margin-bottom: var(--g-20);
  margin-left: calc(var(--g-40) * -1);
  padding-bottom: var(--g-5);
  text-align: right;
  width: calc(100% + var(--g-40));
}

/* ====================
main visual
==================== */
.hero {
  align-items: center;
  background: url("../images/mainvisual.jpg") no-repeat center / cover;
  display: flex;
  height: 100svh;
  justify-content: center;
  min-height: 600px;
  position: relative;
}

.hero__logo {
  padding-bottom: calc(var(--g-60) + var(--g-30));
  width: min(250px, 70vw);
}

.hero__vertical {
  color: #fff;
  font-size: var(--f-s-h6);
  left: 26px;
  letter-spacing: var(--f-ls);
  line-height: var(--f-lh-s);
  position: absolute;
  top: 36px;
  writing-mode: vertical-rl;
}

.hero__menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--g-5);
  height: 56px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: max(0px, calc((100vw - 480px) / 2));
  transition: background 0.3s ease;
  width: 56px;
  z-index: 31;
}

.is-scrolled .hero__menu-button,
.is-nav-open .hero__menu-button {
  background: var(--color-main);
}

.hero__menu-button span {
  background: #fff;
  display: block;
  height: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 22px;
}

.is-nav-open .hero__menu-button span:nth-child(1) {
  transform: translateY(6px) rotate(35deg);
}

.is-nav-open .hero__menu-button span:nth-child(2) {
  opacity: 0;
}

.is-nav-open .hero__menu-button span:nth-child(3) {
  transform: translateY(-6px) rotate(-35deg);
}

.c-global-nav {
  align-items: center;
  background: var(--color-main);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--g-60);
  height: 100svh;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease;
  width: 100vw;
  z-index: 30;
}

.c-global-nav::before {
  background: url("../images/footer.jpg") no-repeat center / cover;
  content: "";
  inset: 0;
  opacity: 0.1;
  position: absolute;
}

.is-nav-open .c-global-nav {
  opacity: 1;
  pointer-events: auto;
}

.c-global-nav__logo {
  position: relative;
  width: min(180px, 60vw);
  z-index: 1;
}

.c-global-nav ul {
  display: grid;
  gap: var(--g-20);
  list-style: none;
  position: relative;
  text-align: center;
  z-index: 1;
}

.c-global-nav a {
  display: block;
  font-size: var(--f-s-h4);
  line-height: var(--f-lh-s);
}

/* ====================
intro
==================== */
.intro {
  padding-left: 0;
  padding-right: 0;
}

.intro__slider {
  margin-bottom: var(--g-75);
  width: 100%;
}

.intro__slider .swiper-wrapper {
  transition-timing-function: linear;
}

.intro__slider .swiper-slide {
  width: 165px;
}

.intro__slider img {
  aspect-ratio: 9 / 10;
  border-radius: 5px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.intro__text {
  display: flex;
  justify-content: center;
}

.intro__text p {
  font-size: var(--f-s-h5);
  line-height: var(--f-lh-m);
  writing-mode: vertical-rl;
}

.intro .intro__gradation {
  margin-top: calc(var(--g-60) * -3);
}

/* ====================
history
==================== */
.history {
  padding-bottom: var(--g-30);
  position: relative;
}

.intro__gradation img {
  width: 100%;
}

.history__title {
  font-size: var(--f-s-h1);
  margin: 0 var(--g-40);
  padding-top: 0;
}

.history__block {
  padding-top: var(--g-20);
  position: relative;
}

/* .history__block + .history__block {
  padding-top: var(--g-30);
} */

.history__block hr {
    margin: var(--g-30) 0;
}

.history__main {
  margin-bottom: var(--g-40);
}

.history__block p:not(:last-child) {
  margin-bottom: var(--g-30);
}

.history__note {
  margin-top: var(--g-20);
}

.history img,
.history__photo-pair img,
.parking img,
.trailhead img {
  border-radius: 5px;
}

.history__photo-pair {
  display: grid;
  gap: var(--g-20);
  grid-template-columns: 1fr 1fr;
  margin-top: var(--g-30);
}

.route {
  color: #fff;
  overflow: hidden;
  padding: var(--g-75) var(--g-10) var(--g-30);
  position: relative;
}

.route__background {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.route__intro,
.route__cards {
  position: relative;
  z-index: 1;
}

.route__intro {
  margin-bottom: var(--g-40);
  padding: 0 var(--g-40);
}

.route__intro h2 {
  font-size: var(--f-s-h1);
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.route__intro p {
  margin-top: var(--g-20);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.route__cards {
  display: grid;
  gap: var(--g-30);
}

.route__card {
  background-position: center;
  background-size: cover;
  color: var(--color-text);
  padding: var(--g-60) var(--g-30) var(--g-40);
  border-radius: 15px;
  corner-shape: superellipse(-1);
}

.route__card--cave {
  background-image: url("../images/root_1_back.jpg");
}

.route__card--wall {
  background-image: url("../images/root_2_back.jpg");
}

.route__card-head {
  margin-bottom: var(--g-20);
  text-align: center;
}

.route__card-head h3 {
  font-size: var(--f-s-h2);
  padding-bottom: var(--g-10);
  position: relative;
  text-align: center;
}

.route__card-head h3::after {
  background: var(--color-text);
  bottom: 0;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 25%;
}

.route__card-head p {
  font-size: var(--f-s-p);
  line-height: var(--f-lh-s);
  margin: var(--g-10) 0 var(--g-20);
}

.route__card-map {
  margin-bottom: var(--g-20);
}

.route__card-map img {
  border-radius: 5px;
}

.route__card-points {
  display: grid;
  gap: var(--g-10);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--g-20);
}

.route__point h4 {
  background: #0075bd;
  border-radius: 5px 5px 0 0;
  color: #fff;
  font-size: var(--f-s-small);
  text-align: center;
}

.route__card--wall .route__point h4 {
  background: #d94b17;
}

.route__point-image {
  background: #8f8f8f;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
}

.route__point-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.route__card ul,
.notes__list {
  list-style: none;
}

.route__card li,
.notes__list li {
  padding-left: var(--g-20);
  position: relative;
}

.route__card li::before,
.notes__list li::before {
  background-color: var(--color-main);
  border-radius: 50%;
  content: "";
  display: block;
  height: 0.4em;
  left: 0;
  position: absolute;
  top: 0.45lh;
  width: 0.4em;
}

/* ====================
scenery
==================== */
.scenery {
    padding: var(--g-40) 0;
    background-color: #fff;
    width: calc(100% - var(--g-30));
    margin: 0 auto;
    border: 2px solid var(--color-main);
    border-radius: 15px;
    corner-shape: superellipse(-1);
}
.scenery__grid--1, .scenery__grid--2 {
  position: relative;
}

.scenery__grid--1 {
  height: min(545px, 114vw);
}

.scenery__grid--2 {
  height: min(335px, 70vw);
}

.scenery__grid--1 > div, .scenery__grid--2 > div {
  border-radius: 5px;
  overflow: hidden;
  position: absolute;
}

.scenery__grid--1 img, .scenery__grid--2 img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.scenery__image--01 {
  aspect-ratio: 3 / 2;
  right: 8%;
  top: 0;
  width: 68.5%;
}

.scenery__image--02 {
  aspect-ratio: 3 / 2;
  border-radius: 0 5px 5px 0 !important;
  left: 0;
  top: 44%;
  width: 52.5%;
}

.scenery__image--03 {
  aspect-ratio: 3 / 2;
  left: 8%;
  bottom: 0;
  width: 38%;
}

.scenery__title {
  align-items: center;
  bottom: 0;
  display: flex;
  height: min(200px, 68vw);
  justify-content: center;
  right: 0;
  width: 49.5%;
}

.scenery__title-text {
  writing-mode: vertical-rl;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.05em;
  line-height: 1.8em;
}

.scenery__image--04 {
  aspect-ratio: 4 / 5;
  right: 8%;
  top: 0;
  width: 47%;
}

.scenery__image--05 {
  aspect-ratio: 3 / 2;
  border-radius: 0 5px 5px 0 !important;
  left: 0;
  top: 12.5%;
  width: 37%;
}

.scenery__image--06 {
  aspect-ratio: 2 / 3;
  left: 12.5%;
  bottom: 0;
  width: 22%;
}

.scenery p {
  padding: var(--g-40);
}

/* ====================
notes
==================== */
.notes {
  padding-top: var(--g-40);
}

.notes .c-section-title {
  border-bottom: 1px solid var(--color-main);
  font-size: var(--f-s-h4);
  padding-bottom: var(--g-10);
  text-align: center;
}

.notes__list {
  display: grid;
  gap: var(--g-5);
}

/* ====================
plain information sections
==================== */
:is(.spots, .access, .parking, .trailhead) {
  padding: var(--g-60) var(--g-60);
}

:is(.spots, .access, .parking, .trailhead) .c-section-title {
  margin-left: calc(var(--g-20) * -1);
  margin-right: calc(var(--g-20) * -1);
}

.spots__links {
  display: grid;
  gap: var(--g-10);
  list-style: none;
}

.c-section--plain {
  background: #ffffffaa;
}

.c-section--plain:not(:last-of-type) {
  padding-bottom: 0;
}

.c-section--plain .c-section-title {
  border-bottom: 1px solid var(--color-main);
  padding-bottom: var(--g-10);
}

/* ====================
spots
==================== */
.spots__link {
  align-items: center;
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  font-weight: var(--f-w-normal);
  isolation: isolate;
  justify-content: center;
  line-height: var(--f-lh-s);
  min-height: 58px;
  overflow: hidden;
  padding: var(--g-30) var(--g-40) var(--g-30) var(--g-20);
  position: relative;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.spots__link--hotel {
  background-image: url("../images/spot_btn_royal-tainai_01.jpg");
}
.spots__link--michinoeki {
  background-image: url("../images/spot_btn_michinoeki-tainai_01.jpg");
}
.spots__link--tarugahashi {
  background-image: url("../images/spot_btn_tarugashiyuen_01.jpg");
}

.spots__link::before {
  background: #6d5b54de;
  content: "";
  inset: 0;
  position: absolute;
  transition: background 0.3s ease;
  z-index: 0;
}

.spots__link:hover::before {
  background: rgba(0, 0, 0, 0.38);
}

.spots__link span {
  font-size: var(--f-s-h6);
  line-height: var(--f-lh-s);
  position: relative;
  z-index: 1;
}

.spots__link::after {
  -webkit-mask: url("../images/icon_arrow_right.svg") no-repeat center / contain;
  background: currentColor;
  content: "";
  height: 0.8em;
  mask: url("../images/icon_arrow_right.svg") no-repeat center / contain;
  position: absolute;
  right: var(--g-20);
  width: 0.8em;
  z-index: 1;
}

/* ====================
access
==================== */
.access address {
  font-style: normal;
  margin-top: var(--g-20);
}

.access__button {
  margin-top: var(--g-20);
  text-align: center;
}

.c-button {
  align-items: center;
  border-radius: 0;
  display: inline-flex;
  justify-content: center;
  line-height: var(--f-lh-s);
  min-width: 200px;
  padding: var(--g-10) var(--g-40) var(--g-10) var(--g-20);
  position: relative;
  transition: background 0.3s ease;
}

.c-button--main {
  background: var(--color-main);
  color: #fff;
}

.c-button--white {
  background: #fff;
  color: var(--color-main);
}

.c-button::after {
  -webkit-mask: url("../images/icon_arrow_right.svg") no-repeat center / contain;
  background: currentColor;
  content: "";
  height: 0.8em;
  mask: url("../images/icon_arrow_right.svg") no-repeat center / contain;
  position: absolute;
  right: var(--g-20);
  width: 0.8em;
}

.c-button--main:is(:hover, :active, :focus) {
  background: rgba(87, 71, 56, 0.82);
}

.c-button--white:is(:hover, :active, :focus) {
  background: rgba(255, 255, 255, 0.82);
}

.footer__button .c-button {
  margin-top: var(--g-20);
}

/* ====================
parking / trailhead
==================== */
.parking img,
.trailhead img {
  margin-bottom: var(--g-20);
}

/* .parking .c-section-title,
.trailhead .c-section-title {
  background: var(--color-bg);
  border-bottom: 0;
  font-size: var(--f-s-h4);
  padding: var(--g-5) var(--g-10);
} */

/* ====================
footer
==================== */
.footer {
  background: #fff;
}

.footer__photo img {
  max-width: none;
  width: 100%;
}

.footer__body {
  background: var(--color-main);
  color: #fff;
  padding: var(--g-75) var(--g-40) var(--g-60);
}

.footer__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.footer__site-name {
  font-size: var(--f-s-h2);
  line-height: var(--f-lh-s);
  margin-bottom: var(--g-20);
}

.footer__label {
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: var(--f-s-h6);
  margin-bottom: var(--g-10);
  padding: 0 var(--g-30);
}

.footer__tel {
  font-size: var(--f-s-h3);
  line-height: var(--f-lh-s);
  text-decoration: none;
}

.footer__copyright {
  font-size: var(--f-s-small);
  line-height: var(--f-lh-s);
  margin-top: var(--g-40);
  opacity: 0.8;
}
