@charset "utf-8";
/* CSS Document */

/* =========================================================
   熱中症動画フロー
   ========================================================= */

.flow-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fce4d6;
  border: 2px solid #333;
  
}

#contents .fix-20260325 a {
  text-decoration: none;
}

.flow-header {
  background-color: #ccc;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.flow-main {
  padding: 30px 20px;
}

.node-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.side-text {
  position: absolute;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #333;
  width: 250px;
  z-index: 2;
}

.symptoms {
  max-width: 70%;
}

.right-text {
  left: calc(50% + 140px); /* 図形の右側に配置 */
}

.right-text.small-width {
  width: 200px; /* 右ルート用の少し狭いテキスト幅 */
  left: calc(50% + 110px);
}

.left-text {
  right: calc(50% + 110px); /* 図形の左側に配置 */
  text-align: left;
}

.bottom-text {
  position: static;
  margin-top: 15px;
  text-align: center;
  width: 100%;
}

/* 画像（イラスト）の共通設定 */
.illustration img {
  max-width: 100%;
  height: auto;
  display: block;
}

.left-ill {
  left: 2%;
  width: 120px;
  position: absolute;
  right: 100%;
}

.center-ill {
  margin: 15px auto;
  width: 100px;
}

/* ノード（図形）の共通設定 */
.node-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node {
  padding: 16px 16px;
  text-align: center;
  font-weight: bold;
  color: #333;
  border: 2px solid #ffffff;
  margin: 0 auto;
  line-height: 1.5;
  z-index: 1;
  align-content: center;
  max-width: 256px;
}

/* 図形の形 */
.shape-pill {
  border-radius: 50px;
}
.shape-rect {
  border-radius: 5px;
}
.shape-diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  padding: 40px 20px;
  width: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}

/* 色 */
.color-orange {
  background-color: #f6b28a;
}
.color-yellow {
  background-color: #ffffa0;
}
.color-blue {
  background-color: #79c6eb;
}

/* 矢印 */
.arrow {
  width: 0;
  height: 0;
  border-style: solid;
  margin: 10px auto;
}
.arrow-down {
  border-width: 15px 10px 0 10px;
  border-color: #666 transparent transparent transparent;
}

/* 分岐エリア */
.flow-branches {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 20px;
}
.branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* はい / いいえ の分岐レイアウト用 */
.split-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 180px;
  margin-bottom: 10px;
}
/* =========================================================
   ボタンとアンカーリンクの追加スタイル
   ========================================================= */

/* アイコン付きボタン（動画・資料）の共通スタイル */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #485b6b;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  margin: 8px 0;
  width: 303px;
}

/* マウスホバー時の動き */
.icon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: #fdf5f0;
  text-decoration: none;
}

.icon-btn img {
  width: 16px !important;
  height: auto;
  margin-right: 8px;
}

.icon24 img {
  width: 24px !important;
}

.node,
.node-container {
  scroll-margin-top: 40px;
}

html {
  scroll-behavior: smooth;
}

.side-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0;
}

.whiteboard-area {
  background-color: #d1d5db;
  padding: 10px;
  border-radius: 8px;
  position: relative;
  margin-right: 50px;
}

.whiteboard {
  background-color: #f6f6f6;
  border: 3px solid #333;
  border-radius: 4px;
  padding: 20px;
}

.teacher-box {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 150px; 
  z-index: 10;
}

.teacher-box img {
  width: 100%;
  height: auto;
  display: block;
}
.whiteboard h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.whiteboard ul {
  list-style: none;
  padding-left: 10px;
  line-height: 1.8;
  font-weight: bold;
}
.whiteboard li {
  margin-bottom: 5px;
}

.flow-footer {
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 20px;
}
.flow-footer p {
  line-height: 1.6;
}
.small-text {
  font-size: 0.8rem;
  color: #555;
  margin-top: 10px;
}

/* スマートフォン対応（768px以下） */
@media screen and (max-width: 768px) {
  .node-container {
    flex-direction: column;
  }
  .side-text {
    position: static;
    width: 95%;
    margin: 10px auto;
    text-align: center;
  }
  .left-ill {
    position: static;
    margin-bottom: 20px;
  }
  .flow-branches {
    flex-direction: column;
  }
  .branch {
    margin-bottom: 40px;
    padding-bottom: 40px;
    /* border-bottom: 2px dashed #999; */
  }
  .branch:last-child {
    border-bottom: none;
  }
  .whiteboard-area {
    justify-content: center;
    margin-top: 40px;
    margin-right: 20px;
  }
}

/* =========================================================
   テキストリンクとボタンの横並び設定
   ========================================================= */
.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}

.action-row .icon-btn {
  margin: 0;
}

.split-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .split-actions {
    flex-direction: column;
    gap: 30px;
  }
}

.route-split {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0 20px 0;
}

.route-yes {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.route-no {
  display: flex;
  flex-direction: column;
  align-items: center;
}



/* スマホ表示時の調整（画面幅768px以下） */
@media screen and (max-width: 768px) {
  .route-no {
    position: static;
    flex-direction: column;
    margin-top: 20px;
    align-items: center;
  }
  
}

.node-subtext {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  /* text-align: center; */
  margin-top: 8px;
  margin-bottom: 8px;
  width: 100%;
  padding: 0px 32px;
}

.subtext-with-image {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
  max-width: 380px;
}

.subtext-with-image img {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.subtext-with-image .text-content {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .subtext-with-image {
    flex-direction: column;
  }
  .subtext-with-image .text-content {
    text-align: center;
    text-align-last: left;
  }
  .node-subtext {
    padding: 0px;
  }
}

.icon-btn.icon-only {
  padding: 6px 12px;
}

.icon-btn.icon-only img {
  margin-right: 0;
  width: 36px !important;
}

.question1-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.question1-text-right {
  position: absolute;
  left: calc(50% + 130px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .question1-container {
    flex-direction: column;
    align-items: center;
  }
  .question1-text-right {
    position: static;
    transform: none;
    width: 100%;
    max-width: 320px;
    text-align: center;
    margin-top: 15px;
    text-align-last: left;
  }
}

.combined-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #485b6b;
  border-radius: 8px;
  padding: 8px 8px;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  height: 40px;
}

.combined-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: #fdf5f0;
}

.combined-btn img {
  width: 24px !important;
  height: auto;
  margin-right: 8px;
}

/* スマホ表示時（画面が狭い場合）の消失・崩れ防止 */
@media screen and (max-width: 768px) {
  .route-split {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
  }

  .route-no {
    position: static;
    flex-direction: column;
    width: 100%;
    margin: 0;
  }

}

@media screen and (max-width: 768px) {
  .fix-20260325,
  .fix-20260325 .node-container,
  .fix-20260325 .flow-branches,
  .fix-20260325 .split-actions,
  .fix-20260325 .route-split {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }

  .fix-20260325 {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    display: block !important;
  }

  .fix-20260325 .node-container,
  .fix-20260325 .branch {
    min-width: 300px;
    flex-shrink: 0 !important;
  }
}

@media screen and (min-width: 769px) {
  .only-sp {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .flow-branches {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 20px;
    gap: 40px;
  }

  .flow-header,
  .flow-footer {
    display: block !important;
    width: 90%;
    box-sizing: border-box;
  }

  .branch {
    min-width: 280px;
    flex-shrink: 0;
  }
}

.flow-container {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.flow-header, 
.flow-main {
  min-width: 950px!important;
}

.scroll-notify-wrapper.only-sp {
  position: sticky;
  left: 0;
  width: 100vw;
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .node-container { flex-direction: row !important; }
  .side-text { position: absolute !important; width: 250px !important; margin: 0 !important; }
  .left-ill { position: absolute !important; margin-bottom: 0 !important; }
  
  .flow-branches { 
    flex-direction: row !important; 
    gap: 20px !important; 
    padding: 0 !important; 
    overflow-x: visible !important;
  }
  .branch { 
    border-bottom: none !important; 
    margin-bottom: 0 !important; 
    padding-bottom: 0 !important; 
    min-width: auto !important; 
  }
  
  .route-split { flex-direction: row !important; gap: 0 !important; }
  .route-no { position: absolute !important; flex-direction: row !important; margin-top: 0 !important; }
  
  .subtext-with-image { flex-direction: row !important; }
  .subtext-with-image .text-content { text-align: left !important; }
  
  .question1-container { flex-direction: row !important; }
  .question1-text-right { 
    position: absolute !important; 
    transform: translateY(-50%) !important; 
    width: 260px !important; 
    margin-top: 0 !important; 
  }
  
  .whiteboard-area { 
    justify-content: flex-end !important; 
    margin-top: 60px !important; 
    margin-right: 50px !important; 
  }
}

.flow-container {
  background-color: #fce4d6 !important;
}

.flow-header {
  background-color: #ff7100 !important;
  color: #fff;
  font-size: x-large;
}

@media screen and (max-width: 768px) {
  .flow-header {
    position: sticky !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    min-width: auto !important;
    box-sizing: border-box !important;
    z-index: 20 !important;
  }
}

@media screen and (min-width: 769px) {
  .flow-container,
  .fix-20260325 {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
  }
}

@media screen and (max-width: 768px) {
  .route-split {
    justify-content: space-between !important;
    width: 100% !important;
  }
  .route-no {
    position: relative !important;
    flex-direction: column !important;
  }
}

.route-split {
  position: relative;
  z-index: 1;
  margin-top: 50px !important; 
  display: flex;
  width: 100%;
}

.route-yes,
.route-no {
  position: relative; 
  width: 50%; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.route-split::before {
  content: "";
  position: absolute;
  top: -25px;
  left: calc(25% - 3px);  
  right: calc(25% - 3px); 
  height: 6px;
  background-color: #a0a0a0;
  z-index: -1;
}

.route-split::after {
  content: "";
  position: absolute;
  top: -80px; 
  left: 50%;
  width: 6px;
  height: 55px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
  z-index: -1;
}

.route-yes::before,
.route-no::before {
  content: "";
  position: absolute;
  top: -25px; 
  left: 50%;
  width: 6px;
  height: 25px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
  z-index: -1;
}

.route-split {
  z-index: 10 !important;
}

#step-water {
  position: relative;
  z-index: 1;
}

#step-water::before {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -15px;
  left: 30%; 
  width: 20%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' width='100%25' height='100%25'%3E%3Cline x1='0' y1='0' x2='100%25' y2='100%25' stroke='%23a0a0a0' stroke-width='6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

#step-water .subtext-with-image {
  background-color: #fce4d6; 
  position: relative;
  z-index: 2; 
  padding: 10px; 
  border-radius: 8px;
}

#step-water + .arrow {
  position: relative;
  z-index: 2;
}


.node.shape-diamond {
  position: relative;
  z-index: 20 !important; 
}

#kyukyu_right {
  position: relative;
}

#kyukyu_right::before {
  content: "";
  position: absolute;
  top: 20px; 
  height: 380px; 
  left: 50%;
  width: 6px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
  z-index: -1; 
}

#right-branch .side-links {
  position: relative;
  z-index: 5; 
  background-color: #fce4d6;
  padding: 10px 0;
}

#right-branch .node-wrapper > .node-subtext:first-child {
  position: relative;
  z-index: 5; 
  background-color: #fce4d6;
  padding: 10px 0;
}

#right-branch .node,
#right-branch .arrow,
#right-branch .combined-btn {
  position: relative;
  z-index: 5; 
}

.flow-branches {
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

.flow-branches::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 24px);
  left: 50%;
  width: 6px;
  height: 140px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
  z-index: -1;
}

.branch {
  position: relative;
}

.left-branch::before {
  content: "";
  position: absolute;
  top: -30px;
  left: calc(50% - 3px);
  right: -10px;
  height: 6px;
  background-color: #a0a0a0;
  z-index: -1;
}
.left-branch::after {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 6px;
  height: 50px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
  z-index: -1;
}

.branch.right-branch::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -10px;
  right: calc(50% - 3px);
  height: 6px;
  background-color: #a0a0a0;
  z-index: -1;
}
.branch.right-branch::after {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 6px;
  height: 50px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
  z-index: -1;
}

#kyukyu_right {
  z-index: auto !important;
}

#kyukyu_right::before {
  height: 294px !important;
}

#cool_node {
  position: relative;
}

#cool_node::before {
  content: "";
  position: absolute;
  top: 102%;
  left: 50%;
  width: 6px;
  height: 86px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
  z-index: -1;
}

#cool_node + .node-subtext {
  position: relative;
  z-index: 5;
  background-color: #fce4d6;
  padding: 5px 10px;
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  .fixed {
    position: sticky !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px 20px 15px !important;
  }
}

.w250{
  width:250px!important;
}

/* 大きい紫の文頭記号 */
ul.listCS {
  list-style: none;
  line-height: 1.5em;
}
.listCS li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.listCS li::before {
  content: '';
  display: inline-block;
  position: absolute;
  top: 6px;
  left: 0;
  width: 15px;
  height: 15px;
  background-color: #421554;
  border-radius: 10px;
}

/* （※1）~OLリスト */
ol.list2CS {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

ol.list2CS li {
  counter-increment: item;
  position: relative;
  padding-left: 4.5em;
  margin-bottom: 1em;
  word-break: break-all;
}

ol.list2CS li::before {
  content: "（※" counter(item, fullwidth) "）"; 
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

/* ボタンを横並びにするためのコンテナ */
.video-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* QRコード表示用の小ボタン */
.qr-btn {
  background-color: #485b6b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  height: 40px; /* combined-btnの高さに合わせる */
  transition: background 0.2s;
}

.qr-btn:hover {
  background-color: #2c3e50;
}

/* モーダル背景 */
.qr-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

/* モーダルコンテンツ */
.qr-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 255px;
  text-align: center;
  position: relative;
}

.qr-modal-content img {
  width: 180px;
  height: 180px;
}

.qr-close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.qr-title { font-weight: bold; margin-bottom: 10px; }
.qr-desc { font-size: 0.8rem; margin-top: 10px; color: #666; }

