/* Base Styles & Reset */
:root {
  --primary-color: #6daebd;
  /* Fresh soft blue */
  --secondary-color: #8abf9a;
  /* Fresh soft green */
  --text-color: #333333;
  --text-light: #777777;
  --bg-color: #ffffff;
  --bg-light: #fdfdfd;
  --border-color: #eaeaea;
  --error-color: #e74c3c;
  --font-main: 'Noto Sans JP', sans-serif;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

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

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.appear {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.appear {
  opacity: 1;
  transform: translateX(0);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.1em;
  transition: color var(--transition-speed);
}

.logo a:hover {
  color: var(--primary-color);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: color var(--transition-speed);
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--text-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-color);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.4s ease;
}

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

.mobile-nav-list {
  text-align: center;
}

.mobile-nav-list li {
  margin-bottom: 30px;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  padding: 50px 70px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* About Section */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 70px;
}

.about-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
}

.about-image figure {
  margin: 0;
  padding: 0;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s ease;
}

.about-image figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 10px 0 4px;
  letter-spacing: 0.08em;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text {
  flex: 1.2;
}

.about-name {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 5px;
  font-weight: 700;
}

.about-intro {
  font-size: 1.1rem;
  margin-bottom: 35px;
  color: var(--text-light);
  line-height: 1.9;
}

.about-block {
  margin-bottom: 35px;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.about-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.about-block h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.about-block h4::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

.about-list {
  list-style-type: disc;
  padding-left: 20px;
  color: var(--text-light);
}

.about-list li {
  margin-bottom: 10px;
}

.about-message {
  margin-top: 25px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 1.05rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.skill-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.skill-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.skill-card:hover .skill-icon {
  background-color: var(--primary-color);
  color: #fff;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.skill-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.work-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  background-color: #fff;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.work-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-info {
  padding: 25px;
}

.work-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-color);
}

.work-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Contact Section */
.contact {
  position: relative;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-info p {
  color: var(--text-light);
}

.contact-email {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.2rem;
  transition: color var(--transition-speed);
}

.contact-email:hover {
  color: var(--text-color);
}

.contact-image {
  margin-top: 30px;
  text-align: center;
}

.contact-image figure {
  margin: 0;
  padding: 0;
}

.contact-image img {
  max-width: 300px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-speed);
}

.contact-image img:hover {
  transform: scale(1.03);
}


.form-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background-color: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
}

.required {
  color: var(--error-color);
  margin-left: 5px;
  font-size: 0.8rem;
  vertical-align: top;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fafafa;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(109, 174, 189, 0.15);
  background-color: #fff;
}

textarea {
  resize: vertical;
}

.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
  min-height: 18px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--text-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform 0.2s;
  margin-top: 15px;
}

.submit-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.form-success {
  text-align: center;
  padding: 20px;
  background-color: #f1f8f4;
  color: #2e7d32;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #c8e6c9;
}

.hidden {
  display: none;
}

/* Footer */
.footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-msg {
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 1rem;
}

.copyright {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-image {
    width: 100%;
    position: static;
  }
}

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

  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-content {
    padding: 35px 25px;
    width: 90%;
  }

  .section {
    padding: 70px 0;
  }

  .form-wrapper {
    padding: 30px 20px;
  }
}