/* style.css - 全体完全版（ハンバーガーアニメーション + close-btn削除 + sp-only対応 + スライドインメニュー） */

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #fff;
  background-color: #000;
}

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

a:hover {
  color: gold;
}

/* Header */
header.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  transition: background 0.3s ease;
}

header.header.scrolled {
  background: rgba(0, 0, 0, 0.8);
}

.logo img {
  height: 40px;
}

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

.nav li a {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* ハンバーガーメニュー用アニメーション */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* モバイルメニュー：右からスライド */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #000;
  color: #ccc;
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  transition: right 0.4s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
  font-size: 1.5rem;
}


/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav ul {
    display: none;
  }
}





/* slide-in Animation */
.mobile-menu.slide-in {
  animation: slideInRight 0.3s forwards;
}

.mobile-menu.slide-out {
  animation: slideOutRight 0.3s forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}




@keyframes slideOutRight {
  from {
    transform: translateX(0%);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}


/* Main Visual */
.main-visual {
  height: 100vh;
  background: linear-gradient(135deg, #111, #333);
  color: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.main-text div {
  font-size: 3.2rem;
  font-weight: bold;
  animation: blurFadeIn 2.8s ease-out both;
  filter: blur(8px);
  opacity: 0;
}


@keyframes blurFadeIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
  }
  50% {
    opacity: 0.5;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}


@media (min-width: 769px) {
  .main-text div {
    font-size: 3.9rem;
  }
}






.catch h2 {
  margin-top: 30px;
  font-size: 1.5rem;
  color: #ccc;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  .catch h2 {
    font-size: min(5vw, 1.02rem);
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
}

.catch p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #ccc;
  animation: fadeInUp 1.4s ease-out both;
}

.scroll-down {
  margin-top: 40px;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Section Gradients */
.services {
  background: linear-gradient(135deg, #222, #111);
}

.works {
  background: linear-gradient(135deg, #fff, #eee);
  color: #000;
}

.contact {
  background: linear-gradient(135deg, #111, #333);
}

/* Grid */
.services-grid, .works-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .services-grid, .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Card Styles */
.service-item, .work-item {
  transform: scale(0.85);
  transform-origin: top center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}

.work-item {
  background: #fff;
  color: #fff;
}

.service-item:hover, .work-item:hover {
  transform: scale(0.8);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
  border-color: gold;
}

/* Section Layout */
.section-inner {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 60px;
  font-size: 1rem;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bg-white {
  background: #fff;
  color: #000;
}

.bg-black {
  background: #111;
  color: #fff;
}

/* Profile Section */
.profile-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

.profile-photo {
  flex: 0 0 260px;
  max-width: 260px;
}

.profile-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.profile-text {
  flex: 1;
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
  }
  .profile-photo img {
    max-width: 286px;
  }
  .profile-text {
    padding: 20px;
  }
}

.service-item {
  background: #fff;
  padding: 30px;
  border-radius: 30px;
  text-align: center;
  cursor: pointer;
  color: #000;
}

.work-item {
  background: #616161;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

.service-item img, .work-item img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}

.service-item:hover, .work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Contact */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input, .contact textarea {
  padding: 10px;
  border: none;
  border-radius: 4px;
  width: 100%;
  background-color: #fff;
  color: #000;
}

.contact textarea {
  min-height: 120px;
}

.contact button {
  padding: 12px;
  background: gold;
  color: #000;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #e5c100;
}

@media (min-width: 769px) {
  .contact-inner form {
    max-width: 600px;
    margin: 0 auto;
  }
}

footer {
  padding: 20px;
  text-align: center;
  background: #000;
  color: #fff;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav ul {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .services-grid, .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav ul {
    display: none;
  }
}

@media (max-width: 480px) {
  .services-grid, .works-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  position: relative;
  background: #fff;
  color: #000;
  max-width: 600px;
  width: 90%;
  padding: 2.5rem 2rem 2rem 2rem; /* ← 上を広めに確保 */
  border-radius: 8px;
  z-index: 2001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
  z-index: 2002;
}

.modal-body h3 {
  margin-top: 1.2rem; /* ← タイトルと×の距離を確保 */
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.4;
}


.modal-body p {
  font-size: 1rem;
  color: #333;
}

.modal-body img {
  max-width: 50%;
  height: auto;
  margin: 20px auto;
  display: block;
}


/* リード文セクション追加 */
.lead-section {
  padding: 60px 20px;
  text-align: center;
  color: #000;
}

.lead-text {
  max-width: 1000px;
  margin: 0 auto;
}

.lead-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.8;
}

.lead-body {
  font-size: 1rem;
  color: #333;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .lead-heading {
    font-size: 1.3rem;
  }

  .lead-body {
    font-size: 0.95rem;
  }
}

/* lead-sectionとaboutの間だけ詰める */
.lead-section {
  margin-bottom: -50px; /* デフォルトより小さめ */
}

#about {
  margin-top: 0;
}

/* スマホ専用改行表示 */
.sp-only {
  display: none;
}

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