/*
Theme Name: j-security_or_jp Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: j-security_or_jp
*/

/* Add your own styles here: */

/* heading */
.template-page .entry-content-wrapper h1.av-special-heading-tag,
.template-page .entry-content-wrapper h3.entry-title,
.template-blog .entry-content-wrapper h1.post-title {
  text-transform: none !important;
}

/* menu */
#avia-menu .menu-item-top-level-11 .security-classroom-link,
#avia-menu .menu-item-top-level-11 .sdgs-link {
  display: none;
}

/* header */
#header_main .security-classroom-link,
#header_main .sdgs-link {
  display: inline-block;
  width: 31px;
  height: 31px !important;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#header_main .security-classroom-link:hover,
#header_main .sdgs-link:hover {
  opacity: 0.7;
}

#header_main .security-classroom-link > *,
#header_main .sdgs-link > * {
  display: none;
}

#header_main .security-classroom-link {
  background-image: url(images/kyoshitu-logo.jpg);
}

#header_main .sdgs-link {
  background-image: url(images/icon-sdgs-wheel.png);
}

@media only screen and (min-width: 768px) {
  #header_main .inner-container > .security-classroom-link,
  #header_main .inner-container > .sdgs-link {
    position: absolute;
    top: 30px;
  }

  #header_main .inner-container > .security-classroom-link {
    right: 100px;
  }

  #header_main .inner-container > .sdgs-link {
    right: 50px;
  }
}

@media only screen and (max-width: 767px) {
  #header_main .inner-container > .security-classroom-link,
  #header_main .inner-container > .sdgs-link {
    display: none;
  }
}

/* burger-menu */
#av-burger-menu-ul li:last-child {
  text-align: left;
}

.menu-item-1466 {
  padding-left: 50px;
}

#av-burger-menu-ul li:last-child a {
  display: inline-block !important;
  margin-top: 15px;
  margin-right: 20px;
  padding: 0 !important;
  border-bottom: none !important;
}

#av-burger-menu-ul li:last-child a.security-classroom-link,
#av-burger-menu-ul li:last-child a.sdgs-link {
  position: relative;
  top: 2px;
}

/* footer */
@media only screen and (min-width: 768px) {
  #footer .sdgs {
    position: absolute;
    right: 130px;
    bottom: 30px;
  }
  #footer .shut-japan-pc a img{
    height: 44px;
  }
  #footer .shut-japan-sp{
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  #footer .sdgs {
    margin-bottom: 30px;
    text-align: center;
  }
  #footer .shut-japan-sp{
    margin-bottom: 30px;
    text-align: center;
  }
  #footer .shut-japan-sp a img{
    height: 44px;
  }
  #footer .shut-japan-pc{
    display: none;
  }
}

/* page-sdgs */
.page-sdgs h3.av-special-heading-tag {
  padding-top: 20px !important;
  font-weight: bold;
  font-size: 30px;
}

.page-sdgs .summary {
  margin-top: 30px;
  font-weight: bold;
}

.page-sdgs .text {
  margin-top: 60px;
}

.page-sdgs .text + .text {
  margin-top: 1em;
}

.page-sdgs .list {
  margin-top: 60px;
  margin-left: 10px;
  list-style: none;
  counter-reset: number;
}

.page-sdgs .list li {
  margin-bottom: 30px;
  padding-left: 1em;
  text-indent: -1em;
}

.page-sdgs .list li::before {
  display: inline-block;
  width: 1em;
  font-weight: bold;
  content: counter(number);
  counter-increment: number;
}

.page-sdgs .list li strong {
  display: inline-block;
  margin-bottom: 10px;
  padding-left: 1em;
  color: inherit;
}

.page-sdgs .figures {
  margin-top: 60px;
}

.page-sdgs .sdgs-goals {
  margin-bottom: 120px;
}

@media only screen and (min-width: 768px) {
  .page-sdgs .figures {
    display: flex;
    justify-content: center;
  }

  .page-sdgs .figures figure + figure {
    margin-left: 30px;
  }
}

@media only screen and (max-width: 767px) {
  .page-sdgs .figures {
    text-align: center;
  }

  .page-sdgs .figures figure + figure {
    margin-top: 30px;
  }
}

/* page-class */
.page-security-classroom h3.av-special-heading-tag {
  padding: 20px 0 30px !important;
  font-weight: bold;
  font-size: 30px;
  line-height: 46px;
}

.page-security-classroom .special-heading-border {
  display: none;
}

.page-security-classroom .next-life {
  color: #666;
  text-decoration: underline;
}

.sub-menu a {
  background-color: #0055a5 !important;
  border-color: #0055a5 !important;
}

.avia-menu .sub-menu li a .avia-menu-text {
  border-bottom: none !important;
}

.l_f_menu li .no_underline:hover {
  text-decoration: none !important;
}

@media only screen and (max-width: 767px) {
  .sub-menu a {
    background-color: #fff !important;
    border-color: #e1e1e1 !important;
  }

  .sub-menu li:last-child {
    padding-left: 0;
  }

  .sub-menu li:last-child .avia-menu-text {
    padding-left: 70px;
  }
}

/* page-donation */
.page-donation .special-heading-border {
  display: none;
}

.page-donation h2.av-special-heading-tag {
  line-height: 2;
}

.page-donation #av_section_1 {
  background-size: cover;
}

.page-donation #av_section_1 .entry-content-wrapper {
  padding: 13% 0 10%;
}

.page-donation .avia-button {
  width: 300px;
  margin-top: 135px;
  font-size: 16px !important;
}

.page-donation div,
.page-donation td {
  border: none !important;
}

.page-donation #av_section_2 .content {
  padding-bottom: 0;
}

.page-donation #av_section_3 .flex_column {
  padding-left: 0 !important;
}

.page-donation table {
  background: #ededed !important;
}

.page-donation td {
  text-align: left !important;
}

.page-donation td:nth-child(odd) {
  width: 150px;
}

.page-donation #after_section_4 .avia-button {
  margin-top: 0;
  margin-bottom: 30px;
}

.page-donation #donation .flex_column {
  margin-top: 0;
  margin-bottom: 30px;
}

.page-donation #av_section_5 {
  padding: 6% 0 7%;
}

@media only screen and (max-width: 767px) {
  .page-donation .pc-br {
    display: none;
  }

  .page-donation .container div {
    margin: 0 !important;
  }

  .page-donation #av_section_5 .av-special-heading-h3,
  .page-donation #donation .avia-builder-el-49 {
    padding: 30px 0 !important;
    text-align: left;
  }

  .page-donation #av_section_5 .avia-builder-el-22 {
    text-align: center !important;
  }

  .page-donation #donation .avia-builder-el-51 {
    margin-bottom: 13px !important;
  }

  .page-donation #av_section_5 .avia-builder-el-first {
    padding: 10px 0 !important;
  }

  .page-donation #av_section_3 .template-page,
  .page-donation #av_section_4 .template-page,
  .page-donation #av_section_5 .template-page {
    padding: 0 !important;
  }

  .page-donation td {
    display: block !important;
    white-space: initial !important;
  }

  .page-donation td:nth-child(even) {
    padding-top: 0 !important;
  }

  .page-donation td:nth-child(odd) {
    font-weight: bold !important;
  }
}

@media print {
  #header_main {
    display: none;
  }
}

/* 5/28 */
.home .av-magazine-group {
  max-width: 690px;
  margin: 0 auto;
}

.home .av-magazine-group .entry-content-header {
  display: flex;
  padding: 0;
}

.home #top-topics .entry-content-header .slide-entry-title {
  font-size: 1.3em !important;
  text-align: left !important;
}

.home .av-magazine-time {
  width: 120px;
  font-size: 14px;
}

.home .av-magazine-title {
  font-weight: normal;
  font-size: 17px !important;
}

.home .av-magazine-title:hover {
  opacity: 0.7;
}

.home #top-topics .template-page {
  padding-bottom: 0 !important;
}

.home #top-topics .entry-footer {
  position: absolute;
  top: -70px;
  width: 100%;
}

.home #top-topics .slide-meta {
  margin: 0;
}

.home #top-topics .slide-entry {
  position: relative;
  margin-top: 70px;
}

.home #top-topics .el_after_av_blog {
  margin-bottom: 0;
}

.home #top-topics .post-entry {
  padding-bottom: 50px !important;
}

.home .el_after_av_magazine {
  padding: 40px 0 0 !important;
}

.home #av-magazine-1 {
  margin: 0;
}

.home #top-news .template-page {
  padding-bottom: 0 !important;
}

.home #top-place .template-page {
  padding-bottom: 50px !important;
}

.home .slide-entry-wrap {
  margin-bottom: 0 !important;
}

.single .date-container {
  float: right;
}

.single .entry-content {
  margin-top: 50px;
}

.single .post-meta-infos {
  display: none !important;
}

.single .blog-btn {
  margin: 7px;
  color: #fff;
  background-color: #0055a5;
  border-color: #003383;
}

.single .blog-btn-wrap {
  margin-top: 50px;
  text-align: center;
}

.single .blog-btn-wrap2 {
  display: flex;
  justify-content: center;
}

.single article p a {
  word-break: break-all;
}

@media only screen and (max-width: 767px) {
  .home #top-topics .slide-entry-wrap,
  .home #top-topics .avia-content-slider {
    margin-bottom: 0;
  }

  .home .el_after_av_magazine {
    padding: 10px 0 0 !important;
  }

  .home .slide-meta {
    margin: 20px 0 40px !important;
  }

  .home #top-topics .post-entry {
    padding-bottom: 0 !important;
  }

  .home .av-magazine-group .entry-content-header {
    display: block;
  }

  .page-id-265 .slide-entry-wrap {
    margin-bottom: 0 !important;
  }

  .home #top-topics .slide-entry {
    margin-top: 70px !important;
    margin-bottom: 50px !important;
  }

  .home #top-topics .entry-footer {
    top: -85px;
  }

  .home #top-news .template-page {
    padding-bottom: 25px;
  }

  .home #top-topics .avia-builder-el-last {
    margin-bottom: 50px !important;
  }
}

#sdgs-platform-sec1 .flex_column .av-special-heading-tag,
#sdgs-platform-sec3 .flex_column .av-special-heading-tag {
  font-weight: bold;
  line-height: 1.5;
}

#sdgs-platform-sec5 .entry-content-wrapper {
  display: flex;
  align-items: center;
}

#sdgs-platform-sec5 {
  font-weight: bold;
}

#sdgs-platform-sec2 .avia-image-container,
#sdgs-platform-sec3 .avia-image-container {
  margin-bottom: 10px;
}

#sdgs-platform-sec2 .template-page,
#sdgs-platform-sec3 .template-page {
  padding-top: 120px;
}

#top-bnr-wrap .avia_image {
  width: 100%;
  max-width: 870px;
}

#top-bnr-wrap .avia_image:hover {
  opacity: 0.9;
}

#top-bnr-wrap .template-page {
  padding-bottom: 15px !important;
}

#top-topics .avia-content-slider .slide-entry-excerpt {
  display: -webkit-box;
  height: 96px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

@media only screen and (max-width: 767px) {
  #sdgs-platform-sec5 .entry-content-wrapper {
    flex-direction: column;
  }

  #sdgs-platform-sec1 {
    margin-bottom: 0 !important;
  }

  #sdgs-platform-sec1 .template-page {
    padding-top: 20px !important;
  }

  #sdgs-platform-sec1 .hr-custom.hr-center,
  #sdgs-platform-sec2 .hr-custom.hr-center,
  #sdgs-platform-sec3 .hr-custom.hr-center {
    margin-bottom: 40px !important;
  }

  #sdgs-platform-sec4 .av-special-heading {
    margin-top: 40px !important;
    padding-bottom: 40px !important;
  }

  #sdgs-platform-sec2 .template-page {
    padding: 70px 0 30px;
  }

  #sdgs-platform-sec3 .template-page {
    padding: 70px 0 0;
  }

  #sdgs-platform-sec5 {
    margin: 40px 0 !important;
  }
}

@media only screen and (max-width: 480px) {
  .home .avia-slideshow-inner .slide-1 {
    height: 240px;
    background: url(/wp/wp-content/uploads/2020/07/slide1-sp.svg);
    background-position-y: bottom;
    background-size: cover;
  }

  .home .avia-slideshow-inner .slide-1 img {
    display: none;
  }

  .home .avia-slideshow-inner .slide-1 .slideshow_align_caption {
    top: 30px;
  }
}

@media only screen and (min-width: 768px) {
  .home #top-topics article > a {
    height: 20vw;
    max-height: 287px;
  }
}

/* 8/3 */
.home #top-case .flex_column section {
  text-align: center;
}

.home #top-case .flex_column section > .avia_textblock {
  display: inline-block;
}

.home #top-case h3 {
  font-weight: normal;
  line-height: 1.6;
}

.home #top-case .template-page {
  padding: 0;
}

.home #top-case .container {
  margin-bottom: 50px !important;
}

@media only screen and (max-width: 767px) {
  .home #top-case section + .flex_column {
    margin: 30px 0 !important;
  }

  .home #top-case section + .flex_column + .flex_column {
    margin-top: 0 !important;
  }

  .home #top-case .entry-content-wrapper div.flex_column:nth-child(2) {
    margin-top: 0 !important;
  }

  .home #top-case h3 {
    font-size: 18px;
  }
}

/* 未実施事業（復興支援募金活動 /donation）のメニューリンクを非表示 */
.menu-item p:has(a[href*="donation"]) {
  display: none;
}
.menu-item a[href*="donation"] {
  display: none;
}

/* === スマホ版フッター 1列化＆可読性改善（2026-06-06追加） === */
/* 原因：サービスページの .box クラスとの衝突 or #service CSSの侵食疑い */
/* 暫定対応として全ページのフッターをスマホで1列化 */
@media only screen and (max-width: 768px) {
  #footer .flex_column,
  #footer .av_one_half,
  #footer .av_one_third,
  #footer .av_one_fourth,
  #footer .av_one_fifth,
  #footer .av_two_third,
  #footer .av_three_fourth {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 20px !important;
    float: none !important;
  }
  
  #footer .widget a,
  #footer .widget li,
  #footer .widget p,
  #footer .menu a {
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: 14px;
    line-height: 1.7;
  }
}

/* サービスページ 4プレイヤー モバイル強制スタック（2026-06-07）*/
@media only screen and (max-width: 767px) {
  body.page-id-2714 .flex_column.av_one_fourth {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
    clear: both !important;
    float: none !important;
  }
}
