@import url('https://fonts.googleapis.com/css2?family=Rockwell&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Corbel&display=swap');

/* Historyのスタイル　ここから */
.History {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

/* h3上の装飾画像のスタイル */
.h3-decoration {
    max-width: 1200px;
    margin: 0 auto;
}

.h3-decoration img{
    width: 60%;
    text-align: center;
}

.History h3 {
    font-family: 'Rockwell', serif;
    font-size: 50px;
    color: #b5551d;
    margin-bottom: 50px;
    font-weight: normal;
}

.h3-introduction {
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.h3-introduction p {
    font-family: 'Corbel', 'Helvetica', sans-serif;
    font-size: 25px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
    line-height: 1.6;
}
/* Historyのスタイル　ここまで */

/* Locations Sectionのスタイル　ここから */
.locations {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

.locations h3 {
    text-align: center;
    font-family: 'Rockwell', serif;
    font-size: 50px;
    font-weight: normal;
    color: #688426;
    margin-bottom: 40px;
}

.location-item {
    display: flex;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.location-image {
    width: 50%;
    /* height: 100%; */
    position: relative;
}

.location-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 0;
}

.location-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 8px 0 0;
}

.location-details-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* padding: 20px; */
    padding-left: 20px;
}

.location-details-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* padding: 20px; */
    padding-right: 20px;
}

.location-map {
    width: 100%;
    height: 60%;
}

.location-info {
    background-color: #fff;
    font-family: 'Rockwell', serif;
    color: #333;
    padding: 10px 0;
}

.location-info .midori {
    font-size: 25px;
    color: #b5551d;
    margin-bottom: 10px;
}

.location-info .nanzan {
    font-size: 25px;
    color: #007395;
    margin-bottom: 10px;
}

.location-info .ueda {
    font-size: 25px;
    color: #688426;
    margin-bottom: 10px;
}

.location-info p {
    font-size: 25px;
    color: #555;
    line-height: 1.6;
}
/* Locations Sectionのスタイル　ここまで */

/* 修正　ここから -------------------------------------------------------------------------------------------------------------*/
body {
    margin: 0;
}
.hidden-tb {
    display: block;
}
.hidden-sp {
    display: none;
}
@media screen and (min-width: 768px) {

}

/* header ここから --------------------------------------------------------------------*/
.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 12px !important;
    padding-bottom: 5px !important;
    padding-left: 30px;
    padding-right: 24px;
}
@media screen and (min-width: 768px) {
    .header-content {
        height: 96px;
    }
}
.logo img{
    width: 140px;
}
.l-header__nav {
    display: none;
}
@media screen and (min-width: 768px) {
    .l-header__nav ul {
        display: flex;
        flex-wrap: wrap; /* アイテムを折り返す */
        justify-content: flex-end; /* アイテムを右寄せにする */
        gap: 10px; /* アイテム間のスペース */
        list-style: none; /* リストマーカーを削除 */
        padding: 0; /* パディングをリセット */
        margin: 0; /* マージンをリセット */
      }
      .l-header__nav ul {
        display: flex;
        flex-wrap: wrap; /* アイテムを折り返す */
        justify-content: flex-end; /* アイテムを右寄せにする */
        gap: 10px; /* アイテム間のスペース */
        list-style: none; /* リストマーカーを消す */
        padding: 0; /* パディングをリセット */
        margin: 0; /* マージンをリセット */
      }
      .l-header__nav ul li {
        width: fit-content; /* li要素の幅を内容にフィットさせる */
      }
      .l-header__nav ul li a {
        text-decoration: none;
        padding: 10px;
        display: block;
        text-align: right;
      }
}
@media screen and (min-width: 1200px) {
    .l-header__nav ul{
        display: none;
    }
}
.l-header__nav--pc {
    display: none;
}
@media screen and (min-width: 1200px) {
    .l-header__nav--pc {
        display: block;
    }
}
.l-header__right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    width: 121px;
    justify-content: space-between;
    padding-bottom: 10px;
}
@media screen and (min-width: 768px) {
    .l-header__right  {
        display: none;
    }
}
.apply-cta {
    font-family: 'Rockwell', serif;
    font-size: 14px;
}
.c-button-drawer {
    background: #e96d23;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    position: relative;
}
/* 吹き出し部分 */
.c-button-drawer::after {
    content: ''; /* 吹き出しの内容 */
    position: absolute; /* 絶対位置指定 */
    bottom: -8px; /* メニューの下に配置 */
    left: 50%; /* メニューの真ん中に配置 */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent; /* 吹き出しの左側の三角形 */
    border-right: 5px solid transparent; /* 吹き出しの右側の三角形 */
    border-bottom: 5px solid #e96d23; /* 吹き出しの底部 */
    opacity: 0; /* 初期状態で透明 */
    transition: opacity 0.3s ease; /* アニメーションの設定 */
    visibility: hidden; /* 初期状態で非表示 */
}
.c-button-drawer.show::after {
    opacity: 1; /* 表示状態で不透明 */
    visibility: visible; /* 表示状態で可視 */
}

.c-button-drawer.is-checked .c-button-drawer__line:nth-of-type(1) {
    background: #fff;
    left: 25%;
    top: 50%;
    transform: rotate(-45deg);
}
.c-button-drawer.is-checked .c-button-drawer__line:nth-of-type(2) {
    display: none;
}
.c-button-drawer.is-checked .c-button-drawer__line:nth-of-type(3) {
    background: #fff;
    left: 25%;
    top: 50%;
    transform: rotate(45deg);
}
.c-button-drawer__line {
    position: absolute;
    border-radius: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s linear, top 0.3s linear;
}
.c-button-drawer__line:nth-of-type(1) {
    left: 50%;
    transform: translateX(-50%);
    top: 7px;
}
.c-button-drawer__line:nth-of-type(2) {
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
}
.c-button-drawer__line:nth-of-type(3) {
    left: 50%;
    transform: translateX(-50%);
    top: 17px;
}
ul {
    display: block;
    list-style: none;  /* リストスタイルを削除 */
    margin: 0;         /* マージンをリセット */
    padding: 0;        /* パディングをリセット */
    unicode-bidi: normal; /* バイディレクショナルの設定をリセット */
}
.c-drawer-menu {
    max-height: 0; /* 初期状態で高さを0に設定 */
    width: 150px;
    height: 120px; /* 高さの設定はアニメーションの最大値に合わせる */
    font-family: 'Rockwell', serif;
    font-size: 18.67px;
    border-top: 10px solid #e96d23;
    border-right: 1px solid #e96d23;
    border-bottom: 1px solid #e96d23;
    border-left: 1px solid #e96d23;
    background: #fff;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 20px;
    padding: 10px;
    position: absolute; /* ドロップダウンの位置を調整するために絶対位置指定 */
    top: 80%; /* ボタンの下に表示 */
    right: 0; /* ボタンの右側に合わせる */
    z-index: 2000; /* メニューが他の要素の上に表示されるようにする */
    overflow: hidden; /* 内容がはみ出さないようにする */
    transition: max-height 0.3s ease, opacity 0.3s ease; /* アニメーションの設定 */
    opacity: 0; /* 初期状態で透明 */
}
.c-drawer-menu.show {
    max-height: 120px; /* アニメーションの最大高さに合わせる */
    opacity: 1; /* アニメーションで透明度を上げる */
}
.c-drawer-menu ul {
    list-style: none; /* デフォルトのリストスタイルを無効にする */
    padding: 0;
    margin: 0;
}
.c-drawer-menu li {
    padding: 5px 0; /* アイテム間に5pxのスペースを追加 */
    position: relative; /* 擬似要素のために相対位置を設定 */
}
.c-drawer-menu li:not(:last-child)::after {
    content: ''; /* 擬似要素の内容 */
    display: block; /* ブロック要素として表示 */
    height: 1px; /* 線の高さ */
    width: 150px;
    background: #e96d23; /* 線の色 */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px; /* アイテムの下に線を配置 */
}
@media screen and (min-width: 768px) {
    .logo img{
        width: 140px;
    }
    .l-header__nav {
        display: block;
    }
}
/* header ここまで --------------------------------------------------------------------*/
.introduction h2 {
    letter-spacing: 0.04em;

}
.about-p {
    padding-inline: 0 !important;
    line-height: 1.26 !important;
    letter-spacing: -0.03em !important;
}
.about-p {
    padding-inline: 4px !important;
    line-height: 1.26 !important;
}
.History {
    margin-top: -27px;
    margin-bottom: 0;
    padding-inline: 50px;
}
.History h3,
.locations h3 {
    margin-top: 5px;
    letter-spacing: -0.04em;
    margin-bottom: 13px;
    font-size: 20px;
}
.h3-decoration img {
    width: 72vw;
}
.History-p {
    font-size: 16px !important;
    margin-inline: 0 !important;
    width: auto !important;
    line-height: 1.33 !important;
    padding-inline: 2px !important;
    margin-bottom: 0 !important;
}
.locations {
    margin-top: -42px;
    margin-bottom: 0;
    padding-inline: 50px;
}
.location-image-left img,
.location-image-right img {
    height: 120px;
}
.location-details-left {
    padding-right: 7px;
}
.location-details-right {
    padding-left: 7px;
}
.location-info .midori {
    font-size: 16px;
    color: #b5551d;
    margin-bottom: 0;
}
.location-info .ueda {
    font-size: 16px;
    color: #688426;
}
.location-info .nanzan {
    font-size: 16px;
    color: #007395;
    margin-bottom: 0;
}
.location-info-p {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    margin: 0;
    padding-left: 22px;
    padding-top: 3px;
    padding-bottom: 15px;
    text-align: left;
}
.location-item-wrap {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}
.location-map {
    width: 100%;
    height: 60px;
}
.location-info {
    padding-top: 15px;
    padding-right: 18px;
}
.location-item {
    margin-bottom: 0;
}
.location-info-ueda {
    padding-top: 10px !important;
    padding-left: 22px;
}
.location-info-Nanzan {
    padding-top: 10px !important;
}
/* footer ここまで --------------------------------------------------------------------*/
.footer-logo img{
    width: 180px;
    height: auto;
    margin-bottom: 16px;
}
.footer-links {
    padding-top: 10px;
}
.footer-links a {
    width: auto;
    margin: 0;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    grid-template-rows: repeat(2, auto); /* 2行 */
    padding-top: 10px !important;
    padding-inline: 15px;
    padding-bottom: 10px;
    row-gap: 5px;
    margin-top: 0;
}
.footer-links a {
    text-align: center; /* 各リンクを中央に配置 */
}

/* footer ここまで --------------------------------------------------------------------*/

/* TB ここかから --------------------------------------------------------------------*/

@media screen and (min-width: 768px) {
    .hidden-sp {
        display: block;
    }
    .hidden-tb {
        display: none;
    }
    .header-content {
        padding-right: 63px;
        height: 108px;
    }
    .logo img{
        width: 100%;
        padding-top: 0;
        padding-left: 10px;
    }
    .l-header__nav {
        display: block;
        padding-top: 0;
    }
    .l-header__nav ul li {
        letter-spacing: -0.04em;
    }
    .l-header__nav ul li a {
        text-decoration: none;
        padding: 10px;
        display: block;
        text-align: right;
        padding-inline: 3px;
    }
    .introduction {
        padding-inline: 0 !important;
        padding-inline: 70px !important;
    }
    .introduction p {
        font-size: 20px;
    }
    .h2-decoration img {
        width: 557px;
        margin-top:-7px;
    }
    .h3-decoration img {
        margin-top: 55px;
        width: 445px;
    }
    .h3-introduction {
        margin-bottom: 38px;
    }
    .h3-decoration {
        text-align: center;
    }
    .h3-decoration img {
        margin-top: 52px;
        width: 445px;
    }
    .about-p1 {
        padding-inline: 25px !important;
        line-height: 1.2 !important;
    }
    .about-p2 {
        padding-inline: 29px !important;
        line-height: 1.2 !important;
    }
    .History {
        padding-inline: 70px !important;
    }
    .History h3 {
        font-size: 36px !important;
        letter-spacing: 0.02em !important;
        margin-top: 17px !important;
        margin-bottom: 36px !important;
    }
    .History-p {
        font-size: 20px !important;
        line-height: 1.32 !important;
        margin-left: -6px;
        padding-inline: 32px !important;
    }
    .h3-decoration-locations img{
        margin-top: 40px;
        width: 445px;
    }
    .locations {
        padding-inline: 168px !important;
        padding-bottom: 0;
    }
    .locations h3 {
        font-size: 36px !important;
        letter-spacing: 0.02em !important;
        margin-top: 17px !important;
        margin-bottom: 40px !important;
    }
    .location-info .midori,
    .location-info .ueda,
    .location-info .nanzan {
        font-size: 20px !important;
        margin-top: 1px !important;
        margin-bottom: 0 !important;
    }
    .location-info .ueda {
        padding-left: 5px;
        margin-bottom: 24px !important;
    }
    .location-image-left img,
    .location-image-right img {
        height: 200px;
    }
    .location-map {
        height: 110px;
    }
    .location-info-p {
        font-size: 18px !important;
        padding-left: 36px;
        padding-top: 6px;
        padding-bottom: 25px;
    }
    .location-item-wrap {
        margin-bottom: 30px;
    }
    .footer {
        padding-top: 32px;
    }
    .footer-logo img {
        width: 220px !important;
        margin-bottom: 50px;
    }
    .footer-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between !important;
    }
    .footer-links a {
        padding-inline: 8px;
    }
    .hidden-sp {
        display: block;
    }
    .hidden-tb {
        display: none;
    }
}

/* PC ここから ------------------------------------------------------------------------*/

/* header ここから --------------------------------------------------------------------*/

@media screen and (min-width: 1024px) {
    .l-header__nav {
        display: none;
    }
    .l-header__nav--pc {
        display: block;
    }
    .logo img {
        width: 100%;
        padding-top: 10px;
        padding-left: 15px;
    }
    nav ul li a {
        padding: 0 12px;
        font-size: 19px;
        letter-spacing: -0.01em;
    }
    .header-content {
        padding-top: 0 !important;
    }
    .introduction h2 {
        font-size: 50px !important;
        letter-spacing: -0.03em;
        margin-top: 37px;
    }
    .introduction {
        padding-top: 55px !important;
    }
    .h2-decoration img {
        width: 100% !important;
    }
    .History h3 {
        font-size: 50px !important;
        margin-top: 32px !important;
        margin-bottom: 59px !important;
        letter-spacing: -0.03em !important;
    }
    .h3-decoration img {
        width: 582px;
        margin-top: 88px;
    }
    .h3-introduction p {
        font-size: 25px !important;
        padding-inline: 0 !important;
        line-height: 1.2 !important;
    }
    .locations h3 {
        font-size: 50px !important;
        letter-spacing: 0.02em !important;
        margin-top: 17px !important;
        margin-bottom: 40px !important;
    }
    .location-info .midori,
    .location-info .ueda,
    .location-info .nanzan {
        font-size: 25px !important;
        margin-top: 1px !important;
        margin-bottom: 0 !important;
    }
    .location-info-p {
        font-size: 20px !important;
        padding-left: 36px;
        padding-top: 6px;
        padding-bottom: 25px;
    }
}
@media screen and (max-width: 768px) {
    .location-info-p {
      text-align: center !important;
    }
  }
  .locations {
    max-width: 765px !important;
  }
  .location-image img {
    height: 100% !important;
  }
  .location-map iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1 !important;
  }