﻿.container-messeage{
	margin: 3% auto 3% auto;
	width: 80%;
	display: flex;
	flex-wrap: wrap;
}
.messeage-item1{
  width: 100%;
  margin: 10px 15px;
  align-self: center;
}
.messeage-item1-1{
	max-width: 100%;
	height: auto;
	text-align: center;
	font-size: 1.6em;
	line-height: 1.6em;
}
.messeage-item2{
	width: 45%;
	padding-right: 2%;
	line-height: 1.6em;
	font-size: 0.9em;
	font-weight: 500;
}
h2 {
	display: flex;
	align-items: center;
	column-gap: 8px;
	color: #333333;
	width: 100%;
	margin-top: 5%;
	font-size: 20px;
}

h2::before {
    width: 0.8em;
    height: 0.4em;
    border-bottom: 4px solid #2589d0;
    border-left: 4px solid #2589d0;
    transform: rotate(-45deg) translate(2px, -2px);
    content: '';
}

table{
	font-size: 0.9em;
	border-collapse: collapse;
	width: 65%;
	border-spacing: 1px;
	line-height: 1.6;
	align-self: flex-start;
}
.responsive-table th,
.responsive-table td{
	padding: 1px;
	border: solid 1px #ccc;
	box-sizing: border-box;
}
.responsive-table th {
  width:30%;
  background: #333; 
  color: #fff; 
  text-align:center; 
  }
  .messeage-item3{
	width: 32%;
}

@media only screen and (max-width:960px) {
.container-messeage{
  width: 90%;
  flex-direction: column;
}
.messeage-item1{
width: 100%;
margin-right:auto;
}
.messeage-item2{
	width: 100%;
	padding-left: 1%;
	padding-right: 1%;
	margin-top: 4%;
}    
table{
	margin-left: 0%;
	margin-top: -5%;
}
.responsive-table {
    width: 100%; 

  }
.responsive-table th,
.responsive-table td {
    display: block;
    width: 100%;
    border-bottom:none;
    text-align:center; 
  }
  .responsive-table tr:last-child{
    border-bottom: solid 1px #ccc; /* 最後の行の下部に境界線を追加 */
  }
  .messeage-item3{
	width: 100%;
}
.messeage-item3 img{
	width:50%;
    height: 180px;
    object-fit: cover;

}
}
.column-wrapper {
  width: 100%;
  display: flex;
}

.column-wrapper:nth-of-type(even) {
  flex-direction: row-reverse;
}

.column1, .column2 {
  width: 50%;
  display: flex;
  align-items: center;
  min-height: 420px;
}

.column1 {
  background: #fce88d;
  padding: 60px;
  box-sizing: border-box;
}

.column-wrapper:nth-of-type(even) .column1 {
  background: #b5ffb6;
}

.column2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===== スマホ表示（画像 → テキストに統一） ===== */
@media screen and (max-width: 768px) {

  .column-wrapper {
    flex-direction: column;
  }

  /* 偶数の row-reverse を無効化 */
  .column-wrapper:nth-of-type(even) {
    flex-direction: column;
  }

  /* 並び順を指定 */
  .column2 {
    order: 1;   /* 画像を先に */
  }

  .column1 {
    order: 2;   /* テキストを後に */
  }

  .column1,
  .column2 {
    width: 100%;
  }

  /* 画像崩れ防止（iPhone対策） */
  .column2 img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
