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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  font-weight: 300;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 0.06em;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background-color: transparent;
  transition: background-color 0.4s ease;
  z-index: 1000;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.logo {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

nav {
  display: flex;
  gap: 2.5rem;
  font-size: 0.9rem;
}

nav a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #e07a30;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 0 3rem;
  padding-top: 200px;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #6b6560;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.hero-name {
  font-size: min(8.5vw, 8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.hero-name .accent {
  color: #e07a30;
}

.hero-tagline {
  font-size: 1rem;
  color: #555555;
  margin: 2rem 0;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.hero-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 2rem;
}

.hero-button:hover {
  color: #e07a30;
  border-color: #e07a30;
}

/* Works Section */
#works {
  padding: 6rem 3rem;
  background-color: #ffffff;
  position: relative;
}

.works-header {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  font-family: 'Inter', sans-serif;
}

.works-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.film-perforation {
  display: none;
}

.project-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e8e8 0%, #f2f2f2 50%, #e8e8e8 100%);
  border: 1px solid #d8d8d8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: #e07a30;
  box-shadow: 0 0 20px rgba(224, 122, 48, 0.15);
}

.project-details {
  padding: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-detail-block {
  border-left: 2px solid #e07a30;
  padding-left: 0.75rem;
}

.detail-label {
  font-size: 1rem;
  font-weight: 700;
  color: #e07a30;
  margin-bottom: 0.4rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.detail-text {
  font-size: 1rem;
  color: #555555;
  line-height: 1.8;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #e07a30;
  color: #e07a30;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.project-link:hover {
  background-color: #e07a30;
  color: #ffffff;
}

.project-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-category {
  font-size: 0.75rem;
  color: #e07a30;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* About Section */
#about {
  padding: 6rem 3rem;
  background-color: #f5f5f5;
  position: relative;
  color: #1a1a1a;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-title-wrap {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.about-initial {
  font-size: 15rem;
  font-weight: 800;
  opacity: 0.06;
  line-height: 0.8;
  font-family: 'Inter', sans-serif;
}

.about-content {
  max-width: 100%;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  filter: none;
}

.about-content h3 {
  color: #e07a30;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.06em;
}

.about-content p {
  font-size: 1rem;
  line-height: 2.2;
  margin-bottom: 2.5rem;
  color: #1a1a1a;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a1a1a;
}

.timeline-year {
  color: #e07a30;
  font-weight: 700;
}

/* Skills Section */
#skills {
  padding: 6rem 3rem;
  background-color: #ffffff;
  color: #1a1a1a;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.skill-card {
  text-align: center;
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  stroke: #e07a30;
  stroke-width: 1.2px;
  fill: none;
  transition: filter 0.3s ease;
}

.skill-card:hover .skill-icon svg {
  filter: drop-shadow(0 0 8px rgba(224, 122, 48, 0.5));
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

.skill-desc {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.7;
  font-family: 'Noto Sans JP', sans-serif;
}

/* Service Section */
#service {
  padding: 6rem 3rem;
  background-color: #ffffff;
}

.service-header-wrap {
  margin-bottom: 3rem;
}

.service-header {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.5rem;
}

.service-subtitle {
  font-size: 0.85rem;
  color: #888888;
  letter-spacing: 0.05em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #e07a30;
  box-shadow: 0 4px 20px rgba(224, 122, 48, 0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e07a30;
  opacity: 0.4;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.service-desc {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.service-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid #e8e8e8;
  padding-top: 1.2rem;
}

.service-items li {
  font-size: 0.85rem;
  color: #333333;
  padding-left: 1rem;
  position: relative;
}

.service-items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #e07a30;
}

@media (max-width: 768px) {
  #service {
    padding: 3rem 1.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
#contact {
  padding: 6rem 3rem;
  background-color: #f5f5f5;
  text-align: center;
}

.contact-heading {
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

.contact-subtitle {
  font-size: 1rem;
  color: #888888;
  margin-bottom: 2rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.contact-email {
  font-size: 1.3rem;
  color: #e07a30;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d0d0d0;
  background: #ffffff;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e07a30;
}

.form-group textarea {
  height: 160px;
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #e07a30;
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.form-submit:hover {
  background: #c96820;
}

.form-submit:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-family: 'Noto Sans JP', sans-serif;
  display: none;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 3px solid #2e7d32;
  display: block;
}

.form-message.error {
  background: #fdecea;
  color: #c62828;
  border-left: 3px solid #c62828;
  display: block;
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #e07a30;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: #c96820;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  border-color: #e07a30;
  color: #e07a30;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5px;
}

/* Footer */
footer {
  background-color: #f0f0f0;
  padding: 2rem 3rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e07a30, transparent);
}

footer p {
  font-size: 0.9rem;
  color: #888888;
}

/* Social Icons */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.2rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #1a1a1a;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background-color: #e07a30;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Responsive */
/* Tablet */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  header {
    padding: 0 1rem;
  }

  nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.97);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .mobile-toggle {
    display: block;
  }

  #hero {
    padding: 60px 1.5rem 0;
  }

  #works {
    padding: 3rem 1.5rem;
  }

  .works-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    height: 220px;
    aspect-ratio: unset;
  }

  #about {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .about-image img {
    width: 180px;
    height: 180px;
  }

  .about-initial {
    display: none;
  }

  #service {
    padding: 3rem 1.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  #skills {
    padding: 3rem 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  #contact {
    padding: 3rem 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .logo {
    font-size: 0.7rem;
  }

  .hero-label {
    font-size: 0.7rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .project-card {
    aspect-ratio: 4 / 3;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-heading {
    font-size: clamp(1.1rem, 5.5vw, 2.2rem);
  }
}
/* WordPress admin bar 対応（ログイン時の固定ヘッダーずれ防止） */
.admin-bar header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar header {
    top: 46px;
  }
}
