/* ========== リセット・基本設定 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== テーマカラーセクション ========== */
.theme-blue {
  background-color: #eafaff;
}

.theme-blue h2 {
  color: #00C4FF;
}

.theme-red {
  background-color: #ffeded;
}

.theme-red h2 {
  color: #E60012;
}

/* ========== コンテナ共通 ========== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== ヘッダー共通 ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
}

header .logo img {
  height: 45px;    /* ここでヘッダーに収まる好みの高さに調整してください */
  width: auto;     /* 横幅は画像の比率に合わせて自動で計算される */
  margin: 5px 0;
  display: block;  /* 余計な隙間を消す */
}

header nav ul {
  list-style: none;
  display: flex;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #E60012;
}

header .contact-info a {
  color: #E60012;
  font-weight: bold;
}

header .logo a {
  display: block;    /* 横並び設定（flex）をやめてシンプルにする */
  line-height: 0;    /* 画像の下に変な隙間が出るのを防ぐ */
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 28px;
  padding: 10px;
  user-select: none;
}


/* ========== セクション共通スタイル ========== */
section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #222;
}

/* ========== ボタン共通 ========== */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
}

.btn-red { background-color: #E60012; color: #fff; }
.btn-blue { background-color: #00C4FF; color: #fff; }

/* ========== フッター共通 ========== */
footer {
  background-color: #333;
  color: #ccc;
  padding: 40px 0;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

footer .footer-info {
  flex: 1 1 300px;
  margin-bottom: 20px;
}

footer .footer-info p,
footer .footer-info address {
  font-size: 0.9rem;
  line-height: 1.4;
}

footer .footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

footer .footer-nav ul li {
  margin: 0 15px;
}

footer .footer-nav ul li a {
  color: #ccc;
  transition: color 0.3s;
}

footer .footer-nav ul li a:hover {
  color: #E60012;
}

/* 【重要】SNSアイコンのサイズを強制固定 */
footer .footer-social {
  display: flex;
  align-items: center;
}

footer .footer-social a {
  display: inline-block;
  margin: 0 10px;
  transition: opacity 0.3s;
}

footer .footer-social img {
  width: 32px !important;  /* 幅を32pxに固定 */
  height: 32px !important; /* 高さを32pxに固定 */
  object-fit: contain !important;
}

footer .footer-social a:hover {
  opacity: 0.7;
}

/* ========== 共通：画像3枚横並びレイアウト ========== */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.image-item {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
}

.image-item .image-wrapper {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.image-item .image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================
   スマホ共通設定（メディアクエリ）
========================= */
@media (max-width: 768px) {
  body {
    padding-top: 50px;
  }

  section {
    padding: 35px 0 !important; /* 先ほどの調整内容を維持 */
  }

  section h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
  }

  header {
    height: 50px;
    background: #ffffff;
  }

  header .container {
    height: 50px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
  }

  header .logo img {
    height: 30px;
    width: auto;
  }

  .contact-info {
    display: none;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    font-size: 24px;
  }

  header nav ul {
    display: none; 
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    border-top: 1px solid #eee;
    z-index: 999;
  }

  header nav ul.active {
    display: flex;
  }

  header nav ul li a {
    padding: 12px;
    display: block;
    text-align: center;
  }
}

/* --- common.css に追記 --- */
.footer-copyright {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2); 
  text-align: center;
  width: 100%;
}

.footer-copyright small {
  font-size: 0.8rem;
  color: #999;
}

