/* Basic Reset & General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  /* メインフォント */
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  /* Clear floats */
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0.8em;
  color: #2c3e50;
  /* Dark Blue Grey */
}

h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.5em;
}

p {
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  color: #3498db;
  /* Blue */
}

a:hover {
  color: #2980b9;
  /* Darker Blue */
}

/* Header */
header {
  background: #fff;
  color: #333;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* header .container を .header-container に変更 */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  /* containerのデフォルト */
  max-width: 1100px;
  /* containerのデフォルト */
  margin: auto;
  /* containerのデフォルト */
}

header .logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #e67e22;
  /* Orange */
  margin-bottom: 0;
  z-index: 101;
  /* メニューより手前に */
}

/* ハンバーガーメニューボタンのスタイル */
.hamburger-menu {
  display: none;
  /* PCでは非表示 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
  /* メニューより手前に */
  position: relative;
  /* ×印アニメーションのため */
  width: 40px;
  height: 40px;
}

.hamburger-menu-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

/* ハンバーガーメニューアクティブ時のスタイル (×印) */
.hamburger-menu.is-active .hamburger-menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active .hamburger-menu-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-active .hamburger-menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* グローバルナビゲーションの基本スタイル */
.global-nav ul {
  list-style: none;
  display: flex;
  /* PCでは横並び */
  margin: 0;
  /* デフォルトのマージンリセット */
  padding: 0;
  /* デフォルトのパディングリセット */
}

.global-nav ul li {
  margin-left: 20px;
  /* PCでのマージン */
}

.global-nav ul li a {
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 10px 5px;
  /* クリック範囲を広げる */
  display: block;
}

.global-nav ul li a:hover {
  color: #e67e22;
  /* Orange */
}


/* レスポンシブ調整 (スマートフォン向け) */
@media (max-width: 768px) {
  .header-container {
    /* スマホではロゴとハンバーガーメニューを両端に配置 */
    /* justify-content: space-between; は元からなのでOK */
  }

  .hamburger-menu {
    display: block;
    /* スマホでは表示 */
  }

  .global-nav {
    display: none;
    /* 通常時は非表示 */
    position: absolute;
    top: 100%;
    /* ヘッダーのすぐ下 */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 20px;
    border-top: 1px solid #eee;
  }

  .global-nav.is-open {
    display: block;
    /* 開いたときに表示 */
  }

  .global-nav ul {
    flex-direction: column;
    /* スマホでは縦並び */
    align-items: center;
    /* 中央寄せ */
    width: 100%;
  }

  .global-nav ul li {
    margin-left: 0;
    /* スマホでは左マージン不要 */
    width: 100%;
    text-align: center;
    /* テキスト中央寄せ */
  }

  .global-nav ul li a {
    padding: 15px 20px;
    /* スマホでのパディング調整 */
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .global-nav ul li:last-child a {
    border-bottom: none;
  }
}

/* Hero (KV) Section */
.hero {
  position: relative;
  height: 500px;
  /* Adjust as needed */
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover the area, might crop */
  z-index: -1;
  filter: brightness(0.6);
  /* Darken image for text readability */
}

.hero-content h2 {
  font-size: 2.8em;
  margin-bottom: 0.5em;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: #e67e22;
  /* Orange */
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  margin: 5px;
  border: none;
  /* ボタンに枠線が出ないように */
  cursor: pointer;
}

.cta-button:hover {
  background: #d35400;
  /* Darker Orange */
  color: #fff;
}

.cta-button.secondary {
  background: #3498db;
  /* Blue */
}

.cta-button.secondary:hover {
  background: #2980b9;
  /* Darker Blue */
}

.cta-button i {
  margin-left: 8px;
}


/* MVV Section */
/* MVV Section (私たちの想い) - Alternative Design */
.mvv-section-alt {
  /* 新しいクラス名 */
  padding: 80px 0;
  background-color: #ffffff;
  /* 白背景でクリーンに */
}

.mvv-section-alt .section-header {
  /* セクションヘッダーのスタイル */
  text-align: center;
  margin-bottom: 60px;
}

.mvv-section-alt .section-header h2 {
  font-size: 2.8em;
  color: #2c3e50;
  margin-bottom: 0.3em;
}

.mvv-section-alt .section-subtitle {
  /* サブタイトルも少し調整 */
  font-size: 1.2em;
  color: #555;
  max-width: 700px;
  /* 長すぎないように */
  margin: 0 auto;
  /* 中央寄せ */
  line-height: 1.6;
}

.mvv-item-alt {
  display: flex;
  align-items: center;
  /* アイコンとコンテンツを中央揃え（縦） */
  gap: 50px;
  /* アイコンとコンテンツの間隔 */
  margin-bottom: 50px;
}

.mvv-item-alt:last-child {
  margin-bottom: 0;
}

.mvv-item-icon-alt {
  flex-shrink: 0;
  font-size: 5em;
  /* アイコンを大きく */
  color: #e67e22;
  /* オレンジを基調 */
  width: 120px;
  /* アイコンの占有スペース */
  text-align: center;
}

.mvv-item-alt.vision-item .mvv-item-icon-alt {
  /* ビジョンのアイコン色を変える場合 */
  color: #3498db;
  /* ブルー */
}


.mvv-item-content-alt {
  flex-grow: 1;
}

.mvv-item-content-alt h3 {
  /* MISSION, VISION, VALUES */
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 0.2em;
  /* text-transform: uppercase; */
  /* 大文字にする場合 */
}

.mvv-item-content-alt h4 {
  /* 各要素のキャッチフレーズ */
  font-size: 1.4em;
  color: #e67e22;
  /* オレンジ */
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.4;
}

.mvv-item-alt.vision-item .mvv-item-content-alt h4 {
  color: #3498db;
  /* ブルー */
}


.mvv-item-content-alt p {
  font-size: 1.05em;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0;
}

.mvv-divider {
  /* 要素間の区切り線 */
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  margin: 60px auto;
  /* 上下のマージン */
  width: 80%;
}

/* Vision Item - アイコンとコンテンツの順序を逆にする */
.mvv-item-alt.vision-item {
  flex-direction: row-reverse;
  /* 要素の順序を反転 */
}

.mvv-item-alt.vision-item .mvv-item-content-alt {
  text-align: right;
  /* テキストを右寄せ */
}


/* Values Grid specific styles */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* 可変グリッド */
  gap: 25px;
  margin-top: 20px;
}

.value-block {
  padding: 20px;
  background-color: #f9f9f9;
  /* 少し背景色をつける */
  border-radius: 8px;
  text-align: center;
  /* バリューブロック内は中央寄せ */
  border: 1px solid #eee;
}

.value-icon {
  font-size: 2em;
  color: #e67e22;
  /* バリューアイコンの色 */
  margin-bottom: 10px;
  display: block;
  /* 中央寄せのため */
}

.value-block h5 {
  font-size: 1.15em;
  color: #333;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.value-block p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555;
}


/* レスポンシブ調整 (MVV Section - Alternative) */
@media (max-width: 992px) {
  .mvv-item-icon-alt {
    font-size: 4em;
    width: 100px;
  }

  .mvv-item-content-alt h3 {
    font-size: 2em;
  }

  .mvv-item-content-alt h4 {
    font-size: 1.3em;
  }
}


@media (max-width: 768px) {
  .mvv-section-alt .section-header h2 {
    font-size: 2.4em;
  }

  .mvv-section-alt .section-subtitle {
    font-size: 1.1em;
  }

  .mvv-item-alt,
  .mvv-item-alt.vision-item {
    flex-direction: column;
    /* 縦積みに変更 */
    text-align: center;
    /* 全体を中央寄せ */
    gap: 25px;
  }

  .mvv-item-alt.vision-item .mvv-item-content-alt {
    text-align: center;
    /* Visionも中央寄せ */
  }

  .mvv-item-icon-alt {
    margin-bottom: 10px;
    /* アイコンとテキストの間隔 */
    font-size: 4.5em;
    width: auto;
    /* 幅を自動に */
  }

  .mvv-item-content-alt h3 {
    font-size: 1.8em;
  }

  .mvv-item-content-alt h4 {
    font-size: 1.2em;
  }

  .mvv-item-content-alt p {
    font-size: 1em;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .value-block {
    padding: 15px;
  }
}

/* Services Section */
.services-section {
  padding: 60px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  /* For icon positioning */
  display: flex;
  /* Flexbox for better content alignment */
  flex-direction: column;
  /* Stack items vertically */
}

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

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  margin-bottom: 15px;
}

.service-card .card-icon {
  font-size: 2.5em;
  color: #3498db;
  /* Blue */
  margin-bottom: 10px;
  display: block;
  /* Make icon block for margin */
}

.service-card h3 {
  margin-top: 0.5em;
  font-size: 1.3em;
}

.service-card p {
  font-size: 0.95em;
  color: #555;
  flex-grow: 1;
  /* Make p take available space */
  margin-bottom: 15px;
  /* Ensure space before CTA */
}

.service-cta {
  display: inline-block;
  margin-top: auto;
  /* Push CTA to the bottom */
  padding: 8px 15px;
  background-color: #2ecc71;
  /* Green */
  color: white;
  border-radius: 4px;
  font-weight: bold;
}

.service-cta:hover {
  background-color: #27ae60;
  /* Darker Green */
  color: white;
}

.service-cta i {
  margin-left: 5px;
}


/* Story Section のデザイン変更 */
.story-section {
  padding: 80px 0;
  background-color: #fdfaf6;
  /* 薄いベージュ系の背景色 */
  /* background-image: url('https://www.transparenttextures.com/patterns/light-paper-fibers.png'); */
  /* テクスチャ例 */
  /* background-repeat: repeat; */
}

.story-header {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 30px;
}

.story-image-wrapper {
  flex-shrink: 0;
  /* 画像が縮まないように */
}

.ceo-image {
  /* 代表の画像スタイル */
  width: 200px;
  /* 少し小さくしてバランス調整 */
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-intro h2 {
  font-size: 2.5em;
  /* メインタイトルを大きく */
  color: #2c3e50;
  margin-bottom: 0.2em;
  text-align: left;
}

.story-subtitle {
  font-size: 1.2em;
  color: #7f8c8d;
  /* やや薄いグレー */
  margin-bottom: 1em;
  font-style: italic;
}

.story-intro h3 {
  /* 代表者挨拶 */
  font-size: 1.5em;
  color: #e67e22;
  margin-bottom: 0;
}

.story-timeline {
  position: relative;
  max-width: 800px;
  /* 読みやすい幅に */
  margin: 0 auto;
}

/* タイムラインの縦線 (オプション) */
.story-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  /* アイコンの中心に合わせる */
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #e0e0e0;
  /* 薄いグレーの線 */
  border-radius: 2px;
  z-index: 1;
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
  /* ::before の z-index のため */
  z-index: 2;
  /* 線より手前に */
}

.timeline-icon {
  flex-shrink: 0;
  width: 40px;
  /* アイコンの背景円のサイズ */
  height: 40px;
  background-color: #e67e22;
  /* オレンジ */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  margin-right: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  position: relative;
  /* 線の上にくるように調整 */
}

.timeline-content {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
}

.timeline-content h4 {
  font-size: 1.3em;
  color: #34495e;
  /* やや濃い青灰色 */
  margin-top: 0;
  margin-bottom: 0.8em;
}

.timeline-content p {
  line-height: 1.7;
  margin-bottom: 1em;
  color: #555;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.timeline-content strong {
  color: #e67e22;
  font-weight: 600;
}

.timeline-content blockquote {
  margin: 1.5em 0;
  padding: 15px 20px;
  background-color: #f9f9f9;
  /* 薄いグレーの背景 */
  border-left: 5px solid #e67e22;
  /* 左にオレンジのアクセントライン */
  font-style: italic;
  color: #555;
}

.timeline-content blockquote p {
  margin-bottom: 0.5em;
}

.timeline-content blockquote p:last-child {
  margin-bottom: 0;
}


.timeline-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1em;
}

.timeline-content ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.5em;
  color: #555;
}

.timeline-content ul li::before {
  content: "\f00c";
  /* Font Awesome Check icon */
  font-family: "Font Awesome 5 Free";
  /* Font Awesome 5 or 6 */
  font-weight: 900;
  /* For Solid icons */
  position: absolute;
  left: 0;
  color: #2ecc71;
  /* 緑色 */
}


.story-inline-image {
  width: 100%;
  max-width: 450px;
  /* 画像が大きくなりすぎないように */
  height: auto;
  border-radius: 6px;
  margin: 20px auto;
  /* 中央寄せ */
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.story-inline-image.small-image {
  max-width: 250px;
}

.highlight-message {
  background-color: #fff9e6;
  /* 薄い黄色 */
  padding: 15px;
  border-left: 4px solid #f39c12;
  /* やや濃い黄色 */
  margin: 1.5em 0;
  font-weight: 500;
  color: #333;
  /* テキスト色調整 */
}


/* Recruit Section */
.recruit-section {
  padding: 60px 0;
  text-align: center;
  background: #fff;
}

.recruit-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
}

.recruit-list li {
  padding: 8px 0;
  font-size: 1.1em;
  border-bottom: 1px dashed #eee;
}

.recruit-list li:last-child {
  border-bottom: none;
}

.recruit-list i {
  color: #3498db;
  /* Blue */
  margin-right: 10px;
  width: 20px;
  /* Align icons */
}

.priority-note {
  font-weight: bold;
  color: #c0392b;
  /* Red */
  margin-top: 10px;
}

/* News Section */
.news-section {
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.news-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  /* To contain image radius */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-item-content {
  padding: 15px;
  flex-grow: 1;
  /* Make content take available space */
  display: flex;
  flex-direction: column;
}

.news-item h4 {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  /* Adjust spacing */
}

.news-item h4 time {
  font-size: 0.8em;
  color: #777;
  display: block;
  margin-bottom: 5px;
}

.news-item p {
  font-size: 0.9em;
  color: #555;
  flex-grow: 1;
  /* Make p take available space */
  margin-bottom: 10px;
}

.news-item a.read-more {
  /* Specific class for read-more link */
  display: block;
  text-align: right;
  font-weight: bold;
  color: #e67e22;
  margin-top: auto;
  /* Push to bottom */
}

.news-item a.read-more:hover {
  color: #d35400;
}

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


/* Contact Section */
.contact-section {
  padding: 60px 0;
  background: #2c3e50;
  /* Dark Blue Grey */
  color: #ecf0f1;
  /* Light Grey Text */
  text-align: center;
}

.contact-section h2 {
  color: #fff;
}

.contact-section p {
  font-size: 1.1em;
  margin-bottom: 1em;
}

.contact-section p i {
  margin-right: 8px;
  color: #e67e22;
  /* Orange for icons */
}

.contact-section .cta-button {
  background: #e67e22;
  color: #fff;
}

.contact-section .cta-button:hover {
  background: #d35400;
}


/* Footer */
footer {
  background: #1c2833;
  /* Very Dark Blue */
  color: #bdc3c7;
  /* Silver */
  text-align: center;
  padding: 30px 0;
}

.social-links a {
  color: #bdc3c7;
  margin: 0 10px;
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e67e22;
  /* Orange */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    margin-top: 10px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  header nav ul li {
    margin: 8px 0;
    width: 100%;
    text-align: center;
  }

  header nav ul li a {
    display: block;
    padding: 5px 0;
  }

  .hero-content h2 {
    font-size: 2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .mvv-grid,
  .service-grid,
  .news-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }

  /* Story Section Responsive */
  .story-header {
    flex-direction: column;
    text-align: center;
  }

  .story-intro h2,
  .story-intro h3,
  .story-subtitle {
    text-align: center;
  }

  .ceo-image {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }

  .story-timeline::before {
    left: 18px;
    /* アイコンサイズが若干変わる場合など微調整 */
  }

  .timeline-icon {
    width: 36px;
    height: 36px;
    font-size: 1em;
    margin-right: 15px;
  }

  .timeline-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 0.9em;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }


  .story-intro h2 {
    font-size: 2em;
  }

  /*
   .timeline-item {
      flex-direction: column;
      align-items: center;
   }
   .timeline-icon {
       margin-right: 0;
       margin-bottom: 15px;
   }
   .story-timeline::before {
       left: 50%;
       margin-left: -2px;
   }
   */
  .service-card {
    padding: 15px;
  }

  .news-item-content {
    padding: 15px;
  }
}