#my_loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.0s, visibility 1.0s;
}

#my_loading.is-loaded {
    opacity: 0;
    visibility: hidden;
}

#my_loading img {
    opacity: 0;
    animation: my_logo_fade 1s 0.1s forwards;
    width: 250px;
}

@keyframes my_logo_fade {
    to { opacity: 1; }
}


html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* overflow: hidden; */
}

body {
  font-family: Futura, "Yu Gothic", "YuGothic", Avenir, sans-serif;
  overflow-x: hidden;
}

h1 {
    font-size:3rem;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
}

h3 {
    font-size: 1.5rem;
}

canvas {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: -1;
  background: #00162C;
}

section {
  margin: 0;
  padding: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  width: 100%;
  height: 100svh;
  background-color: rgba(0, 22, 44, 0.3);
}


.arrow {
  position: relative;
  display: inline-block;
  padding-right: 30px;
}

.arrow:before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 20px;
  border-color: transparent transparent transparent #42CCEB;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.top {
  position: absolute;
  font-weight: bold;
  z-index: 3;
}

.top-img {
  width: 30%;
  gap: 5rem;
}

.section1 {
  position: relative;
  flex-direction: column;
  text-align: center;
}

.vision {
  position: absolute;
  right: 5rem;
}

.size1 {
  font-size: 10rem;
  font-weight: bold;
  color: #FC0343;
  text-shadow: 3px 3px 2px #ffffff;
}

.size2 {
  font-size: 3rem;
  font-weight: bold;
  color: #d9d9d9;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  /* text-shadow: 3px 3px 2px #000000; */
}

.size3 {
  font-size: 1.5rem;
}


.service-bg {
  height: 100vh;
  /* border: solid 13px #0586B6; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.service {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: solid 13px #0586B6;
  font-size: 5rem;
  color: #E0F7FF;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(76, 194, 217, 0.7);
  line-height: 400px;
  text-align: center;
  background-color: transparent;
  box-shadow:
    0 0 20px rgba(76, 194, 217, 0.7),
    0 0 40px rgba(76, 194, 217, 0.5),
    inset 0 0 15px rgba(76, 194, 217, 0.5);
}


.double {
  opacity: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 13px #0586B6;
}

/* 左右エリアの設定 */
.double .left,
.double .right {
  flex: 1;
  /* 横幅を半分ずつにする */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* 背景色を左右で変える */
.double .left {
  background-color: black;
  color: white;
}

.double .right {
  background-color: white;
  color: black;
}

.double .circle {
  /* width: 550px;
  height: 550px; */
  width: 45vw;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 13px solid #0586B6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  text-align: center;
}

.title {
  font-size: 2.5rem;
  margin: 0 3rem;
  font-weight: bold;
}

.double p {
  font-size: 1.5rem;
  margin: 0 3rem;
  margin: 1rem;
}

.blue {
  background-color: #0586B6;
  color: white;
}

.red1 a {
  color: black;
  text-decoration-line: underline;
  text-decoration-color: #42CCEB;
  font-size: 1.5rem;
}

.red2 a {
  color: white;
  text-decoration-line: underline;
  text-decoration-color: #42CCEB;
  font-size: 1.5rem;
  /* font-weight: bold; */
}

.photo-section {
  margin: 0;
  height: 200vh;
  background-color: black;
}

.photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* padding-top: 100px; */
  position: relative;
  /* z-index: 1; */
}

.photo {
  width: 50%;
  margin: 0.8rem;
}

.photo-img {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-text {
  width: 100%;
  color: white;
  position: absolute;
  /* top: 3rem; */
  top: 20%;
  left: 5rem;
  font-weight: bold;
  opacity: 0;
}

.photo-text p {
  margin: 0;
}

.business-section {
  height: 100vh;
  position: relative;
  margin-top: 300vh;
  z-index: 10;
}

.business {
  position: relative;
  z-index: 10;
  height: 100vh;
  font-size: 2rem;
}

.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 9;
}

.photo-text img {
  filter: brightness(80%);
}

.photo-text .b1 {
  font-size: 1.5em;
  font-weight: bold;
}

.photo-text .b2 {
  font-size: 1.8em;
  font-weight: bold;
  padding-bottom: 1rem;
}

.b3 {
  font-size: 0.8em;
  background-color: black;
  display: inline-block;
  padding: 0.2rem 0.4rem;
}

.photo-text .b4 {
  margin-top: 0.8rem;
  font-size: 0.6em;
  font-weight: normal;
}

.photo-text .red2 {
  padding-top: 1.5em;
}

.photo-text .red2 a {
  font-size: 0.8em;
  font-weight: normal;
}



.business .photo-text {
  z-index: 11;
  /* coverより上に出す */
  position: absolute;
  /* 念のため明示 */
  padding-top: 5rem;
  opacity: 0;
}


.section2 {
  position: relative;
  /* margin-top: 150vh; */
  flex-direction: column;
  text-align: center;
  margin-top: 50vh;
  z-index: 5;
}

.product {
  position: absolute;
  left: 10rem;
}

.section3 {
  height: auto;
}

.service-content-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  /* padding: 3rem 1rem; */
  z-index: 5;
}

.service-content {
  width: 100%;
  background: #fff;
  color: black;
  padding: 4rem;
  /* border-radius: 12px; */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 5;
  min-height: 60vh;
}

.news {
  font-size: 2rem;
  font-weight: bold;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* margin-bottom: 1rem; */
}

.day {
  font-weight: normal;
  font-size: 1rem;
}

.new {
  font-size: 1rem;
  font-weight: normal;
  color: #bd3a03;
}

.news-category {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

.cat {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #42CCEB;
  border-radius: 1rem;
  padding: 0 0.5rem;
}

h2 a {
  font-size: 1.5rem;
}

h2 a {
  color: #000000;
}

.view{
  font-size: 1.5rem;
  text-align: right;
}

.view a {
  text-decoration: underline #42CCEB;
  text-align: right;
  color: #000000;
}

.view .arrow::before {
  border-color: transparent transparent transparent #42CCEB;
}



.news-title {
  opacity: 0;
}

.news-contents {
  opacity: 0;
  transform: translateY(20px);
}

/* タイピング完了後に付与するクラス */
.news-contents.is-show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 3s ease, transform 3s ease;
}

/* =================== ここからレスポンシブ ======================== */


@media screen and (min-width: 1400px) {
  .double .circle {
    width: 40vw;
    height: auto;
    aspect-ratio: 1/1;
    border: 10px solid #0586B6;
  }
}

@media screen and (min-width: 961px) and (max-width: 1400px) {
.photo {
    width: 70%;
  }

  .photo-text {
    top: 0;
    left: 0;
  }

  .photo .photo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .photo .photo-text p {
    margin: 0;
    /* font-size: 0.3rem; */
    position: static;
    /* ← 既存の absolute を上書き */
  }

  /* .photo .photo-text p{
    font-size: 0.5rem;
  } */

  .photo .photo-text .b1 {
    font-size: 1rem;
  }

  .photo .photo-text .b2 {
    font-size: 1.3rem;
    line-height: 1.5rem;
    padding-top: 0.2rem;
  }

  .photo .photo-text .b3 {
    font-size: 0.7rem;
    padding: 0 0.3rem;
  }

  .photo .photo-text .b4 {
    font-size: 0.5rem;
    line-height: 0.8rem;
    padding: 0.5rem;
  }

  .photo .photo-text .red2 {
    padding: 0;
  }

  .photo .photo-text .red2 a {
    font-size: 0.5rem;
  }

  .photo .photo-text .arrow {
    padding-right: 0.5rem;
  }

  .photo .photo-text .arrow:before {
    border-width: 2px 0 2px 5px;
  }

  .business .photo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    /* font-size: 2.3rem; */
  }

  .business .photo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ← 縦中央 */
    align-items: center;
    /* ← 横中央 */
    text-align: center;
    height: 100%;
    /* 高さ必要 */
  }

  .business .photo-text .b2 {
    font-size: 3rem;
    padding: 0;
    margin: 0;
  }

  .business .photo-text .b3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .business .photo-text .b4 {
    margin: 0;
    font-size: 1rem;
    padding: 1rem;
  }

  .business .photo-text .red2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
  }

  .section2 {
    min-height: 120vh;
  }
}


/* =================== タブレット ======================== */
@media screen and (max-width: 960px) {

  canvas {
    width: 100vw !important;
  }

  .vision {
    position: static;
  }

  .double {
    flex-direction: column;
    height: 100%;
  }

  .double .left,
  .double .right {
    width: 100%;
    height: auto;
  }

  .double .circle {
    /* width: min(80vw, 80vh);  */
    width: auto;
    aspect-ratio: 1/1;
    height: 50vh;
    border: 10px solid #0586B6;
  }

  .title {
    font-size: 2rem;
    font-weight: bold;
  }

  .double p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .double .red1 a {
    font-size: 1.5rem;
  }

  .double .red2 a {
    font-size: 1.5rem;
  }

  .photo {
    width: 70%;
  }

  .photo-text {
    top: 0;
    left: 0;
  }

  .photo .photo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .photo .photo-text p {
    margin: 0;
    /* font-size: 0.3rem; */
    position: static;
    /* ← 既存の absolute を上書き */
  }

  /* .photo .photo-text p{
    font-size: 0.5rem;
  } */

  .photo .photo-text .b1 {
    font-size: 1rem;
  }

  .photo .photo-text .b2 {
    font-size: 1.3rem;
    line-height: 1.5rem;
    padding-top: 0.2rem;
  }

  .photo .photo-text .b3 {
    font-size: 0.7rem;
    padding: 0 0.3rem;
  }

  .photo .photo-text .b4 {
    font-size: 0.5rem;
    line-height: 0.8rem;
    padding: 0.5rem;
  }

  .photo .photo-text .red2 {
    padding: 0;
  }

  .photo .photo-text .red2 a {
    font-size: 0.5rem;
  }

  .photo .photo-text .arrow {
    padding-right: 0.5rem;
  }

  .photo .photo-text .arrow:before {
    border-width: 2px 0 2px 5px;
  }

  .business .photo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    /* font-size: 2.3rem; */
  }

  .business .photo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ← 縦中央 */
    align-items: center;
    /* ← 横中央 */
    text-align: center;
    height: 100%;
    /* 高さ必要 */
  }

  .business .photo-text .b2 {
    font-size: 3rem;
    padding: 0;
    margin: 0;
  }

  .business .photo-text .b3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .business .photo-text .b4 {
    margin: 0;
    font-size: 1rem;
    padding: 1rem;
  }

  .business .photo-text .red2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
  }

  .section2 {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 縦位置も中央寄せ（必要なら） */
    text-align: center;
  }

  .product {
    position: static;
    /* ← absolute の影響を消す */
    left: 0;
    margin: 0 1rem;
  }


}


/* =================== スマホ ======================== */

@media screen and (max-width: 768px) {

  canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: calc(var(--real-vh) * 100) !important;
    z-index: -1;
    /* 背景化 */
    object-fit: contain;
  }


  .size1 {
    font-size: 5rem;
  }

  .size2 {
    font-size: 1.5rem;
  }

  .size3 {
    font-size: 1rem;
  }

  .red1 a {
    font-size: 1rem;
  }

  .red2 a {
    font-size: 1rem;
  }

  .top {
    font-size: 2rem;
  }

  .vision {
    right: 0;
    margin: 0 1rem;
  }

  .vision p {
    font-size: 0.9rem;
  }

  .double {
    flex-direction: column;
    height: 100%;
  }

  .double .left,
  .double .right {
    width: 100%;
    height: 50%;
  }

  .double .circle {
    /* width: min(80vw, 80vh);  */
    width: 85vw;
    aspect-ratio: 1/1;
    height: auto;
    border: 10px solid #0586B6;
  }

  .title {
    font-size: 1.5rem;
  }

  .double p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .double .red1 a {
    font-size: 1.3rem;
  }

  .double .red2 a {
    font-size: 1.3rem;
  }

  .photo {
    width: 70%;
  }

  .photo-text {
    top: 0;
    left: 0;
  }

  .photo .photo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .photo .photo-text p {
    margin: 0;
    /* font-size: 0.3rem; */
    position: static;
    /* ← 既存の absolute を上書き */
  }

  /* .photo .photo-text p{
    font-size: 0.5rem;
  } */

  .photo .photo-text .b1 {
    font-size: 0.5rem;
  }

  .photo .photo-text .b2 {
    font-size: 0.7rem;
    line-height: 0.8rem;
    padding: 0.2rem 0;
  }

  .photo .photo-text .b3 {
    font-size: 0.3rem;
    padding: 0 0.1rem;
  }

  .photo .photo-text .b4 {
    font-size: 0.2rem;
    line-height: 0.3rem;
    padding: 0.1rem;
  }

  .photo .photo-text .red2 {
    padding: 0;
  }

  .photo .photo-text .red2 a {
    font-size: 0.3rem;
  }

  .photo .photo-text .arrow {
    padding-right: 0.5rem;
  }

  .photo .photo-text .arrow:before {
    border-width: 2px 0 2px 5px;
  }


  .business .photo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ← 縦中央 */
    align-items: center;
    /* ← 横中央 */
    text-align: center;
    height: 100%;
  }

  .business .photo-text .b2 {
    font-size: 3rem;
    padding: 0;
    margin: 0;
  }

  .business .photo-text .b3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .business .photo-text .b4 {
    margin: 0;
    font-size: 1rem;
    padding: 1rem;
  }

  .business .photo-text .red2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
  }

  .section2 {
   position: relative;
   margin-top: 0;
    width: 100%;
    height: 200vh;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    /* margin-top: 50vh; */
  }

  .product .size3{
    font-size: 0.8rem;
  }

  .view a {
    font-size: 1rem;
  }

  .service-content {
    padding: 2rem 1rem;
  }
  .news-content-title a {
    font-size: 1.3rem;
    color: #000000;
  }
  /* デバッグ用：全ての要素に赤い枠をつける */
/* * { outline: 1px solid red !important; } */
}


@media screen and (min-width: 550px) and (max-width: 960px) {
  .double .circle {
    aspect-ratio: 1/1;
    width: auto;
    height: 45vh;
    border: 10px solid #0586B6;
  }
}

/* @media screen and (min-width: 1400px) {
  .double .circle {
    width: 40vw;
    height: auto;
    aspect-ratio: 1/1;
    border: 10px solid #0586B6;
  }
} */