/* ===== ベーススタイル ===== */
body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

/* ===== ヘッダー ===== */
header {
  background: #000;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

/* ===== ヒーロースライダー ===== */
.hero {
  padding: 0;
  text-align: center;
  background: none;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background: #000;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
}


.hero-caption {
  margin-top: 3rem;
  font-size: 1.5rem;
  text-align: center;
  color: #333;
}

/* ===== Masonry風 スクロールギャラリー ===== */
.scroll-gallery {
  display: flex;
  gap: 2rem;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.scroll-gallery .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.scroll-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.scroll-item.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* レスポンシブ：スマホでは1カラムに */
@media (max-width: 768px) {
  .scroll-gallery {
    flex-direction: column;
  }
}
.elfsight-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Aboutページ用 */
.nobr {
  white-space: nowrap;
}

.about-section {
  padding: 80px 20px;
  background-color: #fafafa;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-photo {
  width: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-text h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 4px solid #333;
  padding-left: 10px;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: #444;
}

.career-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.career-list > li {
  margin-bottom: 16px;
  font-weight: 500;
}

.career-list ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style-type: disc;
  font-weight: normal;
}

.career-list li ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #555;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }

  .about-photo {
    width: 80%;
  }

  .about-text h1 {
    text-align: center;
  }

  .about-text {
    text-align: left;
    padding: 0 10px;
  }
}

.plan-section {
  padding: 4rem 1rem;
  background: #f8f8f8;
}

.plan-section h1,
.plan-section h2,
.plan-section h3 {
  margin-top: 2rem;
  font-weight: bold;
}

.plan-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.policy-table th,
.policy-table td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: center;
  background-color: #fff;
}



.contact-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #444;
}

.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-section p {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-top: 1rem;
}

.contact-form label span {
  color: red;
  margin-left: 0.25em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form button {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #555;
}

/* portfolio専用スライダー */
.portfolio-slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.portfolio-slider .slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70vh;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlide 18s infinite;
}
@keyframes fadeSlide {
  0%, 100% { opacity: 0; }
  10%, 30% { opacity: 1; }
  40%, 90% { opacity: 0; }
}

.portfolio-slider .slider img:nth-child(2) {
  animation-delay: 6s;
}
.portfolio-slider .slider img:nth-child(3) {
  animation-delay: 12s;
}

.portfolio-heading {
  text-align: center;
  margin: 60px 0 40px; /* 上60px 下40pxくらいが自然 */
}

.portfolio-heading h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.portfolio-heading p {
  font-size: 16px;
  color: #777;
}
@media (max-width: 600px) {
  .portfolio-heading {
    margin: 40px 0 30px;
  }

  .portfolio-heading h2 {
    font-size: 24px;
  }

  .portfolio-heading p {
    font-size: 14px;
  }
}



/* ===== ギャラリー（Lightbox対応） ===== */
.gallery {
  columns: 2;
  column-gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}
.gallery-item {
  margin-bottom: 16px;
  break-inside: avoid;
  display: none; /* 初期は非表示、JSで制御 */
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}
.gallery-item img:hover {
  transform: scale(1.03);
}

/* 2カラム→レスポンシブで1カラム */
.gallery {
  columns: 2;
  column-gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  display: none; /* JSで制御 */
}
.gallery-item img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}
.gallery-item img:hover {
  transform: scale(1.03);
}

/* フィルターボタン */
.filter-buttons {
  text-align: center;
  margin: 40px 0 20px;
}
.filter-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
  background: #eee;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}
.filter-buttons button.active,
.filter-buttons button:hover {
  background: #333;
  color: #fff;
}
/* スマホ対応 */
@media (max-width: 600px) {
  .filter-buttons {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-buttons button {
    font-size: 13px;
    padding: 6px 12px;
    flex: 1 1 auto; /* 幅を自動調整 */
  }
}

@media (max-width: 768px) {
  .gallery {
    columns: 1;
  }
}

/* スマホ用：ロゴを非表示にする */
@media screen and (max-width: 768px) {
  .logo {
    display: none;
  }
}
/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  color: #fff;
}