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

:root {
    --blue: #4777BE;
    --yellow: #FFB200;
    --orange: #ED6100;
    --yellowgreen: #4BA34A;
    --text-white: #ffffff;
    --line-color: #d8d8d8; 
}
svg {
    overflow: visible;
  }

.synergy-container {
    font-family: "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    box-sizing: border-box;
    padding: 0 10px;
}

.circles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 0 2vw; 
    justify-items: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    position: relative; 
}

/* 接続線（SVG）：Actionの位置に合わせてボトムを調整 */
.circles-grid::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 25%;
    right: 25%;
    aspect-ratio: 100 / 86.6;
    bottom: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 108 94.6' preserveAspectRatio='none'%3E%3Cpath d='M0,4 L100,4 L50,86.6 Z' fill='none' stroke='%23999999' stroke-width='8' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
}

.circle-link {
    text-decoration: none;
    color: var(--text-white);
    width: 32vw; 
    height: 32vw;
    max-width: 180px;
    max-height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
    box-shadow: 0 1vw 3vw rgba(0,0,0,0.15);
    padding: 2vw;
    box-sizing: border-box;
    position: relative; 
    z-index: 2; 
}

.circle-link:hover {
    transform: scale(1.05);
}
.circle-link:hover,
.circle-link:focus,
.circle-link:active {
    color: var(--text-white);
}

.circle-link.science { background-color: var(--blue); }
.circle-link.policy  { background-color: var(--yellow); }

/* ① Actionの位置 */
.circle-link.action {
    background-color: var(--orange);
    grid-column: 1 / span 2;
    margin-top: 2vw;
}

.circle-link h3 {
    margin: 0 0 0.5vw 0;
    font-size: clamp(14px, 4vw, 22px);
    text-decoration: underline;
    text-underline-offset: 0.3vw;
}

.circle-link p {
    margin: 0;
    font-size: clamp(10px, 2.8vw, 16px);
    line-height: 1.3;
}

.arrow {
    font-size: clamp(50px, 8vw, 80px);
    color: #555;
    transform: scale(1, 0.7);
    margin-block: -10px;
}

.result-box {
    display: inline-block;
    background-color: var(--yellowgreen) !important;
    color: var(--text-white);
    padding: 3vw 6vw;
    border-radius: 16px;
    font-size: clamp(14px, 4.2vw, 24px);
    font-weight: bold;
    box-shadow: 0 1vw 3vw rgba(0,0,0,0.1);
    width: auto;
    max-width: 95%;
    line-height: 1.4;
}
figure {
    padding-block: 15px;
}
@media (min-width: 960px) {
    figure {
        padding-block: 15px;
    }
}

@media (min-width: 768px) {
    .ea_col2_wrap .col {
        /*width: auto;*/
    }
    .nbs_col_6,
    .nbs_col_7,
    .nbs_col_8 { 
        column-gap: 2%;
    }
    .nbs_col_6 .col:first-of-type,
    .nbs_col_7 .col:first-of-type,
    .nbs_col_8 .col:first-of-type { width: auto; }
    .nbs_col_6 .col:last-of-type,
    .nbs_col_7 .col:last-of-type,
    .nbs_col_8 .col:last-of-type { width: auto; }
}

/* SP用 */
@media (max-width: 599px) {
    .circles-grid::before {
        top: 19vw;
    }
}
/* PC用：絶対値での微調整 */
@media (min-width: 600px) {
    .circles-grid::before {
        top: 90px;
        bottom: 60px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 108 94.6' preserveAspectRatio='none'%3E%3Cpath d='M0,4 L100,4 L50,86.6 Z' fill='none' stroke='%23999999' stroke-width='8' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    .circle-link {
        width: 180px;
        height: 180px;
    }
    .arrow {
        margin-block: -20px;
    }
    /* PCでも引き上げ幅を緩和（-30px → -15px） */
    .circle-link.action {
        margin-top: 15px;
    }
    .result-box {
        padding: 20px 2.0em;
    }
    .ea_col2_wrap .col picture {
        text-align: left;
    }
    .ea_col2_wrap .col img {
        max-width: 100%;
    }
}
