/* CSS code */
@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* フォントを適用する要素 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fafafa;
}
footer {
  font-family: 'Noto Sans JP', sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #fafafa;
}
a {
  color: #000;
  text-decoration: none;
}
li {
  list-style: none;
}
h1 {
  font-size: 52px;
  font-weight: bold;
}
h2 {
  font-size: 32px;
  font-weight: bold;
}
h3 {
  font-size: 28px;
  font-weight: bold;
}
h4 {
  font-size: 20px;
  font-weight: medium;
}
header {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 30px 4% 0;
  background: transparent;
  transition: background 0.3s, padding 0.3s;
  z-index: 1000;
}
.headerFixed {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 4%;
}
header > .container {
  display: flex;
  align-items: center;
}
.areaLogoHeader .logo {
  display: block;
}
.areaLogoHeader img {
  justify-content: center;
  height: 60px;
  vertical-align: bottom;
}
.navHeader {
  margin: 0 0 0 auto;
}
.navSp {
  margin: 0 0 0 auto;
  font-size: 16px;
  font-weight: 400;
}
.listNavHeader {
  display: flex;
  align-items: center;
  margin: 0 -16px;
}
.listNavHeader > li {
  padding: 0 16px;
}
.listNavHeader a {
  color: #000;
  font: 500 20px/1em;
}
.navSp {
  display: none;
}
.areaTopView {
  height: 100vh;
  background: url(../img/homebackground.png) no-repeat center center;
  background-size: cover;
}
.areaTopView > .container {
  margin: 0 96px;
  color: #fafafa;
}
.areaTopView .container img {
  display: flex;
  margin: 0 auto;
  padding-top: 25vh;
  width: 40vh;
}
.areaTopView > .subContainer {
  margin-left: 96px;
}
.mainThema {
  font-size: 52px;
  font-weight: 700;
}
.subThema {
  font-size: 52px;
  font-weight: 700;
}
.themaDescription {
  padding-top: 16px;
  font: 500 32px/1em 'noto sans japanese';
}
.areaHomeCompany {
  margin: 80px 4% 128px 4%;
  text-align: center;
}
.ttlSub {
  margin-top: 8px;
}
.mainCompany , .mainCompanySp {
  margin-top: 64px;
  line-height: 1.5em;
}
.companyBody {
  margin-top: 64px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5em;
}
.areaHomeNews {
  margin: 80px 5% 128px 5%;
}
.areaHomeNews > .container > .headHome {
  text-align: center;
}
.prContainer img {
  width: 100%;
  height: 250;
  object-fit: cover;
  border-radius: 2% 2% 0 0;
}
.prWrap {
  display: flex;
  justify-content: space-between;
  margin: 48px auto 0 auto;
  flex-wrap: wrap;
  max-width: 992px;
}
.prContainer {
  width: 30%;
  background: #fafafa;
  box-shadow: 10px 10px 5px #E5F1FE;
  border-radius: 2%;
}
@media not all and (min-width: 768px) {
  .prContainer {
    width: 100%;
  }
  .prContainer:not(:last-child) {
    margin-bottom: 30px;
  }
}
.prDate {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
}
.prTitle {
  padding: 0 16px;
  font: 500 1rem/1.5em;
}
.areaHomeWorks {
  background-color: #060F18;
}
.areaHomeWorks > .container {
  margin: 0 96px 0 96px;
  padding: 80px 0 128px 0;
  color: #fafafa;
}
.areaHomeWorks > .container > .bodyHome {
  margin-top: 48px;
  text-align: center;
}
.worksDiscription {
  margin-top: 0 auto;
  padding-top: 64px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5em;
}
.tiktok {
  padding-top: 64px;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #002f4b;
  color: #fafafa;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 100vh;
  text-decoration: none;
  text-align: center;
  width: auto;
  min-width: 200px;
  max-width: 225px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btnRec {
  display: inline-block;
  /* padding: 10px 20px; */
  background-color: #002f4b; /* ボタンの背景色 */
  color: white !important; /* テキストの色 */
  border-radius: 20px; /* ボタンの角の丸み */
  text-decoration: none !important; /* テキストの下線を消す */
  text-align: center;
  width: 100%; /* 必要に応じて調整 */
  max-width: 225px; /* ボタンの最大幅を設定 */
}
.btn:hover {
  background: #004b7a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}
.areaHomeRecruit {
  margin: 120px 0 0 0;
}
.areaHomeContact {
  margin: 40px 0 120px 0;
}
.areaHomeRecruit > .headHome {
  display: inline;
  margin-right: 0;
  position: absolute;
  left: 10px;
}
.areaHomeContact > .headHome {
  display: inline;
  margin-right: 0;
  position: absolute;
  left: 10px;
}
.areaHomeRecruit > .container > .headHome > .ttl > .ttlSub {
  font-size: 20px;
  padding-left: 24px;
}
.areaHomeContact > .container > .headHome > .ttl > .ttlSub {
  font-size: 20px;
  padding-left: 24px;
}
.areaHomeRecruit > .container {
  max-width: 992px;
  margin: 80px auto 0;
  position: relative;
}
.areaHomeRecruit > .container > .bodyHome {
  margin: 24px auto;
}
.areaHomeContact > .container {
  max-width: 992px;
  margin: 0 auto;
  position: relative;
}
.areaHomeContact > .container > .bodyHome {
  margin: 24px auto;
}
.btnWrapper {
  text-align: center;
  margin: 30px auto 0;
}
.btnWrapper:hover {
  background-color: transparent;
}
.line {
  height: 2px;
  background-color: #a3a3a3;
  width: 992px;
  margin: 40px auto 40px auto;
}
.midLine {
  height: 2px;
  background-color: #a3a3a3;
  width: 992px;
  margin: 0px auto 40px auto;
}
footer {
  margin-top: 96px;
  height: 320px;
  background-color: #060F18;
}
footer > .container {
  padding-top: 40px;
}
.footerName {
  color: #fafafa;
  text-align: center;
}
.footerSnsIkons {
  width: 180px;
  display: flex;
  justify-content: space-between;
  margin: 40px auto 50px auto;
}

@media screen and (min-width: 641px) {
  .mainCompanySp {
    display: none;
  }
}

/* 追加されたメディアクエリ */
@media screen and (max-width: 640px) {
  h1 {
    font-size: 32px;
    font-weight: bold;
  }
  h2 {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
  }
  h3 {
    font-size: 18px;
    font-weight: bold;
  }
  h4 {
    font-size: 16px;
    font-weight: medium;
  }
  .navHeader {
    display: none;
  }
  .navSp {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    width: 100%;
    background: rgba(164, 182, 229, 0.95);
    opacity: 0;
    transform: translateY(-100%);
    transition: all .2s ease-in-out;
  }
  #hamburger {
    position: relative;
    display: block;
    width: 30px;
    height: 25px;
    margin: 0 0 0 auto;
  }
  #hamburger span {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000000;
    transform: translateY(-50%);
  }
  #hamburger::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
  }
  #hamburger::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 2px;
    background-color: #000000;
  }
  /* スマホメニュー */
  .navSp ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  .navSp li {
    margin: 0;
    padding: 0;
  }
  .navSp li span {
    font-size: 15px;
    color: #000000;
  }
  .navSp li a, .navSp li span {
    display: block;
    padding: 20px 0;
  }
  /* 閉じるアイコン */
  .navSp .close {
    position: relative;
    padding-left: 20px;
  }
  .navSp .close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 16px;
    height: 1px;
    background: #000000;
    transform: rotate( 45deg );
  }
  .navSp .close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 16px;
    height: 1px;
    background: #000000;
    transform: rotate( -45deg );
  }
  .toggle {
    transform: translateY( 0 );
    opacity: 1;
  }
  .areaTopView .container {
    margin: auto 8%;
    color: #fafafa;
  }
  .areaTopView .container img {
    width: 60%;
    margin: 0 auto;
    padding-top: 20vh;
  }
  .mainVisualDiscription {
    padding-top: 12%;
  }
  .mainThema , .subThema {
    line-height: 1.2;
    font-size: 32px;
  }
  .mainCompany {
    display: none;
  }
  .themaDescription {
    font-size: 20px;
    line-height: 1.6;
  }
  .areaHomeWorks > .container {
    margin: 0 4%;
    padding: 80px 0 128px 0;
    color: #fafafa;
  }
  .worksDiscription {
    font-size: 16px;
  }
  .areaHomeRecruit .line {
    width: 92%
  }
  .areaHomeContact .line , .midLine{
    width: 92%
  }
  .areaHomeRecruit > .container {
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .areaHomeRecruit > .container > .headHome {
    position: static;
    margin: 0 0 24px;
    text-align: center;
  }
  .areaHomeRecruit > .container > .btnWrapper {
    position: static;
    margin: 24px 0 0;
    text-align: center;
  }
  .areaHomeContact > .container {
    margin: 4% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .areaHomeContact > .container > .headHome {
    position: static;
    margin: 0 0 24px;
    width: 70%;
    text-align: center;
  }
  .areaHomeContact > .container > .btnWrapper {
    position: static;
    margin: 24px 0 0;
    text-align: center;
  }
  footer {
    margin-top: 96px;
    height: 280px;
    background-color: #060F18;
  }
}

#scrollToTopBtn {
  display: none; /* Initially hidden */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 30px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s;
}

#scrollToTopBtn .arrow-up {
  width: 50px;
  height: 50px;
  background-color: #333333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scrollToTopBtn .arrow-up::before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45135deg);
  margin-top: 5px;
}

.areaHomeBlog {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.blogList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.blogCard {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.blogCard:hover {
  transform: translateY(-5px);
}

.blogImage {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blogImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogContent {
  padding: 20px;
}

.blogDate {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.blogTitle {
  color: #333;
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .blogList {
    grid-template-columns: 1fr;
  }
}

.areaHomeService {
  margin: 80px 0 128px 0;
  overflow: hidden;
  position: relative;
}

.areaHomeService > .container {
  padding: 0 5%;
}

.areaHomeService > .container > .headHome {
  text-align: center;
}

.serviceList {
  display: flex;
  gap: 40px;
  margin: 48px 0 0 0;
  padding: 20px 5%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* Chrome, Safariのスクロールバーを非表示 */
.serviceList::-webkit-scrollbar {
  display: none;
}

.serviceContainer {
  flex: 0 0 400px; /* 固定幅を設定 */
  scroll-snap-align: start; /* スクロールスナップのアライメント */
  background: #fafafa;
  box-shadow: 10px 10px 5px #E5F1FE;
  border-radius: 2%;
  transition: transform 0.3s ease;
}

.serviceContainer:hover {
  transform: translateY(-5px);
}

.serviceImage {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.serviceImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2% 2% 0 0;
}

.serviceContent {
  padding: 24px;
}

.serviceTitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #002f4b;
}

.serviceDescription {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}

.serviceDetails {
  list-style: none;
  padding: 0;
}

.serviceDetails li {
  padding: 8px 0;
  font-size: 14px;
  color: #002f4b;
  border-bottom: 1px solid #eee;
}

.serviceDetails li:last-child {
  border-bottom: none;
}

/* レスポンシブ対応の更新 */
@media screen and (max-width: 1200px) {
  .serviceContainer {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .serviceList {
    flex-direction: column; /* 縦並びに変更 */
    overflow-x: visible; /* 横スクロールを無効化 */
    padding: 20px 4%; /* パディングを調整 */
  }

  .serviceContainer {
    flex: none; /* flex設定を解除 */
    width: 100%; /* 幅を100%に設定 */
    margin: 0 0 30px 0; /* 下マージンを追加 */
  }

  .serviceContainer:last-child {
    margin-bottom: 0; /* 最後のコンテナのマージンを削除 */
  }
}

/* プレスリリース用の追加スタイル */
.prDate {
  color: #666;
  font-size: 0.9em;
  margin-top: 10px;
}

/* レスポンシブ対応の改善 */
@media screen and (max-width: 768px) {
  .serviceContainer {
    width: 100%;
    margin: 15px 0;
  }

  .serviceImage {
    height: 200px;
  }

  .serviceImage img {
    height: 100%;
    object-fit: cover;
  }

  .serviceContent {
    padding: 15px;
  }

  .serviceTitle {
    font-size: 1.2em;
  }

  .serviceDescription {
    font-size: 0.9em;
  }
}

@media screen and (max-width: 480px) {
  .serviceImage {
    height: 150px;
  }

  .serviceContent {
    padding: 10px;
  }

  .serviceTitle {
    font-size: 1.1em;
  }

  .serviceDescription {
    font-size: 0.8em;
  }
}

@media screen and (max-width: 768px) {
  .btn {
    padding: 10px 25px;
    min-width: 180px;
    font-size: 14px;
  }

  .btnWrapper {
    margin: 25px auto 0;
  }
}