
.haikei_max3{
    width: 100%;
    min-height: 830px; 
    height: auto;
    overflow: hidden; /* 画像がはみ出さないように隠す */
    background-image: url(./img/massage.png); /* 背景画像 */
    background-size: 100% auto; /* 横幅100%、縦は自動調整 */
    background-position: center; /* 画像の中心を親要素の中心に合わせる */
    background-repeat: no-repeat; /* 画像が繰り返し表示されないように */
    position: relative; /* 内容を画像の上に配置するため */
    background-color: #f5f5f5;
}

.haikei_max3 > img {
    width: 100%;
    height: auto;
    display: block;
}

.message-content3 {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
    width: 90%;
    gap: 20px;
    background: none;
}

.message-role {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.role-title h3 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: center;
}

.message-title h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.message-title h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: black;
    position: absolute;
    bottom: 0;
    left: 0;
}

.message-image3 {
    width: 60%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.more-link3 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.more-link3 a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, #b69917, #050505);
    background-clip: text;
    -webkit-background-clip: text;
    transition: color 0.3s ease;
}

.more-link3 a svg {
    margin-left: 8px;
    vertical-align: middle;
}

.more-link3 a:hover {
    color: transparent;
    background-image: linear-gradient(to right, #665013, #d8a90d);
}

/* message_effect を横幅いっぱいに */
.message_effect {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.message_effect::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #00f, #0ff);
    transform: translateY(-50%);
    z-index: -1;
}

.message-role p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    padding: 10px 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
    position: relative;
    border-left: 4px solid #ffd700; /* ホバーしていないときにも黄色の左ボーダー */
    border-right: 4px solid #ffd700; /* ホバーしていないときにも黄色の右ボーダー */
    transition: all 0.3s ease; /* 変化にアニメーション */
}



.message-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* 左右の線とテキストの間隔 */
    position: relative;
    margin: 20px 0; /* 上下のマージン */
}

.message-line p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    padding: 10px 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
    position: relative;
    border-left: 4px solid #ffd700; /* 黄色の左ボーダー */
    border-right: 4px solid #ffd700; /* 黄色の右ボーダー */
    transition: all 0.3s ease; /* 変化にアニメーション */
}

.line {
    flex: 1;
    height: 2px;
    background-color: #333;
    position: relative;
}

.left {
    margin-right: 20px;
    position: relative;
}

.left::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -50vw;
    width: 60vw;
    height: 3px;   /* 横線の高さ */
    background: repeating-linear-gradient(
        45deg,  /* 45度の角度でジグザグ */
        #f1ce04,   /* 線の色 */
        #a19316 10px, /* 線の幅 */
        transparent 10px, /* 透明部分の幅 */
        transparent 20px  /* 線と線の間隔 */
    );
    transform: translateY(-50%); /* 横線が中央に来るように調整 */
}

.right {
    margin-left: 20px;
    position: relative;
}

.right::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -57.5vw;
    width: 60vw;
    height: 3px;   /* 横線の高さ */
    background: repeating-linear-gradient(
        45deg,  /* 45度の角度でジグザグ */
        #f1ce04,   /* 線の色 */
        #a19316 10px, /* 線の幅 */
        transparent 10px, /* 透明部分の幅 */
        transparent 20px  /* 線と線の間隔 */
    );
    transform: translateY(-50%); /* 横線が中央に来るように調整 */
}
