/* astelink - 時間はIT戦略で創造する */

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

:root {
  /* 名刺カラーパレット */
  --primary-yellow: #F5E167;
  --primary-green: #7DC6A4;
  --deep-green: #5FA585;
  --accent-teal: #89CCC3;
  --warm-cream: #FFF8E1;
  --text-dark: #2D5738;
  --text-purple: #8B4A89;
  --text-light: #666666;
  
  /* フォント */
  --font-main: "M PLUS 1p",'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  --font-accent: 'Georgia', 'Times New Roman', serif;
}

body {
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--warm-cream);
  overflow-x: hidden;
}

/* 美しい水彩背景画像 */
.watercolor-bg {
  position: relative;
  background: 
    url('/static/watercolor-bg.jpg') center center/cover no-repeat,
    linear-gradient(135deg, 
      var(--primary-yellow) 0%, 
      var(--accent-teal) 30%, 
      var(--primary-green) 70%, 
      var(--deep-green) 100%);
  /* 画質向上とスムーズな表示 */
  background-attachment: scroll;
  image-rendering: auto;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  will-change: transform;
}

.watercolor-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

@keyframes waterflow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

/* ヘッダーセクション */
.header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

.header-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.logo-img {
  height: clamp(60px, 8vw, 120px);
  width: auto;
  max-width: 50%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tagline {
  font-size: 5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-light);
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
}

/* セクション共通スタイル */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--primary-green));
  margin: 1rem auto;
  border-radius: 2px;
}

/* Aboutセクション */
.about-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.highlight-box {
  background: rgba(255, 248, 225, 0.9);
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--primary-green);
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(124, 198, 164, 0.15);
}

/* 会社概要テーブル */
.company-overview {
  margin: 2rem 0;
}

.company-overview h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.3rem;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(124, 198, 164, 0.1);
}

.overview-table th,
.overview-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(124, 198, 164, 0.2);
}

.overview-table th {
  background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
  color: white;
  font-weight: 600;
  width: 30%;
  min-width: 100px;
}

.overview-table td {
  color: var(--text-dark);
  font-weight: 500;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}

/* サービスカード */
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(124, 198, 164, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(124, 198, 164, 0.2);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(124, 198, 164, 0.25);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  display: block;
}

.service-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-features {
  margin-top: 1.5rem;
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* コンタクトセクション - 全幅背景 */
.contact-section-wrapper {
  position: relative;
  background: 
    url('/static/contact-bg.jpg') center center/cover no-repeat,
    linear-gradient(135deg, 
      rgba(124, 198, 164, 0.9) 0%, 
      rgba(95, 165, 133, 0.9) 50%, 
      rgba(137, 204, 195, 0.9) 100%);
  background-attachment: scroll;
  padding: 0 !important;
  margin: 0;
  min-height: 600px;
  align-items: center;
}

.contact-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.contact-section-wrapper .section {
  position: relative;
  z-index: 2;
}

.contact-section-wrapper .section-title {
  color: var(--text-dark);
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

/* コンタクトフォーム */
.contact-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(124, 198, 164, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  padding: 1rem;
  border: 2px solid rgba(124, 198, 164, 0.3);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(124, 198, 164, 0.1);
  background: white;
}

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

.submit-btn {
  background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 198, 164, 0.4);
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
}

.submit-btn:active {
  transform: translateY(0);
}

/* フッター */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--primary-green));
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .section {
    padding: 6rem 2rem;
  }
  
  .contact-section-wrapper {
    padding: 6rem 0;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 1rem;
  }
  
  .tagline {
    font-size: 1.8rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .contact-section {
    padding: 2rem;
    margin: 1rem;
  }
  
  .contact-section-wrapper {
    padding: 3rem 0;
    min-height: 500px;
  }
  
  .overview-table th,
  .overview-table td {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .overview-table th {
    width: 35%;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  .watercolor-bg::before {
    animation: none;
  }
  
  .service-card {
    transition: none;
  }
}

/* ユニークなアクセント要素 */
.decorative-element {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-yellow), transparent);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.decorative-element:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: -2s;
}

.decorative-element:nth-child(3) {
  bottom: 30%;
  left: 5%;
  animation-delay: -4s;
  background: radial-gradient(circle, var(--accent-teal), transparent);
}

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

/* スキル・技術スタック表示 */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.tech-tag {
  background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(124, 198, 164, 0.3);
}

/* アクセント文字 */
.accent-text {
  color: var(--text-purple);
  font-weight: 600;
}

.link-accent {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-accent:hover {
  color: var(--deep-green);
  text-decoration: underline;
}