/* ========== 共通設定 ========== */
body {
  margin: 0;
  font: 80% "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
  line-height: 1.6;
  text-align: center;
  color: #000;
  background-color: #fff;
}

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

h2 { padding-left :30px; }

h3 { margin-bottom : -10px;}

/* ========== ヘッダー ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #fff;
  position: relative;
  z-index: 1000;
}

header h1 {
  font-size: 120%;
  font-weight: normal;
  margin: 0;
  text-align: left;
}

header h1 a {
  color: #000;
  text-decoration: none;
}

/* PC時ナビゲーション */
nav#list ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 1.5em 0 0 0;
  padding: 0;
}

nav#list li.sns img {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

/* ========== メイン画像 ========== */
.main-visual {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ========== 本文ブロック ========== */
.separate{
	float:left;
	width:400px;
	padding:40px 0px 0px 30px;
}

.oneColFixCtrHdr #container {
	width: 900px;  /* 最大幅である 800px より 20px 小さくすることにより、ブラウザクロームの使用が可能となり、水平スクロールバーが表示されなくなります */
	background: #FFFFFF;
	margin: 0 auto; /* 自動マージン（幅と連動）により、ページが中央揃えになります */
	text-align: left; /* この設定は body エレメントの text-align: center より優先されます。 */
	color:#666666;
	font-size:90%;
	font-weight:normal;
}
	

/* ========== フッター ========== */
footer {
  padding: 20px 0px;
  font-size: 90%;
  color: #333;
  text-align: center;
  clear:both;
}

/* ========== トップへ戻るボタン ========== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#backToTop.visible {
  opacity: 1;
}

/* ========== ハンバーガーメニュー ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==============================
   WORKSページ ギャラリー
============================== */
#maincontent {
  width :80%;
  margin: 20px 0 0 50px;
}

.works-gallery {
  display: bloc;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.works-gallery h3{
  padding: 20px; 
}

.works-gallery div {
  padding-left: 30px;
}

.work-item {
  width: calc(33.333% - 26px);
  text-align: center;
}

.work-item img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  transition: opacity 0.3s;
}

.work-item img:hover {
  opacity: 0.8;
}

.work-item p {
  margin-top: 10px;
  font-size: 0.9em;
  color: #333;
}


