/* ============================================
   株式会社e-yo コーポレートサイト
   カラーテーマ: オレンジ・イエロー系（温かみ・たのしさ）
   ============================================ */

/* --- リセット & ベース --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #FFFAF5;
  line-height: 1.8;
}

a {
  color: #E07B39;
  text-decoration: none;
  transition: opacity 0.3s;
}
a:hover {
  opacity: 0.7;
}

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

/* --- 共通ユーティリティ --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #E07B39;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: #999;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.1em;
}

.section-bg {
  background-color: #FFF8F0;
}

/* --- ヘッダー --- */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #E07B39;
}
.header-logo span {
  color: #F5C16C;
}

.header-nav {
  display: flex;
  list-style: none;
  gap: 28px;
}

.header-nav a {
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #E07B39;
  transition: width 0.3s;
}
.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}
.header-nav a:hover {
  opacity: 1;
  color: #E07B39;
}

/* ハンバーガーメニュー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #555;
  transition: 0.3s;
}

/* --- ヒーローセクション --- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #F5C16C;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-title {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  line-height: 1.6;
}

/* --- お知らせカード --- */
.news-list {
  display: grid;
  gap: 24px;
}

.news-item {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-date {
  font-size: 0.85rem;
  color: #999;
}

.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.news-tag--info {
  background-color: #FFF0E0;
  color: #E07B39;
}
.news-tag--media {
  background-color: #E8F5E9;
  color: #4A7C59;
}
.news-tag--event {
  background-color: #FFF8E1;
  color: #F5A623;
}

.news-title-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}
.news-title-link:hover {
  color: #E07B39;
}

/* お知らせ本文 */
.news-body {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.8;
}

/* お知らせ事業タグ */
.news-tag--biz {
  background-color: #f0f0f0;
  color: #888;
}

/* お知らせ写真 */
.news-images {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.news-image {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.news-image:hover {
  opacity: 0.8;
}

/* ライトボックス（写真拡大表示） */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
}

/* --- バナーリンク --- */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.banner-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s;
}
.banner-card:hover {
  transform: scale(1.02);
}

.banner-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.6));
}

.banner-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
}

.banner-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.banner-card-desc {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* バナーカードのカラーバリエーション（写真がない場合） */
.banner-card--orange { background-color: #E07B39; }
.banner-card--yellow { background-color: #F5C16C; }
.banner-card--brown { background-color: #A0784C; }
.banner-card--green { background-color: #7DB88F; }

/* --- 理念セクション --- */
.philosophy {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.philosophy-text {
  font-size: 1.1rem;
  line-height: 2;
  color: #555;
}

/* --- お問い合わせセクション --- */
.contact-section {
  background-color: #E07B39;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

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

.contact-info {
  margin-top: 24px;
}

.contact-tel {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.contact-email {
  font-size: 1rem;
  opacity: 0.9;
}

.contact-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 40px;
  background-color: #fff;
  color: #E07B39;
  font-weight: bold;
  border-radius: 30px;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 1;
}

/* --- フッター --- */
.footer {
  background-color: #333;
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
}

.footer-company {
  margin-bottom: 16px;
}

.footer-company-name {
  font-size: 1.1rem;
  color: #F5C16C;
  font-weight: bold;
  margin-bottom: 8px;
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #ccc;
  font-size: 0.85rem;
}
.footer-nav a:hover {
  color: #F5C16C;
}

.footer-copy {
  font-size: 0.8rem;
  color: #888;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .header-nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: 50vh;
    min-height: 300px;
  }
  .hero-title {
    font-size: 1.8rem;
  }

  .banner-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.5rem;
  }

  .contact-tel {
    font-size: 1.4rem;
  }

  .news-image {
    width: 100%;
    height: 180px;
  }
}
