@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --color-bg: #FFFFFF;
  --color-text: #111111;
  --color-accent: #666666;
  --color-border: #EEEEEE;
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --transition-speed: 0.6s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 2; /* Increased from 1.8 for better spacing */
  letter-spacing: 0.08em; /* Added slight letter spacing to Japanese text for a premium feel */
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.1em; /* Increased from 0.05em */
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

nav a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-text);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Main Content */
main {
  padding-top: 100px;
  min-height: calc(100vh - 150px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background-color: var(--color-text);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  overflow: hidden;
  background-color: #000;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
  z-index: 1;
}

.hero-slider li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: imageAnimation 40s linear infinite; /* 5 slides * 8s */
}

/* ユーザー指定の5枚の画像をヒーロースライダーに設定 */
.hero-slider li:nth-child(1) {
  background-image: url('メイン/IMG_3550.JPG');
  animation-delay: 0s;
}
.hero-slider li:nth-child(2) {
  background-image: url('三股の家/IMG_3537.JPG');
  animation-delay: 8s;
}
.hero-slider li:nth-child(3) {
  background-image: url('長田の家/IMG_3540.JPG');
  animation-delay: 16s;
}
.hero-slider li:nth-child(4) {
  background-image: url('乙房の家/IMG_3536.JPG');
  animation-delay: 24s;
}
.hero-slider li:nth-child(5) {
  background-image: url('乙房の家/IMG_3535.JPG');
  animation-delay: 32s;
}

/* 視認性向上のためのオーバーレイ */
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* 5枚用のフェードアニメーション調整 */
@keyframes imageAnimation {
  0% { opacity: 0; transform: scale(1.05); }
  2.5% { opacity: 1; }
  20% { opacity: 1; }
  22.5% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.hero .explore-btn {
  border: 1px solid #fff;
  color: #fff;
  padding: 1rem 3rem;
  text-transform: uppercase;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
  display: inline-block;
}

.hero .explore-btn:hover {
  background-color: #fff;
  color: #000;
}

/* Footer */
footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-accent);
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Works Slider */
.work-item {
  margin-bottom: 2rem;
}
.work-slider-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  background-color: #f5f5f5;
  overflow: hidden;
  margin-bottom: 1rem;
}
.work-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}
.work-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.work-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}
.slider-btn:hover {
  background-color: rgba(255, 255, 255, 1);
}
.slider-btn.prev {
  left: 10px;
}
.slider-btn.next {
  right: 10px;
}
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.slider-dot.active {
  background-color: #fff;
}

/* Utilities */
.pc-only {
  display: block;
}

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

/* Responsive */
@media (max-width: 768px) {
  /* Hide pc-only breaks */
  
  /* Text Scaling */
  body {
    font-size: 14px;
    line-height: 1.8;
  }

  .responsive-text {
    font-size: 0.95rem !important;
    text-align: left; /* Better readability on mobile than center aligned long text */
    padding: 0 1rem;
  }

  header {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  
  header.scrolled {
    padding: 1rem;
  }
  
  nav {
    margin-top: 1.5rem;
    width: 100%;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 0.85rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .container {
    padding: 3rem 1.25rem;
  }
  
  /* Works Page adjustments for mobile */
  .fade-in.delay-1[style*="display: flex"] {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .pc-only{
display:block;
}

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