/* =========================================
   ナスバちゃんの現場見学日記
========================================= */
.nasvachan-diary-section {
    padding: 60px 0;
}

/* 日記コンテナ（全体を囲む） */
.diary-container {
    position: relative;
    margin: 30px auto;
}

/* =========================================
   H2設定ここから
========================================= */
/* ▼ ラベル部分 ▼ */
.diary-label {
    position: absolute;
    top: -18px;
    left: 20px;
    background-color: #2196F3;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* ▼ メインの水色エリア ▼ */
.diary-body {
    background-color: #d0ecff;
    padding: 40px 140px 25px 40px; 
    position: relative;
    z-index: 5;
}

/* ▼ はみ出す画像 ▼ */
.diary-image {
    width: 130px;
    height: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -20px;
    z-index: 11; 
}

.diary-text {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 1.5rem;
    line-height: 1.6;
    border: none;
}

/* ▼▼ レスポンシブ対応（スマホ） ▼▼ */
@media (max-width: 768px) {
    .nasvachan-diary-section {
        padding: 40px 0;
    }
    
    .diary-container {
        width: 90%;
    }
    
    .diary-label {
        font-size: 0.8rem;
        padding: 6px 15px;
        top: -15px;
        left: 15px;
    }
    
    .diary-body {
        padding: 35px 20px 60px 20px; 
    }
    
    .diary-image {
        width: 90px;
        top: auto; 
        bottom: -15px; 
        right: -10px;
        transform: none; 
    }
    
    .diary-text {
        font-size: 1.1rem;
    }
}
/* =========================================
   H2設定ここまで
========================================= */

/* =========================================
   H3設定ここから
========================================= */
.diary_h3 {
 display: inline-block;
 position: relative;
  padding: 2px 25px 2px 25px;
  font-size: 20px;
  color: #333;
  background: #d0ecff;
  border-radius: 0 10px 10px 0;
  margin-left: 25px;
  margin-bottom: 15px;
}

.diary_h3:before {
  font-family: "Font Awesome 5 Free";
  content: "\f186";
  display: inline-block;
  line-height: 40px;
  position: absolute;
  padding: 0em;
  color: white;
  background: #2196F3;
  font-weight: 900;
  width: 40px;
  text-align: center;
  height: 40px;
  line-height: 40px;
  left: -1.35em;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border: solid 3px white; 
  border-radius: 50%;
}

/* H3アイコン着せ替え用の追加クラス */
/* 当日 */
.diary_h3.icon-toujitsu:before {
  content: "\f185";
}

/* まとめ */
.diary_h3.icon-matome:before {
  content: "\f005";
}

/* 一コマ */
.diary_h3.icon-hitokoma:before {
  content: "\f0eb";
}
/* =========================================
   H3設定ここまで
========================================= */

/* =========================================
   ピンクのBOX設定
========================================= */
.diaryBOX{
    padding: 0.7em 1em;
    margin: 3em 0;
    color: #565656;
    background: #ffeaea;
    box-shadow: 0px 0px 0px 10px #ffeaea;
    border: dashed 2px #ffc3c3;
    border-radius: 8px;
}

.diaryBOX p{
    margin-bottom: 0;
}

/* =========================================
   h4設定
========================================= */
h4.line-green {
    color: var(--text-brown);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: none;
    background-image: repeating-linear-gradient(-45deg, #98ce0e, #98ce0e 4px, #ffffff 4px, #ffffff 8px);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    display: block;
    width: fit-content;
}

/* =========================================
   ダミー君のふきだし設定ここから
========================================= */
.balloon5 {
  width: 100%;
  margin: 1.5em 0;
  overflow: hidden;
}

.balloon5 .faceicon_dummy {
  float: right;
  margin-left: -90px;
  width: 80px;
}

.balloon5 .faceicon_dummy img{
  width: 80%;
  height: auto;
}

.balloon5 .chatting_dummy {
  width: 100%;
  text-align: right;
}

.says_dummy {
  display: inline-block;
  position: relative; 
  margin: 5px 105px 0 0; 
  padding: 17px 13px;
  border-radius: 12px;
  background: #fff0c6;
  text-align: left;
}

.says_dummy:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 18px; 
  right: -24px;
  border: 12px solid transparent;
  border-left: 12px solid #fff0c6;
}

.says_dummy p {
  margin: 0;
  padding: 0;
}
/* =========================================
   ダミー君のふきだし設定ここまで
========================================= */

/* =========================================
   イタリック設定
========================================= */
.naname{
    font-style: italic;
}

/* =========================================
   マステ付きメモ帳ボックス設定ここから
========================================= */
/* ボックス本体 */
.memo-box {
    position: relative;
    background-color: #ffffff;
    border: 3px solid #3d3b38;
    padding: 50px 40px 40px;
    margin: 40px auto 15px;
    max-width: 800px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.05);
}

/* ▼ マスキングテープの装飾 ▼ */
.memo-box::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 220px;
    height: 40px;
    background-color: #aed95d; 
    opacity: 0.95; 
    /* 端のギザギザ */
    clip-path: polygon(
        0% 0%, 100% 0%, 
        97% 10%, 100% 20%, 98% 30%, 100% 40%, 97% 50%, 100% 60%, 98% 70%, 100% 80%, 97% 90%, 100% 100%, 
        0% 100%, 
        2% 90%, 0% 80%, 3% 70%, 0% 60%, 2% 50%, 0% 40%, 3% 30%, 0% 20%, 2% 10%
    );
    /* ギザギザの形に沿って影をつける */
    filter: drop-shadow(2px 3px 2px rgba(0,0,0,0.2));
    z-index: 10;
}

/* メモの中のテキストの調整 */
.memo-box-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-size: 1rem;
}
/* 最後の段落の下は余白をなくす */
.memo-box-content p:last-child {
    margin-bottom: 0;
}

/* ▼▼ レスポンシブ対応（スマホ） ▼▼ */
@media (max-width: 768px) {
    .memo-box {
        padding: 40px 20px 30px;
        margin: 30px 10px;
    }
    
    .memo-box::before {
        width: 180px;
        height: 35px;
        top: -17px;
    }
}
/* =========================================
   マステ付きメモ帳ボックス設定ここまで
========================================= */

/* =========================================
   画像付きのH4見出し設定ここから
========================================= */
.heading-with-icon {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.heading-with-icon img {
    width: 80px;
    height: auto;
    margin-bottom: -10px;
}

.heading-with-icon h4.line-green {
    margin-bottom: 0;
}

/* ▼▼ レスポンシブ対応（スマホ） ▼▼ */
@media (max-width: 768px) {
    .heading-with-icon img {
        width: 60px;
    }
}
/* =========================================
   画像付きのH4見出し設定ここまで
========================================= */


/* 縦方向（天地）の中央揃え */
.align-v-center {
    align-items: center;
}

/* =========================================
   黄色い「詳しくはこちら」ボタン
========================================= */
.btn-yellow-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #ffe600;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 40px 12px 20px;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-yellow-detail:hover {
    background-color: #ffd000;
    transform: translateY(2px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.btn-yellow-detail::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    /* 中の白い矢印部分 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px; 
}

.modoru_work{
    display: inline-block;
    background-color: #faa200;
    color: #fff;
    border: solid 3px;
    padding: 10px 40px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    line-height: 1.5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modoru_work:hover {
    background-color: #fa8500;
    transform: translateY(2px);
}