/* CSS Document */
/*フリーページ用*/

/********共通　*********/

.content-box {
  margin: 30px 0;
}

h2.section-title,
h3.section-title,
h4.section-title,
h5.section-title,
h6.section-title {
  font-family: 'Noto Serif JP', 'MS Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
}
/* セクションタイトル */
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: left;
}

/* 画像とテキストの配置 */
.section p {
  text-align: left !important;
}
.section-content {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.section-content img {
  max-width: 250px;
  width: 100%;
  height: 188px;
  object-fit: cover;
  border-radius: 8px;
}

.section-content .text {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  text-align: left; /* 本文を左揃え */
}
section#access p,
section#access h4 {
  text-align: left !important;
}
.map {
  margin-top: 40px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .section-content {
    flex-direction: column;
    align-items: center;
  }

  .section-content img {
    max-width: 100%;
    height: auto;
  }
}

/*サイドメニュー*/
.sideNav-list {
  position: relative;
}

.sideNav-list a {
  text-align: left;
  padding: 12px;
  font-size: 0.9rem;
  display: block;
  color: #fff;
  text-decoration: none;
}

.sideNav-list::after {
  content: '';
  display: block;
  width: 90%;
  height: 1px;
  background-color: #fff;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

/*　刃物製造工程　*/

.button-39 {
  display: inline-block;
  position: relative;
  padding: 1em 2em;
  border: 1px solid #222;
  background-color: #fff;
  color: #222;
  font-size: 1em;
  cursor: pointer;
  transform: skewX(-25deg); /* ← ボタン全体を斜めに */
  transition: all 0.3s ease;
}

/* 中の文字は元に戻す（斜めにならないように） */
.button-39 span {
  display: inline-block;
  transform: skewX(25deg);
}

.button-39:hover {
  background-color: #222; /* 背景反転 */
  color: #fff; /* 文字色反転 */
}

.button-39:hover {
  border-color: #fff; /* 枠線も反転 */
}

.button-39 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* 文字と矢印の間隔 */
  padding: 1em 2em;
  border: 1px solid #222;
  background-color: #fff;
  color: #222;
  font-size: 1em;
  cursor: pointer;
  transform: skewX(-25deg); /* ボタン全体を平行四辺形に */
  transition: all 0.3s ease;
  width: 250px;
  height: auto;
}

/* 文字部分は skew を戻す */
.button-39 span {
  display: inline-block;
  transform: skewX(25deg);
}

/* 矢印を疑似要素で作成 */
.button-39::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #222;
  border-right: 2px solid #222;
  transform: skewX(25deg) rotate(45deg); /* skewを戻してから矢印に */
  transition: all 0.3s ease;
}

/* hoverで色反転 */
.button-39:hover {
  background-color: #222;
  color: #fff;
  border-color: #fff;
}
.button-39 a:hover {
  color: #fff;
}

.button-39:hover::after {
  border-color: #fff;
}

.flex-btn {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

@media (max-width: 768px) {
  .button-39 {
    width: 160px;
  }
  .flex-btn {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
}

.flex-img {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

@media (max-width: 768px) {
  .flex-img {
    flex-direction: column;
    gap: 15px;
  }
}

#process01,
#process02,
#process03,
#process04,
#process05,
#process06,
#process07,
#process08,
#process09,
#process10,
#process11,
#process12,
#process13 {
  scroll-margin-top: 80px;
}
