/*
Theme Name: ONE'S
Theme URI:
Author: ONE'S
Description: ONE'S 美容室 公式サイト テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ones
*/

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #F7F3EC;
  color: #2C2C2A;
  line-height: 1.7;
}

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

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

/* =====================
   Typography
   ===================== */
.en-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #BA7517;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 20px;
  font-weight: 500;
}

.section-title--light {
  color: #F7F3EC;
}

/* =====================
   Layout
   ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section--dark {
  background: #1F1C18;
}

/* =====================
   Header
   ===================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E8E5DE;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
}

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

.site-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

/* グロナビ */
.global-nav { display: flex; align-items: center; gap: 28px; }

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.global-nav ul li a {
  color: #2C2C2A;
  font-size: 13px;
  transition: color 0.2s;
}

.global-nav ul li a:hover { color: #BA7517; }

.global-nav ul li.nav-recruit a {
  color: #BA7517;
  font-weight: 500;
}

.header-reserve {
  display: inline-block;
  background: #BA7517;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.2s;
}

.header-reserve:hover { background: #EF9F27; color: #fff; }

/* ハンバーガー */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2C2C2A;
  transition: transform 0.3s, opacity 0.3s;
}

/* スマホメニュー */
.sp-nav {
  display: none;
  background: #1F1C18;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 99;
  padding: 20px 24px;
  border-top: 1px solid #3A3530;
}

.sp-nav.is-open { display: block; }

.sp-nav ul { list-style: none; }

.sp-nav ul li {
  border-bottom: 1px solid #3A3530;
}

.sp-nav ul li a {
  display: block;
  padding: 14px 0;
  color: #D3D1C7;
  font-size: 14px;
}

.sp-nav ul li.nav-recruit a { color: #FAC775; }

.sp-reserve {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: #BA7517;
  color: #412402;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 2px;
}

/* =====================
   FV スライダー
   ===================== */
#fv {
  position: relative;
  width: 100%;
  margin-top: 68px;
}

.fv-swiper {
  width: 100%;
  height: 100vh;
  min-height: 500px;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

/* スライド背景写真 */
.fv-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 6s ease;
}

.swiper-slide-active .fv-slide-bg {
  transform: scale(1);
}

/* オーバーレイ */
.fv-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 28, 24, 0.65) 0%,
    rgba(31, 28, 24, 0.35) 60%,
    rgba(31, 28, 24, 0.5) 100%
  );
}

/* テキストエリア */
.fv-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 80px;
  max-width: 700px;
  /* アニメーション初期状態 */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.swiper-slide-active .fv-inner {
  opacity: 1;
  transform: translateY(0);
}

.fv-sub {
  font-size: 11px;
  letter-spacing: 4px;
  color: #FAC775;
  margin-bottom: 16px;
}

.fv-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 500;
  color: #F7F3EC;
  margin-bottom: 14px;
  line-height: 1.45;
}

.fv-desc {
  font-size: 13px;
  color: #D3D1C7;
  margin-bottom: 32px;
}

.fv-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ページネーション */
.fv-pagination {
  bottom: 28px !important;
  left: 80px !important;
  width: auto !important;
  display: flex;
  gap: 8px;
}

.fv-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 3px;
  border-radius: 0;
  background: rgba(247, 243, 236, 0.4);
  opacity: 1;
  transition: background 0.3s;
}

.fv-pagination .swiper-pagination-bullet-active {
  background: #FAC775;
}

/* 矢印ボタン */
.fv-btn-prev,
.fv-btn-next {
  color: #F7F3EC !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(247,243,236,0.4);
  border-radius: 0;
  top: auto !important;
  bottom: 18px;
  transition: border-color 0.2s, background 0.2s;
}

.fv-btn-prev { right: 68px !important; left: auto !important; }
.fv-btn-next { right: 20px !important; }

.fv-btn-prev:hover,
.fv-btn-next:hover {
  background: rgba(186, 117, 23, 0.6);
  border-color: #FAC775;
}

.fv-btn-prev::after,
.fv-btn-next::after {
  font-size: 14px !important;
}

/* プログレスバー（自動再生の可視化） */
.fv-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(247,243,236,0.15);
  z-index: 10;
}

.fv-progress-bar {
  height: 100%;
  width: 0;
  background: #FAC775;
  transition: width linear;
}

.btn-primary {
  display: inline-block;
  background: #FAC775;
  color: #412402;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-primary:hover { background: #EF9F27; }

.btn-outline {
  display: inline-block;
  border: 1px solid #888780;
  color: #F7F3EC;
  font-size: 13px;
  padding: 12px 28px;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.btn-outline:hover { border-color: #FAC775; color: #FAC775; }

/* =====================
   3カラムメニュー
   ===================== */
.icon-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #D3D1C7;
}

.icon-nav__item {
  background: #F7F3EC;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.icon-nav__item:hover { background: #EAE5DA; }

.icon-nav__item .icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.icon-nav__item .title {
  font-size: 13px;
  font-weight: 500;
}

.icon-nav__item .desc {
  font-size: 11px;
  color: #5F5E5A;
}

/* =====================
   店舗一覧スライダー
   ===================== */
.stores-section { background: #F7F3EC; }

/* ヘッダー行：タイトル左／矢印右 */
.stores-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.stores-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 4px;
}

/* Swiperコンテナ：コンテナ幅を超えて見切れさせる */
.stores-swiper {
  width: 100%;
  padding: 4px 0 24px !important;
  /* 左端だけcontainerに合わせる */
  padding-left: calc((100vw - 1100px) / 2 + 24px) !important;
  overflow: visible;
}

.stores-swiper .swiper-wrapper { align-items: stretch; }

/* 矢印ボタン（独自配置） */
.stores-btn-prev,
.stores-btn-next {
  position: static !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid #D3D1C7;
  border-radius: 50%;
  color: #2C2C2A !important;
  background: #fff;
  margin: 0 !important;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.stores-btn-prev:hover,
.stores-btn-next:hover {
  border-color: #BA7517;
  background: #FAC775;
  color: #412402 !important;
}

.stores-btn-prev::after,
.stores-btn-next::after { font-size: 13px !important; }

/* カードスタイル */
.stores-swiper .swiper-slide { height: auto; }

.store-card {
  display: block;
  background: #fff;
  border: 1px solid #D3D1C7;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

.store-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.store-card__thumb {
  height: 180px;
  background: #EAE5DA;
  overflow: hidden;
}

.store-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-card:hover .store-card__thumb img { transform: scale(1.04); }

.store-card__body { padding: 16px; }

.store-card__name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.store-card__address {
  font-size: 11px;
  color: #888780;
  margin-bottom: 12px;
  line-height: 1.6;
}

.store-card__link {
  font-size: 11px;
  color: #BA7517;
  border-bottom: 1px solid #BA7517;
}

.stores-more {
  text-align: center;
  margin-top: 24px;
}

.stores-more a {
  font-size: 12px;
  color: #993C1D;
  border-bottom: 1px solid #993C1D;
}

/* =====================
   採用セクション
   ===================== */
.recruit-section { background: #1F1C18; }

.recruit-section .section-header {
  text-align: center;
  margin-bottom: 36px;
}

.recruit-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.recruit-photo {
  height: 320px;
  background: #3A3530;
  border-radius: 6px;
  overflow: hidden;
}

.recruit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit-text .lead {
  font-size: 13px;
  color: #D3D1C7;
  line-height: 1.8;
  margin-bottom: 20px;
}

.recruit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.recruit-badges .badge {
  font-size: 11px;
  background: #3A3530;
  color: #FAC775;
  padding: 6px 12px;
  border-radius: 20px;
}

/* =====================
   福利厚生・SDGs
   ===================== */
.benefits-section { background: #F7F3EC; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  background: #fff;
  border: 1px solid #D3D1C7;
  border-radius: 6px;
  padding: 20px 14px;
  text-align: center;
}

.benefit-card .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
}

.benefit-card .title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.benefit-card .desc {
  font-size: 11px;
  color: #5F5E5A;
  line-height: 1.6;
}

/* =====================
   オーナーメッセージ
   ===================== */
.owner-section { background: #1F1C18; }

.owner-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.owner-photo {
  border-radius: 6px;
  overflow: hidden;
}

.owner-photo img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* =====================
   News
   ===================== */
.news-section { background: #F7F3EC; }

.news-list {
  list-style: none;
  border-top: 1px solid #D3D1C7;
}

.news-list li {
  border-bottom: 1px solid #D3D1C7;
}

.news-list li a {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  font-size: 13px;
  transition: color 0.2s;
}

.news-list li a:hover { color: #BA7517; }

.news-date {
  color: #888780;
  white-space: nowrap;
  font-size: 12px;
}

/* =====================
   Footer
   ===================== */
#site-footer {
  background: #1F1C18;
  color: #888780;
  font-size: 11px;
}

.footer-main {
  padding: 48px 0 36px;
  border-bottom: 1px solid #3A3530;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F7F3EC;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-col-title {
  color: #F7F3EC;
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }

.footer-col ul li + li { margin-top: 8px; }

.footer-col ul li a {
  color: #888780;
  font-size: 11px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #FAC775; }

.footer-bottom {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: #5F5E5A;
}

/* スマホ固定フッターナビ */
.sp-footer-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #D3D1C7;
  z-index: 100;
}

.sp-footer-nav ul {
  list-style: none;
  display: flex;
}

.sp-footer-nav ul li {
  flex: 1;
  text-align: center;
}

.sp-footer-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  font-size: 10px;
  color: #5F5E5A;
  gap: 3px;
}

.sp-footer-nav ul li.nav-recruit a { color: #BA7517; }

.sp-footer-nav ul li a .nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  .stores-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .recruit-inner { grid-template-columns: 1fr; }
  .recruit-photo { height: 220px; }
}

@media (max-width: 640px) {
  /* ヘッダー */
  .global-nav { display: none; }
  .header-reserve { display: none; }
  .menu-toggle { display: flex; }

  /* FV スライダー SP */
  .fv-swiper { height: calc(100svh - 68px); min-height: 480px; }
  .fv-inner { padding: 0 24px; align-items: center; text-align: center; }
  .fv-title { font-size: clamp(24px, 7vw, 36px); }
  .fv-btns { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-outline { width: 240px; text-align: center; }
  .fv-pagination { left: 50% !important; transform: translateX(-50%); justify-content: center; }
  .fv-btn-prev, .fv-btn-next { display: none; }
  .btn-primary, .btn-outline { width: 240px; text-align: center; }

  /* 3カラム */
  .icon-nav { grid-template-columns: repeat(3, 1fr); }
  .icon-nav__item { padding: 18px 8px; }
  .icon-nav__item .desc { display: none; }

  /* 店舗スライダー SP */
  .stores-swiper { padding-left: 16px !important; }
  .stores-section__header { flex-direction: row; align-items: center; }
  .store-card__thumb { height: 140px; }

  /* 採用 */
  .recruit-inner { gap: 20px; }

  /* オーナー */
  .owner-inner { grid-template-columns: 1fr; gap: 20px; }

  /* 福利厚生 */
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }

  /* フッター */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* スマホ固定ナビ表示 */
  .sp-footer-nav { display: block; }
  #site-footer { padding-bottom: 56px; }

  /* セクション余白 */
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
}
