:root {
    --themeColor: black;
    --textColor: white;
    --fontSizePhoneTitle: 1rem;
    --fontSizePhoneMain: 1rem;

    --fontSizeTabletTitle: 1.5rem;
    --fontSizeTabletMain: 1rem;
}

.content-wrapper {
    background-color: var(--themeColor);
    color: var(--textColor);
    font-family: 'M PLUS 2', sans-serif;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: var(--fontSizePhoneMain);
}

@media (min-width: 768px) {
    .content-wrapper {
        font-size: var(--fontSizeTabletMain);
    }
}

.header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.header-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: solid var(--textColor) 1px;
    margin-bottom: 2rem;
}

.contact-info {
    padding: 20% 0;
}

.title-logo {
    font-size: var(--fontSizePhoneTitle);
}

@media (min-width: 768px) {
    .title-logo {
        font-size: var(--fontSizeTabletTitle);
    }
}

.nav-container {
    display: flex;
    flex-flow: row nowrap;
}

.nav-item {
    margin-right: 0.5rem;
}

.logo-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.logo-img {
    width: 250px;
}

@media screen and (max-width: 600px) {
    .logo-container {
        padding: 8px 0;
    }

    .logo-container img {
        width: 150px;
        height: auto;
    }
}

.info-container {
    text-align: center;
    font-size: 1rem;
}

/* ここからフォーム */
form {
    /* フォームをページの中央に配置 */
    margin: 0 auto;
    width: 400px;
    /* フォームの輪郭 */
    padding: 1em;
    border: 1px solid #CCC;
    border-radius: 1em;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

form li+li {
    margin-top: 1em;
}

label {
    /* 大きさと配置を統一 */
    display: inline-block;
    width: 90px;
    text-align: right;
}

input,
textarea {
    /* すべてのテキストフィールドのフォント設定を一致させる
       既定で、 textarea には等幅フォントが設定されている */
    font: 1em sans-serif;

    /* テキストフィールドの大きさを統一 */
    width: 80%;

    /* フォームフィールド境界に合わせる */
    border: 1px solid var(--textColor);
}

input:focus,
textarea:focus {
    /* フォーカスのある要素を強調する */
    border-color: #000;
}

textarea {
    /* 複数行のテキストフィールドをラベルに揃える */
    vertical-align: top;

    /* テキスト入力に十分な空間を与える */
    height: 5em;
}

.button {
    /* ボタンを他のテキストフィールドと同じ場所に置く */
    padding-left: 90px;
    /* label 要素と同じサイズ */
}

button {
    /* このマージンは、ラベルとテキストフィールドの間のスペースと
       おおよそ同じスペースを表す */
    margin-left: .5em;
}



.footer-container {
    padding-bottom: 2rem;
    margin-top: 2rem;
}

.links {
    display: flex;
    flex-flow: column nowrap;
    text-align: center;
    gap: 1rem;
}

.links ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 100%;
}

.link-group1 {
    max-width: 100%;
}

.link-group3 {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.link-group3>a {
    height: 20px;
    width: 200px;
}

.copyright {
    margin-top: 1rem;
    text-align: center;
}

#g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: #999;
    /*動き*/
    transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
    right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*リストのレイアウト設定*/

#g-nav li {
    list-style: none;
    text-align: center;
}

#g-nav li a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/*========= ボタンのためのCSS ===============*/
.openbtn1 {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

/*×に変化*/
.openbtn1 span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--textColor);
    width: 45%;
}

.openbtn1 span:nth-of-type(1) {
    top: 15px;
}

.openbtn1 span:nth-of-type(2) {
    top: 23px;
}

.openbtn1 span:nth-of-type(3) {
    top: 31px;
}

.openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn1.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/* border */
.header-border,
.footer-border {
    background-color: white;
    height: 5px;
    width: 100vw;
}

.header-border {
    transform-origin: center right;
}

.footer-border {
    transform-origin: center left;
    margin-top: 2rem;
}