/* ==========================================================================
   Studio Leonard v2 — Design tokens & base
   ========================================================================== */

:root {
  --color-text: #000000;
  --color-text-muted: #222222;
  --color-nav-inactive: #d1d7db;
  --color-nav-hover: #003300;
  --color-nav-hover-bg: #f4f5f6;
  --color-accent: #ff0000;
  --color-accent-strong: crimson;
  --color-border-nav: #bac3c9;
  --color-footer-bg: #333333;
  --color-footer-text: #fefdfd;
  --color-sp-menu-bg: #000000;
  --color-sp-menu-link: #6d6d6d;

  --font-base: "Helvetica", "Arial", "Verdana", "ヒラギノ角ゴ Pro W3", "ＭＳ ゴシック", "Osaka‐等幅", "Gafata", "Economica", sans-serif;
  --font-size-base: 11px;
  --font-size-nav: 12px;
  --font-size-heading-sm: 12px;
  --font-size-footer: 12px;
  --line-height-base: 1.5;
  --line-height-content: 1.7;

  --layout-max: 920px;
  --nav-width: 900px;
  --nav-item-width: 180px;
  --nav-item-height: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: #ffffff;
}

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

a {
  color: var(--color-text-muted);
}

a:hover {
  color: var(--color-text-muted);
  background: #ffffff;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h3 {
  margin: 0 0 5px;
  font-size: var(--font-size-heading-sm);
  font-weight: normal;
}

p {
  margin: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-wrapper {
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
}

.site-main {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 10px 50px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 7px;
}

.site-header__brand {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0 20px;
}

.site-header__logo {
    display: block;
    flex-shrink: 0;
}

.site-header__lang {
    position: absolute;
    right: 10px;      /* 電話番号と右端を合わせる */
    bottom: 20px;       /* 高さを電話番号に近づける */
}

.site-header__lang a {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  text-decoration: underline;
}

.site-header__subnav {
  text-align: center;
  margin-bottom: 0;
}

.site-header__subnav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 1.5em;
}

.site-header__subnav-list li {
  margin-bottom: 0;
}

.site-header__subnav-list a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-header__subnav-item--lorimer {
  width: 100px;
}

.site-header__subnav-item--ranch {
  width: 150px;
}

.site-header__subnav-list {
  display: flex;
  align-items: center;
}

.site-header__tel {
  margin-left: auto;
}


.site-header__subnav {
  max-width: var(--nav-width);
  margin: 0 auto;
}

.site-header__subnav-list {
  display: flex;
  align-items: center;
}

.site-header__tel {
  margin-left: auto;
}

.site-header__tel a {
  color: var(--color-accent);
  font-size: 14px;
  text-decoration: none;
}

/* ==========================================================================
   Main navigation
   ========================================================================== */

.main-nav {
  text-align: center;
  padding: 5px 0 0;
  font-size: var(--font-size-nav);
}

.main-nav__list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  width: var(--nav-width);
  max-width: 100%;
  margin: 0 auto;
}



.main-nav__list a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 0 8px;

  color: var(--color-text-muted);
  text-decoration: none;
  transition: none;
}

.main-nav__list a:hover,
.main-nav__list a:focus-visible{
    color: inherit;
    background: transparent;
}

.main-nav__item {
  width: var(--nav-item-width);
  height: var(--nav-item-height);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: -1px;
  padding: 0;
  overflow: hidden;

  border-top: 1px dotted var(--color-border-nav);
  border-bottom: 1px dotted var(--color-border-nav);
}


.main-nav__item--current span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-nav-inactive);
}

/* ==========================================================================
   Page content — price
   ========================================================================== */

.price-content {
  line-height: 1.8;
}

.price-content__lead {
  margin: 20px 0 0.5em;
  font-size: var(--font-size-base);
  font-weight: normal;
}

.price-content section {
  margin-bottom: 1.5em;
}

.price-content section p {
  margin-bottom: 0;
}

.price-content h3 {
  margin-top: 1.5em;
}

.price-section__title {
  font-size: var(--font-size-heading-sm);
  font-weight: bolder;
}

.price-content .text-accent {
  color: var(--color-accent-strong);
}

.price-content__figure {
  margin: 0;
}

.price-content__figure img {
  width: 100%;
}

.price-rules {
  margin: 0;
}

.price-rules p {
  margin-top: 16px;
  margin-bottom: 0;
}

.price-rules p:first-of-type {
margin-top: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: var(--font-size-footer);
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.site-footer p {
  margin: 0;
}

/* ==========================================================================
   Mobile fixed menu
   ========================================================================== */

.sp-fixed-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  opacity: 0.9;
}

.sp-fixed-menu__list {
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sp-fixed-menu__list li {
  flex: 1;
  margin: 0;
  padding: 0;
  background: var(--color-sp-menu-bg);
  border-right: 1px solid #000000;
}

.sp-fixed-menu__list li:last-child {
  border-right: none;
}

.sp-fixed-menu__list a {
  display: block;
  padding: 20px;
  color: var(--color-sp-menu-link);
  font-size: var(--font-size-nav);
  text-align: center;
  text-decoration: none;
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.totop-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: var(--font-size-nav);
  font-weight: bold;
  color: #333333;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #cccccc;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.totop-btn:hover {
  color: #ffffff;
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive — mobile (matches legacy max-device-width: 480px behavior)
   ========================================================================== */

@media (max-width: 768px) {
  .site-header__tel {
    display: none;
  }

  .site-header__subnav-list {
    justify-content: center;
  }

  .site-header__subnav-item--lorimer,
  .site-header__subnav-item--ranch {
    width: auto;
    padding: 0 0.5em;
  }

  .site-header__tel {
    margin-left: 0;
  }

  .main-nav__list {
    width: 100%;
  }

  .main-nav__item {
    width: 50%;
    height: auto;
    min-height: var(--nav-item-height);
  }

  .sp-fixed-menu {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }

  .totop-btn {
    bottom: 70px;
    right: 15px;
    width: 45px;
    height: 45px;
    line-height: 45px;
  }
}

@media (min-width: 769px) {
  .sp-fixed-menu {
    display: none !important;
  }
}

/* ==========================================================================
   Top page only
   ========================================================================== */

.site-main--top {
  max-width: none;
  padding: 0 0 50px;
}

.gtm-noscript {
  display: none;
  visibility: hidden;
}

.top-gallery {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 36px 0 80px;
  overflow: hidden;
  z-index: 3;
}

.top-gallery__track {
  position: absolute;
  top: 0;
  left: 0;
  height: 500px;
  will-change: transform;
}

.top-gallery__list {
  display: flex;
  align-items: flex-start;
  height: 500px;
}

.top-gallery__list li {
  flex: 0 0 auto;
  margin-right: 2px;
}

.top-gallery img {
  display: block;
  max-width: none;
  width: auto;
}

.top-gallery .img-h500 {
  height: 500px;
}

.top-gallery .img-h600 {
  height: 600px;
}

.top-gallery .img-h750 {
  height: 750px;
}

.top-news {
  width: 90%;
  max-width: var(--layout-max);
  margin: 0 auto;
  background: #ffffff;
}

.top-news__entry {
  margin: 0 auto 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #cccccc;
}

.top-news__entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.top-news__title {
  margin: 25px 30px 10px 0;
  color: var(--color-text);
  font-size: var(--font-size-heading-sm);
  font-weight: bolder;
}

.top-news__entry p {
  margin: 15px 30px 0 0;
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-content);
}

@media (max-width: 768px) {
  .top-gallery {
    margin-top: 36px;
  }

  .top-news {
    width: 100%;
    padding: 0 10px;
  }

  .top-news__title,
  .top-news__entry p {
    margin-right: 0;
  }
}

/* ==========================================================================
   Image page only
   ========================================================================== */

.site-main--image {
  padding-top: 92px;
}

.image-content {
  width: 902px;
  max-width: 100%;
  margin: 0 auto 50px;
}

.image-content__heading,
.image-section__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.image-content__figure {
  margin: 0 auto 30px;
  line-height: 2;
  font-size: 12px;
  text-align: center;
}

.image-content__figure img {
  display: block;
  margin: 0 auto;
}

.image-content__figure figcaption {
  display: block;
}

.image-content__movie {
  margin-bottom: 38px;
}

.yt {
  display: block;
  width: 896px;
  max-width: 100%;
  height: 504px;
  margin: 0 auto;
  border: 0;
}

.studio-nav {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background-color: #ffffff;
  text-align: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-btn {
  display: inline-block;
  padding: 10px 15px;
  color: #666666;
  font-size: 12px;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: color 0.3s ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  color: #000000;
  background: transparent;
  font-weight: bold;
}

@media (max-width: 768px) {
  .site-main--image {
    padding-top: 30px;
  }

  .image-content {
    width: 100%;
  }

  .yt {
    width: 100vw;
    height: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}
