/* ===== 全体設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: serif;
  color: #333;
  background: #fff;
}
img{
  width: 100%;
  display: block;
}
a{
  text-decoration: none;
  color: inherit;
}
.sp_only{
  display: none;
}
@media (max-width:767px) {
  .sp_only{
    display: block;
}
}

/* ===== 変数 ===== */
:root {
  --header-h: 70px;
}
/* ===== スクロール補正 ===== */
html {
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
}

/* ===== ローディング画面 ===== */
#loading {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s ease;
}

.loading-logo {
  width: 60%;
  max-width: 500px;
  margin: auto;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: softIn 2s ease forwards;
}
@keyframes softIn {
  0% {
    opacity: 0;
    transform: scale(0.98);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

#loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.03),
    transparent 60%
  );
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

#loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 100;
  /* 初期非表示 */
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
/* 表示状態 */
.header.show {
  transform: translateY(0);
  box-shadow: #ccc 0px 0px 4px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  width: 80px;
  display: flex;
  justify-content: center;
}
.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav a {
  text-decoration: none;
  color: #4a4a4a;
  font-size: 14px;
  transition: 0.2s;
  display: inline-block;
}
.nav a:hover {
  color: #2d2d2d;
  transform: scale(1.08);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  position: relative;
  z-index: 300;
}

/* ===== オーバーレイ(SPメニュー背景) ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 150;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===== SPメニュー ===== */
.sp-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: #fff;
  padding: 100px 30px;
  transition: 0.3s;
  z-index: 200;
  max-width: 320px;
}
.sp-menu.open {
  right: 0;
}
.sp-menu a {
  display: block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #333;
}
.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
.sp-divider {
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}
.sp-parent {
  position: relative;
  margin-bottom: 20px;
}
.sp-parent-link {
  display: block;
  text-decoration: none;
  color: #333;
}
.sp-toggle {
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  font-size: 18px;
}
.sp-sub {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
  padding-left: 10px;
}
.sp-sub.open {
  max-height: 200px;
}
.sp-sub a {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

/* ===== ファーストビュー ===== */
.fv {
  position: relative;
  overflow: hidden;
}

/* Swiper */
.fv-swiper,
.fv-swiper .swiper-slide {
  width: 100%;
  height: auto;
}
.fv-swiper img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ズーム */
.swiper-slide {
  opacity: 0 !important;
  transition: opacity 2s ease;
}
.swiper-slide-active {
  opacity: 1 !important;
}
.swiper-slide img {
  transform: scale(1);
  transition: transform 8s ease-out;
}
.swiper-slide-active img {
  transform: scale(1.05);
}
.swiper-slide,
.swiper-slide img {
  will-change: transform, opacity;
}

/* ===== コンセプト ===== */
.concept {
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 0px;
}
h1{
  width: 30%;
  max-width: 180px;
  margin:1em auto;
}

/* ===== シリーズ ===== */
.series {
  margin: auto;
  width: 90%;
  max-width: 1000px;
}
.series h2{
  text-align: center;
  margin: 1em auto;
}
.series-inner{
  display: flex;
  gap: 40px;
  margin: auto;
}
.series-item {
  flex: 1;
  text-decoration: none;
  color: #333;
}
.series-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ddd;
  margin-bottom: 20px;
}
.series-text h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.series-text p {
  font-size: 14px;
}

/* ===== アトマイザー ===== */
.atomizer {
  width: 90%;
  max-width: 1000px;
  margin: 100px auto;
  text-align: center;
}
.atomizer h2{
  margin: 1em auto;
}
.atomizer-box{
  width: 100%;
  max-width: 800px;
  display: block;
  margin: auto;
}
.atomizer-box p{
  display: block;
  margin: 1em auto;
}

/* ===== フッター ===== */
.footer {
  padding: 40px;
  text-align: center;
  font-size: 12px;
  background: #555;
  color: #fff;
}
.footer-links {
  margin-bottom: 16px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-links a {
  padding: 0 1em;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
}
.footer-links a:hover {
  opacity: 0.6;
}

/* ===== レスポンシブ ===== */
@media (max-width: 767px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .series-inner {
    flex-direction: column;
    align-items: center;
  }
  .series-item{
    width: 100%;
    max-width: 400px;
  }
}