@charset "UTF-8";
/* CSS Document */

.jisnin2-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-sizing: border-box;
}

.jisnin2-header {
  text-align: left;
  margin-bottom: 30px;
  margin-top: 50px;
  /*padding-bottom: 20px;*/
  border-bottom: 2px solid #0aafff;
  display: block;
}

.jisnin2-header .jisnin2-site-subtitle {
  font-size: 1.5em;
  color: #333;
  /* font-weight: bold;*/
  margin-bottom: 5px;
}

/* MODIFIED: Styles for h2 tag containing an image */
.jisnin2-header h2 {
  margin-top: 0;
  line-height: 0; /* Remove potential extra space from line height */
  /* Text-specific properties like font-size, color, font-weight are removed as content is an image */
}

/* ADDED: Styles for the title images within h2 */
.jisnin2-header h2 .title-image {
  height: auto;   /* Maintains aspect ratio */
  display: block; /* Base display, will be managed by .pc and .sp classes */
  margin-left: auto; /* <- 画像を中央揃えにするために追加 */
  margin-right: auto; /* <- 画像を中央揃えにするために追加 */
}

/* ADDED: Responsive image display logic */
/* By default, show PC image and hide SP image */
.jisnin2-header h2 .sp.title-image {
  display: none;
}
.jisnin2-header h2 .pc.title-image {
  display: block;
}

.jisnin2-main-content > section:last-child {
  margin-bottom: 0;
}

/* MODIFIED: Added border and adjusted padding to match .jisnin2-section-title-bar.jisnin2-orange-border */
.jisnin2-main-title-section {
  padding: 10px 0 20px 10px; /* Adjusted padding-left */
  text-align: left;
  margin-bottom: 20px;
  border-left: 5px solid #e75900; /* Added border */
}

/* MODIFIED: Adjusted font-size to match .jisnin2-section-title-bar h3 */
.jisnin2-main-title-section h3 {
  font-size: 1.5em; /* Changed from 1.5em */
  color: #333;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
}

.jisnin2-action-section,
.jisnin2-warning-section,
.jisnin2-checklist-section,
.jisnin2-final-message,
.jisnin2-expert-info {
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  /* margin-bottom: 30px;*/
}

/* PCおよび基本のスタイル: ここで横並びを指定 */
.jisnin2-section-header {
  display: flex;
  align-items: center; /* 数字とテキストを垂直方向中央揃え */
  margin-bottom: 15px;
  flex-direction: row; /* 明示的に横並びを指定 (デフォルトですが念のため) */
}

.jisnin2-section-number {
  background-color: #0aafff;
  color: white;
  padding: 8px 12px;
  margin-right: 15px; /* 数字とテキストの間のスペース */
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 4px;
  min-width: 20px;
  text-align: center;
  margin-bottom: 0; /* 横並びなので基本的に下マージンは不要 */
}

/* MODIFIED: Changed h3 to h4 to reflect HTML change, styles preserved */
.jisnin2-action-section .jisnin2-section-header h4 {
  font-size: 1.4em;
  color: #0aafff;
  margin: 0;
  font-weight: bold;
}

/* ADDED: Style for p tag */
.jisnin2-action-section p {
  font-size: 1.1em;
  margin: 15px 0;
}

.jisnin2-highlight-box {
  padding: 15px;
  margin-top: 15px;
  border-radius: 4px;
  text-align: left;
  font-weight: bold;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
  font-size: 1.1em; /* MODIFIED: Font size added */
}

.jisnin2-highlight-box.jisnin2-orange-bg {
  background-color: #0aafff;
  border: 1px solid #0aafff;
  color: #ffffff;
}

.jisnin2-highlight-box.jisnin2-lightblue-bg {
  background-color: #0aafff;
  border: 1px solid #0aafff;
  color: #ffffff;
}

.jisnin2-arrow-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 25px;
  /* margin-bottom: 25px; */
  height: auto;
}

.jisnin2-arrow-down-element {
  background-color: transparent !important;
  border: none !important;
  width: auto;
  height: auto;
  line-height: 0;
}

.jisnin2-arrow-down-element img {
  display: block;
  width: 28px;
  max-width: 28px;
  height: auto;
}

.jisnin2-section-title-bar {
  padding: 10px 0;
  /* margin-bottom: 5px; Removed to allow grid gap to control spacing or specific assignment */
  display: flex;
  align-items: center;
}

.jisnin2-section-title-bar.jisnin2-orange-border {
  border-left: 5px solid #e75900;
  padding-left: 10px;
}

/* MODIFIED: Changed h2 to h3 (from previous turn's request) */
.jisnin2-section-title-bar h3 {
  font-size: 1.45em;
  color: #333;
  font-weight: bold;
  margin: 0;
  flex-grow: 1;
}

.jisnin2-speech-bubble-wrapper {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
}

.jisnin2-checklist-highlight {
  display: inline-block;
  background-color: #e75900;
  color: white;
  padding: 8px 18px;
  font-size: 1.25em;
  border-radius: 6px;
  font-weight: bold;
  position: relative;
}

.jisnin2-checklist-highlight::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 25px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 7px 0 7px;
  border-color: #e75900 transparent transparent transparent;
}

.jisnin2-warning-section ul,
.jisnin2-checklist ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0; /* Added to remove default ul margin if any */
  margin-bottom: 0; /* Added to remove default ul margin if any */
}

/* .jisnin2-warning-flex-container の基本スタイル (SP表示時に主に使用) */
.jisnin2-warning-flex-container {
  /* display: flex; /* PCでは display: contents になるため、SP用メディアクエリに移動 */
  /* align-items: flex-start; /* SP用メディアクエリに移動 */
  /* gap: 10px; /* SP用メディアクエリに移動 */
  width: 100%; /* SPで親要素幅に */
  box-sizing: border-box;
}

.jisnin2-warning-flex-container ul {
  /* flex-grow, flex-shrink, flex-basis はPCのGridレイアウトでは直接影響しない */
  /* min-width: 150px; /* PCのGridレイアウトでカラム幅として考慮 */
  /* margin-bottom: 0; /* PCではGridのgapで調整 */
  padding-left: 0;
  list-style: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.jisnin2-warning-section ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-size: 1.1em;
}

.jisnin2-warning-section ul li::before {
  content: "●";
  color: #e75900;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.9em;
}

.jisnin2-warning-flex-container .jisnin2-image-placeholder {
  /* flex-basis: 315px; /* PCのGridでカラム幅として指定 */
  /* width: 315px; /* PCのGridでカラム幅として指定 */
  margin: 0;
  /* flex-shrink: 0; */
}

.jisnin2-image-placeholder {
  min-height: 150px;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.jisnin2-image-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.jisnin2-checklist li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 4px;
  color: #00b1ad;
  font-weight: bold;
  font-size: 1.2em;
}

.jisnin2-check-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 10px;
  /*background-image: url('/kraso/list/earthquakesandtsunamis/images/checkbutton.png');*/
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.jisnin2-final-message p {
  font-size: 1.1em;
  text-align: left;
  padding: 10px 20px;
  background-color: #fffbeb;
  border-radius: 4px;
}

.jisnin2-expert-info {
  background-color: #c7de88;
}

.jisnin2-expert-header-title {
  font-size: 1em;
  color: #000;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: left;
}

.jisnin2-expert-content {
  display: flex;
  align-items: flex-start;
}

.jisnin2-expert-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.jisnin2-expert-photo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jisnin2-expert-details {
  flex-grow: 1;
}

.jisnin2-expert-details p {
  margin: 5px 0;
}

.jisnin2-expert-title {
  font-size: 0.9em;
  color: #000;
}

.jisnin2-expert-name {
  font-size: 1.1em;
  font-weight: bold;
  color: #000;
}

.jisnin2-expert-bio {
  font-size: 0.9em;
  color: #000;
}

/* ===== START: ADDED STYLES FOR BANNER AREA ===== */
.jishin2-banner-area {
  margin: 30px 0 50px 0;
  padding: 20px;
}

.jishin2-banner-title {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.jishin2-banner-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* バナー間の隙間 */
}

.jishin2-banner-list li a {
  display: block;
}

.jishin2-banner-list li img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */ /* 影を削除 */
}

/* ===== END: ADDED STYLES FOR BANNER AREA ===== */


/* ADDED: Responsive line break hidden by default (on PC) */
br.sp-only {
  display: none;
}

/* PC表示用のスタイル (601px以上) */
@media (min-width: 601px) {
  /* ADDED: Font size for PC */
  .jisnin2-action-section p,
  .jisnin2-highlight-box {
    font-size: 1.1em;
  }
  
  .jisnin2-warning-section {
    display: grid;
    grid-template-columns: 1fr 315px; /* 左カラム:残りスペース, 右カラム:画像の固定幅 */
    grid-template-rows: auto auto;    /* 1行目:タイトル高さ, 2行目:リスト高さ */
    grid-template-areas:
      "title image"
      "list  image";
    column-gap: 20px; /* 列間の隙間 */
    row-gap: 10px;    /* 行間の隙間（タイトルとリストの間など） */
    align-items: start; /* 各アイテムを上端揃え */
  }
  .jisnin2-warning-section > .jisnin2-section-title-bar {
    grid-area: title;
    margin-bottom: 0; /* gapで制御するためリセット */
  }
  .jisnin2-warning-section > .jisnin2-warning-flex-container {
    display: contents; /* コンテナのボックスを無視し、子要素をグリッドアイテムとして扱う */
  }
  .jisnin2-warning-flex-container > ul {
    grid-area: list;
    margin-bottom: 0; /* gapで制御するためリセット */
    width: 100%; /* グリッドエリア内で幅100% */
  }
  .jisnin2-warning-flex-container > .jisnin2-image-placeholder {
    grid-area: image;
    width: 315px; /* 固定幅を維持 */
    align-self: start; /* 画像をエリアの上端に配置 */
  }
  /* PCでは .jisnin2-warning-flex-container の flex レイアウトは不要 */
  .jisnin2-warning-flex-container {
    width: auto; /* display:contents のため、自身の幅は影響しない */
  }
}


/* スマートフォン対応 (600px以下) */
@media (max-width: 600px) {
  /* ADDED: Show responsive line break on SP */
  br.sp-only {
    display: inline;
  }

  .jisnin2-container {
    padding: 10px;
  }

  .jisnin2-header h2 {
    /* font-size: 2em; */
  }

  .jisnin2-header h2 .pc.title-image {
    display: none;
  }
  .jisnin2-header h2 .sp.title-image {
    display: block;
  }

  .jisnin2-header .jisnin2-site-subtitle {
    font-size: 1.2em;
  }

  .jisnin2-main-title-section h3 {
    font-size: 1.5em;
  }
  .jisnin2-main-title-section {
    padding: 10px 0 15px 10px; 
  }

  .jisnin2-arrow-container {
    margin-top: 20px;
   /* margin-bottom: 20px;*/
  }
  .jisnin2-arrow-down-element img {
    width: 22px;
    max-width: 22px;
    height: auto;
  }

  .jisnin2-section-title-bar {
    margin-bottom: 8px; /* SPでのタイトルと次の要素の間のマージン */
  }
  
  .jisnin2-section-title-bar h3 {
    font-size: 1.5em;
  }

  .jisnin2-warning-section {
    display: block; /* PCでのGrid設定を解除 */
  }
  .jisnin2-warning-section > .jisnin2-section-title-bar {
     /* SPではマージンで制御 (上記 .jisnin2-section-title-bar の margin-bottom が適用される) */
  }
  .jisnin2-warning-flex-container {
    display: flex; /* SPではflexに戻す */
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px; /* ulと画像の間の隙間 */
  }
   .jisnin2-warning-flex-container ul {
    width: 100%; /* ulはコンテナ幅いっぱいに */
    margin-bottom: 0; /* gapで制御するため */
  }
  .jisnin2-warning-flex-container .jisnin2-image-placeholder {
    width: 80%; 
    max-width: 315px; 
    flex-basis: auto; 
    margin-left: auto;
    margin-right: auto;
  }


  .jisnin2-speech-bubble-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 10px;
  }

  .jisnin2-checklist-highlight {
    padding: 7px 14px;
    font-size: 0.95em;
  }

  .jisnin2-checklist-highlight::after {
    left: 20px;
    border-width: 8px 6px 0 6px;
  }

  .jisnin2-section-header {
    flex-direction: row; 
    align-items: center; 
  }

  .jisnin2-section-number {
    margin-bottom: 0; 
    margin-right: 10px; 
  }

  .jisnin2-action-section .jisnin2-section-header h4 {
    font-size: 1.4em; 
  }

  .jisnin2-highlight-box {
    width: 100%;
  }

  .jisnin2-image-placeholder {
    min-height: auto;
  }

  .jisnin2-expert-content {
    flex-direction: column;
    align-items: center;
  }

  .jisnin2-expert-photo-placeholder {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .jisnin2-expert-details {
    text-align: center;
  }

  .jisnin2-expert-header-title {
    font-size: 1em;
    color: #000;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
  }

  .jisnin2-expert-bio {
    font-size: 0.9em;
    color: #000;
    text-align: left;
  }
  
  /* ===== START: RESPONSIVE STYLES FOR BANNER AREA ===== */
  .jishin2-banner-list {
    flex-direction: column; /* スマホでは縦積みにする */
  }
  
  .jishin2-banner-title {
    font-size: 1.25em;
  }
  /* ===== END: RESPONSIVE STYLES FOR BANNER AREA ===== */
}