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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #D15601;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

/* === レイアウト === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: #333333;
}

/* === グリッド表示 === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* === カードデザイン === */
.card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 24px;
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(209, 86, 1, 0.1);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333333;
}

.card p {
  font-size: 14px;
  color: #666;
}

/* === ボタン === */
.button {
  display: inline-block;
  background: #D15601;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.button:hover {
  background: #B54901;
  opacity: 1;
}

.button-secondary {
  background: #fff;
  color: #D15601;
  border: 2px solid #D15601;
}

.button-secondary:hover {
  background: #D15601;
  color: #fff;
}

/* === アニメーション === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ヘッダー === */
header {
  padding: 20px 0;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #D15601;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo a:hover .logo-img {
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #D15601;
  opacity: 1;
}

nav a.active {
  color: #D15601;
  font-weight: 600;
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #D15601;
  border-radius: 1px;
}

.lang-switch {
  font-size: 14px;
  padding: 5px 10px;
  border: 1px solid #ffffff;
  border-radius: 4px;
}

/* === フッター === */
footer {
  padding: 40px 20px;
  background: #f4f4f4;
  text-align: center;
  font-size: 14px;
  color: #777;
}

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

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #D15601;
  text-decoration: none;
  font-weight: 500;
  margin: 0 8px;
}

.footer-links a:hover {
  color: #B54901;
  opacity: 1;
}

.footer-links span {
  color: #999;
  margin: 0 8px;
}

/* === ヒーローセクション === */
.hero {
  background: linear-gradient(135deg, #D15601 0%, #F57C00 50%, #FF8F00 100%);
  color: white;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 30%, 
    transparent 70%, 
    rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* === サービスカード === */
.service-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(209, 86, 1, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #FFF3E0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #D15601;
}

/* === フォーム要素 === */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #D15601;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333333;
}

.required {
  color: #D15601;
}

/* === レスポンシブデザイン === */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 20px 15px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

/* === 上部に戻るボタン === */
#scrollToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #D15601;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#scrollToTop:hover {
  background-color: #B54901;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

/* モバイルでは非表示 */
@media (max-width: 768px) {
  #scrollToTop {
    display: none;
  }
}

/* === 交互配置レイアウト === */
.alternate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 400px;
}

.alternate-layout.alternate-reverse {
  direction: rtl;
}

.alternate-layout.alternate-reverse > * {
  direction: ltr;
}

.content-left,
.content-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 500px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.text-content {
  max-width: 500px;
  padding: 20px;
}

.text-content h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 24px;
  line-height: 1.4;
}

.text-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 0;
}

/* タブレット・モバイル対応 */
@media (max-width: 1024px) {
  .alternate-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .alternate-layout.alternate-reverse {
    direction: ltr;
  }
  
  .text-content h2 {
    font-size: 28px;
  }
  
  .text-content p {
    font-size: 16px;
  }
  
  .image-placeholder {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .alternate-layout {
    gap: 30px;
  }
  
  .text-content {
    padding: 10px;
  }
  
  .text-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .text-content p {
    font-size: 14px;
  }
  
  .image-placeholder {
    height: 250px;
  }
}