@charset "UTF-8";

/* ========================================
   sp.css
   スマホ・タブレット用レスポンシブCSS
   - iPad    : max-width 1024px
   - スマホ  : max-width 767px
======================================== */

/* ========================================
   UTILITY: 表示切り替え
   .sp-only → スマホのみ表示（PCでは非表示）
   .pc-only → PCのみ表示（スマホでは非表示）
======================================== */
.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
}


/* ========================================
   HAMBURGER BUTTON（スマホのみ表示）
======================================== */
.hamburger {
  display: none; /* PC では非表示 */
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  flex-shrink: 0;
  position: relative;
}

/* hamburger.png アイコン（通常時） */
.hamburger__img {
  display: block;
  width: 32px;
  height: auto;
}

/* ✕ 閉じるアイコン（CSS製・デフォルト非表示） */
.hamburger__close {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.hamburger__close::before,
.hamburger__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.hamburger__close::before {
  -webkit-transform: translateY(-50%) rotate(45deg);
          transform: translateY(-50%) rotate(45deg);
}

.hamburger__close::after {
  -webkit-transform: translateY(-50%) rotate(-45deg);
          transform: translateY(-50%) rotate(-45deg);
}

/* 開いた状態：画像非表示 → ✕表示 */
.hamburger.is-open .hamburger__img {
  display: none;
}

.hamburger.is-open .hamburger__close {
  display: block;
}


/* ========================================
   SP MENU OVERLAY
======================================== */
.sp-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.4s ease, visibility 0.4s ease;
          transition: opacity 0.4s ease, visibility 0.4s ease;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
}

.sp-menu.is-open {
  opacity: 1;
  visibility: visible;
}

/* 背景画像：うっすら表示 */
.sp-menu__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../img/sp_menu_bg.jpg);
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
}

.sp-menu__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.70);
}

/* ✕ 閉じるボタン：右上に固定 */
.sp-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
  cursor: pointer;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease 0.2s;
          transition: opacity 0.3s ease 0.2s;
}

.sp-menu.is-open .sp-menu__close {
  opacity: 1;
}

.sp-menu__close::before,
.sp-menu__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.sp-menu__close::before {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
}

.sp-menu__close::after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
          transform: translate(-50%, -50%) rotate(-45deg);
}

/* メニューコンテンツ */
.sp-menu__nav {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 0 40px;
}

.sp-menu__list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.sp-menu__item {
  opacity: 0;
  -webkit-transform: translateY(16px);
          transform: translateY(16px);
  -webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s ease;
          transition: opacity 0.4s ease, transform 0.4s ease;
}

/* メニューが開いたら各アイテムをフェードイン */
.sp-menu.is-open .sp-menu__item:nth-child(1) { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); -webkit-transition-delay: 0.1s; transition-delay: 0.1s; }
.sp-menu.is-open .sp-menu__item:nth-child(2) { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); -webkit-transition-delay: 0.18s; transition-delay: 0.18s; }
.sp-menu.is-open .sp-menu__item:nth-child(3) { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); -webkit-transition-delay: 0.26s; transition-delay: 0.26s; }
.sp-menu.is-open .sp-menu__item:nth-child(4) { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); -webkit-transition-delay: 0.34s; transition-delay: 0.34s; }

.sp-menu__link {
  display: block;
  padding: 22px 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sp-menu__list li:first-child .sp-menu__link {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sp-menu__line {
  opacity: 0;
  -webkit-transform: translateY(16px);
          transform: translateY(16px);
  -webkit-transition: opacity 0.4s ease 0.42s, -webkit-transform 0.4s ease 0.42s;
          transition: opacity 0.4s ease 0.42s, transform 0.4s ease 0.42s;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
          justify-content: center;
  margin-top: 40px;
}

.sp-menu.is-open .sp-menu__line {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}


/* ========================================
   iPad（〜1024px）
======================================== */
@media (max-width: 1024px) {

  /* ヘッダー */
  .header {
    padding: 0 24px;
  }
  

  /* About */
  .about-section {
    flex-direction: column;
  }

  .about-section__slides {
    width: 100%;
    height: 360px;
  }

  .about-section__body {
    padding: 40px 40px 0;
  }

  /* Company */
  .company-box {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .company-box__inner {
    padding: 60px 40px;
  }

  /* Event */
  .event-wrap {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .event-box {
    width: 100%;
  }

  /* Community */
  .community-hero {
    padding: 60px 40px;
  }

  .community-block__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 24px;
  }

  .community-photos--left,
  .community-photos__item {
    width: 100%;
    height: 300px;
  }

  .community-photos--right {
    width: 100%;
    flex-direction: row;
    gap: 16px;
  }

  .community-photos__item {
    flex: 1;
    height: 220px;
  }

  .community-text-wrap--right,
  .community-text-wrap--left {
    padding: 0;
    width: 100%;
  }
}


/* ========================================
   スマホ（〜767px）
======================================== */
@media (max-width: 767px) {

  /* ========== ヘッダー ========== */
  .nav {
    display: none !important; /* PC ナビを非表示 */
  }

  .hamburger {
    display: -webkit-flex !important;
    display: flex !important;
  }

  /* ========== MV ========== */
.mv {
    height: 50svh;
  }

  .logo img {
    height: auto;
}
.mv__logo {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  /* ========== キャッチコピー ========== */
  .content h3 {
    font-size: 15px;
    margin: 60px 24px;
    line-height: 1.9;
  }

  /* ========== スクロールスライダー ========== */
  .scroll-infinity__item {
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    padding: 0 10px 0 0;
  }

  .scroll-infinity__list--right {
    margin-bottom: 60px;
  }

  
  /* ========== About ========== */
  .about-section {
    -webkit-flex-direction: column;
            flex-direction: column;
    margin-bottom: 60px;
  }

  .about-section__slides {
    width: 100%;
    height: 260px;
  }

  .about-section__body {
    padding: 32px 24px 0;
  }

  .about-section__lead {
    font-size: 15px;
    margin: 0 0 28px;
    text-align: center;
  }

  .about-section__text {
    font-size: 14px;
    line-height: 2.0;
    margin: 0 0 28px;
  }

  /* ========== Top Cards ========== */
  .top-cards {
    padding: 0 24px;
    margin-bottom: 60px;
  }

  .top-cards__inner {
    -webkit-flex-direction: column;
            flex-direction: column;
    gap: 12px;
  }

  .top-cards__item {
    height: 140px;
    flex: none;
  }

  .top-cards__inner:hover .top-cards__item,
  .top-cards__inner:hover .top-cards__item:hover {
    flex: none;
  }

  .top-cards__head {
    padding: 24px 24px;
  }

  .top-cards__en {
    font-size: 13px;
    margin: 0 0 6px;
  }

  .top-cards__jp {
    font-size: 16px;
  }

  /* ========== Section Title ========== */
  .mtitle01 {
    margin: 100px 0 100px;
  }

  .mtitle01__en {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .mtitle01__jp {
    font-size: 22px;
  }

  /* ========== Service Detail 共通 ========== */
  .service-detail {
    padding-top: 60px;
  }

  .service-detail__inner {
    padding: 0 24px;
  }

  /* 全タイプ: 1カラム */
  .service-detail__grid,
  .service-detail--type02 .service-detail__grid,
  .service-detail--type03 .service-detail__grid,
  .service-detail--type04 .service-detail__grid,
  .service-detail--type05 .service-detail__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    margin-bottom: 60px;
  }

  /* 番号 */
  .service-detail__no {
    font-size: 64px;
  }

  .service-detail__en {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .service-detail__title {
    font-size: 16px;
    line-height: 1.5;
  }

  .service-detail__body {
    margin: 0 0 40px;
  }

  .service-detail__text {
    width: 100%;
    font-size: 14px;
    line-height: 2.1;
  }

  /* br タグをスマホで非表示（テキストが溢れるのを防ぐ） */
  .service-detail__text br {
    display: none;
  }

  /* ========== Service 写真: 絶対配置を解除してシンプルに ========== */

  /* TYPE 01 */
  .service-detail__media {
    width: 100%;
  }

  .service-detail__photos {
    position: static;
    width: 100%;
    height: auto;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
            flex-direction: column;
    gap: 10px;
  }

  .service-detail__photo--a,
  .service-detail__photo--b,
  .service-detail__photo--c {
    position: static;
    width: 100%;
    height: 220px;
    top: auto;
    left: auto;
  }

  /* ワイド写真 */
  .service-detail__wide {
    width: 100%;
    height: 200px;
    margin-left: 0;
  }
  /* @media (max-width: 767px) の中に追加 */
.service-sp-img {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.service-sp-img img {
  width: 100%;
  height: auto;
  display: block;
}

.service-detail__head {
    margin: 0 0 50px;
}

  /* TYPE 02 */
  .service-detail--type02 .service-detail__left,
  .service-detail--type04 .service-detail__left {
    gap: 32px;
  }

  .service-detail--type02 .service-detail__content {
    padding-left: 0;
  }

  .service-detail__photo--d {
    position: static;
    width: 100%;
    height: 220px;
    max-width: 100%;
  }

  .service-detail__photos--type02 {
    position: static;
    width: 100%;
    height: auto;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
            flex-direction: column;
    gap: 10px;
  }

  .service-detail__photo--e {
    position: static;
    width: 100%;
    height: 220px;
    -webkit-transform: none;
            transform: none;
  }

  .service-detail__photo--e.is-in {
    -webkit-transform: none;
            transform: none;
  }

  .service-detail__photo--f {
    position: static;
    width: 100%;
    height: 180px;
  }
  .service-detail{
    padding: 0;
  }

  /* TYPE 03 */
  .service-detail--type03 .service-detail__content {
    padding-right: 0;
  }

  .service-detail--type03 .service-detail__grid {
    margin-top: 0;
    margin-bottom: 120px;
  }


  .service-detail__photo--g {
    position: static;
    width: 100%;
    height: 220px;
    -webkit-transform: none;
            transform: none;
  }

  .service-detail__photo--g.is-in {
    -webkit-transform: none;
            transform: none;
  }

  .service-detail__photos-bottom {
    -webkit-flex-direction: column;
            flex-direction: column;
    gap: 10px;
  }

  .service-detail__photo--h,
  .service-detail__photo--i {
    position: static;
    width: 100%;
    height: 200px;
  }

  /* TYPE 04 */
  .service-detail--type04 .service-detail__content {
    padding-left: 0;
  }

  .service-detail__photo--j {
    position: static;
    width: 100%;
    height: 200px;
  }

  .service-detail--type04 .service-detail__photos--type04 {
    -webkit-align-items: flex-start;
            align-items: flex-start;
    gap: 10px;
  }

  .service-detail__photo--k {
    width: 100%;
    height: 200px;
    margin-left: 0;
    margin-right: 0;
  }

  .service-detail__photos-row {
    gap: 10px;
    -webkit-justify-content: flex-start;
            justify-content: flex-start;
  }

  .service-detail__photo--l {
    width: calc(50% - 5px);
    height: 160px;
    margin-top: 0;
    position: static;
  }

  .service-detail__photo--m {
    width: calc(50% - 5px);
    height: 160px;
    position: static;
  }

  /* TYPE 05 */
  .service-detail--type05 .service-detail__content {
    padding-right: 0;
  }

  .service-detail--type05 .service-detail__left {
    margin-top: 0;
  }

  .service-detail__photos--type05 {
    gap: 10px;
  }

  .service-detail__photo--n {
    position: static;
    width: 100%;
    height: 200px;
    margin-left: 0;
  }

  .service-detail__photo--o {
    position: static;
    width: 100%;
    height: 200px;
    margin-left: 0;
  }

  .service-detail__photos-row--type05 {
    gap: 10px;
    padding-right: 0;
    -webkit-align-items: flex-start;
            align-items: flex-start;
  }

  .service-detail__photo--p,
  .service-detail__photo--q {
    position: static;
    width: calc(50% - 5px);
    height: 160px;
    margin-top: 0;
  }

  /* ========== Company ========== */
  .company-section {
    padding-top: 10px;
    padding-bottom: 60px;
  }

  .company-box {
    width: 100%;
    min-height: auto;
    padding: 0;
  }

  .company-box__inner {
    padding: 40px 24px;
  }

  .company-table__row {
    -webkit-flex-direction: column;
            flex-direction: column;
    gap: 8px;
    padding: 24px 0 24px 0;
  }

  .company-table__label {
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #D29D00;
  }

  .company-table__value {
    font-size: 13px;
    line-height: 2.0;
  }

  /* ========== Event ========== */
.event-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.event-wrap {
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.event-tab {
  width: 130px;
  height: 80px;
  font-size: 12px;
}

/* ========== SP プルダウン ========== */
.event-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  z-index: 10;
}

.event-dropdown__selected {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: space-between;
          justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background: #D29D00;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-user-select: none;
          user-select: none;
}

.event-dropdown__arrow {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
  width: 16px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 12px;
  position: relative;
}

.event-dropdown__arrow::before,
.event-dropdown__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  -webkit-transition: -webkit-transform 0.35s ease;
          transition: transform 0.35s ease;
}

.event-dropdown__arrow::before {
  left: 0;
  -webkit-transform: translateY(-50%) rotate(45deg);
          transform: translateY(-50%) rotate(45deg);
}

.event-dropdown__arrow::after {
  right: 0;
  -webkit-transform: translateY(-50%) rotate(-45deg);
          transform: translateY(-50%) rotate(-45deg);
}

/* 開いた時：上向きに反転 */
.event-dropdown__selected.is-open .event-dropdown__arrow::before {
  -webkit-transform: translateY(-50%) rotate(-45deg);
          transform: translateY(-50%) rotate(-45deg);
}

.event-dropdown__selected.is-open .event-dropdown__arrow::after {
  -webkit-transform: translateY(-50%) rotate(45deg);
          transform: translateY(-50%) rotate(45deg);
}

.event-dropdown__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  z-index: 100;
  box-sizing: border-box;
}

.event-dropdown__list.is-open {
  display: block;
}

.event-dropdown__item {
  padding: 16px 20px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  -webkit-transition: background 0.2s ease;
          transition: background 0.2s ease;
}

.event-dropdown__item:last-child {
  border-bottom: none;
}

.event-dropdown__item.is-active {
  color: #D29D00;
  font-weight: 700;
}

.event-dropdown__item:hover {
  background: rgba(210,157,0,0.15);
}

/* ========== Event パネル ========== */
  .event-box {
    width: 100%;
    height: 850px;
    position: relative;
    overflow: hidden;
  }

  .event-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
  }

  .event-panel.is-active {
    display: block;
  }

  .ep-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    -webkit-transition: opacity 1s ease;
            transition: opacity 1s ease;
    background-color: #111;
    background-size: cover;
    background-position: center;
  }

  .ep-bg.is-show {
    opacity: 1;
  }

  .ep-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to top,
      rgba(17,17,17,1)    0%,
      rgba(17,17,17,0.98) 20%,
      rgba(17,17,17,0.85) 38%,
      rgba(17,17,17,0.5)  52%,
      rgba(17,17,17,0.1)  65%,
      rgba(17,17,17,0)    75%
    );
  }

  .event-panel__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
    padding: 20px 20px 28px;
    box-sizing: border-box;
    margin-left: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
            align-items: flex-start;
  }

  .event-panel__text {
    font-size: 13px;
    line-height: 2.1;
    color: #fff;
    width: 100%;
  }
  /* ========== Community ========== */
  .community-hero {
    padding: 48px 24px;
  }

  .community-hero__en {
    font-size: 10px;
    margin: 0 0 14px;
  }

  .community-hero__title {
    font-size: 22px;
    margin: 0 0 14px;
    line-height: 1.5;
  }

  .community-hero__sub {
    font-size: 13px;
  }

  .community-block__title-bar {
    font-size: 16px;
    height: 50px;
  }

  .community-block__inner {
    -webkit-flex-direction: column;
            flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
    min-height: auto;
  }

  .community-photos--left,
  .community-photos__item {
    width: 100%;
    height: 220px;
    position: relative;
    flex-shrink: 0;
  }

  .community-photos--right {
    width: 100%;
    -webkit-flex-direction: row;
            flex-direction: row;
    gap: 10px;
  }

  .community-photos__item {
    flex: 1;
    height: 160px;
  }

  .community-text-wrap--right,
  .community-text-wrap--left {
    padding: 0;
    width: 100%;
  }

  .community-text--right,
  .community-text--left {
    max-height: none;
    overflow-y: visible;
  }

  .community-list li {
    font-size: 13px;
    padding: 12px 0;
  }

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

  .footer {
    margin-top: 60px;
    padding: 40px 0 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0 24px 32px;
  }

  /* ロゴとLINEを包む新しいdiv用 */
  .footer__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 0;
  }

  .footer__logo,
  .footer__line {
    margin: 0;
  }

  .footer__logo img {
    height: 42px;
  }

  /* ナビゲーションは元のまま */
  .footer__nav {
    justify-content: center;
    width: 100%;
  }

  .footer__nav ul {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__nav a {
    font-size: 13px;
  }

  .footer__copyright p {
    font-size: 11px;
  }

  /* Page Top */
  #page-top {
    right: 4px;
    bottom: 16px;
    font-size: 80%;
  }


  /* ========== Page Top ========== */
  #page-top {
    right: 4px;
    bottom: 16px;
    font-size: 80%;
  }

}

