/* =============================================================================
   共通スタイル（メインページ・作品詳細ページ共通）
   ============================================================================= */

/* カラーパレット定義 */
:root {
  /* ホライゾングリーン系カラーパレット */
  --horizon-green: #007a88;        /* メインのホライゾングリーン */
  --horizon-green-light: #6BB5A7;  /* 明るいホライゾングリーン */
  --horizon-green-dark: #3A7A70;   /* 濃いホライゾングリーン */
  --sky-blue: #87CEEB;              /* 空の青 */
  --sea-emerald: #5F9EA0;           /* 海のエメラルド */
  --warm-cream: #FFF8DC;            /* 温かみのあるクリーム */
  --soft-white: #FEFEFE;            /* 柔らかな白 */
  --gentle-gray: #696969;           /* 優しいグレー */
  --warm-brown: #8B7355;            /* 温かみのあるブラウン */
}

/* リセット & 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Sans','Yu Gothic UI','Meiryo',sans-serif;
  background: linear-gradient(180deg, var(--sky-blue) 0%, var(--warm-cream) 50%, var(--sea-emerald) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  color: var(--gentle-gray);
}

/* Header（共通） */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(74, 155, 142, 0.1);
  z-index: 1000;
  border-bottom: 1px solid rgba(74, 155, 142, 0.2);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.nav a {
  text-decoration: none;
  color: var(--horizon-green-dark);
  font-weight: 500;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--horizon-green), var(--horizon-green-light));
  transition: left 0.3s ease;
  z-index: -1;
}

.nav a:hover::before,
.nav a.active::before {
  left: 0;
}

.nav a:hover,
.nav a.active {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 155, 142, 0.3);
}

/* Main（共通） */
.main-content {
  margin-top: 70px;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Header（共通） */
.section { 
  margin-bottom: 100px; 
  position: relative;
  scroll-margin-top: 90px;
}

.section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--horizon-green), transparent);
  opacity: 0.3;
}

.section-header {
  background: linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  color: white;
  text-align: center;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 50px;
  font-size: 1.6rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(74, 155, 142, 0.3);
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Footer（共通） */
.footer {
  background: linear-gradient(135deg, var(--horizon-green-dark), var(--horizon-green));
  color: white;
  text-align: center;
  padding: 20px 20px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

.horizon-footer-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-blue), var(--horizon-green), var(--sea-emerald));
}

.footer p {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* =============================================================================
   メインページ専用スタイル
   ============================================================================= */

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 100px 0;
  margin-bottom: 100px;
  border-radius: 30px;
  position: relative;
  background: linear-gradient(180deg, var(--sky-blue) 0%, var(--horizon-green) 50%, var(--sea-emerald) 100%);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(74, 155, 142, 0.3);
}

/* 水平線の背景効果 */
.horizon-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(135, 206, 235, 0.8) 0%,
    rgba(135, 206, 235, 0.6) 45%,
    rgba(74, 155, 142, 0.9) 50%,
    rgba(95, 158, 160, 0.6) 55%,
    rgba(95, 158, 160, 0.8) 100%
  );
}

.sky-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: radial-gradient(circle at center top, rgba(135, 206, 235, 0.3), transparent);
}

@keyframes horizonGlow {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scaleX(0.8); }
  50% { opacity: 1; transform: translateY(-50%) scaleX(1.2); }
}

.sea-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: radial-gradient(circle at center bottom, rgba(95, 158, 160, 0.3), transparent);
}

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

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 25px;
  font-weight: bold;
  letter-spacing: 4px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: titleFloat 6s ease-in-out infinite;
}

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

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 50px;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

/* ホライゾンコンセプト */
.horizon-concept {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px 35px;
  border-radius: 20px;
  margin: 0 auto;
  max-width: 600px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.concept-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Profile Section */
.profile-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 80px 50px;
  border-radius: 30px;
  margin-bottom: 100px;
  box-shadow: 0 20px 60px rgba(74, 155, 142, 0.15);
  border: 1px solid rgba(74, 155, 142, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 155, 142, 0.03) 0%, transparent 70%);
  animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.profile-image-container {
  position: relative;
}

.profile-image-container::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(45deg, var(--sky-blue), var(--horizon-green), var(--sea-emerald));
  border-radius: 50%;
  animation: profileGlow 4s linear infinite;
  z-index: -1;
}

@keyframes profileGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-image { 
  width: 200px; 
  height: 200px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  border: 4px solid white;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 155, 142, 0.3);
}

.profile-avatar { 
  width: 160px; 
  height: 160px; 
  border-radius: 50%; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.profile-text { 
  flex: 1; 
  text-align: left; 
}

.profile-name { 
  font-size: 2.8rem; 
  color: var(--horizon-green-dark);
  margin-bottom: 15px; 
  font-weight: bold;
  position: relative;
}

.profile-name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, var(--horizon-green), var(--horizon-green-light));
  border-radius: 2px;
}

.profile-title { 
  font-size: 1.3rem; 
  color: var(--gentle-gray);
  margin-bottom: 35px;
  font-weight: 300;
  letter-spacing: 1px;
}

.profile-description { 
  font-size: 1.1rem; 
  color: var(--gentle-gray);
  line-height: 1.9;
  text-align: justify;
}

/* Color Concept Section */
.design-concept-section {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(15px);
      padding: 50px 50px;
      border-radius: 30px;
      margin-bottom: 100px;
      box-shadow: 0 20px 60px rgba(74, 155, 142, 0.15);
      border: 1px solid rgba(74, 155, 142, 0.1);
      position: relative;
      overflow: hidden;
      margin-left: auto;
      margin-right: auto;
    }

    .design-concept-section::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(74, 155, 142, 0.03) 0%, transparent 70%);
      animation: backgroundPulse 8s ease-in-out infinite;
    }

    .section-title {
      font-size: 2.2rem;
      font-weight: bold;
      margin-bottom: 50px;
      color: var(--horizon-green-dark);
      text-align: center;
      position: relative;
      z-index: 2;
    }

    .concept-section {
      margin-bottom: 50px;
      position: relative;
      z-index: 2;
    }

    .concept-title {
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 25px;
      color: var(--horizon-green-dark);
      text-align: center;
      position: relative;
    }

    .color-info {
      background: linear-gradient(135deg, var(--sky-blue) 0%, var(--sea-emerald) 100%);
      color: white;
      padding: 30px;
      border-radius: 20px;
      margin: 25px 0;
      font-weight: 500;
      box-shadow: 0 10px 30px rgba(74, 155, 142, 0.2);
      position: relative;
      overflow: hidden;
    }

    .color-info::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      background: linear-gradient(45deg, var(--sky-blue), var(--horizon-green), var(--sea-emerald));
      border-radius: 22px;
      z-index: -1;
      animation: borderGlow 3s linear infinite;
    }

    @keyframes borderGlow {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .color-title {
      font-weight: bold;
      font-size: 1.2rem;
      margin-bottom: 10px;
    }

    .concept-description {
      color: var(--gentle-gray);
      line-height: 1.9;
      margin-top: 25px;
      font-size: 1.1rem;
      text-align: justify;
    }

    .process-section {
      margin-top: 50px;
      position: relative;
      z-index: 2;
    }

    .process-title {
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 30px;
      color: var(--horizon-green-dark);
      position: relative;
    }

    .process-list {
      list-style: none;
      padding: 0;
    }

    .process-item {
      background: rgba(74, 155, 142, 0.05);
      backdrop-filter: blur(10px);
      margin: 20px 0;
      padding: 25px 30px;
      border-left: 4px solid var(--horizon-green);
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(74, 155, 142, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .process-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(74, 155, 142, 0.15);
    }

    .process-item strong {
      color: var(--horizon-green-dark);
      font-size: 1.1rem;
    }

/* About / License Section */
.about-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(74, 155, 142, 0.1);
  text-align: center;
  border: 1px solid rgba(74, 155, 142, 0.1);
}

.license-list { 
  list-style: none; 
  color: var(--gentle-gray);
  font-size: 1.1rem;
}

.license-list li { 
  margin-bottom: 15px;
  padding: 15px 25px;
  background: rgba(74, 155, 142, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--horizon-green);
  transition: all 0.3s ease;
}

.license-list li:hover {
  background: rgba(74, 155, 142, 0.1);
  transform: translateX(5px);
}

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

.skill-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(74, 155, 142, 0.15);
  text-align: center;
  border: 1px solid rgba(74, 155, 142, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 155, 142, 0.05), transparent);
  transition: left 0.5s ease;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(74, 155, 142, 0.25);
  border-color: var(--horizon-green-light);
}

.skill-icon {
  width: 90px; 
  height: 90px;
  margin: 0 auto 25px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem; 
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.1) rotate(5deg);
}

.figma-icon { background: linear-gradient(45deg,#F24E1E,#A259FF); }
.html-icon { background: linear-gradient(45deg,#E34F26,#F06529); }
.css-icon { background: linear-gradient(45deg,#1572B6,#33A9DC); }
.ai-icon { background: linear-gradient(45deg,#FF9A00,#FFBD2E); }
.ps-icon { background: linear-gradient(45deg,#31A8FF,#00C8FF); }

.skill-name { 
  font-size: 1.4rem; 
  color: var(--horizon-green-dark);
  margin-bottom: 15px; 
  font-weight: bold; 
}

.skill-stars { 
  font-size: 1.6rem; 
  color: #FFD700; 
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-description { 
  color: var(--gentle-gray);
  font-size: 1rem; 
  line-height: 1.7;
  text-align: justify;
}

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

.work-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 155, 142, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 155, 142, 0.1);
  position: relative;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-blue), var(--horizon-green), var(--sea-emerald));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.work-card:hover::before {
  transform: scaleX(1);
}

.work-card:hover { 
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(74, 155, 142, 0.25);
}

/* Work Link Styles */
.work-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.work-link:hover {
  text-decoration: none;
}

.work-image {
  width: calc(100% - 30px);
  height: 200px;
  background: white;
  margin: 15px; 
  border-radius: 12px; 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-content {
  padding: 0 30px 30px 30px; 
}

.work-title { 
  font-size: 1.4rem; 
  color: var(--horizon-green-dark);
  margin-bottom: 15px; 
  font-weight: bold;
  line-height: 1.4;
}

.work-tool,
.work-time,
.work-concept { 
  color: var(--gentle-gray);
  font-size: 0.95rem; 
  margin-bottom: 8px;
  line-height: 1.5;
}

.work-concept {
  font-style: italic;
  color: var(--horizon-green);
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 60px 50px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(74, 155, 142, 0.15);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(74, 155, 142, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-blue), var(--horizon-green), var(--sea-emerald));
}

.contact-title {
  font-size: 2.2rem;
  color: var(--horizon-green-dark);
  margin-bottom: 15px;
  font-weight: bold;
  position: relative;
}

.contact-description { 
  color: var(--gentle-gray);
  margin-bottom: 45px; 
  line-height: 1.9;
  font-size: 1.1rem;
}

.contact-form { 
  text-align: left; 
}

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

.form-group label {
  display: block; 
  margin-bottom: 10px; 
  color: var(--horizon-green-dark);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%; 
  padding: 15px 20px; 
  border: 2px solid rgba(74, 155, 142, 0.2);
  border-radius: 12px; 
  font-size: 16px; 
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none; 
  border-color: var(--horizon-green);
  box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
  background: white;
}

.form-group textarea { 
  height: 130px; 
  resize: none; 
  font-family: inherit;
}

.send-button {
  background: linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  color: white;
  padding: 18px 50px; 
  border: none; 
  border-radius: 35px;
  font-size: 1.2rem; 
  font-weight: 600;
  cursor: pointer; 
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(74, 155, 142, 0.3);
  position: relative;
  overflow: hidden;
}

.send-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.send-button:hover::before {
  left: 100%;
}

.send-button:hover { 
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 155, 142, 0.4);
}
/* =============================================================================
   作品詳細ページ専用スタイル
   ============================================================================= */

/* Back Button */
.back-button {
  background: linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .3s;
  margin-bottom: 30px;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 155, 142, 0.4);
}

/* Work Detail Page */
.work-detail-page .main-content {
  padding: 40px 20px;
}

/* Detail Container */
.detail-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 50px;
}

/* Work Detail Title */
.detail-container .work-title {
  font-size: 2.5rem;
  color: var(--horizon-green-dark);
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.detail-container .work-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Work Main Image */
.work-main-image {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

.work-main-image a {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: block;
  transition: transform 0.3s ease;
}

.work-main-image a:hover {
  transform: scale(1.02);
}

.work-main-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  max-height: 600px;
  object-fit: contain;
}

.work-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; 
  flex-wrap: wrap; 
  margin-top: 30px; 
}

.work-link-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px; 
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(74, 155, 142, 0.3);
  transition: all 0.3s ease;
}

.work-link-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 155, 142, 0.4);
}

/* Work Info Grid */
.work-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.info-card {
  background-color: rgba(74, 155, 142, 0.05);
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid var(--horizon-green);
}

.info-card h3 {
  color: var(--horizon-green-dark);
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.info-card p {
  color: #555;
  line-height: 1.6;
}

/* Work Description */
.work-description {
  background-color:  rgba(74, 155, 142, 0.05);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
}

.work-description h3 {
  color: var(--horizon-green-dark);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 2px solid var(--horizon-green);
  padding-bottom: 10px;
}

.work-description p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Process Section */
.process-section {
  margin-bottom: 40px;
}

.process-section h3 {
  color: var(--horizon-green-dark);
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: bold;
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.process-step {
  background-color: rgba(74, 155, 142, 0.05);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  position: relative;
}

.step-number {
  background-color: var(--horizon-green);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 15px;
}

.step-title {
  color: var(--horizon-green-dark);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.step-description {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Skills Used */
.skills-used {
  background-color: rgba(74, 155, 142, 0.05);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
}

.skills-used h3 {
  color: var(--horizon-green-dark);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skill-tag {
  background-color: var(--horizon-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Work Navigation */
.work-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 2px solid rgba(74, 155, 142, 0.05);
}

.nav-link {
  background:linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color .3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 155, 142, 0.4);
}

.nav-link.disabled {
  background-color: #ccc;
  cursor: pointer;
}

/* スクリーンリーダー用の見出し（視覚的には非表示） */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================================================================
   レスポンシブデザイン（共通・メインページ・作品詳細ページ）
   ============================================================================= */

@media (max-width: 768px) {
  /* 共通 */
  .nav { 
    gap: 15px; 
    padding: 0 10px; 
  }
  
  .nav a { 
    font-size: 18px; 
    padding: 6px 10px; 
  }
  
  .main-content { 
    padding: 0 15px; 
  }
  
  .footer { 
    padding: 20px 15px; 
  }

  /* メインページ */
  .hero-title { 
    font-size: 2.5rem; 
  }
  
  .hero-subtitle { 
    font-size: 1.3rem; 
  }
  
  .profile-section,
  .about-content,
  .contact-content { 
    padding: 30px 20px; 
  }
  
  .profile-content,
  .horizon-green-showcase { 
    flex-direction: column; 
    text-align: center; 
    gap: 30px; 
  }
  
  .skills-grid,
  .works-grid { 
    grid-template-columns: 1fr; 
  }

  /* 作品詳細ページ */
  .work-detail-page .main-content { 
    padding: 20px 15px; 
  }
  
  .detail-container { 
    padding: 30px 20px; 
  }
  
  .detail-container .work-title { 
    font-size: 2rem; 
  }
  
  .work-info-grid { 
    grid-template-columns: 1fr; 
  }
  
  .process-steps { 
    grid-template-columns: 1fr; 
  }
  
  .work-navigation { 
    flex-direction: column; 
    gap: 15px; 
  }
}

.work-main-image {
    flex-direction: row; /* 横並びを維持 */
    gap: 15px;
  }
      
      .work-main-image a {
    min-width: 200px; /* モバイルでも横並びを保つ */
    max-width: 100%;
  }


@media (max-width: 480px) {
  /* 共通 */
  .nav { 
    gap: 10px; 
  }
  
  .nav a { 
    font-size: 16px; 
    padding: 5px 8px; 
  }

  /* メインページ */
  .profile-image { 
    width: 150px; 
    height: 150px; 
  }
  
  .profile-avatar { 
    width: 120px; 
    height: 120px; 
  }

  /* 作品詳細ページ */
  .detail-container .work-title { 
    font-size: 1.8rem; 
  }
  
  .skills-tags { 
    justify-content: center; 
  }
   .work-main-image {
    flex-direction: column; /* 小さい画面でのみ縦並び */
    gap: 15px;
  }
  
  .work-main-image a {
    min-width: auto;
    max-width: 100%;
  }
}
/* =============================================================================
   Thanksページ専用スタイル
   ============================================================================= */

/* Thanks Section */
.thanks-section {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.thanks-container {
  background-color:rgba(255, 255, 255, 0.95);
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* Thanks Icon */
.thanks-icon {
  margin-bottom: 30px;
}

.check-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  color:#fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto;
  animation: checkScale 0.6s ease-out;
}

@keyframes checkScale {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Thanks Title */
.thanks-title {
  font-size: 2.2rem;
  color: var(--horizon-green-dark);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.thanks-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  font-style: italic;
}

/* Thanks Content */
.thanks-content {
  border-top: 2px solid var(--horizon-green);
  padding-top: 30px;
}

.thanks-message {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Thanks Actions */
.thanks-actions {
  margin-top: 40px;
}

.back-to-home {
  background: linear-gradient(135deg, var(--horizon-green), var(--horizon-green-light));
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(143, 101, 82, 0.3);
}

.back-to-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 155, 142, 0.4);
}

/* =============================================================================
   Thanksページ レスポンシブデザイン
   ============================================================================= */

@media (max-width: 768px) {
  .thanks-section {
    padding: 40px 15px;
    min-height: calc(100vh - 120px);
  }

  .thanks-container {
    padding: 40px 25px;
  }

  .check-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .thanks-title {
    font-size: 1.8rem;
  }

  .thanks-subtitle {
    font-size: 1rem;
  }

  .thanks-message {
    font-size: 1rem;
  }

  .back-to-home {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .thanks-container {
    padding: 30px 20px;
  }

  .check-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .thanks-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .thanks-subtitle {
    font-size: 0.9rem;
  }

  .thanks-message {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .back-to-home {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}