/* ===== 基本スタイル ===== */
:root {
  /* カラー変数 */
  --primary-color: #1c88e5;
  --primary-dark: #1565c0;
  --primary-light: #64b5f6;
  --secondary-color: #f5f5f5;
  --text-dark: #333333;
  --text-light: #767676;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #333333;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  
  /* サイズ変数 */
  --container-width: 1200px;
  --header-height: 80px;
  --section-padding: 80px;
  --section-padding-mobile: 50px;
}

/* リセットとボックスモデル */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 全体の基本スタイル */
html {
  scroll-behavior: smooth;
}

/* 日本語と韓国語のフォント設定 */
html[lang="ja"] body {
  font-family: 'Noto Sans JP', sans-serif;
}

html[lang="ko"] body {
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* コンテナスタイル */
.container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* セクションスタイル */
.section {
  padding: var(--section-padding) 0;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--bg-light);
}

/* ===== ヘッダー ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  height: var(--header-height);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navigation ul {
  list-style: none;
  display: flex;
}

.navigation li {
  margin: 0 15px;
}

.navigation a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.navigation a:hover,
.navigation a.active {
  color: var(--primary-color);
}

.navigation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navigation a:hover::after,
.navigation a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.language-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 500;
  padding: 5px 15px;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.language-btn:hover {
  color: var(--primary-color);
}

.contact-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

.mobile-menu {
  display: none;
  background-color: white;
  width: 100%;
  position: absolute;
  top: var(--header-height);
  left: 0;
  padding: 15px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 15px;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  display: block;
  padding: 8px 0;
  transition: color 0.3s ease;
}

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

/* ===== ヒーローセクション ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://pixabay.com/get/g7fba93d8a5cdefb2dc38be13b2ffa5df0dd25e40022fb1391e2cd4f85e0acde6d06ec8ea85abe466739ea4f6107a92b81d8d07163bc1c846322bdb8848aa207a_1280.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 0;
  margin-top: var(--header-height);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.btn-light:hover {
  background-color: transparent;
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ===== 会社概要セクション ===== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.feature-box {
  margin-bottom: 30px;
}

.feature-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-box p {
  color: var(--text-light);
}

/* ===== サービスセクション ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(28, 136, 229, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon i {
  font-size: 25px;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
}

/* ===== パートナーセクション ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.partner-card {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.partner-icon i {
  font-size: 25px;
}

.partner-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.partner-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== 成功事例セクション ===== */
.success-stories {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.success-story {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.story-image {
  flex: 1;
  min-width: 300px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  flex: 1;
  min-width: 300px;
  padding: 40px;
}

.story-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.story-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.story-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 10px;
}

.results-list {
  list-style-type: none;
}

.results-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.results-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--success-color);
  position: absolute;
  left: 0;
}

.success-story.reverse {
  flex-direction: row-reverse;
}

/* ===== お問い合わせセクション ===== */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.form-success {
  display: none;
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  text-align: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  margin-bottom: 20px;
}

.info-item i {
  color: var(--primary-color);
  font-size: 20px;
  margin-top: 3px;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

.info-item h4 {
  font-weight: 600;
  margin-bottom: 5px;
}

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

.map-container {
  margin-top: 30px;
}

.map-placeholder {
  width: 100%;
  height: 250px;
  background-color: #e9ecef;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.map-placeholder i {
  font-size: 40px;
  margin-bottom: 10px;
}

/* ===== フッター ===== */
#footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 70px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info {
  flex: 1;
  min-width: 300px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-links {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.footer-links-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 10px;
}

.footer-links-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-column a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: white;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* スクロールトップボタン */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  z-index: 99;
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
}