/* 基本 */

body {
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 2.2;
}

/* 段落間の表示：p 要素の下マージンを追加（キャプションは除外） */
p:not(.caption) {
  margin: 0 0 1.2em;
}
.innerbox{
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.topimg{
  max-width: 100%;
  vertical-align: bottom;
}

/* タイトル */

#title .headerimage{
  max-width: 100%;
  height: 633px;
  text-align: center;
  background-color: #050B1F;
  background-position: center;
  background-size: auto;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  background-image: url("background.jpg");
  overflow: hidden;
}

.lead-back{
  /* 背景の横線／ドット装飾を無効化（画像を使用しない） */
  background-image: none;
  background-repeat: no-repeat;
}
#title .lead{
  padding: 18px 0 5px 0;
  max-width: 900px;
  width: 280px;
  margin: 0 auto;
  align-items: center;
  box-sizing: border-box;
}

#title .lead > img{
  display: block;
  margin: 0 auto;
  height: auto;
}

.lead .position{
  font-size: 17px;
  line-height: 1.5;
  margin-top: 8px;
}

span.name{
  font-size: 25px;
  font-weight: 700;
  line-height: 1.8;
}
/* 画像と名前を右カラムで縦並びにする（画像サイズは変更しない） */
#title .lead > img {
  display: block;
  margin: 0 auto;
  height: auto;
}

#title .ribbon{
  width: 100%;
  height: 7px;
  background-color: #b31a20;
  z-index: 20;
  margin-bottom: 0;
}

/* 本文 */

#main{
  background: #efefef;
  }

#main #main-text{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

h1{
  color: #b31a20;
  font-weight: 700;
  font-size: 25px;
  line-height: 2.0;
  margin: 50px 0 20px;
}

/* #main 冒頭：人物写真を左、本文を右に並べる2カラムレイアウト */
#main-text .intro{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "left right";
  gap: 32px;
  align-items: start;
  padding-top: 10px;
  margin-bottom: 16px;
}
#main-text .intro-left{
  grid-area: left;
}
#main-text .intro-right{
  grid-area: right;
}
#main-text .intro-left img{
  padding-top: 35px;
  display: block;
  height: auto;
  max-width: 100%;
}
#main-text .intro-right > h1{
  margin-top: 0;
  padding-top: 30px;
  line-height: 1.3;
}

/* intro-reverse: 幅960px以上で画像と本文の左右を反転する（モバイル表示は影響させない） */
@media screen and (min-width: 961px) {
  #main-text .intro.intro-reverse {
    grid-template-columns: 1fr auto;
    grid-template-areas: "right left";
  }
}

/* セッションで取り上げた導入事例ブロック */
#main .session-cases{
  margin: 40px 0;
  border-bottom: 1px solid #000;
}
#main .case-divider{
  border: 0;
  height: 1px;
  background: #333;
  margin: 8px 0;
}
#main .case-title{
  font-weight: 700;
  font-size: 19px;
  margin: 6px 0;
  padding: 5px 0;
  text-align: center;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}
#main .case-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 20px 0 10px;
}
#main .case-item{
  background: transparent;
  box-sizing: border-box;
}
#main .case-item .case-sub{
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}
#main .case-item .case-link a{
  text-decoration: none;
  word-break: break-all;
  color: #000;
}
.bottom-face{
  margin-top: 50px;
  background-color: #000000;
  text-align: center;
}

.bottom-face img{
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 100%;
}

.img{
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 10%;
  box-sizing: border-box;
}

.img>img{
  width: 100%;
  height: auto;
  border: solid 1px;
}

.img>p.caption{
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}

/* フッター */

footer{
  background-color: #b31a20;
  color: #fff;
  text-align: center;
  padding: 0 0 15px 0;
}

footer h3{
  font-size: 19px;
  font-weight: 700;
  line-height: 1.8;
  padding: 10px 0;
}

footer .logo{
  display: block;
  width: 120px;
  height: auto;
  margin: auto; /* 元の中央寄せを復元 */
}

/* ロゴのアンカー領域を画像サイズに限定して中央寄せ */
.footer-logo-link{
  display: inline-block;
  padding: 0;
  margin: auto; 
  line-height: 0;
}
/* ロゴ画像自体はアンカーの幅に合わせて余白を持たせない */
.footer-logo-link .logo{
  margin: 0;
  display: block;
}
footer p{
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.8;
}

footer .website{
  width: 100%;
  max-width: 250px;
  display: block;
  margin: 15px auto 50px;
  text-align: center;
  padding: 1.125em 0;
  font-weight: bold;
  background: #fff;
  color: #b31a20;
  border-radius: 3em;
  font-size: 13px;
  line-height: 0;
 }

footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active{
  text-decoration: none;
  color: inherit;
}

footer a:focus,
footer a:focus-visible{
  text-decoration: underline;
  text-decoration-color: #fff;
}

footer a:hover{
  text-decoration: underline;
  text-decoration-color: #fff;
}

/* ロゴにフォーカスしたときに website のリンクに下線を表示 */
/* ロゴにフォーカスまたはホバーしたときに website のリンクに下線を表示 */
footer > .footer-logo-link:focus ~ .website a,
footer > .footer-logo-link:focus-visible ~ .website a,
footer > .footer-logo-link:hover ~ .website a {
  text-decoration: underline;
  text-decoration-color: #fff;
}

/* ページトップボタン用の設定 */

.scroll-top{
  position: fixed;
  right: 36px;
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: inherit;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  padding: 0;
}
.scroll-top.show{
  opacity: 1;
  transform: translateY(0);
}
.scroll-top img{
  display: block;
  width: 36px;
  height: 36px;
}

/* スマホ対応等 */
@media screen and (max-width: 960px) {
  #main-text{
    width: 90%;
  }
  #title .headerimage{
    height: auto;
    background-size: cover;
  }

  #main-text .intro{
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right";
    justify-items: center;
    text-align: left;
  }

  #main-text .intro-left{
    justify-self: center;
  }

  #main .case-grid{
    grid-template-columns: 1fr;
  }

  #main .case-item{
    text-align: left;
  }

  /* スマホではリード部分を縦並びに戻す */
  .lead-back{
    display: block;
  }

  .innerbox, #title .lead{
    max-width: 95%;
    margin: 0 auto;
    padding: 18px 0 5px 0;
  }

  .lead{
  width: 250px!important;
  }
}

@media screen and (max-width: 548px) {
  body {
    font-size: 12px;
    line-height: 1.8;
  }

  .innerbox, #title .lead{
    max-width: 85%;
  }

  h1{
    font-size: 22px;
    line-height: 1.6;
    margin: 30px 0 12px;
  }

  .img{
    padding: 0 50px;
  }

  .scroll-top img{
    width: 24px;
    height: 24px;
  }

}
/* -----------------------------
   タブ（ADP / グロービス / dentsu）
   ----------------------------- */
.tabs-wrapper {
  max-width: 900px;
  margin: -50px auto 0;
  padding: 0 10px;
  position: relative;
  z-index: 2;
}
.tabs {
  display: flex;
  align-items: end;
}
.tabs .tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-sizing: border-box;
  background-clip: padding-box;
  border: 4px solid #fff;
  cursor: pointer;

}
.tabs .tab > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.tabs .adp {
  background: #f7941d;
  height: 50px;
  font-size: 20px;
  color: #fff000;
  flex: 1.6;
  border-bottom: 0;

}
.tabs .globis {
  background: #f7941d;
  flex: 1;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.tabs .dentsu {
  background: #00a8e8;
  flex: 1;
  border-bottom: 0;
}
@media (max-width: 548px) {
  .tabs-wrapper {
    margin-top: -16px;
    padding: 0;
  }
  .tabs {
    flex-direction: column;
    gap: 0px;
  }
  .tabs .tab {
    height: auto;
    padding: 12px 14px;
    border-width: 5px;
    transform: none;
    flex: 1 1 auto;
  }
  .tabs .adp,.tabs .globis,.tabs .dentsu {
    width: 100%;
    border: 4px solid #fff;
    font-size: 15px;
    height: 40px;
    box-sizing: border-box;
  }
  .tabs .adp {
    border-bottom: none;
  }
  .tabs .globis{
    height: 44px;
  }
  .tabs .dentsu {
    border-top: none;
  }
}

  