* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    background-image: url('../images/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h2,
h3,
h4 {
    font-weight: 700;
}

.header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0px 4px 10px 0px #0000001A;
    max-width: 970px;
    width: 100%;
    position: fixed;
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 45px;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: #5B4928;
    font-weight: 800;
    font-size: 14px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    text-align: center;
}

.nav-item.has-dropdown::after {
    background: url(./../images/icon-park-solid_down-c.svg);
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    margin-left: 5px;
}

.official-site-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #111111;
    border: 1px solid #CCCCCC;
    padding: 10px 10px;
    border-radius: 16px;
    background-color: #fff;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.official-site {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.official-site-link:hover {
    border-color: #008844;
    box-shadow: 0 2px 4px rgba(0, 136, 68, 0.1);
}

.official-site-link::after {
    content: '\276F';
    margin-left: 8px;
    color: #008844;
}

.message-intro {
    text-align: center;
    background-color: #ffffffff;
    border-radius: 30px;
    width: 1060px;
    margin: 70px auto 0;
    padding-top: 30px;
    padding-bottom: 30px;
}

.message-intro .title-img {
    width: 103px;
    margin: 0 auto;
}

.message-intro .title,
.history-intro .title,
.messages .title {
    color: #5B4928;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    margin-top: 10px;
}

.message-intro .message-intro-card {
    background: #fff;
    padding: 50px 30px 0;
    border-radius: 20px;
    position: relative;
    text-align: center;
    border: 2px dashed #7fbf9b;
    margin: 0 30px;
}

.message-intro p {
    font-size: 20px;
    line-height: 2.0;
    color: #5B4928;
    margin-bottom: 30px;
    font-weight: 700;
    text-decoration: underline dotted #999;
    text-underline-offset: 6px;
    text-decoration-thickness: 20%;
    text-decoration-skip-ink: auto;
}

.message-intro .images {
    display: flex;
    justify-content: space-between;
    margin: 50px 10px;
    gap: 30px;
}

.message-intro .images img {
    width: calc((100% - 60px) / 3);
    border-radius: 20px;
}

.anniversary {
    margin-top: 100px;
}

.history-intro {
    width: 1000px;
    margin: 230px auto 163px;
    text-align: center;
}

.history-intro .title-img,
.messages .title-img {
    width: 100px;
    margin: 0 auto;
}

.messages {
    text-align: center;
    background-image: url('../images/message-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 200px;
    min-height: 100vh;
    box-sizing: border-box;
    background-position: top center;
    padding-bottom: 347px;
}

:root {
    --bg-light-yellow: #fffde8;
    --border-light: #e0e0d8;
}

.row-0 {
    --row-color: #1C6CB2;
}

.row-1 {
    --row-color: #2B96DA;
}

.row-2 {
    --row-color: #E5706C;
}

.row-3 {
    --row-color: #00A881;
}

.ctrl {
    display: flex;
    justify-content: center;
}

.stop-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background-color: #ffffff;
    border: 2px solid #333333;
    border-radius: 50px;
    cursor: pointer;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #333333;
    transition: all 0.2s ease;
    outline: none;
    width: 100px;
    justify-content: center;
}

.stop-btn:active {
    transform: translateY(2px);
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #e0e0e0;
    border-radius: 50%;
    font-size: 12px;
}

.row-0 .row-label-text {
    margin: 30px auto 24px;
}

.row-wrap {
    margin-bottom: 25px;
    position: relative;
}

.row-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 12px;
}

.row-label-line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.row-label-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--row-color);
    width: 310px;
    margin: 56px auto 24px;
    padding: 10px 30px;
    border-radius: 10px;
}

.row-container {
    overflow: hidden;
    width: 100%;
}

.row-track {
    display: flex;
    gap: 0;
    padding-left: 0;
    width: max-content;
    will-change: transform;
}

.card {
    width: 360px;
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card:last-child {
    margin-right: 12px;
}

.card-dashed {
    border: 2px dashed var(--row-color);
    border-radius: 10px;
    padding: 23px 20px;
}

.card-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 24px 0 0px;
}

.card:has(.card-logo):not(:has(.card-txt)) {
    justify-content: center;
}

.card-logo img {
    display: block;
    margin: 0 auto;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.card-logo.is-scroll-logo img {
    max-height: 120px;
}

.card-logo.org-hyogo img {
    max-height: 160px;
}

.card-txt {
    font-size: 20px;
    line-height: 120%;
    padding-bottom: 20px;
}

.card-more-svg {
    width: 24px;
    height: 24px;
    background-color: var(--row-color);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.4167 19.4167L24.75 24.75M6.75 11.4167H16.0833M11.4167 6.75V16.0833M22.0833 11.4167C22.0833 8.58769 20.9595 5.87458 18.9591 3.87419C16.9588 1.87381 14.2456 0.75 11.4167 0.75C8.58769 0.75 5.87458 1.87381 3.87419 3.87419C1.87381 5.87458 0.75 8.58769 0.75 11.4167C0.75 14.2456 1.87381 16.9588 3.87419 18.9591C5.87458 20.9595 8.58769 22.0833 11.4167 22.0833C14.2456 22.0833 16.9588 20.9595 18.9591 18.9591C20.9595 16.9588 22.0833 14.2456 22.0833 11.4167Z' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.4167 19.4167L24.75 24.75M6.75 11.4167H16.0833M11.4167 6.75V16.0833M22.0833 11.4167C22.0833 8.58769 20.9595 5.87458 18.9591 3.87419C16.9588 1.87381 14.2456 0.75 11.4167 0.75C8.58769 0.75 5.87458 1.87381 3.87419 3.87419C1.87381 5.87458 0.75 8.58769 0.75 11.4167C0.75 14.2456 1.87381 16.9588 3.87419 18.9591C5.87458 20.9595 8.58769 22.0833 11.4167 22.0833C14.2456 22.0833 16.9588 20.9595 18.9591 18.9591C20.9595 16.9588 22.0833 14.2456 22.0833 11.4167Z' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    text-align: center;
    margin: 28px auto 0;
}

.ov {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.ov.open {
    display: flex;
}

.popup {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 30px;
    padding: 50px 40px 40px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.p-content {
    max-height: 70vh;
    overflow-y: scroll;
}

.p-top-bar {
    height: 12px;
    background: var(--p-color);
}

.p-body {
    padding: 30px 25px 20px;
    text-align: center;
}

.p-main-title {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.p-user-info {
    margin-bottom: 25px;
}

.p-user-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
}

.p-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

.p-user-name {
    font-size: 20px;
    font-weight: 500;
}

.p-user-name span.sama {
    font-weight: 500;
    font-size: 13px;
}

.p-user-role {
    font-size: 16px;
    font-weight: 500;
    padding: 0 16px;
}

.p-text-box {
    border: 2px dashed var(--p-color);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 55px;
}

.p-org-logo {
    height: 45px;
    width: 160px;
    background: #f5f5f5;
    margin: 0 auto 8px;
    border-radius: 8px;
}

.p-logo img {
    max-height: 100px;
}

.p-org-name {
    font-size: 20px;
    font-weight: 500;
}

.p-close {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.p-close::before,
.p-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--p-color);
    border-radius: 2px;
    transform-origin: center;
}

.p-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.p-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.footer {
    text-align: center;
    padding: 60px 0 5px 0;
    background: url(../images/footer_bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 524px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-top: -260px;
}

.footer-logo {
    max-width: 100%;
    margin-bottom: 30px;
    padding-top: 50px;
}

.footer_text {
    color: #5B4928;
    font-size: 12px;
    font-weight: 700;
}

.sp {
    display: none;
}

.footer_text_link {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.footer_text_link a {
    color: #5B4928;
    text-decoration: none;
    font-weight: 700;
}

.footer_text_link a:hover {
    text-decoration: underline;
}

.footer_text_link .separator {
    margin: 0 5px;
    font-weight: 700;
}

.mt-5 {
    margin-top: 5px;
}

#p-desc {
    white-space: pre-line;
}

.message-intro-bg {
    background-image: url('../images/message-intro-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.b-pc {
    display: inline;
}

.b-sp {
    display: none;
}

.row-track {
    cursor: grab;
}

.row-track:active {
    cursor: grabbing;
}

.p-user-name span:empty {
    display: none;
}

.info {
    width: auto;
    background: #444;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #656565), color-stop(1.00, #1f1f1f));
    background: -webkit-linear-gradient(#656565, #1f1f1f);
    background: -moz-linear-gradient(#656565, #1f1f1f);
    background: -o-linear-gradient(#656565, #1f1f1f);
    background: -ms-linear-gradient(#656565, #1f1f1f);
    background: linear-gradient(#656565, #1f1f1f);
    padding: 0px;
    position: relative;
}

.video-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video_svg {
    position: absolute;
    top: -4%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

@media screen and (max-width: 1080px) {
    .header {
        width: 100%;
    }

    .header-content {
        padding: 0 10px;
    }

    .main-nav {
        gap: 5px;
    }

    .history-intro {
        width: 100%;
    }

    .message-intro {
        width: 100%;
    }

    .official-site {
        gap: 5px;
        margin-left: 5px;
    }

    .footer {
        margin-top: -342px;
    }
}

@media screen and (max-width: 768px) {
    .b-pc {
        display: none;
    }

    .b-sp {
        display: inline;
    }

    body {
        background-image: url('../images/background-sp.png');
    }

    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    .header {
        width: 240px;
        height: 53px;
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
    }

    .logo {
        height: auto;
    }

    .nav-sp {
        background-color: #ffffff;
        display: flex;
        justify-content: space-around;
        padding: 7px 12px;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .nav-item {
        font-size: 10px;
        line-height: 1.5;
        font-weight: 800;
    }

    .hero-images {
        margin-top: 0px;
    }

    .nav-item.has-dropdown::after {
        width: 10px;
        height: 10px;
    }

    .main-nav {
        gap: 10px;
        margin-left: 0;

    }

    .footer {
        background: url(../images/footer_bg_sp.png);
        background-size: cover;
        background-repeat: no-repeat;
        min-height: auto;
    }

    .footer-logo {
        width: 283px;
        margin-bottom: 0;
        padding-top: 20px;
    }

    .footer_text {
        font-size: 12px;
    }

    .footer_text_link {
        line-height: 1.6;
    }

    .footer_text_link a,
    .footer_text_link .separator {
        display: block;
        margin: 5px 0;
    }

    .footer_text_link .separator {
        display: none;
    }

    .message-intro,
    .history-intro {
        width: 100%;
    }

    .message-intro {
        margin: 34px 0;
        padding-top: 11px;
    }

    .container {
        padding: 0 15px;
    }

    .message-intro .message-intro-card {
        margin: 0 11px;
        padding: 30px 0px 30px;
    }

    .message-intro .title,
    .history-intro .title,
    .messages .title {
        font-size: 18px;
        margin: 0px auto 24px;
        line-height: 120%;
        font-weight: 800;
    }

    .message-intro p {
        font-size: 14px;
        line-height: 1.8;
        font-weight: 700;
        text-decoration: none;
        margin-bottom: 24px;
    }

    .message-intro .images {
        flex-direction: column;
        gap: 15px;
        margin: 0px 30px;
    }

    .message-intro .images img {
        width: 100%;
    }

    .row-label-text {
        font-size: 14px;
        margin: 56px auto 24px;
        padding: 8px 16px;
        border-radius: 6px;
    }

    .card-txt {
        font-size: 15px;
        line-height: 120%;
    }

    .popup {
        background: #fff;
        width: 90%;
        max-width: none;
        border-radius: 20px;
        padding: 30px 15px;
    }

    .p-main-title {
        top: -15px;
    }

    .p-main-title img {
        width: 250px;
    }

    .card-dashed {
        border-radius: 10px;
        padding: 10px 10px;
    }

    .p-user-image {
        gap: 10px;
        margin: 24px 0 10px;
    }

    .p-text-box {
        border-radius: 20px;
        padding: 10px;
        text-align: left;
        line-height: 1.8;
        font-size: 14px;
        margin-bottom: 55px;
    }

    .official-site {
        gap: 10px;
        margin-left: 0px;
    }

    .official-site-link {
        text-align: center;
    }

    .history-intro {
        margin: 175px auto 35px;
        text-align: center;
    }

    .messages {
        padding-top: 150px;
    }
}