/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background-color: #ffffff; }
body {
  font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #000;
  overflow-x: hidden;
}
body.has-wrapper {
  height: 100dvh;
  overflow: hidden;
}
#page-wrapper {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background-color: #eae9e4;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --orange: #ef6b11;
  --orange-light: #eaaf6a;
  --bg: #eae9e4;
  --white: #fff;
}

/* ===== HEADER ===== */
/* モバイル専用ロゴ（z-index独立） */
.mobile-logo { display: none; }

.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--white);
  height: calc(70px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  transition: height .4s ease;
}
.header.is-scrolled {
  height: 50px;
}
.header.is-scrolled .header__logo {
  padding: 5px 30px;
  margin-top: 0;
}
.header.is-scrolled .header__logo-img {
  width: 110px;
}

/* header内の子要素 z-index */
.header__logo,
.header__nav,
.header__contact-btn,
.header__hamburger {
  position: relative;
  z-index: 1;
}

.header__logo {
  display: flex;
  align-items: center;
  padding: 20px 30px 20px 20px;
  flex-shrink: 0;
  transition: padding .4s ease;
  margin-top: 30px;
}
.header__logo a { display: block; }
.header__logo-img { width: 192px; height: auto; transition: width .4s ease; }

.header__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 37px;
  padding: 0 45px 0 0;
}

.header__nav-list > li { position: relative; }
.header__nav-list > li > a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}
.header__nav-list > li > a:hover { color: var(--orange); }

.arrow-down {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #999;
  border-top: 2.5px solid #999;
  transform: rotate(135deg);
  vertical-align: middle;
  margin-top: -4px;
}

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  min-width: 160px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 200;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  transition: background .2s, color .2s;
}
.dropdown li a:hover { background: #fef0e7; color: var(--orange); }
.has-dropdown:hover .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}

.header__contact-btn {
  background: var(--orange);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  height: 70px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: background .2s;
}
.header.is-scrolled .header__contact-btn { height: 50px; }
.header__contact-btn:hover { background: #FFBB8D; color: #ffffff; }

/* hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: var(--orange);
  border: none;
  cursor: pointer;
  padding: 14px 12px;
  position: fixed;
  top: 0; right: 0;
  z-index: 300;
  height: 70px;
  width: 70px;
  align-items: center;
  justify-content: center;
}
.header__hamburger span {
  display: block;
  width: 28px; height: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}
.header__hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.header__hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100dvh;
  background: var(--orange);
  z-index: 200;
  padding: calc(120px + env(safe-area-inset-top)) 36px calc(20px + env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav__close {
  position: fixed;
  top: 0; right: 0;
  width: 50px; height: calc(50px + env(safe-area-inset-top));
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
}
.mobile-nav__close span {
  display: block;
  width: 28px; height: 2px;
  background: #fff;
  position: absolute;
}
.mobile-nav__close span:nth-child(1) { transform: rotate(45deg); }
.mobile-nav__close span:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  height: auto;
  column-gap: 24px;
  row-gap: 40px;
  align-items: start;
}

.mobile-nav__item {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: block;
  transition: opacity .2s;
}
.mobile-nav__item:hover { opacity: .7; }

.mobile-nav__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav__group--spread {
  justify-content: space-between;
  height: 100%;
}

.mobile-nav__sub-item {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  display: block;
  transition: opacity .2s;
}
.mobile-nav__sub-item:hover { opacity: .7; }

/* ===== HEADER BG ===== */
.header_bg {
  display: none;
}
@media (min-width: 901px) {
  .header_bg {
    display: block;
    position: fixed;
    top: calc(70px + env(safe-area-inset-top));
    left: 0;
    width: 230px;
    height: 50px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 99;
    transform: translateY(0);
    transition: transform .4s ease;
  }
  .header_bg.is-hidden {
    transform: translateY(-200%);
  }
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  margin-top: 0;
  padding-top: calc(70px + env(safe-area-inset-top));
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.hero-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(70px + env(safe-area-inset-top));
  background: #fff;
  z-index: 2;
}
.hero-slider__track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero-slider__slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}
.hero-slider__caption {
  position: absolute;
  bottom: 28px;
  right: 0;
  width: 75%;
  padding: 20px 28px 20px 36px;
  background: linear-gradient(to left, rgba(0,0,0,.58) 70%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 1.15rem;
  line-height: 2;
  text-align: right;
  letter-spacing: .05em;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .5s ease .65s, transform .5s ease .65s;
}
.hero-slider__slide.is-caption-active .hero-slider__caption {
  opacity: 1;
  transform: translateX(0);
}
.hero-slider__slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* dots */
.hero-slider__dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.hero-slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s, width .3s, height .3s;
}
.hero-slider__dot.is-active {
  width: 11px;
  height: 11px;
  background: var(--orange);
}

/* ===== HAJIMETE SECTION ===== */
.hajimete-section {
  background: var(--bg);
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hajimete-section::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(calc(-50% + 160px));
  width: 82.5%;
  max-width: 1050px;
  aspect-ratio: 257 / 100;
  background: url('../images/katakura_logo_wh2.svg') no-repeat center / contain;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* タイトル：オレンジ斜め帯 */
.hajimete-section__tit {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: 68px;
}
.hajimete-section__tit::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 56%;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%);
}
.hajimete-section__tit span {
  position: relative;
  color: var(--white);
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .05em;
  padding-left: max(40px, calc((100vw - 1120px) / 2 + 40px));
}

/* コンテンツ */
.hajimete-section__inner {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.hajimete-section__photo {
  flex-shrink: 0;
  width: 523px;
  height: 330px;
  overflow: hidden;
}
.hajimete-section__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hajimete-section__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hajimete-section__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: #000;
}

.hajimete-section__more {
  display: flex;
  justify-content: flex-end;
}

/* ===== SERVICES ===== */
.services { width: 100%; position: relative; padding-top: 58px; }

.services__title-bar {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--orange);
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .2em;
  padding: 12px 40px 12px 56px;
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
  z-index: 10;
  white-space: nowrap;
}

.service-box {
  background: var(--orange);
  width: 100%;
  padding: 28px 0 32px;
  min-height: 528px;
}

/* 売りたい：左60px空け、コンテンツは右寄せ */
.service-box--sell {
  margin-left: 60px;
  margin-bottom: 30px;
}
.service-box--sell .service-box__inner {
  margin: 0 auto;
  padding-right: 60px;
}

/* 点検：右60px空け、コンテンツは左寄せ */
.service-box--repair {
  width: calc(100% - 60px);
}
.service-box--repair .service-box__inner {
  margin: 0 auto;
  padding-left: 60px;
}

/* 共通インナー */
.service-box__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1080px;
  width: 100%;
  padding: 0;
  height: 100%;
  min-height: inherit;
}

/* vertical title tab */
.service-box__tit {
  background: var(--orange-light);
  width: 105px;
  min-width: 105px;
  height: 468px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-box__tit span {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 35px;
  color: var(--white);
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.1;
  letter-spacing: .1em;
}
.service-box__tit--right { order: 3; }

/* content */
.service-box__content {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 387px;
  min-width: 387px;
  height: 468px;
  justify-content: center;
  flex-shrink: 0;
}
.service-box__photo {
  width: 100%;
  height: 290px;
  overflow: hidden;
}
.service-box__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-box__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--white);
  line-height: 1.45;
}

/* service buttons */
.service-box__btns {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  height: 468px;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 367px;
}
.service-box--repair .service-box__btns { order: 0; }

.service-btn {
  background: var(--white);
  border-radius: 15px;
  height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  transition: background .2s, color .2s;
}
.service-btn:hover { background: #FFBB8D; }
.service-btn:hover .service-btn__label { color: #ffffff; }
.service-btn__label { transition: color .2s; }

.service-btn__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-btn__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter .2s;
}
.service-btn:hover .service-btn__icon img { filter: brightness(0) invert(1); }

.service-btn__label {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: .4em;
  flex: 1;
  text-align: center;
}
.service-btn__label--small {
  font-size: 30px;
  letter-spacing: .4em;
  line-height: 1.3;
  text-align: center;
}

/* CSS chevron arrow */
.service-btn__arrow {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-right: 3.75px solid var(--orange);
  border-top: 3.75px solid var(--orange);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: border-color .2s;
}
.service-btn:hover .service-btn__arrow { border-color: #ffffff; }

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.section-title__line {
  width: 967px;
  max-width: 100%;
  height: 3px;
  background: var(--orange);
}
.section-title__text {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 500;
  font-size: 35px;
  color: var(--orange);
  letter-spacing: .3em;
  text-align: center;
}

/* ===== BIKE SLIDER ===== */
.bike-section {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 73px;
}

.bike-slider-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.bike-slider-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.bike-slider {
  display: flex;
  gap: 25px;
  padding: 0 0 0 20px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  user-select: none;
}

/* arrow buttons */
.bike-slider-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--orange);
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 0 8px;
  padding: 0;
  width: 28px;
  height: 48px;
  transition: opacity .2s;
}
.bike-slider-arrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
}
.bike-slider-arrow--prev::before { transform: rotate(-135deg); }
.bike-slider-arrow--next::before { transform: rotate(45deg); }
.bike-slider-arrow:hover { opacity: .6; }
.bike-slider-arrow:disabled { opacity: .2; cursor: default; }

.bike-card {
  background: var(--orange);
  width: 213px;
  min-width: 213px;
  height: 288px;
  padding: 18px 11px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
  transition: opacity .2s;
}
.bike-card:hover { opacity: .9; }

/* diagonal bottom-right cutout */
.bike-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 37px; height: 54px;
  background: var(--bg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.bike-card__img-wrap {
  flex: 1;
  overflow: hidden;
  background: #ddd;
}
.bike-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bike-card__name {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  line-height: 1.4;
  height: 54px;
  overflow: hidden;
}
.bike-card__price {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding-right: 40px;
}
.bike-card__price-label { font-size: 14px; }
.bike-card__price-num { font-size: 29px; line-height: 1; }
.bike-card__price-unit { font-size: 14px; }

/* more btn */
.section-more { width: 100%; display: flex; justify-content: flex-end; padding-right: 183px;}
.section-more--right { padding-right: 0; }

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 10px 16px;
  height: 51px;
  width: 186px;
  justify-content: center;
  transition: background .2s, color .2s;
}
.more-btn:hover { background: var(--orange); color: var(--white); }
.more-btn__arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-right: 3.75px solid var(--orange);
  border-top: 3.75px solid var(--orange);
  transform: rotate(45deg);
  transition: border-color .2s;
}
.more-btn:hover .more-btn__arrow { border-right-color: var(--white); border-top-color: var(--white); }

/* ===== NEWS ===== */
.news-section {
  padding: 29px 0 80px;
  display: flex;
  justify-content: center;
}
.news-box {
  background: var(--white);
  border-radius: 40px;
  padding: 57px 55px 46px;
  width: 1077px;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 58px;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  padding-bottom: 38px;
}
.news-item__date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--orange);
  letter-spacing: .1em;
  min-width: 94px;
}
.news-item__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #000;
  letter-spacing: .1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-item__title:hover { color: var(--orange); }
.news-item:first-child { border-top: none; }
.news-item:last-child { border-bottom: 1px solid #e0e0e0; }

/* ===== CONTACT BANNER ===== */
.contact-bnr {
  position: relative;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contact-bnr__bg {
  position: absolute;
  inset: 0;
}
.contact-bnr__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-bnr__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.contact-bnr__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}
.contact-bnr__text {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--orange);
  line-height: 1.46;
  text-align: center;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}
.contact-bnr__btn {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

/* contact btn */
.contact-btn {
  background: var(--orange);
  color: var(--white);
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 20px;
  letter-spacing: .1em;
  height: 62px;
  padding: 0 23px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 304px;
  transition: background .2s;
}
.contact-btn:hover { background: #FFBB8D; color: #ffffff; }
.contact-btn--store { width: 228px; }
.contact-btn__arrow {
  display: inline-block;
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 15px;
  height: 15px;
  border-right: 3px solid var(--white);
  border-top: 3px solid var(--white);
}

/* ===== ACCESS ===== */
.access-section {
  padding: 60px 0;
  height: auto;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.access-section__inner {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  padding: 0 100px;
}
.access-section__calendar {
  flex: 0 0 50%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  height: auto;
  background: #d9d9d9;
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.access-section__calendar-label {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 24px;
  color: var(--white);
}
.access-section__info {
  display: flex;
  flex-direction: column;
  gap: 150px;
  flex: 0 0 50%;
  align-items: flex-end;
}
.access-section__address {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 24px;
  color: var(--orange);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 10px;
}
.access-section__address p { font-size: 18px; }
.access-section__shop-name { font-size: 24px !important; font-weight: 700; }

/* ===== FOOTER ===== */
.access-footer-wrap {
  overflow: hidden;
}
.footer {
  background: var(--orange);
  padding: 20px 0 0;
  position: relative;
}
.footer::after {
  content: '';
  position: absolute;
  right: -15%;
  top: -40%;
  width: 85.8%;
  max-width: 1248px;
  aspect-ratio: 3 / 1;
  background: url('../images/katakura_logo_wh2.svg') no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.footer__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 47px 49px 15px 52px;
  min-height: 260px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 333px;
  align-self: stretch;
}
.footer__logo { width: 225px; height: auto; }
.footer__address {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 17px;
  color: var(--white);
  line-height: 1.47;
  letter-spacing: -.01em;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr .7fr;
  column-gap: 60px;
  row-gap: 8px;
  align-items: start;
  margin-bottom: 165px;
}
/* デスクトップ: ULをcontentsにしてliを直接グリッド配置 */
.footer__nav-col { display: contents; }
/* Col 1 */
.footer__nav-col:nth-child(1) > li:nth-child(1) { grid-column: 1; grid-row: 1; }
.footer__nav-col:nth-child(1) > li:nth-child(2) { grid-column: 1; grid-row: 2; margin-top: 28px; }
.footer__nav-col:nth-child(1) > li:nth-child(3) { grid-column: 1; grid-row: 3; }
.footer__nav-col:nth-child(1) > li:nth-child(4) { grid-column: 1; grid-row: 4; }
/* li:nth-child(5) は .footer__nav-mobile-only { display: none } で制御 */
/* Col 2 */
.footer__nav-col:nth-child(2) > li:nth-child(1) { grid-column: 2; grid-row: 1; }
.footer__nav-col:nth-child(2) > li:nth-child(2) { grid-column: 2; grid-row: 2; margin-top: 28px; }
.footer__nav-col:nth-child(2) > li:nth-child(3) { grid-column: 2; grid-row: 4; } /* 在庫車両 (desktop-only) */
/* li:nth-child(4) 会社概要 mobile-only → hidden via .footer__nav-mobile-only */
/* li:nth-child(5) お問い合わせ mobile-only → hidden via .footer__nav-mobile-only */
/* Col 3 */
.footer__nav-col:nth-child(3) > li { grid-column: 3; grid-row: 1; }
.footer__nav-col:nth-child(4) > li { grid-column: 3; grid-row: 2; margin-top: 28px; }

.footer__nav-head > a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  display: block;
}
.footer__nav-mobile-only { display: none; }
.footer__nav-desktop-only { display: block; }
.footer__nav-sub > a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffc490;
  display: block;
}
.footer__nav-col > li > a {
  transition: opacity .2s;
}
.footer__nav-col > li > a:hover { opacity: 0.65; text-decoration: underline; }

.footer__bottom {
  padding: 0 49px 0;
}
.footer__bottom-line {
  height: 1px;
  background: rgba(255,255,255,.4);
  margin-bottom: 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px;
}
.footer__copy {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 11px;
  color: var(--white);
  letter-spacing: -.01em;
}
.footer__policy {
  display: flex;
  gap: 27px;
}
.footer__policy li a {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 11px;
  color: var(--white);
  letter-spacing: -.01em;
}
.footer__policy li a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hajimete-section__photo { width: 420px; height: 280px; }
  .hajimete-section__desc { font-size: 16px; }
  .header__logo { width: 200px; min-width: 200px; }
  .header__nav-list { gap: 20px; }
  .access-section__calendar { min-width: 400px; width: 400px; }
  .bike-section { gap: 40px; }
  .section-more { padding-right: 40px; }
  .section-more--right { padding-right: 0; }
  .contact-bnr__text { font-size: 20px; }
  .contact-bnr .contact-btn { flex-shrink: 0; }
}

/* ヘッダー 901〜1000px：コンパクト表示 */
@media (min-width: 901px) and (max-width: 1000px) {
  .header__logo { width: 160px; min-width: 160px; }
  .header__logo-img { width: 140px; }
  .header__nav-list { gap: 14px; padding-right: 24px; }
  .header__nav-list > li > a { font-size: 14px; }
  .header__contact-btn { padding: 0 20px; font-size: 14px; }
  .dropdown li a { font-size: 14px; }
}

/* サービスボックス 901〜1100px：縦並びレイアウト */
@media (min-width: 901px) and (max-width: 1100px) {
  .service-box {
    min-height: auto;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }
  .service-box__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px;
    max-width: 680px;
    margin: 0 auto;
  }
  .service-box--sell .service-box__inner,
  .service-box--repair .service-box__inner {
    padding: 28px;
  }
  .service-box__tit {
    width: 100%;
    height: 64px;
    min-width: unset;
  }
  .service-box__tit span {
    writing-mode: horizontal-tb;
    font-size: 26px;
    letter-spacing: .2em;
  }
  .service-box__content {
    width: 100%;
    min-width: unset;
    height: auto;
  }
  .service-box__btns {
    width: 100%;
    height: auto;
    padding-top: 0;
  }
  .service-btn { width: 100%; }
  /* repair: tit → content → btns */
  .service-box--repair .service-box__tit--right { order: -1; }
  .service-box--repair .service-box__content    { order:  0; }
  .service-box--repair .service-box__btns       { order:  1; }
}

@media (max-width: 900px) {
  /* hero slider */
  .hero-slider { padding-top: calc(50px + env(safe-area-inset-top)); }
  .hero-slider__slide img { height: 380px; }
  /* hero caption */
  .hero-slider__caption { width: 100%; font-size: 13px; padding: 14px 20px; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 100%); }
}

@media (min-width: 701px) and (max-width: 900px) {
  .hero-slider__caption { font-size: 18px; }
}

@media (max-width: 900px) {
  /* hajimete watermark */
  .hajimete-section::after { width: 180%; max-width: none; right: -70%; transform: translateY(calc(-50% + 160px)); opacity: 0.3; }

  /* hajimete section */
  .hajimete-section { padding-top: 40px; padding-bottom: 40px; }
  .hajimete-section__tit { height: 52px; margin-bottom: 20px; }
  .hajimete-section__tit::before { width: 75%; }
  .hajimete-section__tit span { font-size: 22px; }
  .hajimete-section__inner { flex-direction: column; gap: 28px; padding: 0 24px; }
  .hajimete-section__photo { width: 100%; height: 240px; }
  .hajimete-section__body { gap: 24px; }
  .hajimete-section__desc { font-size: 15px; }

  /* hide desktop nav, show hamburger */
  .header__nav { display: none; }
  .header__contact-btn { display: none; }
  .header__hamburger { display: flex; height: 50px; width: 50px; }
  .mobile-nav { display: block; }
  .mobile-nav__grid { width: 100%; justify-items: start; }
  .header { height: calc(50px + env(safe-area-inset-top)); background: var(--white); z-index: 100; width: 100%; }
  .header.is-scrolled { height: calc(50px + env(safe-area-inset-top)); }
  .header__logo { display: none; }
  .mobile-logo {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    z-index: 300;
    padding: 3px 0;
  }
  .mobile-logo__img { width: 110px; height: 43px; object-fit: contain; }

  .hero-slider { margin-top: 0; padding-top: calc(50px + env(safe-area-inset-top)); }
  .hero-slider::before { height: calc(50px + env(safe-area-inset-top)); }
  .hero-slider__slide img { height: calc(100svh - 50px - env(safe-area-inset-top)); object-position: center; }

  .services { padding-top: 0; }
  .services__title-bar {
    position: relative;
    top: auto; right: auto;
    display: block;
    width: calc(100% / 3);
    margin-left: auto;
    font-size: 24px;
    padding: 12px 20px 12px 36px;
    clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
    text-align: center;
  }
  .service-box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto;
    padding-bottom: 0;
  }
  .service-box--sell { margin-bottom: 0 !important; }
  .service-box--repair { padding-bottom: 32px; }
  .service-box__inner {
    flex-direction: column;
    padding: 24px 24px 0;
    gap: 24px;
    max-width: 100%;
    margin: 0 !important;
  }
  .service-box--sell .service-box__inner,
  .service-box--repair .service-box__inner {
    padding: 24px 24px 0;
  }
  .service-box__tit { width: 100%; height: 60px; }
  .service-box__tit span { writing-mode: horizontal-tb; font-size: 26px; letter-spacing: .2em; }
  .service-btn__label { font-size: 24px; }
  /* repair: tit → content → btns */
  .service-box--repair .service-box__tit--right { order: -1; }
  .service-box--repair .service-box__content    { order:  0; }
  .service-box--repair .service-box__btns       { order:  1; }
  .service-box__content { min-width: 100%; width: 100%; height: auto; }
  .service-box__btns { width: 100%; height: auto; }
  .service-btn { width: 100%; }
  .service-box--repair { width: 100% !important; }

  .section-title { width: 100%; }
  .section-title__line { width: calc(100% - 48px); }
  .bike-slider-arrow { font-size: 0; width: 28px; margin: 0 4px; }
  .bike-slider { padding-left: 12px; gap: 16px; }
  .bike-card { width: 200px; min-width: 200px; height: auto; }
  .bike-card__name { height: auto; overflow: visible; }
  .section-more { padding-right: 0; justify-content: center; }
  .hajimete-section__more { justify-content: center; }
  .more-btn { width: 304px; }
  .contact-btn--store { width: 304px; margin-left: auto; margin-right: auto; }

  .news-box { padding: 30px 20px; gap: 26px; }
  .news-box .section-title__line { width: 100%; }
  .news-item { flex-direction: column; gap: 2px; align-items: flex-start; padding-top: 10px; padding-bottom: 24px; }
  .news-item:last-child { padding-bottom: 24px; }
  .news-item__date { min-width: unset; font-size: 13px; }
  .news-item__title { white-space: normal; font-size: 17px; }

  .access-section { height: auto; padding: 40px 0; }
  .access-section__inner { flex-direction: column; gap: 40px; padding: 0 20px; }
  .access-section__calendar { min-width: 100%; width: 100%; height: 300px; }
  .access-section__info { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 30px; width: 100%; }
  .contact-btn--store { width: 304px; justify-content: center; flex-shrink: 0; margin-left: auto; margin-bottom: 9px; }
  .contact-btn__arrow { right: 28px; }

  /* フッター：ナビ → ロゴ+住所 → ライン → コピー */
  .footer__inner { flex-direction: column; gap: 48px; padding: 15px 20px 15px; }
  /* display:contentsのまま、wrapperだけ調整 */
  .footer__nav { width: 100%; order: 0; column-gap: 24px; margin-bottom: 80px; }
  .footer__brand {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    order: 1;
  }
  .footer::after { width: 180%; top: -40%; right: -60%; }
  .footer__logo { width: 140px; }
  .footer__address { font-size: 13px; text-align: right; }
  .footer__bottom { padding: 0 20px; }
  .footer__policy { gap: 16px; flex-wrap: wrap; }
}

@media (min-width: 501px) and (max-width: 900px) {
  .service-box--sell { margin-bottom: 0 !important; padding-bottom: 48px; }
  .service-box--repair { padding-bottom: 64px; }
}

@media (max-width: 700px) {
  .hero-slider__slide img { height: 320px; }
  .hero-slider__caption { position: absolute; bottom: 0; width: 100%; font-size: 15px; line-height: 1.5; white-space: nowrap; padding: 10px 16px; right: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 100%); }
  .hero-slider { padding-bottom: 10px; background: var(--bg); }
  .hero-slider__dots { position: relative; bottom: auto; left: auto; transform: none; justify-content: center; margin-top: 12px; }

  .contact-bnr { height: auto; padding: 60px 0; }
  .contact-bnr__inner { flex-direction: column; gap: 30px; }
  .contact-bnr__text { width: 100%; font-size: 20px; text-align: center; }
  .contact-bnr__btn { width: 100%; }
  .contact-bnr .contact-btn { flex-shrink: 0; }

  .more-btn { width: 100%; }

  /* 在庫車両：スライダーのビューポート幅に合わせる（矢印36px分） */
  .bike-section .section-more { padding: 0 36px; margin-top: 20px; }

  /* はじめての方へ：ボタン上に余白 */
  .hajimete-section__more { margin-top: 20px; }

  /* カレンダー下の住所と店舗情報ボタンを縦並び */
  .access-section__info { flex-direction: column; align-items: flex-start; gap: 20px; }
  .access-section__info .contact-btn--store { width: 100%; margin-left: 0; }

  /* フッターナビを500px以下と同じ2カラムレイアウトに */
  .footer { padding-top: 30px; }
  .footer::before { height: 60px; }
  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 80px; min-height: 180px; }
  .footer__nav-mobile-only { display: block; }
  .footer__nav-desktop-only { display: none; }
  .footer__nav-col:nth-child(1) { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; align-self: stretch; }
  .footer__nav-col:nth-child(2) { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
  .footer__nav-col:nth-child(3),
  .footer__nav-col:nth-child(4) { display: none; }
  .footer__nav-col > li { opacity: 1 !important; transform: none !important; margin: 0 !important; }
  .footer__nav-col:nth-child(1) > li:nth-child(1) { margin-bottom: 31px !important; }
  .footer__nav-col:nth-child(1) > li:nth-child(3) { margin-top: 5px !important; }
  .footer__nav-col:nth-child(1) > li:nth-child(4) { margin-top: 5px !important; }
  .footer__nav-col:nth-child(1) > li:nth-child(5) { margin-top: auto !important; }
  .footer__brand { flex-direction: column; align-items: flex-end; gap: 12px; }
  .footer__address { text-align: right; }
  .footer__inner { padding-bottom: 15px; }
  .footer__bottom-inner { flex-direction: column; gap: 1px; align-items: flex-end; padding: 14px 0; }
  .footer::after { top: -10%; right: -70%; }
}

@media (max-width: 500px) {
  /* 500px以下: 1枚中央表示 */
  .bike-slider-wrap { position: relative; overflow: visible; }
  .bike-slider-viewport { flex: none; width: 80vw; margin: 0 auto; overflow: hidden; }
  .bike-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 3;
  }
  .bike-slider-arrow:first-child { left: 0; }
  .bike-slider-arrow:last-child { right: 0; }
  .bike-slider { padding-left: 0; gap: 20px; }
  .bike-card { width: 80vw; min-width: 80vw; height: auto; overflow: hidden; }
}

@media (max-width: 500px) {
  .hajimete-section__tit::before { width: 90%; }
  .hajimete-section__tit span { font-size: 26px; padding-left: 20px; }
  .hajimete-section__photo { height: 200px; }
  .hero-slider__slide img { height: 260px; }
  .hero-slider__caption br { display: none; }
  .hero-slider__caption {
    width: 100%;
    font-size: 15px;
    line-height: 1.7;
    padding: 10px 16px;
    right: 0;
    white-space: normal;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 100%);
  }
  .section-title__text { font-size: 24px; letter-spacing: .2em; }
  .access-section__inner { gap: 30px; }
  .access-section__address p { font-size: 16px; }
  .news-section { padding: 0 0 60px; }
  .contact-bnr { height: auto; padding: 50px 0; }
  .footer { padding-top: 30px; }
  .footer::before { height: 60px; }
  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin-bottom: 80px;
    min-height: 180px;
  }
  .footer__nav-mobile-only { display: block; }
  .footer__nav-desktop-only { display: none; }
  /* col1: flex-start + 特定マージンでcol2と位置合わせ */
  .footer__nav-col:nth-child(1) { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; align-self: stretch; }
  /* col2: space-between で4項目等間隔 */
  .footer__nav-col:nth-child(2) { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
  .footer__nav-col:nth-child(3),
  .footer__nav-col:nth-child(4) { display: none; }
  /* gridマージンリセット → 個別指定 */
  .footer__nav-col > li { opacity: 1 !important; transform: none !important; margin: 0 !important; }
  /* col1: はじめての方へ → サービスの間隔をcol2のgapに合わせる (180px基準: (180-88)/3 ≈ 31px) */
  .footer__nav-col:nth-child(1) > li:nth-child(1) { margin-bottom: 31px !important; }
  /* 小メニューはタイト */
  .footer__nav-col:nth-child(1) > li:nth-child(3) { margin-top: 5px !important; }
  .footer__nav-col:nth-child(1) > li:nth-child(4) { margin-top: 5px !important; }
  /* 在庫車両: auto で底に貼り付け → お問い合わせと揃う */
  .footer__nav-col:nth-child(1) > li:nth-child(5) { margin-top: auto !important; }

  .footer__brand {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
  .footer__address { text-align: right; }
  .footer__inner { padding-bottom: 15px; }
  .footer__bottom-inner { flex-direction: column; gap: 1px; align-items: flex-end; padding: 14px 0; }

  .footer::after { width: 200%; top: 10%; right: -85%; }

  .hajimete-section { padding-bottom: 0; }
  .services { padding-top: 60px; }
  .services__title-bar { font-size: 20px; padding: 10px 24px 10px 40px; width: fit-content; }
  .bike-section .section-more { margin-top: 0px; }

  /* ヘッダー白背景・ロゴ中央揃え維持 */
  .header { background: var(--white); }

  /* 売りたい・買いたい フォントサイズ */
  .service-box__tit span { font-size: 26px; }

  /* 販売・買取などボタン文字サイズ */
  .service-btn__label { font-size: 26px; }
  .service-btn__label--small { font-size: 26px; letter-spacing: .4em; }
}

/* ===== SERVICE SCROLL ANIMATIONS ===== */

/* タイトル背景（薄オレンジ）：左から伸びる */
.service-box__tit {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .65s cubic-bezier(.4,0,.2,1);
}
.service-box.is-inview .service-box__tit {
  clip-path: inset(0 0% 0 0);
}

/* タイトルテキスト fade in（背景が開ききったあと） */
.service-box__tit span {
  opacity: 0;
  transition: opacity .5s ease .6s;
}
.service-box.is-inview .service-box__tit span {
  opacity: 1;
}

/* 写真 fade in */
.service-box__photo {
  opacity: 0;
  transition: opacity .6s ease .9s;
}
.service-box.is-inview .service-box__photo {
  opacity: 1;
}

/* 説明テキスト fade in */
.service-box__desc {
  opacity: 0;
  transition: opacity .6s ease 1.1s;
}
.service-box.is-inview .service-box__desc {
  opacity: 1;
}

/* ボタン fade up（順番に） */
.service-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}
.service-box.is-inview .service-btn {
  opacity: 1;
  transform: translateY(0);
}
.service-box.is-inview .service-btn:nth-child(1) { transition-delay: 1.3s; }
.service-box.is-inview .service-btn:nth-child(2) { transition-delay: 1.5s; }
.service-box.is-inview .service-btn:nth-child(3) { transition-delay: 1.7s; }

/* アニメーション完了後はhover用transitionに戻す */
.service-box.is-inview .service-btn.anim-done {
  transition: opacity .2s;
}

/* ===== HAJIMETE SECTION ANIMATION ===== */
.hajimete-section__heading {
  font-family: 'Noto Sans JP', sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease .9s, transform .55s ease .9s;
}
.hajimete-section.is-inview .hajimete-section__heading {
  opacity: 1;
  transform: translateY(0);
}
.hajimete-section__tit::before {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.hajimete-section.is-inview .hajimete-section__tit::before {
  transform: scaleX(1);
}
.hajimete-section__tit span {
  opacity: 0;
  transition: opacity .5s ease .6s;
}
.hajimete-section.is-inview .hajimete-section__tit span {
  opacity: 1;
}
.hajimete-section__photo {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .65s ease .85s, transform .65s ease .85s;
}
.hajimete-section.is-inview .hajimete-section__photo {
  opacity: 1;
  transform: translateX(0);
}
.hajimete-section__desc {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease 1.05s, transform .55s ease 1.05s;
}
.hajimete-section.is-inview .hajimete-section__desc {
  opacity: 1;
  transform: translateY(0);
}
.hajimete-section__more {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease 1.25s, transform .45s ease 1.25s;
}
.hajimete-section.is-inview .hajimete-section__more {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION TITLE (bike / news) ANIMATION ===== */
.section-title__line {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.section-title.is-inview .section-title__line {
  transform: scaleX(1);
}
.section-title__text {
  opacity: 0;
  transition: opacity .5s ease .55s;
}
.section-title.is-inview .section-title__text {
  opacity: 1;
}

/* ===== BIKE SECTION ANIMATION ===== */
.bike-slider-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease .3s, transform .65s ease .3s;
}
.bike-section.is-inview .bike-slider-wrap {
  opacity: 1;
  transform: translateY(0);
}
.bike-section .section-more {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease .65s, transform .5s ease .65s;
}
@media (min-width: 1101px) {
  .bike-section .section-more {
    max-width: 967px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
  }
}
.bike-section.is-inview .section-more {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NEWS SECTION ANIMATION ===== */
.news-box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.news-section.is-inview .news-box {
  opacity: 1;
  transform: translateY(0);
}
.news-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease;
}
.news-section.is-inview .news-item:nth-child(1) { transition-delay: .5s; opacity: 1; transform: translateY(0); }
.news-section.is-inview .news-item:nth-child(2) { transition-delay: .65s; opacity: 1; transform: translateY(0); }
.news-section.is-inview .news-item:nth-child(3) { transition-delay: .8s; opacity: 1; transform: translateY(0); }
.news-section.is-inview .news-item:nth-child(4) { transition-delay: .95s; opacity: 1; transform: translateY(0); }
.news-section.is-inview .news-item:nth-child(5) { transition-delay: 1.1s; opacity: 1; transform: translateY(0); }
.news-section.is-inview .news-item:nth-child(6) { transition-delay: 1.25s; opacity: 1; transform: translateY(0); }
.news-section .section-more {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease 1.4s, transform .4s ease 1.4s;
}
.news-section.is-inview .section-more {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CONTACT BANNER ANIMATION ===== */
.contact-bnr__text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease .1s, transform .6s ease .1s;
}
.contact-bnr.is-inview .contact-bnr__text {
  opacity: 1;
  transform: translateY(0);
}
/* contact bannerのボタンのみアニメーション対象（アクセスセクションの店舗情報ボタンは除外） */
.contact-bnr__btn {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease .35s, transform .6s ease .35s;
}
.contact-bnr.is-inview .contact-bnr__btn { opacity: 1; transform: translateY(0); }

/* ===== ACCESS SECTION ANIMATION ===== */
.access-section__calendar {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s ease .1s, transform .7s ease .1s;
}
.access-section.is-inview .access-section__calendar {
  opacity: 1;
  transform: translateX(0);
}
.access-section__shop-name {
  opacity: 0;
  transition: opacity .5s ease .3s;
}
.access-section.is-inview .access-section__shop-name {
  opacity: 1;
}
.access-section__address p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.access-section.is-inview .access-section__address p:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .45s; }
.access-section.is-inview .access-section__address p:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .6s; }
.access-section.is-inview .access-section__address p:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .75s; }
.access-section__info .contact-btn--store {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease .8s, transform .45s ease .8s;
}
.access-section.is-inview .contact-btn--store {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ANIMATION ===== */
.footer__brand {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease .1s, transform .6s ease .1s;
}
.footer.is-inview .footer__brand {
  opacity: 1;
  transform: translateY(0);
}
.footer__nav-col > li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
/* Col1 stagger */
.footer.is-inview .footer__nav-col:nth-child(1) > li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .2s; }
.footer.is-inview .footer__nav-col:nth-child(1) > li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.footer.is-inview .footer__nav-col:nth-child(1) > li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .37s; }
.footer.is-inview .footer__nav-col:nth-child(1) > li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: .44s; }
/* Col2 stagger */
.footer.is-inview .footer__nav-col:nth-child(2) > li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.footer.is-inview .footer__nav-col:nth-child(2) > li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .4s; }
.footer.is-inview .footer__nav-col:nth-child(2) > li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .5s; }
/* Col3 stagger */
.footer.is-inview .footer__nav-col:nth-child(3) > li { opacity: 1; transform: translateY(0); transition-delay: .45s; }
.footer.is-inview .footer__nav-col:nth-child(4) > li { opacity: 1; transform: translateY(0); transition-delay: .6s; }
.footer__bottom {
  opacity: 0;
  transition: opacity .5s ease .7s;
}
.footer.is-inview .footer__bottom {
  opacity: 1;
}

/* ===== PAGE HERO（全内部ページ共通） ===== */
.page-hero {
  padding-top: calc(140px + env(safe-area-inset-top));
  background: var(--bg);
  position: relative;
}

/* タイトル帯（右寄せ・左辺斜め）
   header_bg角度: 230px幅×50px高で34.5px横移動
   全サイズ共通 56px高さ → 34.5/50×56 = 39px */
.page-hero__tit {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
}
.page-hero__tit::before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 48%;
  background: var(--orange);
  clip-path: polygon(39px 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.page-hero.is-loaded .page-hero__tit::before {
  transform: scaleX(1);
}
.page-hero__tit span {
  position: relative;
  color: var(--white);
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .05em;
  padding-right: max(60px, calc((100vw - 1200px) / 2 + 60px));
  opacity: 0;
  transition: opacity .5s ease .55s;
}
.page-hero.is-loaded .page-hero__tit span {
  opacity: 1;
}

/* 説明ボックス（白背景）
   重なり = タイトル帯の縦半分: 56px÷2 = 28px */
.page-hero__intro {
  background: var(--white);
  margin-top: -28px;
  margin-left: max(24px, calc((100% - 1144px) / 2));
  max-width: 915px;
  padding: 80px 80px 40px 90px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 44px) 100%, 0 100%);
  position: relative;
  z-index: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease .7s, transform .6s ease .7s;
}
.page-hero.is-loaded .page-hero__intro {
  opacity: 1;
  transform: translateY(0);
}
.page-hero__intro p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.9;
  color: #000;
}

@media (min-width: 901px) {
  .page-hero__intro {
    margin-right: max(150px, calc((100vw - 1300px) / 2));
  }
}

@media (max-width: 1100px) {
  .page-hero__intro {
    padding: 65px 60px 10px 60px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(100% - 34px) 100%, 0 100%);
  }
  .page-hero__intro p { font-size: 17px; }
}

@media (max-width: 900px) {
  .page-hero {
    padding-top: calc(70px + env(safe-area-inset-top));
  }
  .page-hero__tit {
    height: 56px;
    width: 45%;
    margin-left: auto;
  }
  .page-hero__tit::before {
    width: 100%;
    clip-path: polygon(39px 0, 100% 0, 100% 100%, 0 100%);
  }
  .page-hero__tit span {
    font-size: 22px;
    padding-right: 24px;
  }
  .page-hero__intro {
    margin-left: 0;
    margin-right: auto;
    margin-top: -28px;
    padding: 50px 24px 28px;
    max-width: calc((100% - 48px) * 0.9);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 28px) 100%, 0 100%);
  }
  .page-hero__intro p { font-size: 15px; }
}

@media (max-width: 500px) {
  .page-hero__tit { min-width: 60%; width: fit-content; height: 52px; }
  .page-hero__tit span { font-size: 20px; }
  .page-hero__intro p.page-hero__intro-heading { font-size: 20px; }
  .page-hero__intro {
    margin-top: -26px;
    margin-left: 0;
    margin-right: 12px;
    width: auto;
    padding-left: 24px;
    padding-right: 24px;
    max-width: none;
  }
}
