/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Meiryo','Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    padding-top: 70px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    color: #000;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 10px;
}

/* 印刷時の表示を変更 */
@media print {
    header {
      position: static !important;
    }
  
    body {
      padding-top: 0 !important; /* 通常用のpaddingをリセット */
    }
  }

.logo {
    margin: 0 0 0 15px;
    height: 50px;
}

/* 通常メニューのスタイル */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 50px 0 0;
}

.nav-menu li {
    margin: 0;
    border-left: 2px dotted #000;
}

.nav-menu a {
    color: #000;
    padding: 0 10px;
    text-decoration: none;
    font-size: 16px;
}

.nav-menu a:hover {
    text-decoration: none;
}

nav ul li a[href="#donation-form"] {
    font-weight: bold;
    color: #000;
    font-size: 18px;
    /* background-color: #007BFF;
    padding: 10px 15px;
    border-radius: 5px; */
}

/* ハンバーガーメニューのスタイル */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-icon {
    width: 25px;
    height: 3px;
    background-color: #000;
    display: block;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger-menu {
    display: none;
}

.hamburger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #eee;
    text-align: center;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.hamburger-menu li {
    margin: 0;
}

.hamburger-menu a {
    color: #000;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.full-width-image-container {
    width: 100%;
    /*max-height: 630px;
    aspect-ratio: 16 / 9;
    background-image: url('./img/new-building.png');
    background-size: contain;
    background-repeat: no-repeat;*/
}

.full-width-image-container picture img{
    width: 100%;
    height: 100%;
    max-height: 640px;
    aspect-ratio: 316 / 135;
    object-fit: contain;
}

/*.full-width-image-container {
    width: 100%;
    background-image: url('new-building.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f4f4;
    position: relative;
    padding-top: 38.25%;
}
*/

.overlay-text {
    position: absolute;
    top: 15%;
    left: 15%;
    transform: translate(-10%, -15%);
    font-size: 24px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 3px;
}

.container {
    width: 90%;
    margin: auto;
    /*overflow: hidden;*/
}

#intro, #form-section, #thanks, #donation-details, #deduction {
    background: #fff;
    padding: 50px 20px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#intro h2, #form-section h2, #thanks h2, #deduction h2 {
    margin-bottom: 10px;
    color: #0073b7;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* 縦方向に中央揃え */
    justify-content: space-between; /* 左右にスペースを分配 */
}

.intro-content-mini {
    display: none;
    align-items: center; /* 縦方向に中央揃え */
    justify-content: space-between; /* 左右にスペースを分配 */
}

.intro-content .block-right {
    text-align: right;
    display: block;
    float: right;
    width: 250px;
    margin-top: -20px;
}

.block-left {
    width: calc(100% - 250px);
}


.intro-content p {
    margin: 0 0 5px 1rem;
    line-height: 1.5;
    margin-left: 1rem;
    text-indent: 1rem;
    font-feature-settings: "palt" 1;
    text-align:justify;
    word-break:break-all; 
    text-justify:inter-ideograph;
    text-justify:inter-character;
    word-wrap:break-word;
    overflow-wrap:break-word;
}

.chairman-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px; /* 必要に応じて調整 */;
}

.chairman-info p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.block::after {
  content: "";
  display: block;
  clear: both;
}

.chairman-photo {
    width: 95%;
    height: auto;
}

/*
.chairman-photo {
    margin-left: 15px;
    margin-top: -110px;
    width: 100px;
    height: auto;
    border: 2px solid #333;
}
*/

#donation-details {
    width: 90%;
    margin: 50px auto;
}

#donation-details h2 {
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: .07em;
    text-align: center;
    position: relative;
    margin: 0 0 20px 0;
    font-size: 32px;
}

#donation-details h2::after {
    content: "";
    width: 100%;
    height: 3px;
    background-image: linear-gradient(to right, #2c95bc 3px, transparent 3px);
    background-size: 10px 3px;
    background-repeat: repeat-x;
    background-position: left bottom;
    position: absolute;
    bottom: 0;
    left: 0;
}

#donation-details h3 {
    margin-bottom: 0px;
    padding: 0 0 0 5px;
    color: #0073b7;
    border-left: 10px solid #0073b7;
}

 #donation-details p {
    margin: 0 0 10px 8px;
}

.building-image {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label {
    margin-top: 10px;
    font-weight: bold;
    width: 100%;
    max-width: 500px;
    text-align: left;
}

form input, form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
}

form button {
    background: #0073b7;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    width: 150px;
}

form button:hover {
    background: #005f93;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.top-donation-sec {
    position: relative;
    background: #f4f4f4;
    padding: 20px 0;
    overflow: hidden;
}

.bg-img.ofi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-img.ofi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3;
}

.text-5xl {
    font-size: 2.5em;
}

.lh17 {
    line-height: 1.7;
}

.shippori {
    font-family: 'Shippori Mincho', serif;
}

.bold {
    font-weight: bold;
}

.center-text {
    text-align: center;
}

.mb30 {
    margin-bottom: 30px;
}

.mb25-tb {
    margin-bottom: 25px;
}

.text-xl {
    font-size: 1.5em;
}

.f15px-tb {
    font-size: 17px;
}

.mb45 {
    margin-bottom: 45px;
}

.mb35-tb {
    margin-bottom: 35px;
}

.box-ttl03 {
    width: 83%;
    margin: 0 auto;
    background-color: #fff;
    padding: 22px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.36363636;
    letter-spacing: .07em;
    color: #333;
    text-align: center;
    display: block;
    z-index: 2;
    position: relative;
}

.box-ttl03 a{
    color: #0073b7;
    text-decoration: none;
}

.box-ttl03 a:visited{
    color: #0073b7;
    text-decoration: none;
}

.important-txt {
    color: #0073b7 !important;
}

#donation-form {
    margin: 50px 0 0;
}

#donation-form h2 {
    text-align: center;
    background-color: #0073b7;
    color: #fff;
    padding: 10px;
    margin: 0;
    font-size: 24px;
}

.donation-options {
    margin: 0 0;
}

.bank-transfer-info {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.box-cross{
    width:420px;
    height:50px;
    margin: 4em auto 2em;
    position: relative;
    padding: 0.5em 1.5em;
    border-top: solid 2px black;
    border-bottom: solid 2px black;
}
.box-cross:before, .box-cross:after{
    content: '';
    position: absolute;
    top: -10px;
    width: 2px;
    height: -webkit-calc(100% + 20px);
    height: calc(100% + 20px);
    background-color: black;
}
.box-cross:before {left: 10px;}
.box-cross:after {right: 10px;}
.box-cross p {
    padding: -10px 0 0 0;
    font-size: 24px;
}

.bank-transfer-info h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.bank-transfer-info p {
    text-align: center;
}

.box {
    position: relative;
    margin: 2em auto;
    padding: 0.5em 1em;
    border: solid 3px #0073b7;
    border-radius: 0px;
    max-width: 930px;
}
.box .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 19px;
    background: #FFF;
    color: #0073b7;
    font-weight: bold;
}
.box p {
    margin: 0; 
    padding: 0;
}
.box span.indent p {
    display: block;
    text-align: left;
    margin: 0; 
    padding: 0 0 0 clamp(20px,10%,10%);
}
.box a{
    color: #0073b7;
    text-decoration: none;
    font-weight: bold;
}

.box a:visited{
    color: #0073b7;
    text-decoration: none;
}
.mod-iconlink {
    display: inline-block;
    margin: 10px 0;
}

.icon-blank {
    display: none;
}

.contact-info {
    text-align: center;
    font-size: 1.2em;
    margin: 20px auto;
    padding: 15px;
    max-width: 500px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
}

.btn{
    margin: 25px auto;
    width: 280px;
    height: 65px;
    line-height: 28px;
}
.btn a{
    display:block;
    width:100%;
    height:100%;
    padding: 7px 0 0 0;
    text-decoration: none;
    background:#F7F7F7;
    text-align:center;
    border-left:7px solid #0073B7;
    border-right:7px solid #0073B7;
    color:#0073B7;
    font-size:18px;
    font-weight:bold;
    box-shadow:0px 2px 2px 0px #DEDEDE ;
    transition: all 1s ease;
}

footer {
    background-color: #0055a5;
    color: white;
    text-align: center;
    padding: 10px 0;
}

span.right {
    display: block;
    text-align: right;
}

span.left {
    display: block;
    text-align: left;
}

span.center {
    display: block;
    text-align: center;
}

/* メディアクエリで表示を切り替え */

/* タブレット*/
@media  (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto; /* 右端に移動 */
    }

    .hamburger-menu.show {
        display: block;
    }

    .full-width-image-container picture img{
        aspect-ratio: 16 / 9;
    }

    .intro-content {
        display: none;
    }
    
    .intro-content-mini {
        display: block;
    }

    .intro-content-mini p {
        margin: 0 0 4px 1rem;
        line-height: 1.5;
        text-indent: 1rem;
        font-feature-settings: "palt" 1;
        text-align:justify;
        word-break:break-all; 
        text-justify:inter-ideograph;
        text-justify:inter-character;
        word-wrap:break-word;
        overflow-wrap:break-word;
    }

    .text-xl {
        font-size: 1.1em;
    }

    .block-right {
        width: 30%;
        text-align: right;
        display: block;
        float: right;
        margin-top: 10px;
    }
}

/*　スマートフォン */
@media (max-width: 600px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto; /* 右端に移動 */
    }

    .hamburger-menu.show {
        display: block;
    }

    .container h1{
        font-size: 1.25rem;
    }

    .intro-content {
        display: none;
    }
    
    .intro-content-mini {
        display: block;
    }

    .intro-content-mini p {
        font-size: 0.8rem;
    }

    .block-right {
        width: 35%;
        min-width: 120px;
        text-align: right;
        display: block;
        float: right;
        margin: 10px 0 2px 4px;
    }
    
    #donation-details h2 {
        font-size: 1.8rem;
    }

    #donation-details h3 {
        font-size: 1.1rem;
    }

    #donation-details .container p {
        font-size: 0.8rem;
    }

    .mb25-tb {
        margin: 0 -10% 20px -10%;
        width: 120%;
    }

    .text-5xl {
        font-size: 1.8em;
    }

    .text-xl {
        font-size: 1em;
    }

    .box-ttl03 {
        font-size: 0.9rem;
    }

    #donation-form h2 {
        font-size: 1.3rem;
    }

    .bank-transfer-info p {
        font-size: 0.9rem;
    }

    .btn a{
        font-size: 1rem
    }

    .box .box-title {
        font-size: 0.9rem;
    }

    .box p {
        font-size: 0.8rem;
    }

    .box-cross{
        width:100%;
    }

    .box-cross p{
        font-size: 1.1rem;
    }
}