/*
Theme Name: Sustain
Text Domain: lightning
Theme URI: https://flatsdgs.com
Description: 持続可能な育成プロジェクトのテーマ
Author: 持続可能な育成プロジェクト,Inc.
Author URI: ttps://flatsdgs.com
Version:1.0.0
*/
/* PC、スマホ共通スタイル */
:root {
    --sustain-color-brown: #4e342e;
    --sustain-color-accent: #8b5e3c;
    --sustain-color-sand: #f8f3eb;
    --sustain-color-cream: #efe5dc;
    --sustain-color-ink: #2f2926;
    --sustain-color-white: #ffffff;
    --sustain-shadow-card: 0 8px 24px rgba(78, 52, 46, 0.12);
    --sustain-radius: 0.5rem;
    --sustain-content-width: 1120px;
}

html {
    background: var(--sustain-color-sand);
}

body {
    font-family: 'M PLUS 1','Noto Sans JP',"Source Sans Pro", "Hiragino Kaku Gothic ProN", Meiryo, Arial,
        sans-serif;
    color: var(--sustain-color-ink);
    line-height: 1.8;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--sustain-color-accent);
    outline-offset: 3px;
}
/* ファイルブロックの PDF プレビュー（埋め込み）を非表示 */
.wp-block-file .wp-block-file__embed {
    display: none;
}

/*================
 PC用のスタイル
=================*/
@media screen and (min-width: 768px) {
    /* 横幅設定 */
    body {
        max-width: var(--sustain-content-width);
        min-width: 0;
        margin: 0 auto 0 auto;
        background-color: #f8f3eb;
    }

    /* ヘッダー */
    header {
        display: flex;
        justify-content: space-between;
    }

    /* ナビゲーションのレイアウト */
    #nav-pc {
        font-size: 14px;
        padding-top: 15px;
        padding-right: 15px;
    }

    /* ナビゲーションのリンクの装飾設定 */
    #nav-pc > a {
        text-decoration: none;
        margin-left: 20px;
    }
    #nav-pc > a:link {
        color: #4E342E;
    }
    #nav-pc > a:visited {
        color: #4E342E;
    }
    #nav-pc > a:hover {
        color: #4E342E;
        text-decoration: underline;
    }
    #nav-pc > a:active {
        color: #4E342E;
    }
    /* スマホ用ナビを非表示 */
    #nav-sp,
    #menu-sp {
        display: none;
    }
    /* フッター */
    footer {
        background-color: #4E342E;
        text-align: center;
        padding: 80px 0px 30px;
        /*padding: 80px 0 30px;*/
        width: 100%;
    }

    #footer-logo {
        margin-bottom: 30px;
    }

    #footer-link {
        margin-bottom: 50px;
    }
    #footer-link > a {
        text-decoration: none;
        margin: 10px;
    }
    #footer-link > a:link {
        color: #F7F2ED;
    }
    #footer-link > a:visited {
        color: #F7F2ED;
    }
    #footer-link > a:hover {
        color: #F7F2ED;
        text-decoration: underline;
    }
    #footer-link > a:active {
        color: #F7F2ED;
    }

    #sns-footer {
        text-align: left;
        /*width: 100%;*/
        padding:0 80px
    }
    #sns-footer > a {
        /*margin-right: 30px;*/
    }

    #copyright {
        color: #F7F2ED;
        float: right;
    }
}

/*====================
 スマートフォン用のスタイル
=====================*/
@media screen and (max-width: 767px) {
    * {
        box-sizing: border-box;
    }
    body {
        min-width: 0;
        margin: 0;
    }

    /* PC用ナビゲーション非表示 */
    #nav-pc {
        display: none;
    }

    /* ハンバーガーメニュー */
    #menu-sp {
        float: right;
        padding: 0 10px 0 0;
        font-size: 24px;
    }

    /* スマホ用ナビゲーションの表示切替*/
    /* 初期状態、レイアウトと非表示設定 */
    #nav-sp {
        background-color: #8B5E3C;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        display: none;
        z-index: 100;
    }

    /* ×ボタン */
    #close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    /* ナビゲーションメニュー用ロゴ */
    #logo-sp {
        /*margin: 80px 0 30px 20px;*/
        margin: 80px 0 30px 20px;
    }

    /* ナビゲーションのリンクの装飾設定 */
    #nav-sp > a {
        display: block;
    }

    #nav-sp > a:link {
        color: #F7F2ED;
    }
    #nav-sp > a:visited {
        color: #F7F2ED;
    }
    #nav-sp > a:hover {
        color: #F7F2ED;
        text-decoration: underline;
    }
    #nav-sp > a:active {
        color: #F7F2ED;
    }

    #nav-sp > .menu {
        text-decoration: none;
        display: block;
        margin: 0 20px 0 20px;
        height: 44px;
        font-size: 16px;
        background-image: url("images/arrow.png");
        background-repeat: no-repeat;
        background-position: right top;
    }

    /* フッター */
    footer {
        background-color: #4E342E;
        /*padding: 30px 20px 50px 20px;*/
        /*padding: 30px 0 50px;*/
        padding: 30px 10px 50px 20px;
        max-width: 100%;
    }

    #footer-logo {
        margin-bottom: 30px;
    }

    #footer-link {
        margin-bottom: 50px;
    }
    #footer-link > a {
        text-decoration: none;
        margin: 0 20px 30px 0;
        display: block;

        background-image: url("images/arrow.png");
        background-repeat: no-repeat;
        background-position: right top;
    }
    #footer-link > a:link {
        color: #F7F2ED;
    }
    #footer-link > a:visited {
        color: #F7F2ED;
    }
    #footer-link > a:hover {
        color: #F7F2ED;
        text-decoration: underline;
    }
    #footer-link > a:active {
        color: #F7F2ED;
    }

    #sns-footer > a {
        margin-right: 30px;
    }
    #copyright {
        font-size: 12px;
        display: block;
        margin-top: 30px;
        color: #F7F2ED;
    }
    #sns-footer {
        text-align: center;
        width: 100%;
    }
}
