/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

/* ロゴエリア背景 */
.logo-area {
  background: #000;
  text-align: center;
  padding: 10px 0;
}
.logo-area img {
  max-height: 60px;
}

/* ナビゲーション (ボックス型) */
#menubar {
  background: #000;
  text-align: center;
}
#menubar nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0;
}
#menubar nav li {
  flex: 1;
  border-right: 1px solid #333;
}
#menubar nav li:last-child {
  border-right: none;
}
#menubar nav a {
  display: block;
  padding: 1rem 0;
  color: #fff;
  background: #000;
  text-decoration: none;
  border-left: 1px solid #333;
}
#menubar nav li:first-child a {
  border-left: none;
}
#menubar nav a:hover {
  background: #333;
  color: #ffcc00;
}
#menubar nav li ul {
  display: none;
  position: absolute;
  background: #222;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 160px;
  z-index: 100;
}
#menubar nav li ul li a {
  padding: 0.6rem 1rem;
  border: none;
  color: #fff;
}
#menubar nav li:hover > ul {
  display: block;
}

/* ドロップダウン矢印 */
a.ddmenu::after {
  content: " ▼";
  font-size: 0.8em;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  background: #000;
  width: 100%;
  text-align: right;
}

/* ヒーローセクション */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.hero {
  background: #ededed;
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.btn {
  background: #8b5e3c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.3rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: #6f472b;
}

/* 2カラムレイアウト */
.two-column {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}
.main-contents {
  flex: 1;
}
.sub-contents {
  width: 250px;
  flex-shrink: 0;
}

/* 2分割セクション */
.split-section {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}
.split-left,
.split-right {
  flex: 1;
}
.split-img {
  width: 450px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 0.5rem;
}

/* サイドメニュー */
.sub-contents h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  border-left: 3px solid #8b5e3c;
  padding-left: 10px;
}
.submenu {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-top: 1px solid #ccc;
}
.submenu > li {
  border: 1px solid #ccc;
  border-top: none;
}
.submenu a {
  display: block;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #333;
}
.submenu a:hover {
  background: #f0f0f0;
}

/* セクション見出し */
h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 2rem;
  font-size: 1.5rem;
  border-bottom: 3px solid #ddd;
  font-weight: normal;
  letter-spacing: 0.1em;
}
h2 .uline {
  display: inline-block;
  border-bottom: 3px solid #8b5e3c;
  padding-bottom: 0.3rem;
}
h2 .small {
  font-size: 0.6em;
  opacity: 0.5;
}

/* サービスリスト */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}
.service-item {
  flex: 1 1 calc(33.333% - 1.5rem);
  background: #ededed;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  box-sizing: border-box;
}
.service-item img {
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  margin-bottom: 1rem;
}
.service-item h4 {
  margin-bottom: 0.5rem;
}

/* フッターメニュー */
#footermenu {
  background: #363332;
  color: #fff;
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
  /* 
     最小: 1rem（スマホ）
     通常: 1.4vw（画面幅に比例）
     最大: 1.2rem（PC）
  */
  text-align: center;
  padding: 10px 0;
}
#footermenu ul {
  margin: 0;
  list-style: none;
  padding: 0 0.3em;
  flex: 1;
}
#footermenu .title {
  font-weight: bold;
  color: #ccc;
  padding-bottom: 5px;
}
#footermenu a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0.2rem 0;
}
#footermenu a:hover {
  text-decoration: underline;
}

/* フッター */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  #menubar nav ul {
    display: none;
    flex-direction: column;
    background: #000;
  }
  #menubar nav ul.active {
    display: flex;
  }
  #menubar nav li {
    border: none;
  }
  #menubar nav a {
    border: none;
    padding: 1rem;
    text-align: center;
  }
  .two-column,
  .split-section {
    flex-direction: column;
  }
  .sub-contents {
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .hero h2 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.1rem;
  }
}

/* sidebar表示切り替え（PCとスマホ） */
.desktop-sidebar {
  display: block;
}
.mobile-sidebar {
  display: none;
}

@media screen and (max-width: 768px) {
  .desktop-sidebar {
    display: none;
  }
  .mobile-sidebar {
    display: block;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 2rem;
  }
}
/* テーブル見出し（th）を8文字幅にする */
.formTable th {
  width: 10em;            /* 日本語10文字分の幅 */
  word-break: break-all;  /* 長い文字列は折り返し */
  white-space: normal;    /* 自動改行有効 */
  text-align: left;       /* 左寄せ（必要に応じて変更） */
  padding: 0.5rem;
  vertical-align: top;     /* 上寄せで整列 */
}
