/* 全ページ共通のベーススタイル */

@font-face {
    font-family: 'nicomoji';
    src: url('/fonts/nicomoji.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: '夏蝉丸ゴシック';
    src: url('/fonts/夏蝉丸ゴシック.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* リセットや標準化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全体のレイアウト */
html, body {
   margin: 0;
   padding: 0;
   height: 100%;
   font-family: 'Arial', sans-serif;*/ /* フォントファミリー
   /*font-family: 'nicomoji', sans-serif;*/
   /*font-family: '夏蝉丸ゴシック', sans-serif;*/
   line-height: 1.6; /* 行間 */
   color: #333; /* テキストカラー */
   background-color: #f8f9fa; /* 背景色 */
   user-select: none;
    -webkit-user-select: none; /* Safari用 */
    -moz-user-select: none; /* Firefox用 */
    -ms-user-select: none; /* IE用 */
}

body {
   height: 100%;
   min-width: auto;
   margin: 0;
}

/* ヘッダー */
header {
    width: 100%;
    min-width: auto; /* 親要素の最小幅を0に設定してリサイズを許可 */
    background-color: #333; /* 背景色 */
    color: #fff; /* テキストカラー */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ヘッダーに影を付ける */
}


/* メインコンテンツ */
main {
    margin: 0 auto; /* コンテンツを中央に配置 */
    padding: 15px 15% 40px 15%; /* 上・右・下・左 の内側の余白 */
    margin-bottom: 0px; /* 上・右・下・左 の内側の余白 */
    max-width: 1700px; /* 横幅の最大幅 */
    min-width: auto;
    height: 100%;
    overflow-y: auto;
}


/* フッター */
footer {
    width: 100%;
    min-width: auto; /* 親要素の最小幅を300に設定してリサイズを許可 */
    height: 50px;
    background-color: #333; /* 背景色 */
    color: #fff; /* テキストカラー */
    position: fixed; /* 固定配置*/
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}


/* 全ページ共通のコンテナ */
div.container {
    width: 100%;
    min-width: auto;
    max-height: calc(100vh - 50px); /* ビューポートの高さからフッターの高さを引いた値 */
    padding-bottom: 50px; /* フッターの高さ分の余白を確保 */
    margin: 0 auto; /* 自動で中央揃え */
}




/* 共通リンクスタイル */
a {
    color: #777; /* リンクカラー */
    text-decoration: none; /* 下線を除去 */
}

/* ホバー時 */
a:hover {
    text-decoration: underline; /* ホバー時に下線を追加 */
}

/* クリック時 */
a:active {
}

/* 全ページ共通のボタンスタイル */
button {
    background-color: #333; /* ボタンの背景色 */
    color: #fff; /* テキストカラー */
    border: none;
    padding: 0.1rem 0.3rem;
    cursor: pointer;
}

button:hover {
    background-color: none; /* ボタンの背景色 */
}



/* タイトル */
h1.title {
   font-family: '夏蝉丸ゴシック', sans-serif;
   white-space: nowrap; /* テキストを折り返さずに表示 */
}


h1.title a {
   color: #fff; /* テキストカラー */
   text-decoration: none;
}



/* PC版のみ（タブレット端末を含む  (メディアクエリとブレークポイント)） */
@media (min-width: 769px) {
   body {
      display: flex;
      flex-direction: column;
   }
}


/* スマホ版のみ */
@media (max-width: 768px) {
    body {

    }

    main {
      padding: 10px 10px 15px 10px; /* 内側の余白 (上・右・下・左) */
    }

    /* フッター */
    footer {
        position: relative; /* 固定配置を解除 */
    }

    /* 全ページ共通のコンテナ */
    div.container {
        min-height: 100vh; /* フッター分を引いた高さを確保 */
        padding-bottom: 100px; /* フッターの高さ分の余白を確保 */
        margin: 0 auto;
        box-sizing: border-box; /* ボックスサイズを計算に含める */
    }
}



/******* ヘッダーとナビリンク(ハンバーガーナビ)の詳細スタイル *******/

/* PC版（タブレット端末を含む  (メディアクエリとブレークポイント)） */
@media (min-width: 769px) {
    .header_inner {
      max-width: 1700px; /* コンテナの最大幅 */
      padding: 0px 10% 5px 10%; /* 上・左・下・右 */
      margin: auto;
   }

    .title {
        color: #fff; /* テキストカラー */
        margin: 0;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .menu_btn {
        display: none; /* PC版ではメニューボタンは非表示 */
    }

    .nav {
        display: flex; /* ナビゲーションをフレックスボックスにすることで、内部の要素を柔軟に配置 */
        justify-content: center; /* フレックスアイテムとなったナビリンクを右揃え */
        align-items: center; /* フレックスアイテムを中央に垂直配置 */
    }

    .nav_list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex; /*フレックス化して横並びにする*/
    }

    .nav_item {
        margin-left: 20px; /* アイテム間にスペースを追加 */
    }

    .nav_link {
        color: #fff; /* テキストカラー */
        text-decoration: none;
        font-size: 1rem; /* フォントサイズ */
    }

    .nav_link:hover {
        text-decoration: underline; /* ホバー時に下線を追加 */
    }
}

/* スマホ版用のスタイル (メディアクエリとブレークポイント)*/
@media (max-width: 768px) {
   .header_inner {
      position: relative; /* ポジション設定：相対配置 */
      padding: 10px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ヘッダーの影 */
   }

    .title {
        color: #fff; /* テキストカラー */
        margin: 0;
        font-size: 1.6rem;
        font-weight: bold;
    }

    .menu_btn {
        position: absolute; /* ポジション設定：ボタンを絶対位置に配置 */
        top: 0.8rem; /* ポジション設定：上から10px */
        right: 5%;; /* ポジション設定：右から10px */
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #fff; /* テキストカラー */
        cursor: pointer;
        z-index: 1001; /* メニューボタンを最前面に表示 */
    }

    .nav {
        position: fixed;/* ビューポートに対して固定: 要素はブラウザのビューポートに固定され、ページをスクロールしてもその要素の位置は変わらない(親要素に依存しない) */
        top: -100%; /* ビューポートを基準に位置を設定 */
        left: 0; /* ビューポートを基準に画面外に配置 */
        width: 100%;
        height: 10rem;
        background-color: rgba(51, 51, 51, 0.90); /* 背景色に透明度を追加 */
        transition: top 0.3s ease, opacity 0.3s ease; /* 透明度の変化もアニメーション */
        color: #fff; /* テキストの色 */
        transition: top 0.3s ease; /* 表示・非表示の際のアニメーションの設定 */
        z-index: 1000; /* メニューを最前面に表示 */
        overflow: auto; /* スクロールを有効にする */
        color: #fff;
    }

    .nav.open {
        top: 0; /* メニューを表示 */
    }

    .nav_list {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-left: 25px;
        height: 100%;
        display: flex; /*フレックスアイテム化にする*/
        align-items: flex-start; /* フレックスアイテムを左側に揃える */
        justify-content: center; /* フレックスアイテムを縦方向に中央に配置 */
        flex-direction: column; /* フレックスアイテムを縦方向に配置 */
    }

    .nav_item {
        margin: auto 0; /* アイテム間にスペースを追加 */
    }

    .nav_link {
        color: #fff; /* リンクの色 */
        text-decoration: none;
        font-size: 1.2rem; /* フォントサイズ */
        font-weight: bold;
    }

    .nav_link:hover {
        text-decoration: underline; /* ホバー時に下線を追加 */
    }
}




/********** レスポンシブにおけるフォントの設定 **********/
@media (min-width: 1441px) {
   html {
       /* 1.0rem = 16px */
      font-size: 16px;
   }
}


@media (min-width: 1025px) and (max-width: 1440px) {
   html {
       /* 1.0rem = 15px */
      font-size: 15px;
   }
}

@media (min-width: 769px) and (max-width: 1024px) {
   html {
       /* 1.0rem = 14px */
      font-size: 14px;
   }
}


@media (max-width: 768px) {
   html {
       /* 1.0rem = 13px */
      font-size: 13px;
   }
}
