@charset "UTF-8";

/* 全体設定 */
html {
    font-size: 100%;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
    /* 行の高さ */
    line-height: 1.7;
    color: #432;
}

a {
    text-decoration: none;
}

img {
    /* 画像が親要素よりも大きくならない */
    max-width: 100%;
}

.align-center {
    text-align: center;
}

/* 画面の両端に余白をつける設定 */
.wrapper {
    max-width: 1120px;
    /* ボックスを画面中央に配置 */
    /* autoにすれば均等に配置してくれる */
    margin: auto;
    padding: 0 1.5rem;
}

.font-english {
    font-family: 'Philosopher', sans-serif;
    font-weight: normal;
}

.heading-large {
    margin-bottom: 1rem;
}

/* ヘッダー */
.page-header {
    padding-top: .5rem;
}

.logo {
    width: 250px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.5rem;
    list-style: none;
}

.main-nav a {
    color: #432;
}

/* a:hover リンクにカーソルを合わせたときの装飾（類似クラス） */
.main-nav a:hover {
    color: #0bd;
}

.page-title,
.heading-large,
.heading-medium {
    font-size: 3rem;
    text-align: center;
}

.page-title {
    margin-top: 2rem;
    line-height: 1.4;
}

.cover {
    /* 縦横比を保ったまま画面いっぱいに広げる */
    background-size: cover;
    background-position: center bottom;
    height: 800px;
}

.sub-cover {
    background-size: cover;
    background-position: center bottom;
    height: 528px;
    margin-bottom: 4rem;
}

/* ホーム - 記事部分 */
/* imagesフォルダがcssフォルダの上の階層にあるので */
.cover-home {
    background-image: url(../images/cover-home-s.webp);
}

/* ボタン */
.btn {
    /* インラインとブロックの両方の要素を持った表示形式に変更 */
    display: inline-block;
    font-size: 1.5rem;
    background-color: #0bd;
    color: #fff;
    /* 四角の角を丸める */
    border-radius: 8px;
    padding: .75rem 1.5rem;
    /* hoverの変化が0.5秒かけて起きる
    transition-durationのみ指定 */
    transition: .5s;
}

.btn:hover {
    background-color: #0090aa;
    /* 1.2倍に拡大 */
    /* scale: 1.2; */
    /* 横1.2倍 縦1.5倍に拡大 */
    /* scale: 1.2 1.5; */
    /* 反時計回りに5度回転 */
    /* rotate: -5deg; */
    /* 右に10px移動 */
    /* translate: 10px; */
    /*  右に10px 上に20px移動 */
    /* translate: 10px -20px; */
}

.about {
    /* 最大幅の設定 */
    max-width: 736px;
    /* 上下 左右 */
    padding: 0 1.5rem;
    /* 上 左右 下 */
    margin: 3rem auto 4rem;
}

.about p {
    margin-bottom: 3rem;
}

/* ニュース - 記事部分 */
.cover-news {
    background-image: url(../images/cover-news-s.webp);
}

.post {
    margin-bottom: 3rem;
}

.post-title {
    font-weight: normal;
    margin-bottom: 1.25rem;
}

.post-info {
    /* 横並びにする */
    display: flex;
    /* 要素間の距離を設定 ここでは横の距離 */
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-cat {
    display: flex;
    gap: .5rem;
    list-style: none;
}

.post-cat a {
    color: #432;
    background-color: #faf7f0;
    border-radius: 8px;
    font-size: .875rem;
    padding: .5rem .75rem;
}

.post-cat a:hover {
    background-color: #c9c2bc;
}

.post-date {
    font-size: .875rem;
}

.post-thumbnail {
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.post p {
    margin-bottom: 1.5rem;
    /* pタグ間の距離の設定 */
    line-height: 2;
}

/* サイドバー */
.side-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 4rem;
}

.side-menu li {
    /* 下罫線 */
    border-bottom: 1px solid #c9c2bc;
}

.side-menu a {
    color: #432;
    /* リンクをブロックにするので、横いっぱいクリックして反応する */
    display: block;
    padding: 1rem;
}

.side-menu a:hover {
    color: #0bd;
}

/* メニュー */
.cover-menu {
    background-image: url(../images/cover-menu-s.webp);
}

.grid {
    /* CSSグリッド */
    display: grid;
    /* 子要素間の余白 縦の余白 横の余白*/
    gap: 2rem 1.5rem;
    /* 1:1の割合で横並びにする */
    /* grid-template-columns: 1fr 1fr と同じ */
    /* fr → fraction（分数） */
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
}

.item img {
    /* 縦横比を指定 */
    aspect-ratio: 1/1;
    /* 指定したサイズからはみ出した部分をトリミング */
    /* これを指定しなかった場合、無理やり画像を正方形に歪められてしまう */
    object-fit: cover;
    border-radius: 16px;
}

.item p {
    font-size: .875rem;
}

/* コンタクト */
.cover-contact {
    background-image: url(../images/cover-contact-s.webp);
}

.location {
    margin-bottom: 3.5rem;
}

.location-info {
    margin-bottom: 2rem;
}

.location-info .info {
    padding: 0;
}

.email {
    max-width: 916px;
    background-color: #faf7f0;
    border-radius: 48px;
    padding: 1.5rem 2.5rem 2.5rem;
    margin: 0 auto 2rem;
}

.sns-item {
    /* sns-itemブロックの下 */
    margin-bottom: 2rem;
}

.sns-item .heading-medium {
    /* sns-itemの見出しの下 */
    margin-bottom: .5rem;
}

.email p {
    margin: 1rem 0 2rem;
    text-align: center;
}

.sns-youtube {
    /* 横/縦 */
    aspect-ratio: 16/9;
}

.sns-youtube iframe {
    /* height100％にすると縦横比がうまく反映される */
    height: 100%;
}

/* 地図が画面に収まるように */
iframe {
    /* 横いっぱいに広げてますが、はみ出ません */
    width: 100%;
}

/* フッター */
.page-footer {
    background-image: url(../images/footer-s.webp);
    background-size: cover;
    background-position: center;
    padding-top: 12rem;
}

.info {
    width: 100%;
    /* 最大幅 */
    max-width: 544px;
    margin: auto;
    padding: 0 1.5rem;
    /* 1行ごとに1本線を引く */
    border-spacing: 0;
}

.info th,
.info td {
    /* 太さ 実線 色 */
    border-bottom: 1px solid #c9c2bc;
}

.info th {
    text-align: left;
    font-weight: normal;
    padding: 1rem;
}

.info td {
    padding: 1rem 0;
}

.copyright {
    background-color: #432;
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
    color: #fff;
}

/* デスクトップ版 */
/* 横幅が800px以上の画面に適用 */
@media(min-width: 800px) {
    .page-title {
        font-size: 5rem;
    }

    .heading-large {
        font-size: 4rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .page-header {
        /* 要素を横並びに */
        display: flex;
        /* 両端に配置 */
        justify-content: space-between;
        padding-top: 1.5rem;
    }

    .main-nav {
        font-size: 2rem;
    }

    /* ホーム以外はヘッダー短く */
    .sub-cover {
        height: 400px;
        margin-bottom: 6rem;
    }

    /* PC用画像 */
    .cover-home {
        background-image: url(../images/cover-home-l.webp);
    }

    /* sectionのとこ */
    .about {
        margin: 4rem auto 0
    }

    /* NEWS */
    .cover-news {
        background-image: url(../images/cover-news-l.webp)
    }

    /* メインエリアとサイドバーを横並びにする */
    .news-contents {
        display: flex;
        /* 子要素を両端に */
        justify-content: space-between;
    }

    /* メインコンテンツ70% */
    .post {
        width: 70%;
        /* width: 60%; */
        /* order: 2; */
    }

    /* サイドバー22% */
    .sidebar {
        width: 22%;
        /* order: 3; */
    }

    .sidebar .heading-medium {
        line-height: 1;
        margin-bottom: 1rem;
    }

    /* .ad {
        order: 1;
    } */

    /* MENU */
    .cover-menu {
        background-image: url(../images/cover-menu-l.webp);
    }

    .grid {
        gap: 3rem 2rem;
        grid-template-columns: repeat(3, 1fr);
    }

    .item img {
        margin-bottom: .5rem
    }

    .item p {
        font-size: 1rem;
    }

    .item-big {
        /* 縦グリッド左から1〜3番目までを使う */
        grid-column: 1/3;
        /* 横グリッド上から1〜3番目までを使う */
        grid-row: 1/3;
    }

    .item-big img {
        height: 94.5%;
        width: 100%;
    }

    /* CONTACT */
    .cover-contact {
        background-image: url(../images/cover-contact-l.webp)
    }

    .location {
        display: flex;
        gap: 2rem;
    }

    .location-info {
        width: 32%;
    }

    .location-info .info th {
        padding-left: 2rem;
    }

    .location-map {
        width: 64%;
    }

    .email {
        margin-bottom: 4rem;
    }

    .sns {
        display: flex;
        /* 上揃えにする */
        /* これがないと全要素の高さを合わせようとして引き伸ばされる */
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 0;
    }

    .sns-item {
        /* 親要素のスペースが1:1:1で割り振られる */
        flex: 1;
    }

    /* フッター */
    .page-footer {
        background-image: url(../images/footer-l.webp);
        padding-top: 12rem;
    }

    .info th {
        padding-left: 2.5rem;
    }
}