/*
Theme Name:mobiletechlab
Template: ystandard
*/

/*----------------------------------------------------------------
 共通
-----------------------------------------------------------------*/
body {
  font-family: 'Noto Sans Japanese';
}
* {
  box-sizing: border-box;
}
a:hover {
  opacity: .5;
}
.site-content {
  margin: 0;
  padding: 0;
}
.singular-article {
  padding: 30px 0 80px;
}
@media screen and (max-width: 1024px) {
  .singular-article {
    padding: 10px 0 80px;
  }
  .site-content {
    background-color: #fff;
    padding-top: 0;
  }
}
@media screen and (max-width: 500px) {
  .title-style {
    font-size: 40px;
  }
}


/*----------------------------------------------------------------
 iframeの処理
-----------------------------------------------------------------*/
/* YouTube: 16:9でフルレスポンシブ */
.youtube-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.youtube-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.is-provider-youtube .wp-block-embed__wrapper:before {
  display: inline !important;
}

/* Spotify: 横幅100%＋高さは固定（曲/エピソード=152px、アルバム/プレイリストは大きめ） */
.spotify-container iframe {
  display: block;
  width: 100%;
  height: 152px !important;          /* 曲/エピソードの標準 */
  border: 0;
  border-radius: 12px;
}
.wp-embed-responsive .wp-block-embed.wp-block-embed-spotify .wp-block-embed__wrapper:before {
  padding-top: 20%;
}
/* アルバム/プレイリストだけ高さを切り替えたい場合（任意クラスを手動で追加・もしくはPHPで条件分岐） */
.spotify-container.is-large iframe {
  height: 352px;
}

/* その他のiframe（保険） */
.iframe-container iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}


/*----------------------------------------------------------------
 ヘッダー
-----------------------------------------------------------------*/
.header-type--row1 .site-header__content {
  justify-content: left;
}
.site-header {
  background-color: #000;
  z-index: 2;
}
.site-title .custom-logo {
  max-width: 300px;
  width: 100%;
}
.breadcrumbs__list a {
  color: #2980b9;
}

/* ヘッダーメニュー */
.global-nav__toggle svg {
  color: #fff;
}
.global-nav {
  background-color: #000;
}
.global-nav__menu>.menu-item>a {
  color: #fff;  
}

@media screen and (max-width: 500px) {
  .site-branding {
    padding-right: 0;
  }
  .site-branding .site-description {
    max-width: 240px;
    margin: 10px auto;
  }
}

/*----------------------------------------------------------------
 フッター
-----------------------------------------------------------------*/
.footer-main,
#footer {
  background-color: #000;
  position: relative;
  z-index: 2;
}
/*　フッターメニュー　*/
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 10px auto;
}
.footer-menu h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  margin: 20px 0 5px;
  padding-left: 15px;
}
.footer-menu-left {
  width: 38%;
}
.footer-menu-center {
  width: 34%;
}
.footer-menu-right {
  width: 28%;
}
.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li {
  margin: 0 10px;
}
.footer-menu a {
  color: #fff;
  display: block;
  font-size: 15px;
  padding: 5px;
}
#footer-copy,
#footer-copy a {
  color: #fff;
}
@media (max-width: 768px) {
  .footer-menu {
    display: block;
  }
  .footer-menu-left,
  .footer-menu-center,
  .footer-menu-right {
    width: 100%;
  }
}

/*----------------------------------------------------------------
 サイドバー
-----------------------------------------------------------------*/
#secondary {
  padding-top: 30px;
}
.wp-block-search .wp-block-search__label {
  display: none;
}
.wp-block-search__input {
  border-radius: 8px 0 0 8px !important;
}
.wp-block-search .wp-block-search__button {
  background-color: #000;
  border-color: #000;
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-weight: 900;
  margin-left: 0;
}

/*----------------------------------------------------------------
 一覧
-----------------------------------------------------------------*/
/* card style */
.card-frame {
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: wrap row;
  -ms-flex-flow: wrap row;
  flex-flow: wrap row;
}
.card-box {
  background-color: #fff;
  margin: 0 0.5% 10px 0.5%;
  vertical-align: top;
  width: 24%;
}
.card-box a {
  color: #fff;
  text-decoration: none;
}
.card-img img {
  border-radius: 8px 8px 0 0;
  width: 100%;
}
.card-title {
  color: #444;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 5px;
  padding: 0 5px 10px;
}
.card-meta {
  font-size: 12px;
  line-height: 1;
  margin: 5px 5px 0;
  width: 100%;
}
.card-cat {
  background-color: #333;
  color: #fff;
  display: inline-block;
  font-weight: bold;
  line-height: 1;
  margin: 5px;
  padding: 3px 10px;
}
.card-date {
  color: #999;
  display: inline-block;
}

@media screen and (max-width: 767px) {
  .card-box {
    width: 32%;
  }
}
@media screen and (max-width: 500px) {
  .category-frame {
    padding-bottom: 20px;
  }
  .card-title {
    font-size: 14px;
  }
  .card-box {
    margin: 0 0 15px;
    width: 100%;
  }
}

/*----------------------------------------------------------------
 トップページ
-----------------------------------------------------------------*/
/* 動画背景 */
.top-main-video-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  background: none;
  z-index: 1;
}
.video-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.video-bg__media {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}
.video-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(./images/video-dotto.png);
  background-size: 3px auto;
  opacity: 0.5;
  z-index: 1;
}
/* スマホ＆タブレットの静止画背景 */
.top-main-image-frame {
  background-color: #000;
  width: 100%;
  height: auto;
  z-index: 1;
}
.top-main-image-frame img {
  display: block;
}
.main-top {
  margin-top: -200px;
  position: relative;
  z-index: 2;
}
.main-top-sp {
  position: relative;
  z-index: 2;
}

/* トップページ共通項目 */
.top-content-inner {
  margin: 0 auto;
  max-width: 1280px;
}
.top-title-style {
  color: #fff;
  font-size: 75px;
  font-weight: 900;
  margin: 0 auto;
  padding: 10px 0 0;
}
.top-title-sub {
  color: #fff;
  font-size: 16px;
  margin: 0 0 30px;
  padding: 0 10px;
}

/* トップページのアバウトコーナー */
#top-about {
  background-color: #000;
  padding: 50px 20px;
}
.top-about-frame {
  display: flex;
  align-items: center;
}
.top-about-text {
  padding: 5px;
  width: 50%;
}
.top-about-text p {
  color: #fff;
}
.top-about-img {
  width: 50%;
}
/* ラジオアーカイブ */
#top-radio {
  background-color: #0f0f0f;
  padding: 50px 20px;
}
#top-radio .card-box {
  background-color: inherit;
}
#top-radio .card-title {
  color: #fff;
}
#top-radio .card-img img {
  border-radius: 8px;
}

/* テクニカルジャーナル */
#top-tech {
  background-color: #0b0e43;
  padding: 50px 20px;
}

@media screen and (max-width: 767px) {
  .main-top {
    margin-top: 0;
  }
  .top-title-style {
    font-size: 32px;
  }
  .top-title-sub {
    margin-top: 15px;
    padding: 0;
  }
  .top-about-frame {
    display: block;
  }
  .top-about-text {
    padding: 0;
    width: 100%;
  }
  .top-about-img {
    width: 100%;
  }
}

/*----------------------------------------------------------------
 archive.php
-----------------------------------------------------------------*/
.archive__page-title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
}
.archive__item.is-card {
  --ystd-archive-item-width: calc(24.5% - var(--ystd-archive-gap)*2/3);
}
.archive__item .archive__title a {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  padding: 0 10px 10px;
}
@media screen and (max-width: 1024px) {
  .archive__item.is-card {
    --ystd-archive-item-width: calc(24.5% - var(--ystd-archive-gap)*2/3);
  }
}
@media screen and (max-width: 780px) {
  .archive__item .archive__title a {
    font-size: 14px;
  }
  .archive__item.is-card {
    --ystd-archive-item-width: calc(33.33% - var(--ystd-archive-gap)*2/3);
  }
}
@media screen and (max-width: 599px) {
  .archive__container {
    flex-direction: row;
  }
  .archive__container {
    flex-direction: inherit;
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 480px) {
  .archive__item.is-card {
    --ystd-archive-item-width: calc(50% - var(--ystd-archive-gap)*2/3);
  }
}
/*----------------------------------------------------------------
 single.php
-----------------------------------------------------------------*/
/* 記事ヘッダーのメタ情報 */
.entry-head-author {
  margin: 30px 0 0;
}
.head-author-name {
  font-weight: bold;
}
/* 記事内の要素調整 */
.entry-content h2 {
  background-color: #000;
  color: #fff;
  padding: 10px;
}
.ys-toc {
  margin-bottom: 30px;
}
/* ブロックエディタ */
.speaker-dialogue {
  position: relative;
  padding-left: 45px;
}
.speaker-dialogue::before {
  border-radius: 2px;
  font-weight: bold;
  padding: 0 2px;
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  width: 34px;
}

/* 既存3人 */
.speaker-dialogue.is-style-speaker-yuzuki::before {
  content: "弓月";
  background-color: #8cc3ff;
}
.speaker-dialogue.is-style-speaker-kita::before {
  content: "北";
  background-color: #ff9090;
}
.speaker-dialogue.is-style-speaker-ishikawa::before {
  content: "石川";
  background-color: #ffea7d;
}
/* ★ゲストは CSS変数（記事全体で差し替え）。未設定時は "ゲスト" */
.speaker-dialogue.is-style-speaker-guest::before {
  content: var(--guest-label, "ゲスト");
  background-color: #7bce94;
}


/*----------------------------------------------------------------
 サイドバー
-----------------------------------------------------------------*/
.sidebar-latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-latest__item a {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}
.sidebar-latest__thumb {
  width: 80px;
  height: 80px;
}
.sidebar-latest__thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}
.sidebar-latest__title {
  width: calc(100% - 90px);
}

.sidebar-youtube {
  margin-top: 30px;
}

/*----------------------------------------------------------------
 contact form
-----------------------------------------------------------------*/
.contact-form-text {
  margin-top: 20px;
}
.contact-form-frame {
  margin: 10px;
}
.contact-form {
  display: flex;
  margin: 10px 0 30px;
}
.contact-form-label {
  color: #333;
  font-weight: bold;
  width: 240px;
}
.contact-form-input {
}
/* placeholderの色を変更 */
::-webkit-input-placeholder {
  color: #ccc;
}
::-moz-placeholder {
  color: #ccc;
  opacity: 1;
}
:-ms-input-placeholder {
  color: #ccc;
}

/* 必須か任意か */
.contact-form-status-required {
  background-color: #cc3300;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  margin-left: 8px;
  padding: 1px 5px;
  vertical-align: middle;
}
.contact-form-status-optional {
  background-color: #a3a5a6;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  margin-left: 8px;
  padding: 1px 5px;
  vertical-align: middle;
}

/* 入力欄 */
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form input[type=date],
.contact-form textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2);
  color: #666;
  font-size: 14px;
  padding: 10px;
  vertical-align: bottom;
  width: 260px;
  -webkit-appearance: none;
}
.contact-form input[type=date] {
  margin-right: 5px;
  width: 140px;
}

/* チェックボックスとラジオボタン */
.wpcf7-list-item {
  display: inline-block;
}

/* 送信ボタン */
.contact-submit img {
  display: inline;
}
.wpcf7 img.ajax-loader {
  width: 16px;
}
.contact-submit-empty {
  display: table-cell;
  vertical-align: top;
  width: 240px;
}
.contact-form input[type=submit] {
  background-color: #f00;
  border: 1px solid #f00;
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  display: table-cell;
  font-size:18px;
  font-weight: bold;
  line-height: 1.4;
  margin: 20px auto;
  padding: 15px 10px 13px;
  text-decoration: none;
  text-align: center;
  -webkit-appearance: none;
  width: 280px;
}

/* 注釈 */
.contact-form-caution {
  font-size: 14px;
  padding: 5px 0 0;
}

/* 送信後のメッセージ */
.wpcf7-response-output {
  margin: 2em 0.5em 4em;
}
.wpcf7-mail-sent-ok {
  background-color: #fff;
  border: 4px solid #009b40;
  padding: 15px;
}
.wpcf7-validation-errors {
  background-color: #fff;
  border: 4px solid #cc0000;
  padding: 15px;
}

@media screen and (max-width: 767px) {
  .contact-form-frame {
    margin: 10px 0;
  }
  .contact-form {
    display: block;
  }
  .contact-form input[type=text],
  .contact-form input[type=email],
  .contact-form input[type=tel],
  .contact-form input[type=date],
  .contact-form textarea {
    width: 100%;
  }

  .contact-form-label,
  .contact-form-input,
  .contact-submit-empty,
  .contact-form input[type=submit] {
    display: block;
  }
  .contact-form-label {
    line-height: 1;
    margin-bottom: 8px;
  }
  .contact-form-pc {
    display: none;
  }
}
@media screen and (max-width: 479px) {
  .contact-form input[type=date] {
      width: 120px;
  }
  .contact-submit {
    margin: 0 auto;
  }
}

/*----------------------------------------------------------------
 ボタン
-----------------------------------------------------------------*/
.main-btn a {
  background-color: #f00;
  border-radius: 25px;
  color: #fff;
  display: block;
  font-weight: bold;
  font-size: 18px;
  margin: 20px auto 10px;
  max-width: 320px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}


@media screen and (max-width: 1080px) {
}
@media screen and (max-width: 979px) {
}
@media screen and (max-width: 767px) {
}
@media screen and (max-width: 479px) {
}