body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
}

.main-header {
    width: 100%;
    /* 必要なら背景色や padding を指定 */
    background: #fff;
    /* box-sizing などが global に設定されていれば省略可 */
}

/* ヘッダー内コンテンツ枠 */
.header-content-wrapper {
    width: 100%;
    max-width: 1240px;   /* ページ全体の本文幅に合わせる */
    margin: 0 auto;       /* 左右中央寄せ */
    padding: 10px;      /* 任意で左右余白を確保、小さい画面で端ぎりぎりにならないように */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 例：ロゴ高さ */
.header-left .logo {
    height: 80px;
    object-fit: contain;
}

.subtext {
    margin: 5px 0 0;
    color: #555;
    font-size: 14px;
}

.header-right {
    text-align: right;
    position: relative;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mail-icon {
    font-size: 26px;
    margin-right: 6px;
}

.mail-text {
    font-size: 15px;
}

.tel {
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
}

.lang-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: sans-serif;
}

.row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px; /* 適宜調整 */
    margin-bottom: 6px;
}

.lang-btn {
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
}

.es-btn {
    position: absolute;
    left: 90%;
    transform: translateX(-50%);
    top: 65px;
}


/* 丸い言語ボタン */
.lang-btn {
  width: 55px;
  height: 30px;
  border-radius: 20px;
  border: 2px solid #cfe1d9;          /* 外の淡い白緑っぽい枠 */
  background: linear-gradient(#0673a1, #5ba4d1); /* 青のグラデーション */
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lang-btn:hover {
  opacity: 0.85;
}

.main-nav {
    width: 100%;
    background: radial-gradient(circle, #444 0%, white 100%);
    color: white;
    font-size: 16px;
    padding: 10px 0;
    text-align: center;
    margin: 0 auto;
}

/* メニュー横並び */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

/* リンクスタイル */
.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
}

.main-nav a:hover {
    opacity: 0.7;
}


/* ハンバーガー非表示（PC） */
.hamburger {
    display: none;
}

/* スマホ用 */
@media screen and (max-width: 768px) {

    /* ヘッダー内全体の調整 */
    .header-content-wrapper {
        flex-direction: column;
        padding: 15px 20px;
        position: relative;
    }

    /* ハンバーガー */
    .hamburger {
        display: flex;
        position: absolute;
        top: 15px;        /* ヘッダー上端から */
        right: 20px;      /* ヘッダー右端から */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1001;    /* メニューより前面 */
    }

    .hamburger span {
        display: block;
        height: 4px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* メインナビ */
    .main-nav {
        position: absolute;
        top: 60px;       /* ヘッダー下に配置 */
        right: 0;
        background: #444;
        display: flex;
        /* flex-direction: column; */
        overflow: hidden;
        max-height: 0;   /* 初期は閉じる */
        transition: max-height 0.3s ease-out;
        border-radius: 0 0 5px 5px;
        padding: 0; 
        z-index: 1000;
        justify-content: center;
    }

    .main-nav.open {
        max-height: 500px;  /* メニュー開いた時の高さ */
        transition: max-height 0.3s ease-in;
        padding: 10px 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 0;
        text-align: right;
    }

    .main-nav a {
        color: white;
        font-size: 16px;
        padding: 10px 20px;
        display: block;
    }
}

/* 1326px以下用 */
@media screen and (max-width: 1326px) {
    .header-content-wrapper {
        flex-direction: column;
        padding: 15px 20px;
        position: relative;
    }
}