/*!
Theme Name: 海といのちの未来をつくる
Theme URI: https://umito.umios.com/
Author: wellenetz
Author URI: httpa://www.wellenetz.co.jp/
Description: umito.用テーマ。
  2024.10.07: TOPページ一覧表示改修（表示デザイン、おすすめ・旬の記事表示機能追加）
  2026.01.15: 会社名変更
  2026.02.09: バナー表示用ショートコード追加
Version: 1.4.1
Text Domain: umito-mn
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

*/

.content-in-article a{text-decoration:underline; color:red;}


.content-article .text-center{margin-top: -40px !important;}

.content-article table{border:2px solid #000; width:100%; }
.content-article table tr{border:1px solid #000; }
.content-article table td{border:1px solid #000; padding:20px; width:20%; }

.content-in-article .hidden_box {
    margin: 2em 0;
    padding: 0;
}

.content-in-article .hidden_box label {
    padding: 15px;
    font-weight: bold;
    border: solid 2px black;
    cursor :pointer;
}

.content-in-article .hidden_box label:hover {
    background: #efefef;
}

.content-in-article .hidden_box input {
    display: none;
}

.content-in-article .hidden_box .hidden_show {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.8s;
}

.content-in-article .hidden_box input:checked ~ .hidden_show {
    padding: 10px 0;
    height: auto;
    opacity: 1;
}

.marquee-container {
  background-image:url(https://umito.umios.com/wpumito/wp-content/uploads/2018/12/umi.jpg);
  overflow: hidden;
	border:3px solid #000;
	padding:20px;
	width:600px;
	margin:0 auto;
}

.marquee-container > .message {
  animation-name: marquee;
  animation-timing-function: linear;
  animation-duration: 50s;
  animation-iteration-count: infinite;
  
  /* widthを有効にするため。pタグでなくｓｐanタグを使う場合は不要 */
  display: inline-block;
  /* 折り返されないようにする */
  white-space:nowrap;
  /* .marquee-container分、左にpaddingを設定し、メッセージを右に追い出す */
  padding-left: 100%;
	font-size:250%;
}

@keyframes marquee {
  from { transform: translate(0); }
  to { transform: translate(-100%); }
}

/* .bor-article .title-footer{
width:40% !important;	
} */

/**---------------------------------------------------------------------------------------
  * 社名変更に伴うロゴ変更対応
  2026.01.15
  ---------------------------------------------------------------------------------------*/

:root {
  --main-color: #0042BC;    /* メインカラー */
  --sub-color: #f15a24;     /* サブカラー */
}

  
/*
 * ヘッダーロゴコンテナ 
 */
.header-logo-container {
  position: relative;
  display: block;
  border-top: var(--main-color) solid 12px;
  @media (max-width: 1619px)  {
    position: static;
    display: flex;
    justify-content: flex-start;
    border-width: 6px;
    flex-direction: column;
  }
  .site-logo {
    position: absolute;
    left: 0;
    top: 0;
    width:  240px;
    padding: 0;
    @media (max-width: 1619px)  {
      position: static;
      width: 120px;
      padding: 0;
    }
  }
  .site-description {
    height: 90px;
    display: flex;
    align-items: center;
    @media (max-width: 1619px)  {
      height: 50px;
    }
    .site-name {
      margin-right: 20px;
      > img {
        width: 110px;
        margin-bottom: 0;
      }
    }
    .site-desc {
      font-weight: bold;
      font-size: 18px;
      margin-bottom: -5px;
    }
  }
}

/* バナーヘッダー（カテゴリーや固定ページのヘッダー） */
.banner-other {
  h1 {
    margin-bottom: 0;
  }
}

.header-slider {
  background-color: white !important;
  #slider-description {
    margin: -60px 40px 0 40px;
    padding-top: 0 !important;
    @media (max-width: 575.98px) {
      margin: 0px;
    }
  }
  .header-description {
    background-color: var(--main-color) !important;
    padding-top: 0;
    @media (max-width: 575.98px) {
      padding: 10px 20px;
    }
  }

  /* 投稿のヘッダー */
  .eye-catch-row {
  }
  .title-row {
    margin: -60px 40px 0 40px;
    @media (max-width: 991.98px) {
      margin: 0px -15px 0 -15px;
    }
    .title {
      padding-right: 20px;
      @media (max-width: 991.98px) {
        padding-right: 14px;
      }
    }
  }
}

/* フッターバナー */
.ex-bannars {
  .container {
    display: flex;
    @media (max-width: 767.98px) {
      flex-direction: column;
      row-gap: 10px;
    }
  }
}

/* フッターロゴ */
.footer {
  .center-footer {
    .logo {
      display: flex;
      align-items: flex-start !important;
      flex-direction: column;
      justify-content: center;
      height: 100%;
      margin-left: 40px;
      @media (max-width: 991.98px) {
        align-items: center !important;
      }
      .title {
        font-size: 18px;
        font-weight: bold;
        margin-right: 20px;
        @media (max-width: 991.98px) {
          text-align: center;
        }
      }
      .logomark {
        width: 110px;
        @media (max-width: 991.98px) {
          width: 128px !important;
        }
        img {
          margin-bottom: 0;
        }
      }
    }
    .footer-menu {
      text-align: center;
    }
    .footer-column-3 {
        @media (max-width: 991.98px) {
          border-top: 1px solid #fff;
          padding-top: 10px;
        }
      .logo-corporate {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 0;
        @media (max-width: 991.98px) {
          justify-content: center !important;
          > a{
            width: 70%;
          }
        }
      }
    }
  }
  .copy-right {
    padding-bottom: 15px;
    @media (max-width: 991.98px) {
      padding-bottom: 0;
    }
  }
}


/* スライダー */
.slider {
  #slider-center {
    border: none !important;
  }

}
/* スライダーの説明欄 */
#slider-description {
  .header-description {
    p.title {
      padding-right: 20px;
    }
    @media (max-width: 575.98px) {
      p.title {
        padding-right: 0;
      }
    }
  }
}


/* グローバルメニュー */
#global-menu {
  margin-bottom: 1.5rem;
  @media (max-width: 991.98px) {
    margin-bottom: 1rem;
  }
  .nav {
    column-gap: 10px;
    @media screen and (max-width: 991.98px) {
      justify-content: center;
      column-gap: 2px;
    }
    .nav-item {
      &.nav-link {
        font-size: 16px;
        font-weight: bold;
        color: #000;
        letter-spacing: 2px;
        border-radius: 20px;
        border: none;
        &.active, &:hover {
          color: #fff;
          background-color: var(--main-color);
          border: none;
        }
        @media  (max-width: 991.98px) {
          font-size: 14px;
          flex-basis: auto !important;
          flex-grow: unset !important;
          text-align: start !important;
          padding: 0.3rem 0.8rem;
        }
      }
    }
  }

}

/* お知らせ・ニュース共通 */
.news-block {
  @media (max-width: 991.98px) {
    padding: 0.25rem 1rem !important;
  }
}
/* 重要なお知らせ */
.important-notice {
  @media (max-width: 991.98px) {
    margin-bottom: 15px !important;
  }
  .news-item {
    p {
      margin-bottom: 0;
    }
  }
}

/* メインコンテンツメニュー */
.main-content-menu {
  justify-content: center !important;
  @media (max-width: 767.98px) {
    padding: 0 !important;
  }
  .nav-tabs {
    border: none;
    column-gap: 20px;
    margin-bottom: 20px;
    @media (max-width: 767.98px) {
      column-gap: 4px;
    }
    .nav-item {
      .nav-link {
        padding: .25rem 2rem;
        font-size: 17px;
        font-weight: bold;
        color: #000;
        border-radius: 20px;
        border: none;
        letter-spacing: 2px;
        @media (max-width: 767.98px) {
          padding: .3rem .8rem;
          font-size: 14px;
        }
        &.active, &:hover {
          color: #fff;
          background-color: var(--main-color);
          border: none;
        }
      }

    }  
  }
}


/* スマホヘッダー */
header.sb-slide {
  display: none;
  @media (max-width: 991.98px) {
    display: flex;
  }
}

header.header {
  background-color: white !important;
  margin-bottom: 10px;
}
.sp-header {
  .site-name {
    display: flex;
    justify-content: center !important;
  }
  .site-desc {
    color: black !important;
    font-size: 12px;
    font-weight: bold;
    padding: 0 !important;
  }
  .site-description {
    .container-wapper {
      display: flex;
      justify-content: center !important;
      flex-direction: column-reverse;

    }
  }
  .right-menu {
    position: absolute !important;
    cursor: pointer;
  }  
}

/* スマホハンバーガーメニュー */
#sb-slide-menu.menu-responsive {

  background-color: white !important;
  border-left: 1px solid #333;
  .menu-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: -15px;
  }
  .search-box-menu {
    display: flex;
    justify-content: center;
    margin: 20px 10px 20px 10px;
  }
  .nav-menu-custom {
    padding: 0 20px !important;
    li {
      border-bottom: 1px solid #000 !important;
      a {
        color: #000 !important;
        text-align: center;
      }
    }

    .menu-close-item {
      border-bottom: none !important;
      > div {
        color: black;
        padding: 15px 12px;
        text-align: center;
        display: block;
        .menu-item-title {
          color: black;
          font-family: "ヒラギノ角ゴ ProN W6", Hiragino Kaku Gothic ProN, "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic", "メイリオ", Meiryo, sans-serif !important;
          font-weight: bold;
          font-size: 15px !important;

          letter-spacing: 0;
        }
      }
    }
  }

}

/* 検索ボックス */
.search-box-menu {
  .search-form {
    display: flex;
    > label {
      margin-bottom: 0 !important;
    }
  }
  .search-field {
    border-color: var(--main-color) !important;
    border-style: solid;
    &:focus-visible {
      outline: none !important;
    }
  }
  .search-submit {
    background-color: var(--main-color) !important;
    color: white !important;
    border: none !important;
    padding: 3px 8px !important;
  }
}

.search-count {
  text-align: right;
}

/* フロントページコンテンツ */
.product-hot {
  .new-posts {
    li > a .img .posi-new-img {
      @media (max-width: 767.98px) {
        width: 40px;
        height: 40px;
      }
    }
  }
  .ranking {
    margin-top: 0;
    ul li {
      .icon-rank {
        width: 40px;
        height: 40px;
      }
      span {
        font-size: 12px;
        left: 8px;
      }
    }
  }
}

/* バナーショートコード */
.post-banner-shortcode {
  text-align: center;
  margin: 20px auto;
}
.post-banner-shortcode .post-banner-img {
  max-width: 100%;
  height: auto;
}
.post-banner-caption {
  margin: 20px 0 0;
  font-size: 16px;
  text-align: center;
}
