html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #000;
    font-weight: 400;
    line-height: 1.6;
}
.global-header {
    position: fixed; /* スクロール追従 */
    width: 100%;
    z-index: 100; /* 他の要素より前面に表示 */
    font-size: 20px;
    font-weight: 300;
}
.global-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9); /* スクロール後の背景色 */
}
.global-nav {
    float: right;
    padding: 40px 40px 0;
}
.global-header.scrolled .global-nav{
    padding: 20px 40px 20px 0;
}
.global-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.global-nav li {
    display: inline;
    margin-left: 20px;
}
.global-nav li:first-child {
    margin-left: 0;
}
.global-nav a {
    text-decoration: none;
    color: #000; /* メニューテキストの色 */
}
.top-section {
    background-color: #fff;
    text-align: center;
    position: relative;
    height: 780px; 
    display: flex;
    justify-content: center; 
    align-items: center;
    overflow: hidden;
}
.top-text {
    position: absolute;
    top: 42%;
    left: 120px; /* 変更 */
    transform: translateY(-50%); /* 垂直方向中央揃え */
    color: white;
    font-size: 64px; /* 変更 */
    font-weight: bold;
    z-index: 1;
    text-align: left; /* 追加 */
}
@media screen and (max-width: 767px) {
    .top-text {
        left: 0;
        padding: 0 20px;
    }
}
.hero-image {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center;
}
.call-to-action {
    text-align: center;
    margin: 80px 0 140px 0;
}
.call-to-action-box {
    border: 8px solid #FCD044;
    background-color: #FFF;
    border-radius: 16px;
    padding: 20px;
    margin: auto;
    max-width: 800px;
    position: relative;
}
.call-to-action-title {
    font-size: 24px;
    font-weight: bold;
    color: #63308F;
}
@media screen and (max-width: 767px) {
    .call-to-action {
        padding: 0 16px;
    }
}
.about-us {
    max-width: 1100px;
    position: relative;
    margin: 0 auto 120px;;
}
.about-us h2 {
    color: #7030a0;
    font-size: 46px;
    font-weight: bold;
    position: absolute;
    left: -90px;
    margin: 0;
}
.about-us-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 80px;
    max-width: 1100px;
    margin: auto;
    padding-top: 120px;
}
.about-us-item {
    display: flex;
    align-items: flex-start;
}
.about-us-item img {
    width: 600px;
    margin-right: 70px;
}
.about-us-item-text {
    display: flex;
    flex-direction: column; /* 中身を縦並びにする */
}
.about-us-item-text p{
    font-size: 20px;
    font-weight: 700;
    color: #7030a0;
    position: relative;
}
.about-us-item-text p::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100px;
    border-top: 3px solid #FCD044; /* ラインの太さ、種類、色 */
}
.about-us-item-text ul {
    list-style-type: none;
    padding-left: 0; /* 左側のパディングもリセットすることが一般的です */
}
.about-us-item-text li{
    text-indent: -1em;
    padding-left: 1em;
}
.about-us-content > .about-us-item:nth-child(2) {
    flex-direction: row-reverse; /* アイテムの並び順を逆にする */
}

.about-us-content > .about-us-item:nth-child(2) img {
    margin-left: 70px; /* 左にマージンを設定 */
    margin-right: 0;    /* 右マージンをリセット */
}
.about-us-content > .about-us-item:nth-child(2) .about-us-item-text {
    margin-left: 0; /* 必要に応じてテキストのマージンを調整 */
    margin-right: auto; /* テキストを左に寄せる */
}
@media screen and (max-width: 767px) {
    .about-us {
        padding: 0 16px;
    }
    .about-us h2{
        left: auto;
    }
    .about-us-item img{
        width: 100%;
    }
    .about-us-content .about-us-item,
    .about-us-content > .about-us-item:nth-child(2) {
        flex-direction: column-reverse;
    }
    .about-us-content > .about-us-item:nth-child(2) img{
        margin-left: 0;
    }
}

.yellow-section-wrapper {
    background-color: #FCD044; /* 希望の背景色 */
    padding: 80px 0; /* 必要に応じて上下のパディング */
}
.yellow-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.yellow-section h2 {
    text-align: center;
    color: #7030a0;
    font-size: 32px;
    margin: 0 0 40px;
}
.yellow-section-content {
    display: flex;
    gap: 80px;
    align-items: flex-start; /* 上端揃え */
}
.yellow-section-content img {
    max-width: 470px;
}
@media screen and (max-width: 767px) {
    .yellow-section-content {
        flex-direction: column;
        gap: 16px;
    }
    .yellow-section-content > div:nth-child(2) {
        padding: 0 16px;
    }
}


.what-is-corn-soup {
    max-width: 1280px;
    margin: 120px auto 180px;;
}
.what-is-corn-soup > div:first-child {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
}
.what-is-corn-soup h2 {
    font-size: 46px;
    font-weight: bold;
    margin: 0 60px 0 0;
    color: #7030a0;
    white-space: nowrap;
}
.corn-soup-icon{
    width: 112px;
    margin: 0 auto 40px;
}
.corn-soup-icon img {
    width: 100%;
    height: auto; /* アスペクト比を維持するため auto に設定 */
}
.corn-soup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.corn-soup-item {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    border: 2px solid #FCD044;
}
.corn-soup-item p:first-child {
    font-weight: bold;
    color: #7030a0;
    font-size: 20px;
}
.corn-soup-item p:nth-child(2) {
    font-size: 14px;
    color: #7030a0;
    font-weight: 400;
}
@media screen and (max-width: 767px) {
    .what-is-corn-soup {
        padding: 0 16px;
    }
    .what-is-corn-soup > div:first-child {
        flex-direction: column;
    }
    .what-is-corn-soup h2 {
        margin: 0;
        white-space: inherit;
    }
}

.nagano-office {
    text-align: center;
}
.nagano-office h2 {
    color: #7030a0;
    font-weight: bold;
    font-size: 46px;
    margin: 0;
}
.nagano-office .hdg{
    font-size: 32px;
    margin: 60px 0;
}
.nagano-office .hdg span.marker {
    background: linear-gradient(transparent 50%, #FCD044 50%);
}
.nagano-office-images {
    display: flex;
    width: 100%;
    margin-top: 80px;
}
.nagano-office-images img {
    width: calc(100% / 3);
    height: auto; /* アスペクト比を維持 */
}
@media screen and (max-width: 767px) {
    .nagano-office h2,
    .nagano-office p{
        padding: 0 16px;
    }
    .nagano-office-images {
        flex-direction: column;
    }
    .nagano-office-images img {
        width: 100%;
    }
}

.contact-info {
    background-color: #ffc000;
    padding: 100px 0;
    text-align: center;
    color: #333;
}
.contact-info img{
    width: 90px;
    height: auto;
}
.contact-info p:nth-child(2) { /* "Call Us for More Details!" */
    font-size: 32px;
    font-weight: bold;
    color: #FFF;
    margin: 40px 0 0;
}
.contact-info p:nth-child(3) { /* "Contact Number： +(886-2) 2391-8171" */
    font-size: 32px;
    font-weight: bold;
    color: #67409E;
    margin:0;
}
@media screen and (max-width: 767px) {
    .contact-info {
        padding: 100px 16px;
    }
}

.footer {
    background-color: #7030a0;
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}
.footer p:nth-child(3){
    font-weight: 300;
}
.footer p:nth-child(4){
    font-size: 14px;
    font-weight: 300;
    margin: 80px 0 0;
}
@media screen and (max-width: 767px) {
    .footer {
        padding: 60px 16px 30px;
    }
}

/* モーダルウィンドウ*/
.modal {
    display: none; /* 最初は非表示 */
    position: fixed; /* ビューポートに対して固定 */
    z-index: 101; /* グローバルヘッダーより前面に */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
     overflow: auto; /* コンテンツがはみ出た場合のスクロール */
    background-color: rgba(0,0,0,0.4); /* 半透明の背景 */
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 中央寄せ */
    padding: 40px;
    border: 1px solid #888;
    width: 70%; /* モーダルの幅 */
    position: relative;
    text-align: center;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 34px;
    font-weight: bold;
    position: absolute;
    top:4px;
    right: 20px;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.open-modal-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}
.modal-content .title{
    background-color: #67409E;
    color: #FFF;
    font-size: 24px;
    font-weight: bold;
    padding: 16px 0;
}
/* テーブルのスタイル */
.modal-content table {
    width: 100%; /* モーダルコンテンツに合わせて幅を調整 */
    border-collapse: collapse; /* セルのボーダーを重ねて表示 */
    margin-top: 40px;
    padding-left: 16px;
}
.modal-content tbody td {
    vertical-align: super;
}
.modal-content th,
.modal-content td {
    border: 1px solid #ddd;
    padding: 16px;
    text-align: left;
}
.modal-content th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}
.modal-content td ul{
    list-style-type: none;
    padding-left: 16px;
}
.modal-content td ul li{
    padding-bottom: 8px;
    text-indent: -1em;
    padding-left: 1em;
}
@media screen and (max-width: 767px) {
    .modal-content {
        padding: 40px 16px;
        width: 90%;
    }
}



/* トップへ戻るボタンのスタイル */
.back-to-top {
    display: none; /* 最初は非表示 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99; /* 他の要素より前面に */
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* SPレイアウト */
@media screen and (max-width: 767px) {
    .spNone {
        display: none !important;
    }
}