@charset "utf-8";

html, body {
    width: 100%;
    overflow-x: hidden;
}

body{
	padding: 0;
	margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main{
	flex: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff; /* 背景色は任意で変更してください */
}

/* ロゴ画像調整 */
.headerLogo{
    height: 30px;
}

/* ハンバーガーメニュー非表示にする */
#menuButton {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    gap: 6px;
    margin-left: auto;
}

#menuButton span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* グローバルナビを横並びに */
#globalNav {
    list-style: none; /* 中黒を消す */
    display: flex; /* 横並び */
    gap: 20px; /* li間の余白（任意） */
    margin: 0;
    padding: 0;
}

/* リンクスタイル（任意で調整） */
#globalNav li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease;
}

#globalNav li a:hover {
    color: #0077cc;
}

#mainvisual {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    position: relative;
    padding: 60px 0 60px 0;
}

#mainvisual img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* はみ出た分をトリミング */
    object-position: center top; /* 上部に揃えて下をカット */
}

/* section間の境界線：全幅の黒線 */
section {
    border-bottom: 1px solid black;
    width: 100%;
    box-sizing: border-box;
}

.wideWrap{
	padding: 20px 40px;
}

/* セクション見出しの親：h2とviewMoreを横並び＋上下中央揃え */
.secHead {
    display: flex;
    justify-content: space-between; /* 左はh2、右はviewMore */
    align-items: center;            /* 上下中央揃え */
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* h2とspanを横並び、spanは小さくグレーに */
.secHead h2 {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center; /* h2とspanを上下中央揃え */
    margin: 0;
}

.secHead h2 span {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
    font-weight: 500;
    font-family: "Helvetica", "Arial", "Yu Gothic", "游ゴシック体", "Meiryo", sans-serif;
}

/* viewMoreのスタイル */
.viewMore.pc a {
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    font-family: "Helvetica", "Arial", "Yu Gothic", "游ゴシック体", "Meiryo", sans-serif;

}

footer{
    margin-top: 60px;
	background-color: black;
	color: white;
}

.ftrSns {
    margin: 20px 30px 10px 30px;
    display: flex;           /* 横並び */
    justify-content: flex-end; /* 右寄せ */
    list-style: none;        /* 中黒（・）削除 */
    align-items: center;       /* 上下中央揃え */
    padding: 0;
    gap: 30px;               /* アイコン間の余白（任意で調整） */
}

.ftrSns li {
    display: inline-block;
}

/* 各SNSアイコンのリンクもflexにして中央揃えを確実に */
.ftrSns li a {
    display: flex;
    align-items: center;       /* ← 中身のimgを上下中央揃え */
    justify-content: center;
}

.ftrSns img {
    width: 24px;             /* アイコンサイズ（任意で調整） */
    height: auto;
    display: block;            /* 余計な隙間除去 */
}

.ftrMain {
    /* display: flex; */
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    gap: 0; /* 線で区切るので間隔不要 */
    flex-wrap: wrap; /* スマホで折り返せるように */
    border-top: 1px solid #ccc;
    position: relative;
}

/* 各要素の共通設定 */
.logoWrap {
    flex: 2;
    padding: 50px 20px 50px 20px;
    box-sizing: border-box;
    border-left: none;
}

.ftrNav {
    flex: 2; /* 合わせて "1:1" になるように */
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

/* 最初の要素の左線を消す */
.ftrMain > *:first-child {
    border-left: none;
}

/* ftrNav内の各ulが並ぶようにする */
.ftrNav ul {
    flex: 1; /* ulの要素を等分する */
    border-left: 1px solid #ccc;
    padding: 10px;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
}

.ftrNav ul:first-child {
    border-left: none;
}

/* 箇条書きの中黒を消す */
.ftrNav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* フッターナビリンク調整 */
.ftrNav a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
}

/* logo画像のサイズ調整（必要に応じて） */
.footerLogo{
    height: 40px;
}

/* コピーライトは左寄せに */
.copyright {
    text-align: left;
    font-size: 14px;
    color: #aaa;
    margin-top: 30px;
    width: 100%;
}

/* スマホ向けレスポンシブ */
@media screen and (max-width: 799px) {
    body.menu-open {
        overflow: hidden; /* 背景スクロールを止める */
    }
    header {
        position: fixed;          /* ← relative → fixed */
        top: 0;                   /* 画面上部に固定 */
        left: 0;
        width: 100%;
        z-index: 1100;            /* 必ずmainNaviより上に */
        box-sizing: border-box;
        overflow: hidden;
        background-color: #fff;
    }
    #logo {
        position: relative;
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: space-between;  /* ← 中央から左右に変更 */
        align-items: center;
        z-index: 1100;
        box-sizing: border-box;
        padding: 0 16px;  /* 左右余白をバランスよく指定 */
    }
    .headerLogo {
        height: 30px;
        margin: 0; /* 不要な縦余白を消す */
        display: block;
    }
    #menuButton {
        position: static;
        top: 50%;
        right: 10px;
        transform: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        gap: 6px;
        z-index: 1100;
    }
    #mainNavi {
        position: fixed;
        top: 60px;                /* ← headerの高さに調整 */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px); /* ← headerの高さ分を引く */
        background-color: #fff;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        overflow-y: auto;         /* ← スクロール可能に */
        border-top: 1px solid transparent;
    }    
    #mainNavi.active {
        opacity: 1;
        visibility: visible;
    }
    #hdrNav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        margin: 0;
        list-style: none;
        gap: 10px;
    }
    #hdrNav ul li a {
        display: block;
        padding: 10px 0;
        color: #333;
        text-decoration: none;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }
    .secHead {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .viewMore.pc {
        width: 100%;
        display: flex;
        margin-top: 10px;
        padding-right: 16px; /* 右の余白 */
        font-size: 14px;
        padding: 6px 10px;
        justify-content: flex-end;
    }
    /* ftrMain全体を縦並びに */
    .ftrMain {
        flex-direction: column;
        align-items: center;
        border-top: none; /* PCの境界線を削除 */
    }
    /* logoWrapを縦に並べる順番に配置 */
    .logoWrap {
        order: 4;
        border-left: none;
    }
    /* ftrNav内のulを縦並びに */
    .ftrNav {
        display: flex;
        flex-direction: column;
        align-items: center;   /* ← これが中央寄せの決め手 */
        justify-content: center;
        width: auto;
        margin: 0 auto;
        padding: 0;
    }
    .ftrNav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 10px 0;
        padding: 0;
        width: auto;
        max-width: 100%;
        border-left: none;
    }    
    .ftrNav ul:first-child {
        order: 1;
    }
    .ftrNav ul:last-child {
        order: 2;
    }
    /* コピーライト */
    .copyright {
        order: 5;
        padding: 30px 16px 20px 16px;
        margin: 0;
    }
}


/* PC向けレスポンシブ */
@media screen and (min-width: 1280px) {
    .wideWrap {
        max-width: 1200px;
        margin: 0 auto;
    }
}