/* 見出しの定義 */

.technology-details {
  margin-left: 3px;
  margin-right: 3px;
}
.technology-details h2 {
  font-weight: bold !important;
}

.technology-details h1,
.technology-details h2,
.technology-details h3,
.technology-details h4,
.technology-details h5{
  width: min(100%, var(--md-content-width, 61rem));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Layout tweaks for MkDocs Material wrapper */
.md-sidebar--primary {
  display: none;
}

.md-main {
  background-color: rgb(245, 240, 240);
}

.md-main__inner.md-grid {
  margin-top: 0 !important;
}

.md-content {
  max-width: none;
  padding: 0;
}

.md-content__inner > h1:first-child {
  display: none;
}
.md-content__inner {
  margin: 0;
  padding: 0;
}

/* キービジュアルを背景にタイトルとトライアルボタン */

.title-background {
  background-image: url("../figures/title-keyvisual.jpeg");
  background-repeat: no-repeat;
  background-size: contain;
  /* background-position: center; */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 子要素を左に揃える (これを維持) */
  justify-content: flex-end; /* 子要素を垂直方向の中央に配置 */
  text-align: left;
  padding-left: max(10px, calc((100vw - var(--md-content-width, 61rem)) / 2));
  padding-right: max(10px, calc((100vw - var(--md-content-width, 61rem)) / 2));
  font-size: 28pt;
  font-weight: 700;
  letter-spacing: 1px;
  aspect-ratio: 5054 / 1999;
  position: relative;
  gap: 10px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.title-background .title-content {
  max-width: 600px;
  width: 100%;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vw, 16px);
  background: linear-gradient(135deg, rgba(21, 61, 100, 0.60), rgba(0, 0, 0, 0.60));
  padding: clamp(16px, 3vw, 20px);
  border-radius: 0px;
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
}

.title-title {
  font-size: clamp(18pt, 4vw, 24pt);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: px;
  font-weight: bold;
}

.title-background .title-content p {
  margin: 0;
  font-size: clamp(10pt, 2.4vw, 12pt);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

.title-background .demo-app-button {
  position: static;
  margin: clamp(16px, 4vw, 24px) 0 0 0;
  flex: 0 1 auto;
  width: min(100%, 600px);
  max-width: 100%;
  height: clamp(44px, 6vw, 50px);
  font-size: clamp(12pt, 3vw, 16pt);
  padding: 0 clamp(12px, 4vw, 24px);
  box-sizing: border-box;
  align-self: stretch;
}

.title-background > p {
  margin: 0 0 clamp(16px, 4vw, 24px) 0;
  width: min(100%, 600px);
  max-width: 100%;
  display: flex;
  justify-content: flex-start;
  align-self: stretch;
}

.title-background > p .demo-app-button {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

@media all and (max-width: 640px) {
  .title-background {
    padding: 10px 10px 30px 10px;
    font-size: 22pt;
    gap: 16px;
    width: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center;
  }

  .title-background .title-content {
    gap: 12px;
    padding: 20px 24px;
    max-width: 100%;
    width: 100%;
  }

    /*
  .title-background .demo-app-button {
    width: 100%;
    max-width: 100%;
  
    height: clamp(44px, 12vw, 52px);
    font-size: clamp(12pt, 4vw, 16pt);
    align-self: stretch;
  }
   */

  .one-image-and-text .demo-app-button {
    width: 100%;
    max-width: 100%;
  }
}

/* Background block styles */
.text-black-gray,
.text-gray {
  padding: 10px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.text-black-gray {
  background-color: #404040;
  color: #ffffff;
}

.text-gray {
  background-color: #e8e8e8;
  color: #000000;
}

.text-black-gray > :first-child,
.text-gray > :first-child {
  margin-top: 0;
}

/* Background blue styles */
.text-dark-blue,
.text-sky-blue {
  padding: 10px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.text-dark-blue {
  background-color: #153d64;
  color: #ffffff;
}

.text-sky-blue {
  background-color: #4d93d9;
  color: #ffffff;
}

.text-dark-blue > :first-child,
.text-sky-blue > :first-child {
  margin-top: 0;
}

/* ACB概要のGrid Card */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px auto;
  width: min(100%, var(--md-content-width, 61rem));
  box-sizing: border-box;
}

.grid.cards .card {
  background-color: #ffffff;
  color: #000000;
  padding: 20px;
  font-size: 14pt;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

@media all and (max-width: 992px) {
  .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media all and (max-width: 640px) {
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

/* "トライアルボタン"+説明 の部分 */
.one-image-and-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(100%, var(--md-content-width, 61rem));
  margin: 0 auto;
  box-sizing: border-box;
}

.one-image-and-text-text {
  font-size: 13pt;
  color: #ffffff;
  background-color: #153d64;
  padding: 10px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  max-width: calc(100% - clamp(280px, 36vw, 600px) - 24px);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  font-weight: normal;
}

.one-image-and-text .demo-app-button {
  flex: 0 1 clamp(280px, 36vw, 600px);
  width: clamp(280px, 36vw, 600px);
  max-width: 100%;
  height: clamp(44px, 6vw, 50px);
  font-size: clamp(12pt, 3vw, 16pt);
  padding: 0 clamp(12px, 4vw, 24px);
  box-sizing: border-box;
  align-self: stretch;
}

@media all and (max-width: 768px) {
  .one-image-and-text {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }
  .one-image-and-text-text {
    max-width: 100%;
    width: 100%;
  }
  .inquiry-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    font-size: 12pt;
    height: auto;
    padding: 10px 0;
  }
  .demo-app-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    font-size: 16pt;
    height: auto;
    padding: 10px 0;
  }
}

/* Free Trialボタン */
.demo-app-button {
  border-radius: 2px;
  display: flex;
  font-weight: 700;
  background: #ffff00;
  color: #000000 !important;
  cursor: pointer;
  border: 1px solid #000000;
  border-radius: px2rem(2px);
  width: 600px;
  height: 50px;
  font-size: 16pt;
  justify-content: center;
  align-items: center;
  text-align: center;
  &:is(:focus, :hover) {
    background: #edcf5b;
  }
}

/* お問合せボタン */
.inquiry-button {
  border-radius: 12px;
  display: flex;
  font-weight: 700;
  background: #215F9A;
  color: #ffffff !important;
  cursor: pointer;
  border: px2rem(2px) solid currentcolor;
  border-radius: px2rem(2px);
  width: 400px;
  height: 50px;
  justify-content: center;
  align-items: center;
  text-align: center;
  &:is(:focus, :hover) {
    background: #5482d4;
  }
}


/*
.title-icon-and-title-container {
  color: white;
  background: black;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  grid-template-columns: 100px 1fr;
}

.title-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.title-subtitle {
  font-size: 14pt;
  background: #f2f2f2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}
*/



