@charset "utf-8";

@media screen and (min-width: 855px) {  }
@media screen and (min-width: 641px) and (max-width: 854px) {  }
@media screen and (min-width: 480px) and (max-width: 640px) {  }

@media screen and (max-width: 1280px) {
  .container {
    padding: 0 16px;
  }
}

/* iPhone XS Max/XR/11/11 Pro Max　横　およびpad */
@media screen and (max-width: 896px) {
  .header {
    padding: 16px 0;
  }
  
  .header .about {
    display: none;
  }
  
  .header .title {
    margin: 0;
    width: 50%;
  }
  
  .header .title p {
    font-size: 0.9rem;
  }
  
  .header > .flex {
    justify-content: flex-start;
    /* flex-direction: column; */
  }

  .header .actions {
    display: none;
  }
/* 
  .header .actions form,
  .header .actions .contact {
    display: none;
  }

  .header .actions .to_newspeed {
    display: none;
  }
   */
  .mobile .menu .site_searches {
    width: 100%;
    max-width: initial;
  }
  
  .mobile .menu .site_searches input,
  .mobile .menu .site_searches button i {
    font-size: 1.6rem;
  }

  .footer .navi {
    display: none;
  }

  .main,
  .sub {
    padding: 0;
    width: 100%;
  }

  .main {
    margin: 0 0 60px;
  }

  .sub .banner {
    margin: 1em;
    width: calc( (100% / 3) - 2em );
  }
  
  .sub .client_ads,
  .sub .ad {
    text-align: center;
  }
  
  .sub .client_ads a,
  .sub .ad a {
    margin: 0 0.5em 1em;
    vertical-align: middle;
  }
  
  .sub .ad a.kyodoshi {
    max-width: 300px;
  }
  
  .sub .section.x span br {
    display: none;
  }

  .detail .main .article .thumb {
    width: 100%;
  }

  .detail .main .article .youtube {
    width: 100%;
  }
  .detail .main .article .youtube iframe {
    width: 100%;
    height: 190px;
  }

  .detail.no_free_user .main .article .no_free_user .btn {
    width: calc(100% - 20px);
  }
}

@media screen and (max-width: 780px) {
  .gnavi .item {
    width: auto;
    margin: 0 1em 0 0;
  }
}

@media screen and (max-width: 667px) {
  
  .sub .client_ads a {
    display: block;
    margin: 0 0 1em;
  }
  
  .home .sub .client_ads {
    display: none;
  }
  
  .home .main .client_ads {
    display: block;
    margin: 48px 0;
    text-align: center;
  }
  
  .home .main .client_ads a {
    display: block;
    margin: 0 0 1em;
  }

  .search .search-area input.keyword {
    width: calc(100% - 55px)
  }
  
  .header .actions {
    justify-content: center;
  }

  /* .header .actions .site_searches {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
  }

  .header .actions .site_searches input {
    height: 100%;
    padding: 0 8px;
    width: calc(100% - 20px);
  }

  .header .actions .site_searches input,
  .header .actions .site_searches button {
    border: none;
    outline: none;
    background: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  } */
  
  #announce .title {
    display: block;
  }

  .announce-modal .modal_content {
    width: 94%;
    padding: 30px;
    max-height: 82%;
    overflow-y: scroll;
  }
  
  .home .main .new_articles,
  .news.index .main .articles,
  .detail .main .articles,
  .detail .main .relations,
  .writer .main .articles {
    grid-template-columns: repeat(1, 1fr); /* 1列 */
  }
  
  .home .main .new_articles .article,
  .news.index .main .articles .article,
  .detail .main .articles .article,
  .detail .main .relations .relation,
  .writer .main .articles .article {
    flex-direction: row;
  }
  
  .home .main .new_articles .article .link,
  .news.index .main .articles .article .link,
  .detail .main .articles .article .link,
  .detail .main .relations .relation .link,
  .writer .main .articles .article .link {
    width: 35%;
  }
  
  .home .main .new_articles .article .text,
  .news.index .main .articles .article .text,
  .detail .main .articles .article .text,
  .detail .main .relations .relation .text,
  .writer .main .articles .article .text {
    width: 65%;
    padding-left: 1em;
    justify-content: flex-start;
  }
  
  .home .main .new_articles .article .title,
  .news.index .main .articles .article .title,
  .detail .main .articles .article .title,
  .detail .main .relations .relation .title,
  .writer .main .articles .article .title {
    flex-grow: initial;
  }
  
  
  /* .main .article,
  .main .relation {
    width: 100%;
    border: none;
    padding: 16px 0;
    margin: 0 0 16px;
  } */
/* 
  .main .article .text,
  .main .relation .text {
    padding-left: 1em;
    width: calc(100% - 80px);
  } */

  .home .main .top_news {
    padding: 0;
    border: none;
    margin: 0 0 24px;
  }

  .home .main .top_news .text {
    padding: 0;
    width: 100%;
  }
  
  .home .main .searches .items {
    justify-content: flex-start;
  }

  .home .main .searches .item {
    width: 50%;
    margin: 0 0 1em;
  }

  .sub .client_ads {
    text-align: center;
  }
  
  /**
   * 記事詳細
   */

  .detail .main .article {
    padding: 0;
  }
  
  /**
   * 執筆者詳細
   */
  
  .writer .main .informations {
    padding: 16px;
  }

  .writer .main .articles {
    gap: 1em;
  }
  
  /**
   * 問い合わせ
   */
  .contact .main .article {
    padding: 20px 10px;
  }

  .contact .main th,
  .contact .main td {
    width: 100%;
    display: block;
    padding: 0;
  }

  .contact .main th {
    background: none;
    border: none;
    padding: 0 0 4px;
  }

  .contact .main td {
    margin: 0 0 3ex;
    border: none;
  }

  .contact.confirm .main td {
    background-color: #fafafa;
    padding: 4px 6px;
  }

  .detail.read_more .main .article .more .btn {
    width: 100%;
    margin: 0;
  }
/* 
  .detail .main .article .actions {
    width: 60%;
  }

  .detail .main .article .actions .favorite {
    margin: 0 0 12px;
  } */

  /**
   * 契約情報ページ
   */

  .mypage .main .infos dt {
    width: 100%;
    margin: 0 0 0.2em;
    border-bottom: 1px solid #ddd;
  }

  .mypage .modal_content {
    padding: 30px;
    width: 94%;
  }

  /**
   * お知らせ一覧
   */
  .announces .contents .articles .data {
    display: block;
    margin-bottom: 25px;
  }
  
  .announces .contents .articles .date {
    width: 100%;
    font-size: 100%;
    padding: 2px 4px 2px 4px;
    border-bottom: none;
    margin: 0;
    background-color: #f9f9f9;
  }
  
  .announces .contents .articles .title {
    width: 100%;
    padding: 2px 4px;
  }

  /**
   * 記事詳細検索
   */
   .search .search-area .box .caution {
    font-size: 80%;
  }
  
  .search .search-area .box .checks label {
    width: 47.5%;
    display: inline-block;
    margin: 0 1% 0 0;
    font-size: 90%;
  }
  
  .search .search-area .box.date [type=text] {
    width: 45%;
  }
}

/* 東三河の最新情報を受け取りませんかに合わせて600px以下 */
@media screen and (max-width: 600px) {
  .footer {
    padding: 0 0 300px;
  }
}


@media screen and (max-width: 480px) {
  .detail.sign_out .main .article .lock .title {
    line-height: 1.2;
    margin: 0 0 20px;
  }

  .detail.sign_out .main .article .lock .title i {
    display: block;
    margin: 0 auto 10px;
  }

  .detail.sign_out .main .article .lock .btn {
    width: 100%;
    margin: 0 0 1em;
  }
}
