:root {
  --main-color: #f57c00;
  --text-color: #333;
  --bg-color: #fff;
  --gray-light: #f5f5f5;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ヘッダー内の.containerのみにFlexboxを適用 */
.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* モバイル時はヘッダーを縦並びに変更 */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
  
  .nav {
    position: relative;
  }
}

.site-header {
  background: var(--bg-color);
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  color: var(--main-color);
  font-weight: bold;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--main-color);
}

.nav {
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-list li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    position: absolute;
    right: 10px;
    top: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-list.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }
}

.hero {
  background: url('../img/hero.png') center center/cover no-repeat;
  position: relative;
  color: white;
  padding: 120px 0;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.hero-title, .hero-subtitle, .cta-button {
  position: relative;
  z-index: 1;
}
.cta-button {
  background: var(--main-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.about {
  padding: 60px 0;
  background: var(--bg-color);
}

.about h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.services {
  background: var(--gray-light);
  padding: 60px 0;
  text-align: center;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.service-item {
  flex: 1 1 220px; /* ← 伸縮幅を持たせて行揃えが自然に */
  max-width: 240px;
  min-width: 180px;
  text-decoration: none;
  color: var(--text-color);
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, transform 0.3s;
  text-align: center;
}


.service-item img {
  width: 180px;           /* 幅を固定 */
  height: 180px;          /* 高さを固定（正方形） */
  object-fit: contain;   /* 画像の比率を保持しつつ枠内に収める */
  margin-bottom: 0.5rem;
}

.service-item h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

.site-footer {
  background: var(--gray-light);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

.profile-photo {
  width: 180px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

table th {
  background: #f57c00;
  color: white;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background-color: var(--main-color);
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #e56f00;
}

.contact-form span {
  color: red;
  margin-left: 0.2em;
}

.service-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 1rem 0 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#pricing h4 {
  margin-top: 3rem;
  font-size: 1.2rem;
  color: var(--main-color);
}

.portfolio-list {
  list-style: none;
  padding-left: 1rem;
  margin: 2rem 0;
}

.portfolio-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.basic-program-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.basic-program-table th,
.basic-program-table td {
  border: 1px solid #ccc;
  padding: 1rem;
  vertical-align: middle; /* ← これが縦中央揃え */
  text-align: left;
}

.basic-program-table th {
  background-color: #eaf6ff; /* より明るいブルーに変更 */
  color: #333;               /* 文字色を濃くして視認性UP */
  width: 20%;
  font-weight: bold;
  white-space: nowrap;
}

.services-page h3 {
  font-size: 1.8rem;
  font-weight: bold;
  border-left: 6px solid #f27c28; /* HORIZONのオレンジカラー */
  padding-left: 1rem;
  margin-top: 3rem;
  color: #333;
}

/* ▼ モバイル時（768px以下）のナビ制御 */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
  }

  .nav-list.show {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .nav-list li {
    width: 100%;
    margin: 0;
  }

  .nav-list li a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
  }

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

/* ▼ PC表示時（769px以上）の制御 */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 1rem;
    width: auto;
    box-shadow: none;
    border-radius: 0;
  }

  .nav-list li a {
    padding: 0;
    border-bottom: none;
    white-space: normal;
  }
}

/* 動画コンテナのレスポンシブ対応 */
.video-container {
  margin-top: 20px;
}

.video-item {
  margin-bottom: 30px;
}

.video-item h5 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--main-color);
}

.video-item iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border-radius: 8px;
}

/* モバイル対応：画面幅が小さい時は高さも調整 */
@media (max-width: 768px) {
  .video-item iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .video-item iframe {
    height: 200px;
  }
}f

