@charset "utf-8";

/* Body */
  body {
    font-family:'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
    color: #444;
    margin: 0;    /* ロゴ下の線を横幅いっぱいに表示する */
  }

/* フォントサイズ */
  @media screen and (min-width:0px){
    html { font-size: calc(100vw / 26);}
    h1,h2,h3,h4,h5,h6 { font-size: calc(100vw / 26);}
    ul,li { font-size: calc(100vw / 26);}
    p { font-size: calc(100vw / 26);}
  }
  @media screen and (min-width:830px){
    html { font-size: 15px; }
    h1,h2,h3,h4,h5,h6 { font-size: 15px;}
    ul,li { font-size: 15px;}
    p { font-size: 15px;}
  }

/* 文字間隔 */
  h1,h2,h3,h4,h5,h6 {margin: 0 0 0 0;}

/* リンクカラー */
  a:link { color: #2c6bb4; }
  a:visited { color: #2c6bb4; }
  a:hover { text-decoration:none; color: #2c6bb4;}
  a:active { color: #2c6bb4; }

/* wrapper */
  .wrapper {
    max-width: 850px;
    margin: 0em auto 0em auto;
  }

/* ロゴ */
  .logo_wide_area {
    max-width: 100%;
    /* border-bottom: 1px solid #ccc; */
    box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;  /* 重なり順指定。bannerよりも上に配置して影をbannerにかける */
  }

  .logo_area {
    max-width: 850px;
    margin: 0em auto 0em auto;
    padding: 0.8em 0 0.5em 0.5em;
  }

  .logo_area img{
    width: 5em;
  }

/* iPhoneのテキストボックスの影を消す */
 input[type="number"] {
   -webkit-appearance: none;
 }

 input[type="text"] {
   -webkit-appearance: none;
 }

/* iPhoneのボタンのデフォルト表示を取消す */
  input[type="submit"] {
    -webkit-appearance: none;
  }

  input[type="button"] {
    -webkit-appearance: none;
  }


/* indexページ-------------------------------------------------------------------- */
/* 中タイトル */
  .medium_title {
    background-color: #FFF3F2;
    color: #FE868B;
    padding: 0.3em 0.5em 0.3em 0.5em;
    margin: 0em 0em 0em 0em;
    font-weight: bold;
  }

/* ラジオボタン */
  input[type="radio"]{
    margin: 0em 0.5em 0.8em 0.5em;
  }

/* インプットボックス */
  .input_box input {
    border: 1.5px solid #ccc;
    border-radius: 3px;
    box-shadow: none;
    padding: 0.5em 0.5em 0.5em 0.5em;
    margin: 0.8em 0.5em 0.8em 0.5em;
    font-size: 1em;
  }

/* input type=”number” の上下ボタン（スピンボタン）を消す */
  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
  }
  input[type="number"] {
    -moz-appearance:textfield;
  }

/* ラベルにマウスオンするとカーソル形状が変わる */
  label {
    cursor: pointer;
  }

/* Gridレイアウト */
  .grid_container {
    display: grid;
    grid-template-columns: repeat(
      auto-fill,
      minmax(11em, 1fr)
    );
    padding: 0.5em 0.5em 0.5em 0.5em;
    row-gap: 0.3em;
  }

/* チェックボックス */
  input[type="checkbox"]{
    display: none;
  }
  .check{
    font-size: 1em;
    padding-left: 1.5em;
    position:relative;
  }
  .check::before{
    background-color: white;
    border: 1.5px solid #ccc;
    content: "";
    display: block;
    top:0.1em;
    position: absolute;
    height: 1em;
    width: 1em;
  }
  input[type="checkbox"]:checked + .check::before{
    background-color: white;
  }
  input[type="checkbox"]:checked + .check::after{
    border-bottom: 2px solid #FE868B;
    border-right: 2px solid #FE868B;
    content: "";
    display: block;
    position: absolute;
    top:0.1em;
    left: 0.3em;
    height: 0.8em;
    width: 0.4em;
    transform: rotate(40deg);
  }

/* 白ボタン */
  .white_button{
    cursor: pointer;
    font-size: 1em;
    color: #444;
    border: 1.5px solid #ccc;
    background-color: white;
    margin: 0.5em 0.5em 1em 0.5em;
    padding: 0.3em 0.5em 0.3em 0.5em;
    border-radius: 0.3em;
    outline: none; /* ボタンクリック時の枠線を消す */
  }

  .white_button a{
    text-decoration: none;
    color: #444;
  }


/* 検索ボタン */
  input[type="submit"]{
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    background-color: #FE868B;
    margin: 0.5em 0em 2em 0em;
    padding: 0.3em 3em 0.3em 3em;
    border: none;
    border-radius: 0.3em;
    outline: none   /* ボタンクリック時の枠線を消す */
  }

  .submit_button {
    text-align: center;
  }

  /* footerエリア */
    .footer_area {
      text-align: center;
      margin: 0em 0em 1em 0em;
      font-size: 0.8em;
    }

  .footer_area a {
    text-decoration: none;
    color: #70757a;
    margin: 0em 0.5em 0em 0.5em;
  }


/* searchページ-------------------------------------------------------------------- */
/* 検索結果というタイトル表示部 */
  .search_result_title_erea {
    margin: 0.3em 0em 0em;
  }

  .search_result_title{
    font-size: 0.8em;
    color: #70757a;
    padding: 0em 0.5em 0em 0.5em;
  }

/* 検索結果 */
  .search_result_container {
    margin: 1em 0em 0em 0em;
  }

  .search_result_container a {
    text-decoration: none;
  }

  .search_result_item {
    border-bottom: 1px solid #ccc;
  }

  .search_result_item span {
    padding: 0.3em 0em 0.3em 0.5em;
  }

  .item_name {
    display: inline-block;
    width: 3.5em;
    text-decoration: underline;
  }

/* >アイコン */
  .search_result_item{
    width: 100%;
    position: relative;
    display: inline-block;
    color: #000;
    vertical-align: middle;
    text-decoration: none;
    font-size: 1em;
  }

  .search_result_item::after{
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0.5em;
    margin: auto;
    content: "";
    vertical-align: middle;
    width: 0.4em;   /* arrow size */
    height: 0.4em;  /* arrow size */
    border-top: 1px solid #808080;  /* thickness, color */
    border-right: 1px solid #808080;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

/* 次へボタン */
  .paging_area {
    text-align: center;
    margin: 2em auto 3em auto ;
  }

/* itemページ-------------------------------------------------------------------- */

/* 各フィールド */
  .item_page_each_field {
    border-bottom: 1px solid #ccc;
    padding: 0 0 1em 0;
  }

/* 名前（タイトル） */
  .item_page_title_name {
    font-size: 2em;
    margin: 0.5em 0 0 0;
    padding: 0 0 0.5em 0.5em;
    border-bottom: 1px solid #ccc;
  }

/* 中タイトル */
  .item_page_medium_title {
    font-weight: bold;
    margin: 1em 0 0.5em 0.5em;
  }

/* 小タイトル */
  .item_page_small_title {
    display: inline-block;
    width: 4em;
    font-weight: bold;
    background-color: #FFF3F2;
    margin: 0 1em 0.5em 0.5em;
    padding: 0.2em 0.2em 0.2em 0.2em;
    text-align: center;
  }

/* 備考 */
  .item_page_remarks {
    padding: 0 0 0 0.5em;
  }

/* イメージ */
  .item_page_image_field {
    display: flex;
    flex-wrap: wrap; /* アイテムを折り返して複数行に上から下に並べる */
    padding: 0 0 0 0.5em;
  }

  .item_page_each_image {
    width: 10em;
    text-align: center;
    font-size: 0.9em;
    border: 1.5px solid #ccc;
    border-radius: 0.3em;
    margin: 0 0.2em 0.2em 0;
  }

/* 漢字情報 */
  .item_page_each_kanji_info {
    padding: 0 0.5em 0 0.5em;
    margin: 0 0 3em 0;
  }

  .item_page_url_link a {
    text-decoration: underline;
    color: #444;
    font-size: 0.85em;
  }

  .item_page_kanji_link a {
    text-decoration: underline;
    font-size: 1.5em;
  }

/* itemページ戻るボタン */
  .item_page_back_button_area {
    text-align: center;
  }

  .item_page_back_button{
    cursor: pointer;
    font-size: 1em;
    color: #444;
    border: 1.5px solid #ccc;
    background-color: white;
    margin: 0.5em 0.5em 2em 0.5em;
    padding: 0.3em 0.5em 0.3em 0.5em;
    border-radius: 0.3em;
    outline: none; /* ボタンクリック時の枠線を消す */
  }


/* allnamesページ-------------------------------------------------------------------- */
  /* Gridレイアウト */
    .allnames_result_container {
      display: grid;
      grid-template-columns: repeat(
        auto-fill,
        minmax(8em, 1fr)
      );
      padding: 0.5em 0.5em 0.5em 0.5em;
      row-gap: 0.3em;
    }
