:root {
  --main-color: #e15a0f;
  --main-color-light: rgba(225, 90, 15, 0.35);
  --sub-color: #ea6060;
  --contact-color: #f0ad4e;
  --main-font-color: red;

  --sm: 576px;
  --md: 768px;
  --lg: 992px;
  --xl: 1200px;
}

.company-message {
  font-size: min(4.5vw, 3rem);
  font-weight: bold;
  padding: 6rem 0;
}

.bg-company-message {
  color: whitesmoke;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
    url(./assets/home_top_as_339067151.webp);
  background-color: rgba(0, 0, 0, 1);
  background-size: cover;
  background-position: center;
}

section {
  padding: 2.5rem 0;
}

.section-title {
  margin-bottom: 2rem;
  display: inline-block;
  border-bottom: 2px solid #212529;
  position: relative;
  top: 2px;
}

.section-message {
  line-height: 1.5;
  font-size: min(3.5vw, 1.8rem);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-sub-message {
  line-height: 1.2;
  font-size: min(2.5vw, 1.2rem);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-message > b {
  color: var(--main-color);
}

.main-color-text {
  color: var(--main-color);
}

.section-message > a {
  color: rgb(56, 46, 255);
  font-weight: bold;
  text-decoration: none;
}

.works .card {
  border: none;
}

/* 16:9のアスペクト比を維持するためのスタイル */
.aspect-ratio-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9のアスペクト比 */
  background-color: black;
  /* 余白を黒で塗りつぶす */
}

/* 1:1のアスペクト比を維持するためのスタイル */
.aspect-ratio-1-1 {
  position: relative;
  width: 60%;
  padding-top: 60%;
  margin: 10% 20%;
  /* 16:9のアスペクト比 */
  background-color: transparent;
  /* 余白を黒で塗りつぶす */
}

/* カード内の画像のスタイル */
.card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 画像がコンテナに合わせて表示されるように設定 */
}

.image-link-overlay {
  width: 100%;
  height: 100%;

  position: absolute;
  top: 0;
  z-index: 2;

  color: var(--main-color); /* オーバーレイのテキストカラーをオレンジに変更 */
  font-size: 1rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;

  border: #e15a0f 4px solid;

  /* 中の要素を中央に配置するためのスタイル */
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #ffffffa0;
}

.image-link-overlay:hover {
  opacity: 1;
}

.card-img-top {
  transition: all 0.1s ease;
}

.card:hover .image-link-overlay {
  opacity: 1; /* ホバー時にテキストを表示 */
}

/*主な共通部分は省略*/

a.show-more {
  padding: 0.4rem 2rem;
  font-size: large;
  font-weight: bold;
  text-decoration: none;
  color: #212529;
  border: 4px solid #212529;
  border-radius: 0;
  background: #fff;
  transition: 500ms;
  box-sizing: content-box;
}

a.show-more:hover {
  color: #fff;
  background: #000;
}

a.form-send {
  padding: 10px 0;
  font-size: large;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  text-underline-offset: none;
  border: 4px solid #212529;
  border-radius: 0;
  background: #fff;
  transition: 500ms;

  &:hover {
    color: #fff;
    background: #000;
  }
}

a.form-send[disabled] {
  border: 4px solid gray;
  color: #fff;
  background: gray;
}

section.service .card {
  background-color: var(--main-color-light);
  flex: 1;
}

section.service .row {
  display: flex;
  align-items: stretch;
}

section.service .row > div {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.75rem;
}

.section-separator-image {
  width: 100%;
  max-height: 35vh;
  object-fit: cover;
}

section.about .section-message-image {
  /* padding: 0;
  margin: 0 0.75rem; */
  border-radius: 10px;
  /* overflow: hidden;
  object-fit: cover; */
}

section.news article {
  border-bottom: #212529 1px solid;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

section.news .data-badge {
  display: inline-block;
  background-color: lightgray;
  padding: 0.3rem 0.6rem;
  margin: 0.5rem 0 1rem 0;
  border-radius: 100px;
}

section.contact {
  background-color: var(--main-color-light);
}

section.contact .container {
  background-color: white;
}

section.contact .section-title {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
}

section.contact .section-contents p,
section.contact .section-contents a {
  color: var(--main-color);
}

section.contact .section-contents a.show-more {
  color: var(--main-color);
  border: 4px solid var(--main-color);
  background: #fff;
}

section.contact .section-contents a.show-more:hover {
  color: #fff;
  background: var(--main-color);
}

footer {
  background-color: var(--main-color);
  padding: 2rem 0;
}

footer ul {
  list-style: none;
  padding: 0;
  padding-top: 1rem;
}

footer a {
  font-size: 1.3rem;
  color: white;
  text-decoration: none;
}

footer .copyright {
  color: white;
}

nav {
  background-color: var(--main-color);
}

nav .nav-link {
  color: white;
}

nav .nav-link:hover {
  color: white;
  border-bottom: white 1px solid;
}

nav .nav-link:visited {
  color: white;
}

.card-title {
  font-weight: bolder;
}

.card-text {
  line-height: 1.2rem;
}
