/* --- 全体のレイアウト --- */
.chart-container {
    font-family: "Noto Sans JP", sans-serif; 
    margin-left: 100px;
    color: #1c1b1b;
}
.chart-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* タイトルを左寄せ */
}
.chart-item2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
   
}
/* --- タイトルとアイコンの装飾 --- */
.chart-title {
    font-size: 32px;
    font-weight: 500;
    color: #1c1b1b;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 90px;
}
.chart-title2 {
    font-size: 32px;
    font-weight: 500;
    color: #1c1b1b;
    margin-bottom: -10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}
.chart1{
    display: flex;
    gap: 200px;
}
.chart2{
    display: flex;
    align-items: center;
    gap: 50px;
}

.chart-image {
    width: 95%;
    height: 95%;
}
.chart-image2{
    width: 95%;
    height: 95%;    
}
.supplement-text {
    position: relative;
    margin-top: 40px;
    padding: 15px 30px;
    font-size: 20px;
    color: #1c1b1b;
    display: inline-block;
    text-align: center;
}
.bracket-left, .bracket-right {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #be86b9; /* 学部と同じ紫 */
    border-style: solid;
}
.bracket-left2, .bracket-left3, .bracket-right2, .bracket-right3{
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
}
.bracket-left, .bracket-left2, .bracket-left3 {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px; /* 左、上、下 */
}

.bracket-right, .bracket-right2, .bracket-right3 {
    top: 35px;
    right: 0;
    border-width: 0 3px 3px 0; /* 右、上、下 */
}
.bracket-left2, .bracket-right2{
    border-color: #A93B3E;
}
.bracket-left3, .bracket-right3{
    border-color: #A3CE6B;
}
#section2{
 height: 1570px;
}

.interview-canvas {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 900px; 
    margin-top: 200px;
    margin-left: 120px;
}
.diamond-item{
    position: relative;
    width: 500px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.diamond-item2{
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.diamond-item:hover, .diamond-item2:hover {
    transform: scale(1.05); 
}

.diamond-wrapper{
    position: relative;
    width: 100%;
}
.diamond-image {
    width: 100%;
    height: auto;
    display: block;
}
.diamond-image2{
    width: 170%;
    height: auto;
    display: block;    
}
.diamond-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fffcfc;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
    width: 80%; /* はみ出し防止 */
    pointer-events: none;
}
.diamond-text2{
    position: absolute;
    top: 50%;
    left: 105%;
    transform: translate(-50%, -50%);
    color: #fffcfc;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
    width: 80%; /* はみ出し防止 */
    pointer-events: none;
    white-space: nowrap;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #FDEAE9;
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-card {
    width: 200px;
    height: 200px;
    background: #A93B3E; 
    transform: rotate(45deg); /* ひし形からスタート */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.modal-overlay.active .modal-card {
    width: 90%;
    max-width: 800px;
    height: 70%;
    min-height: 500px;
    transform: rotate(0deg); /* 正方形に戻る */
    background: #fffcfc;
    border: 6px solid #A93B3E;
    opacity: 1;
    padding: 40px;
}


.modal-inner-content {
    opacity: 0;
    transition: opacity 0.3s 0.5s;
    width: 100%;
}

.modal-overlay.active .modal-inner-content {
    opacity: 1;
}

.bubble-tag {
    position: absolute;
    background: #fffcfc;
    border: 3px solid #A93B3E;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 50px;
    cursor: pointer;
}
.modal-title{
    color: #A93B3E;
    font-weight: 500;
    margin-bottom: 35px;
}

.modal-inner-content {
    opacity: 0;
    transition: opacity 0.3s 0.4s; 
    width: 90%;
    text-align: center;
}

.modal-overlay.active .modal-inner-content {
    opacity: 1;
}

.eee {
    position: relative;
    height: 2000px;
    margin: 0 auto;
}


.framed-text {
    position: absolute;
    top: 20px;
    left: 50px;
    display: inline-block;
    border: 6px solid #A93B3E; 
    padding: 15px 40px;
    background-color: #fffcfc;
    color: #1c1b1b;
    font-size: 28px;
    font-weight: 500;
    z-index: 10;
}

.pos-left-top {
    top: 250px;
    left: 50px;
    width: 470px;
}

.pos-right-top {
    top: -200px;
    left: 590px;
    width: 290px;
}
.pos-left-center {
    top: 480px;
    left: 430px;
    width: 200px;
}
.pos-right-center{
    top:-130px;
    left: 600px;
    width: 470px;
}
.pos-left-bottom{
    top:-210px;
    left: 45px;
}
.pos-right-bottom{
    top: 770px;
    left: 940px;
     width: 200px;
}
.image-vector{
    width: 65%;
}
.mini-vector {
    position: absolute;
}
.pos-left-bottom-bottom{
    top: -520px;
    left: 40px;
    width: 470px;
}
.pos-right-bottom-bottom{
    top: -370px;
    left: 700px;
    width: 470px;
}


.modal-main-visual {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.modal-main-visual img {
    max-width: 100%;
    height: auto;
    border: 2px solid #A93B3E; 
    display: block !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    
    /* もしこれでも出ないなら、画像に余白が必要かも */
    margin-bottom: 20px !important;
}


.tag-pos-0 { top: -10px; left: -20px; }
.tag-pos-1 { top: 20%; right: -50px; }
.tag-pos-2 { bottom: 40%; left: -60px; }
.tag-pos-3 { bottom: -15px; right: -100px; }
.tag-pos-4 { bottom: 45px; left: -90px; }

.modal-main-visual {
    position: relative; 
    display: inline-block;
}

.sp-br{
 display: none;
}
.chart-image3{
    margin-top: 32px;
}
@media screen and (max-width: 1024px) and (orientation: portrait){
    .chart-image3{
    margin-top: 0px;
}

   
 
    .eee {
        display: flex;
        flex-direction: column; 
        align-items: center;   
        padding-top: 60px;
    }
     .mini-vector, .pos-right-bottom, .pos-left-center {
        display: none;
    }


    .diamond-item, .pos-left-top, .pos-right-center, .pos-right-bottom-bottom {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 80% !important;
        max-width: 400px; 
        margin: 0 auto -25px !important; 
        transform: none !important;
    }



  .modal-main-visual {
        display: block;       
        width: 100%;          
        max-width: 100%;      
        margin: 0 auto;       
        padding: 0;           
    }

    /* 2. 写真の設定 */
    .modal-main-visual img {
        width: 100%;          
        height: auto;
        display: block;       /* 下の隙間を消す */
        margin: 0 auto 15px; 
        border: 2px solid #A93B3E; /* 写真自体の枠線 */
        box-sizing: border-box; 
    }

    /* 3. タグの設定（ここが本番！） */
    .bubble-tag {
        position: relative !important; /* 絶対配置を解除してリスト化 */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important; 
        box-sizing: border-box; 
        margin: 8px 0 !important; 
        padding: 10px 15px !important;
        display: block;       
        font-size: 14px;
        line-height: 1.4;
        white-space: normal; 
        text-align: left;    
        background: #fffcfc;
        border: 2px solid #A93B3E;
        border-radius: 30px;
    }
.modal-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
    .chart-container {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        margin-left: 0 !important;  
        margin-right: 0 !important;                        
    }
    .chart1, .chart2 {
        width: 100% !important;
        padding: 0 20px; /* 左右に少し余白を作る */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        gap: 30px;

    }
   .chart2{
    position: relative;
   }

    .chart-item {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* スマホでは中央寄せが見栄えが良いです */
    }

    .chart-image {
        width: 100% !important;
        max-width: 320px; /* スマホで大きすぎないサイズに制限 */
    }

    .chart-image svg {
        width: 100% !important; /* これで440pxという固定値を無視して縮みます */
        height: auto !important;
    }
    

    .chart-title {
        margin-left: 0;
        justify-content: center;    
        font-size: 24px;            
    }
    .supplement-text{
            position: relative;
            margin-top: 5px;
            padding: 7px 15px;
            font-size: 14px;
            color: #1c1b1b;
            display: inline-block;
    }
    .bracket-left, .bracket-right {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: #be86b9; /* 学部と同じ紫 */
    border-style: solid;
}
.bracket-left2, .bracket-left3, .bracket-right2, .bracket-right3{
    position: absolute;
    width: 15px;
    height: 15px;
    border-style: solid;
}
.bracket-left, .bracket-left2, .bracket-left3 {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px; /* 左、上、下 */
}


.bracket-right, .bracket-right2, .bracket-right3 {
    top: 35px;
    right: 0;
    border-width: 0 3px 3px 0; /* 右、上、下 */
}
.bracket-left2, .bracket-right2{
    border-color: #A93B3E;
}
.bracket-left3, .bracket-right3{
    border-color: #A3CE6B;
}


    .framed-text {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 40px;
        margin-top: 40px;
        font-size: 16px;
        padding: 10px 20px;
        text-align: center;
    }


}

@media screen and (min-width: 769px) and (max-width: 1024px) {

      .interview-canvas {
    position: relative;
    height: 900px; 
    margin-left: 0px;
}
    .chart-title {
    font-size: 24px;
    font-weight: 500;
    color: #1c1b1b;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    }
    .chart-title2 {
        font-size: 24px;
        font-weight: 500;
        color: #1c1b1b;
        margin-bottom: -2px;
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 40px;
    }
     #section2 {
        height: 1630px !important; 
        padding-bottom: 100px;
    }

    /* iPadだけで少し左右に散らしたい場合はここをいじる */
    .pos-left-top, .pos-right-center {
        transform: translateX(-70px) !important;
    }
    .pos-right-top {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 40% !important;
        max-width: 400px; 
        margin: 0 120px -20px !important; 
        transform: none !important;

    }
    .pos-right-top, .pos-right-bottom-bottom {
        transform: translateX(40px) !important;
    }
    .pos-left-bottom{
           position: relative !important;
        top: 40px !important;
        left: 0 !important;
        width: 80% !important;
        margin: 0 auto 35px !important;
    }
    .pos-left-bottom-bottom{
        transform: translateX(-40px) !important;
    }
    .diamond-text { font-size: 18px; }
    .diamond-text2 {
        left: 50% !important;
        transform: translate(20%, -50%) !important;
        white-space: normal;
    }
    .sp-br{
        display: block;
    }
    .chart-container{
        width: 100%;
    }
    .supplement-text{
        margin-left: -250px !important;
    }
}
@media screen and (max-width: 768px) {
        .pc-circle1{
    display: none;
}
.sp-circle1{
    display: block;
}
      .interview-canvas {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 900px;
}
    .framed-text {
    position: absolute;
    top: -150px;
    left: -120px;
    display: inline-block;
    border: 4px solid #A93B3E; 
    padding: 10px 20px;
    background-color: #fffcfc;
    color: #1c1b1b;
    font-size: 16px;
    font-weight: 500;
    z-index: 10;
}

    .chart-title {
    font-size: 24px;
    font-weight: 500;
    color: #1c1b1b;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    }
    .chart-title2 {
        font-size: 24px;
        font-weight: 500;
        color: #1c1b1b;
        margin-bottom: -2px;
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 40px;
    }
         #section2 {
        height: 1400px !important; 
    }
    .diamond-item {
        max-width: 300px; 
    }
    .pos-left-top, .pos-right-center,  .pos-left-bottom-bottom {
        transform: translateX(-155px) !important;
    }
    .pos-right-bottom-bottom {
        transform: translateX(-90px) !important;
    }
    .pos-right-top{
        width: 45% !important; 
         transform: translateX(-135px) !important;
    }
    .pos-left-bottom {
        top: 26px !important;
        left: 0 !important;
        width: 135% !important;
        margin-bottom: 10px;
        transform: translateX(-105px) !important;
    }
    .diamond-text, .diamond-text2 {
        font-size: 14px;
        width: 85%;
    }
    .diamond-text2 {
        left: 50% !important;
        transform: translate(15%, -40%) !important;
        white-space: normal;
    }

    .chart-container{
        width: 100%;
    }
      .sp-br{
        display: block;
    }
}