/* ================================
   リセット・基本設定
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-size: 100%;
  background-color: rgb(255, 255, 255);
  background-position: center;
  margin: 0;
  font-family: "IBM Plex Sans JP";
  font-weight: 100;
}

body.body {
  /* bodyに特別な指定あればここに */
}

/* ================================
   メイン全体
================================ */


/* ================================
   ヘッダー関連
================================ */
.header {
  width: 100%;
  background: rgba(255, 255, 255, 0);
  z-index: 9999;
}

.h-container {
  display: flex;
  padding: 20px;
  justify-content: space-between;
  align-items: center;

  text-align: center;
}

.header-logo {
  width: 60px;
  height: auto;
}

/* --- ナビゲーション --- */
nav.h-menu ul {
  display: flex;
  padding: 0;
  margin: 0;
  background-color: #ffffffd9;
  border-radius: 100px;
  box-shadow: 0px 0px 15px -7px #000000;
}

nav.h-menu li {
  list-style: none;
  perspective: 1000px;
  display: flex;
  width: 150px;  
  height: 50px;        /* flip-textに合わせた固定幅 */
  padding: 0;
  margin: 0;
  vertical-align: middle;
  align-items: center;
}

nav.h-menu a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 1.4rem;
  cursor: pointer;
  display: inline-block;
  width: 100%;
  height: 32px;
  position: relative;
  white-space: nowrap;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

/* flip-text用のフリップアニメーション */
.flip-text {
  display: inline-block;
  width: 100%;
  height: 32px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.flip-text .front,
.flip-text .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  font-size: 1.4rem;
  color: #000;
  line-height: 32px;
  left: 0;
  top: 0;
  text-align: center;
}

.flip-text .back {
  transform: rotateX(180deg);
}

.flip-text:hover {
  transform: rotateX(180deg);
}

/* navリンクホバー時カラー変化 */
nav.h-menu a:hover {
  color: #0077cc;
}


/* ハンバーガーアイコン */
@media screen and (max-width: 820px) {
.hamburger {
  width: 30px;
  height: 24px;
  position: absolute;
  top: 25px;
  right: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
}

.hamburger span {
  display: block;
  width: 30px;
  height: 1px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

/* active（×）状態 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}




/* メニュー全体をモバイルで非表示に */
@media (max-width:820px) {
  .h-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
  }

  .h-menu.open {
    right: 0;
  }

  nav.h-menu ul {
    flex-direction: column;
    gap: 30px;
    background: transparent;
    box-shadow: none;
  }

  nav.h-menu li {
    width: auto;
  }
}



/* ================================
   レスポンシブ（820px以下）
================================ */
@media screen and (max-width: 820px) {
  .h-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    text-align: center;
    display: block;
  }

  nav.h-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.h-menu.open {
    display: flex;
  }

  nav.h-menu ul {
    flex-direction: column;
    gap: 20px;
  }

  nav.h-menu li {
    text-align: center;
  }

  .card-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 820px) {
  nav.h-menu {
    position: absolute;
    top: 60px;
    right: -100%;
    background: white;
    width: 100%;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease; /* ←もともとここで開閉を制御してる */
  }

  nav.h-menu.open {
    right: 0;
    display: flex; /* これはOK */
  }
}

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

/* ================================
   セクション1（トップイメージ・スローガン）
================================ */
.toptitle {
  max-height: 1100px;
  min-height: 900px;
  background-image: url(../media/business_handshake.png);
  background-position: bottom;
  background-size: cover;
}

.slogan {
  font-size: 9vw;
  color: #fff;
  text-shadow: 6px 4px 0px #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
  background: linear-gradient(#ffffff00 50%, #58fff3 20%);
}

/* ================================
   セクション2（ベン図 / venn-diagram）
================================ */
.section2 {
  height: 100vh;
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  position: relative;
  overflow: hidden;        /* はみ出し防止 */
  margin-top: 100px;
}

.venn-diagram {
  position: relative;
  display: inline-block;
  min-width: 500px; /* 3つの円を包めるだけの幅 */
  min-height: 250px; /* 円の高さ＋上下margin見込み */
  scale: 1.7;
}

.circle-group {
  position: absolute;
  cursor: pointer;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed #333;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  mix-blend-mode: multiply;
}

.circle-group span {
  position: relative;
  z-index: 2;
  font-size: 1.2em;
  color: rgb(0, 0, 0);
  pointer-events: none;
}

.circle-group:hover {
  background-color: #58fff479;
  transform: scale(1.4);
  transition: all 0.5s cubic-bezier(0.75, -1.11, 0.65, 2.23);
  z-index: 10;
}

/* 配置調整 */
.circle1 {
  top: 0;
  left: 150px;
}

.circle2 {
  left: 0;
}

.circle3 {
  left: 300px;
}

/* ================================
   セクション3（About / Boost / Link / Shift）
================================ */
.section3 {
  margin-left: 40px;
  margin-right: 40px;
}

.info { 
  font-size: 100px;
}

.caption {
  font-size: 30px;
  margin-left: 50px;
  margin-top: 20px;
  max-width: 60vw;
}

.r-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.r-caption {
  font-size: 30px;
  margin-right: 50px;
  margin-top: 20px;
}



/* ================================
   カード関連（card-box, card-itemなど）
================================ */


.card-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2vw;
  margin: 0 5vw;
}

@media screen and (min-width:821px) {
.card-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  margin: 0 5vw;
}
}

.card-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 0 2vw;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  border-radius: 8px;

}

.card-item:hover  {
  transform: scale(1.05);
}

.card-pics {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: rgb(97, 97, 97);
}

.card-pics img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-caption {
  display: inline;
  margin-top: 12px;
  font-weight: 100;
  font-size: 1.2rem;
  color: rgb(0, 0, 0);
  text-align: center;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.card-date {
  font-weight: 100;
  font-size: 0.9rem;
  color: rgb(0, 0, 0);
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* ================================
   フッター関連
================================ */
.footer {
  overflow: hidden;
  text-align: center;
  background-color: #ffffff00;
  font-size: 14px;
  color: rgb(0, 0, 0);
  padding: 70px;
  margin-top: 30px;
  border-top: solid 1px black;
}



.caption-top {
  font-size: 30px;
  text-align: center;
}

.section1 {
  text-align: center;
}

@media screen and (max-width:600px) {
  .toptitle {
    min-height: 300px;}
    .section3 {
      margin-left: 20px;
      margin-right: 20px;}
      .info {
        font-size: 50px;
        font-weight: 100;}
        .caption-top {
          font-size: 16px;        
          margin: 15px;}
          .caption,.r-caption {
            font-size: 13px;
            margin-left: 20px;
            margin-right: 20px;
            margin-top: 10px;
            max-width: 60vw;}
              html, body {
                font-weight: 200;}
                .slogan {
                  font-size: 14vw;
                  color: #fff;
                  text-shadow: 6px 4px 0px #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
                  background: linear-gradient(#ffffff00 50%, #58fff3 20%);}
                  .section2 {
                    display: none;}
                    .footer {
                      overflow: hidden;
                      background-color: #ffffff00;
                      color: rgb(0, 0, 0);
                      padding: 10px;
                      margin-top: 10px;
                      border-top: solid 1px black;}

                      .card-caption {
                        display: inline;
                        margin-top: 12px;
                        font-weight: 100;
                        font-size: 0.7rem;}
                        .card-date {
                          font-weight: 100;
                          font-size: 0.6rem;
                          color: rgb(0, 0, 0);
                          letter-spacing: 0.05em;
                          text-decoration: none;}
            



}
@media screen and (max-width:600px) {
  .contact {
    display: flex;
    margin-left: 30px;
    margin-right: 30px;
    flex-direction: column;
  }       
}

@media screen and (max-width: 820px) {}
/* 820pxからモバイルナビ */


label {
  display: block;
  margin-top: 1rem;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
}

button.form-submit {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background-color: #505050;
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-left: 10px;
}

button.form-submit:hover {
  opacity: 90%;
  transition: opacity 0.3s ease-in-out;
}

.contact {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-left: 30px;
  margin-right: 30px;
}

input::placeholder,
textarea::placeholder {
  color: rgb(141, 141, 141); /* 明るいグレー */
  opacity: 1;  /* Firefox対応 */
}

.form {
  margin-left: 10px;
}

.form-title {
  font-size: 20px;
  padding-left: 10px;
  background-color: #ccc;
}

input:focus,
textarea:focus {
  outline: none; /* ブラウザの青いアウトラインを消す */
  border: 2px solid #999; /* 自分で枠線の色を指定 */
}

select#topic {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  margin-top: 10px;
  outline: none; /* ブラウザの青いアウトラインを消す */
  color: rgb(141, 141, 141);
}

.contact-title {
  font-size: 100px;
}
p.contact-caption {
  margin-left: 30px;
  font-size: 35px;
}

@media screen and (max-width:800px) {
  .contact {
    display: flex;
    margin-left: 30px;
    margin-right: 30px;
    flex-direction: column;}
    .contact-title {
      font-size: 50px;}
      p.contact-caption {
        margin-left: 20px;
        font-size: 20px;
    }       
}



@media (min-width:820px) {
  .f-menu{
  
  display: none;
  }
  }
  
  .f-menu {
    border-top: 1px solid #000000;
    margin-top: 20px;
    padding-top: 10px;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.856);
    z-index: 1000;
}
  
  .f-menu .mobile-nav {
    display: flex;
    justify-content: center;     /* 中央揃え */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;           /* 折り返しなし */
  }
  
  .f-menu .mobile-nav li {
    margin: 0 5px; /* 最小限の余白。不要なら0でもOK */
    width: 150px;
  }
  
  .f-menu .mobile-nav li a {
    display: flex;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    position: relative; /* テキストに対するクリック範囲を確保 */
  }
  @media (max-width:820px) {
  .flip-text .front, .flip-text .back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      font-size: 4vw;
      color: #000;
      line-height: 32px;
      left: 0;
      top: 0;
      text-align: center;
  }
  }
  
  .swiper-pagination-bullet-active {
    background: #58fff3;
}

swiper-button-next, .swiper-button-prev {
  color: #58fff3;
}