body {
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  margin: 0;
  background: #202936; /* グレー */
  color: white;

}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 20px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  min-height: 100px;/* 画像の高さと同じ数字を入れる */

}

.header-text h1 {
  font-size: 32px;
  letter-spacing: 2px;

  margin: 0;
  overflow: hidden;
}

.sub {
  font-size: 14px;
  opacity: 0.7;
}

.header-text h2 {
  font-size: 28px;
  margin-top: 20px;
  border-bottom: 2px solid #00e0ff;
  display: inline-block;
}

.header-text {
  position: absolute;
  top: 40px;
  left: 10px;
  max-width: 800px;
 }



.main {
  max-width: 1200px;
  margin: 80px auto;
  padding: 40px;
  color: #b8d0db;
  background: url("oc_background.jpg") center/100% no-repeat;
  border-radius: 12px;
  position: relative;
}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* ←ここで透明度調整 */
  z-index: 0;
}

/* 中身を前面に出す */
.main > * {
  position: relative;
  z-index: 1;
}


/* タイトル */
.main h1 {
  font-size: 22px;
  margin-bottom: none;
  letter-spacing: 0.05em;
}

/* 本文 */
.main p {
  line-height: 1.9;
  margin-bottom: 20px;
}

/* リンク */
.main a {
  color: #00bcd4;
  text-decoration: underline;
  text-decoration-color: rgba(0, 188, 212, 0.3);
}

.main a:hover {
  color: #0097a7;
}


.card-container {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  row-gap: 40px; 
  column-gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
}


.card {
  cursor: pointer;
  position: relative;
  width: 340px;
  height: 130px;
  margin-bottom: 24px;
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );

  overflow: hidden; /* ←これ重要 */
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}


.card:hover {
  box-shadow:
    0 0 12px rgba(0,255,255,0.7),
    0 0 30px rgba(0,255,255,0.4);

  filter: brightness(1.1);
}


/* 外側の発光枠 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;

  clip-path: inherit;
  border: 2px solid rgba(0,255,255,0.6);

  box-shadow:
    0 0 8px rgba(0,255,255,0.8),
    0 0 20px rgba(0,255,255,0.4);

  pointer-events: none;
}


.card.navy::before {
  border-color: rgba(0,120,255,0.6);
  box-shadow:
    0 0 8px rgba(0,120,255,0.8),
    0 0 20px rgba(0,120,255,0.4);
}

.card.navy::after {
  border-color: rgba(0,120,255,0.4);
}




/* 内側の細いライン */
.card::after {
  content: "";
  position: absolute;
  inset: 6px;

  clip-path: inherit;
  border: 1px solid rgba(0,255,255,0.4);

  pointer-events: none;
}



/* 中身 */
.card-inner {
  display: flex;
  align-items: stretch;
  gap: 16px;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 8px 14px;
  border-radius: 10px;
  backdrop-filter: blur(10px); /* ガラス効果 */
  -webkit-backdrop-filter: blur(10px);

  background: rgba(0, 180, 200, 0.08); /* 半透明 */
  color: white;
  clip-path: polygon(
  20px 0,
  100% 0,
  100% calc(100% - 20px),
  calc(100% - 20px) 100%,
  0 100%,
  0 20px
  );
}


.card-inner h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  padding-bottom: 4px;
}



.card-inner::before {
  content: "";
  position: absolute;
  left: 120px;  /* 画像分 */
  right: 20px;  /* 右余白 */
  top: 42%;
  height: 2px;
  background: rgba(0,255,255,0.5);
  pointer-events: none;
}



.card-inner p {
  font-size: 0.8rem;
  line-height: 1.6;
}

.card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: url("https://www.transparenttextures.com/patterns/asfalt-light.png");
  opacity: 0.15; /* ←ここ超重要：低くする */

  mix-blend-mode: overlay;
}

/* 左側画像 */
.card-left {
  width: 100px;
  height: 100px;
  transform: translateY(-5px);
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  align-self: center;
  clip-path: polygon(
   20px 0,
   100% 0,
   100% calc(100% - 20px),
   calc(100% - 20px) 100%,
   0 100%,
   0 20px
  );

  overflow: hidden;
}

.card-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-left::after {
  content: "";
  position: absolute;
  inset: 4px;

  border: solid 1px rgba(255,255,255,0.6);
  clip-path: inherit;

  pointer-events: none;
}


.card-right {
  flex: 1; /* ←これが最重要 */
  margin-right: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center
}

.card-right h3,
.card-right p {
 text-align: center;
 width: 100%;
}

.card.cyan {
  background: linear-gradient(135deg,
    rgba(0,180,200,0.5),
    rgba(0,150,200,0.25)
  );

  box-shadow:
    0 0 10px rgba(0,180,200,0.6),
    0 0 30px rgba(0,180,200,0.3);
}


.card.navy {
  background: linear-gradient(135deg,
    rgba(0,60,120,0.5),
    rgba(0,30,70,0.25)
  );

  box-shadow:
    0 0 10px rgba(0,60,120,0.6),
    0 0 30px rgba(0,60,120,0.3);
}



.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,20,0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}


.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(10,20,40,0.9);
  padding: 24px;
  border-radius: 12px;
  color: white;
  width: 400px;

  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}



.map {
  position: relative;
  min-height: 600px; /* とりあえず仮でOK */
}

/* カード */
.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 40px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

/* 線 */
.lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 線の見た目 */
.lines line,
.lines polyline {
  stroke: rgba(0,255,255,0.8);
  stroke-width: 2;
  fill: none;
}



.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 13px;
}



/* 戻る */
.back {
  display: inline-block;
  margin-top: 40px;
}


.footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}



@media (max-width: 768px) {
   .card-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;   
    grid-auto-flow: row;       
    row-gap: 24px;
    column-gap: 0;
  }

.main {
    background: url("oc_background.jpg") center top / 100% auto no-repeat;
    max-width: 600;   
    width: 100%;       
    margin: 0;        
    padding: 20px; 
  }

 .card {
    width: 100%;
    max-width: 600;
    height: 120px; /* 少し低くしてもOK */
  }

.lines { display: none; }

  .grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }


}