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

:root {
  /* Color Palette - Warm Orange & Yellow */
  --primary-orange: #ff8c42;
  --primary-yellow: #ffb347;
  --light-orange: #ffd4a3;
  --light-yellow: #fff4e6;
  --warm-peach: #ffcba4;
  --soft-cream: #fef9f3;
  
  /* Supporting Colors */
  --warm-white: #fffbf8;
  --light-gray: #f8f6f4;
  --text-dark: #5d4037;
  --text-medium: #8d6e63;
  --text-light: #a1887f;
  --accent-green: #81c784;
  --accent-blue: #64b5f6;
  
  /* Fonts */
  --font-primary: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  /* Shadows */
  --shadow-soft: 0 8px 32px rgba(255, 140, 66, 0.15);
  --shadow-medium: 0 12px 40px rgba(255, 140, 66, 0.2);
  --shadow-strong: 0 16px 48px rgba(255, 140, 66, 0.25);
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--warm-white);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
}

h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 16px;
  color: var(--text-medium);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-full {
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 251, 248, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 140, 66, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 251, 248, 0.98);
  box-shadow: var(--shadow-soft);
}

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

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  font-family: var(--font-secondary);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
  transition: width 0.3s ease;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary-orange);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--soft-cream) 0%, var(--light-yellow) 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
  top: 20%;
  right: 20%;
  opacity: 0.8;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--light-orange), var(--warm-peach));
  bottom: 30%;
  left: 10%;
  opacity: 0.6;
  animation-delay: -2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-yellow), var(--light-orange));
  top: 50%;
  left: 40%;
  opacity: 0.7;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
  border-radius: 2px;
}

.section-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: var(--warm-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

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

.profile-image {
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-orange), var(--warm-peach));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.profile-image i {
  font-size: 80px;
  color: white;
}

.about-name {
  text-align: center;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.about-role {
  font-size: 1.1rem;
  color: var(--primary-orange);
  font-weight: 500;
  margin-bottom: 24px;
}

.about-description {
  margin-bottom: 32px;
}

.about-skills h4 {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  padding: 8px 0;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-list i {
  color: var(--primary-orange);
  font-size: 14px;
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--soft-cream) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--light-orange), var(--warm-peach));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconsize{
  width: 60%;
  height: 60%;
}

.service-title {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-description {
  color: var(--text-medium);
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 8px 0;
  color: var(--text-medium);
  position: relative;
  padding-left: 24px;
}

.service-features li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-size: 12px;
}

/* Portfolio Section */
/* Portfolio Section - JSによる表示件数制限用 */
.portfolio-item.hidden-by-js {
  /* .portfolio-item.hidden と同じスタイル */
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.portfolio {
  padding: var(--section-padding);
  background: var(--warm-white);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: white;
  border: 2px solid var(--light-orange);
  border-radius: var(--border-radius);
  color: var(--primary-orange);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-orange);
  color: white;
  box-shadow: var(--shadow-soft);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.portfolio-item {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.portfolio-image {
  height: 200px;
  background: color(#FFFFFF);
  position: relative;
  overflow: hidden;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder i {
  font-size: 48px;
  color: white;
  opacity: 0.8;
}

.portfolio-content {
  padding: 24px;
}

.portfolio-title {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.portfolio-category {
  color: var(--primary-orange);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.portfolio-description {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.5;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--soft-cream) 100%);
}

.contact-content {
  display: block;
}

.contact-info h3,p{
  color: var(--text-dark);
  margin-bottom: 16px;
  text-align: center;
}

.contact-text strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-text span {
  color: var(--text-medium);
  font-size: 14px;
}

.contact-form {
  max-width: 800px;
  background: white;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 8px;
}

.required {
  color: var(--primary-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

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

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-info h3 {
  color: var(--primary-yellow);
  margin-bottom: 4px;
}

.footer-info p {
  color: #ccc;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #666;
}

.footer-bottom p {
  color: #ccc;
  font-size: 14px;
  margin: 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-orange {
  color: var(--primary-orange);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }


/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
  :root {
      --section-padding: 60px 0;
  }
  
  .hero-container {
      gap: 40px;
      min-height: 70vh;
  }
  
  .hero-title {
      font-size: 2.5rem;
  }
  
  .services-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 32px;
  }
  
  .portfolio-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
  }
  
  .contact-content {
      gap: 40px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
      --section-padding: 50px 0;
      --container-padding: 0 16px;
  }
  
  /* Navigation */
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background-color: var(--warm-white);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: var(--shadow-soft);
      padding: 20px 0;
      gap: 16px;
  }
  
  .nav-menu.active {
      left: 0;
  }
  
  .nav-toggle {
      display: flex;
  }
  
  .nav-toggle.active .bar:nth-child(2) {
      opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Hero Section */
  .hero-container {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 40px;
      min-height: 60vh;
  }
  
  .hero-title {
      font-size: 2.2rem;
  }
  
  .hero-buttons {
      justify-content: center;
      flex-wrap: wrap;
  }
  
  .hero-image {
      height: 300px;
      order: -1;
  }
  
  /* Section Headers */
  .section-title {
      font-size: 2rem;
  }
  
  /* About Section */
  .about-content {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
  }
  
  .profile-image {
      width: 160px;
      height: 160px;
  }
  
  .profile-image i {
      font-size: 60px;
  }
  
  /* Services Section */
  .services-grid {
      grid-template-columns: 1fr;
      gap: 24px;
  }
  
  .service-card {
      padding: 32px 24px;
  }
  
  /* Portfolio Section */
  .portfolio-filter {
      gap: 12px;
  }
  
  .filter-btn {
      padding: 8px 16px;
      font-size: 14px;
  }
  
  .portfolio-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  /* Contact Section */
  .contact-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  
  .contact-form {
      padding: 32px 24px;
  }
  
  /* Footer */
  .footer-content {
      flex-direction: column;
      gap: 20px;
      text-align: center;
  }
  
  .footer-links {
      flex-wrap: wrap;
      justify-content: center;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  :root {
      --section-padding: 40px 0;
      --container-padding: 0 12px;
  }
  
  /* Navigation */
  .nav-container {
      padding: 0 16px;
      height: 60px;
  }
  
  .nav-logo a {
      font-size: 1.3rem;
  }
  
  .nav-menu {
      top: 60px;
  }
  
  /* Hero Section */
  .hero {
      padding: 80px 0 40px;
  }
  
  .hero-container {
      min-height: 50vh;
      gap: 30px;
  }
  
  .hero-title {
      font-size: 1.8rem;
      line-height: 1.3;
  }
  
  .hero-subtitle {
      font-size: 1rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 16px;
  }
  
  .btn {
      padding: 12px 24px;
      font-size: 14px;
      width: 100%;
      max-width: 280px;
  }
  
  .hero-image {
      height: 250px;
  }
  
  .shape-1 {
      width: 120px;
      height: 120px;
  }
  
  .shape-2 {
      width: 90px;
      height: 90px;
  }
  
  .shape-3 {
      width: 60px;
      height: 60px;
  }
  
  /* Typography */
  h1 {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 1.8rem;
  }
  
  h3 {
      font-size: 1.5rem;
  }
  
  .section-title {
      font-size: 1.8rem;
  }
  
  .section-subtitle {
      font-size: 1rem;
  }
  
  /* About Section */
  .profile-image {
      width: 140px;
      height: 140px;
  }
  
  .profile-image i {
      font-size: 50px;
  }
  
  .about-name {
      font-size: 1.6rem;
  }
  
  .about-role {
      font-size: 1rem;
  }
  
  /* Services Section */
  .service-card {
      padding: 24px 20px;
  }
  
  .service-icon {
      width: 60px;
      height: 60px;
  }
  
  .service-icon i {
      font-size: 28px;
  }
  
  .service-title {
      font-size: 1.3rem;
  }
  
  /* Portfolio Section */
  .portfolio-filter {
      flex-direction: column;
      align-items: center;
      gap: 8px;
  }
  
  .filter-btn {
      width: 100%;
      max-width: 200px;
      text-align: center;
  }
  
  .portfolio-image {
      height: 160px;
  }
  
  .portfolio-placeholder i {
      font-size: 36px;
  }
  
  .portfolio-content {
      padding: 20px;
  }
  
  .portfolio-title {
      font-size: 1.2rem;
  }
  
  /* Contact Section */
  .contact-info {
      text-align: center;
  }
  
  .contact-item {
      flex-direction: column;
      text-align: center;
      padding: 20px;
  }
  
  .contact-item i {
      width: 40px;
      height: 40px;
  }
  
  .contact-form {
      padding: 24px 20px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
      padding: 10px 12px;
      font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Footer */
  .footer {
      padding: 30px 0 15px;
  }
  
  .footer-links {
      flex-direction: column;
      gap: 12px;
  }
}

/* Very Small Screens */
@media (max-width: 320px) {
  .hero-title {
      font-size: 1.6rem;
  }
  
  .section-title {
      font-size: 1.6rem;
  }
  
  .hero-image {
      height: 200px;
  }
  
  .shape-1 {
      width: 100px;
      height: 100px;
  }
  
  .shape-2 {
      width: 75px;
      height: 75px;
  }
  
  .shape-3 {
      width: 50px;
      height: 50px;
  }
  
  .service-card,
  .contact-form {
      padding: 20px 16px;
  }
  
  .profile-image {
      width: 120px;
      height: 120px;
  }
  
  .profile-image i {
      font-size: 40px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-shapes,
  .contact-form,
  .footer {
      display: none;
  }
  
  .hero {
      padding: 20px 0;
      background: white !important;
  }
  
  .section-title::after {
      display: none;
  }
  
  .btn {
      display: none;
  }
  
  body {
      font-size: 12pt;
      line-height: 1.4;
      color: black !important;
      background: white !important;
  }
  
  .service-card,
  .portfolio-item {
      box-shadow: none;
      border: 1px solid #ccc;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-shapes .shape {
      will-change: transform;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
  }
  
  .hero-shapes .shape {
      animation: none;
  }
  
  body {
      scroll-behavior: auto;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
      --warm-white: #2a2a2a;
      --light-gray: #333333;
      --text-dark: #f5f5f5;
      --text-medium: #cccccc;
      --text-light: #aaaaaa;
      --soft-cream: #3a3a3a;
      --light-yellow: #4a4a3a;
  }
  
  .navbar {
      background: rgba(42, 42, 42, 0.95);
      border-bottom: 1px solid rgba(255, 140, 66, 0.2);
  }
  
  .service-card,
  .portfolio-item,
  .contact-form,
  .contact-item {
      background: #333333;
      border: 1px solid #444444;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
      background: #2a2a2a;
      border-color: #444444;
      color: #f5f5f5;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
      border-color: var(--primary-orange);
      background: #333333;
  }
}