/* delaymania 旧テーマから移植したショートコード・本文内直書きHTML・広告枠用スタイル */

.youtube-container {
  margin: 0 0 20px;
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.youtube-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.spotify-container {
	margin: 0 0 20px;
}

.spotify-container iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* slide style */
.slide-wrap {
  display: flex;
  margin: 0 auto;
  max-width: 1080px;
  width: 100%;
}

.slide-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-sizing: border-box;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  height: auto;
  margin-right: 1%;
  width: 16%;
}

.slide-img img {
  border-radius: 3px 3px 0 0;
  height: auto;
  width: 100%;
}

.slide-text {
  padding: 5px 10px;
}

.slide-title {
  color: #222;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}

@media screen and (max-width: 767px) {
.slide-wrap {
    overflow-y: hidden;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
.slide-box {
    box-sizing: border-box;
    flex: 0 0 60%;
    margin: 0 0 5px 5px;
  }
}

.entry-imgbox {
  margin: 0 10px 20px;
}

.entry-imgtxt {
  font-size: 16px;
  line-height: 1.8;
}

.entry-imgbox img {
  width: 100%;
}

.entry-content p img.gray-border {
	border: 2px solid #ccc;
	box-sizing: border-box;
}

.dm-code-frame {
  margin: 20px 10px 30px;
}

.dm-code-block {
  background-color: #0d1117;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  color: #c9d1d9;
  overflow: hidden;
}

.dm-code-block__header {
  align-items: center;
  background-color: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: .08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.dm-code-block__actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dm-code-block__status {
  color: #8b949e;
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-transform: none;
}

.dm-code-block__status.is-visible {
  opacity: 1;
}

.dm-code-block__lang {
  color: #8b949e;
  font-weight: bold;
}

.dm-code-block__copy {
  background-color: #2f81f7;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  padding: 6px 10px 5px;
}

.dm-code-block__copy:hover {
  opacity: 0.85;
}

.dm-code-block__copy.is-copied {
  background-color: #238636;
}

.dm-code-block pre {
  margin: 0;
  overflow: auto;
  padding: 14px 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.dm-code-block code {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre;
}

.photoby {
  color: #999;
  font-size: 12px;
}

/* テーブル(お店情報) */
.entry-table-shop caption {
  color: #777;
  font-size: 14px;
  padding: 5px;
}

.entry-table-shop th {
  width: 80px;
}

.entry-table-shop ul {
  margin: 5px 0 0 10px;
}

/* テーブル(横スクロール) */
.entry-table-scroll {
  display: block;
  overflow: scroll;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

/* テキスト・リンクの装飾 */
.ccaution,
.ttext {
  border-radius: 5px;
  position: relative;
  padding: 15px;
  margin: 10px 10px 30px;
}

.ccaution ul,
.ccaution ol,
.ttext ul,
.ttext ol,
.llink ul,
.llink ol {
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 15px 15px 10px;
}

.ccaution li,
.ttext li,
.llink li {
  padding: 5px 0;
}

.ccaution {
  background-color: #fcf8e3;
  border: 4px solid #faebcc;
  border-radius: 5px;
  color: #8a6d3b;
  font-size: 16px;
  position: relative
}

.ccaution a {
  color: #FBC02D;
  text-decoration: underline;
}

.ccaution p:last-child {
  margin-bottom: 0;
}

.ccaution:after {
  color: rgba(0,0,0,0.05);
  content: "\f071";
  font-family: fontawesome;
  font-size: 48px;
  position: absolute;
  top: 8px;
  left: 8px;
}

.ttext {
  background: linear-gradient(130deg, #141E30, #243B55);
  box-sizing: border-box;
  color: #fff;
  font-size: 16px;
}

.ttext strong {
  color: #ff8;
}

.ttext a {
  color: #FBC02D;
  text-decoration: underline;
}

.llink {
  background-color: #fff;
  border: 3px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  margin: 10px 0 50px;
}

.llink ul {
  margin-bottom: 0;
  padding: 5px 0 0 0;
}

.llink li {
  padding: 5px 0;
}

.llink a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.4;
  padding: 15px;
  text-decoration: underline;
}

.llink a:after {
  content:"\f08e";
  font-family: fontawesome;
}

/* ブログカード */
.entry-card-box {
  margin: 20px auto;
  position: relative;
  width: 100%;
}

.entry-card-box:before {
  background-color: #0693cd;
  border-radius: 5px 5px 0 0;
  content: "関連する記事をチェック";
  color: #fff;
  display: block;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  margin: 10px 0 0;
  padding: 8px 12px 5px;
}

.entry-card-box a {
  background-color: #fff;
  border: 3px solid #0693cd;
  border-collapse: separate;
  border-spacing: 10px;
  border-radius: 0 0 5px 5px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: table;
  margin: 0 auto;
  text-decoration: none;
  width: 100%;
}

.entry-card-img {
  display: table-cell;
  width: 120px;
}

.entry-card-img img {
  width: 120px;
}

.entry-card-txt {
  display: table-cell;
  vertical-align: top;
}

.entry-card-title {
  font-weight: bold;
  text-decoration: underline;
}

.entry-card-btn {
  background-color: #FBC02D;
  border-radius: 12px;
  box-shadow: inset 0px 1px 0px #FBC02D, 0px 6px 0px 0px rgba(225, 172, 40, 1), 0px 6px 6px #999;
  color: rgba(0,0,0,0.75);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  margin: 5px 0;
  max-width: 220px;
  overflow: hidden;
  padding: 8px 12px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  text-align: center;
  width: 120px;
}

/* 対談形式 */
.entry-talk-box {
  border-collapse: separate;
  border-spacing: 10px 2px;
  display: table;
  margin: 30px -10px 20px 0;
  table-layout: fixed;
  width: 100%;
}

.entry-talk-img {
  display: table-cell;
  vertical-align: top;
  width: 90px;
}

.entry-talk-img img {
  border-radius: 50%;
  width: 84px;
}

.entry-talk-txt {
  background-color: #f3f3f3;
  border-bottom: 1px solid #ddd;
  border-radius: 6px;
  display: table-cell;
  padding: 10px 0;
  position: relative;
}

.entry-talk-txt-left:after {
  content: '';
  position: absolute;
  border-right: 12px solid #f3f3f3;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  left: -12px;
  top: 24px;
}

.entry-talk-txt-right:after {
  content: '';
  position: absolute;
  border-left: 12px solid #f3f3f3;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  right: -12px;
  top: 24px;
}

.entry-talk-txt p {
  line-height: 1.4;
  margin: 0 5px 0 10px;
}

@media screen and (max-width: 479px) {
.entry-table-shop th {
    width: 70px;
  }
.entry-card-btn {
    float: right;
    position: relative;
    right: 0;
    bottom: 0;
    width: 100px;
  }
}

/*----------------------------------------------------------------
 AdSense
-----------------------------------------------------------------*/
/* 共通 */
.ads-sponsored-link {
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* 横並びに2枚表示してる箇所はスマホでは1枚 */
.ads-single {
  margin: 10px auto 5px;
  text-align: center;
}

/* 記事内のリンクユニット */
.ads-single-link-pc {
  margin-bottom: 0;
}

.ads-single-link-sp {
  margin-bottom: -10px;
}

/*----------------------------------------------------------------
 アフィリエイト
-----------------------------------------------------------------*/
.pr-text {
  margin: 10px 20px;
}

.amlink-frame {
  background-color: #f6f6f6;
  box-sizing: border-box;
  border: 1px solid #cfd8dc;
  border-radius: 5px;
  margin: 10px 0 30px;
  max-width: 540px;
  padding: 20px;
  width: 100%;
}

.amlink-img {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  width: 250px;
}

.amlink-img img {
  max-height: 320px;
  width: auto;
}

.amlink-txt {
  display: table-cell;
  padding-left: 10px;
  vertical-align: middle;
}

.amlink-txt a {
  color: #333;
  display: block;
  padding: 10px 0;
}

.amlink-txt-review a {
  color: #ff9900;
  padding: 10px 0;
}

.amlink-btn a {
  background-color: #f0c723;
  border-radius: 20px;
  color: #fff;
  display: block;
  font-weight: bold;
  margin: 10px auto;
  max-width: 360px;
  padding: 12px 10px;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.amlink-btn img {
  display: none;
}

/* Amazonプライム会員用の広告など　レクタングル中のiframeを制御 */
.ad-iframe-300 .youtube-container {
	padding-bottom: 10px;
	padding-top: 10px;
	height: 250px;
}

/* PHGアフィリエイト */
.PHG-app-frame {
  background-color: #fafafa;
  border: 1px solid #ccc;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 10px auto 60px;
  max-width: 420px;
  padding: 20px;
  width: 100%;
}

.PHG-app-link {
  display: table;
}

.PHG-app-img,
.PHG-app-title {
  display: table-cell;
  vertical-align: middle;
}

.PHG-app-img {
  width: 140px;
}

.PHG-app-img img {
  height: auto;
  width: 128px;
}

.PHG-app-only img {
  border-radius: 22px 22px 22px 22px;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
}

.PHG-app-title a {
  color: #222;
  display: block;
  font-weight: bold;
}

.PHG-app-dl-button {
  clear: both;
  padding: 10px 0;
}

.PHG-app-dl-button a {
  background-color: #e8b844;
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(208, 165, 61, 1);
  color: rgba(0,0,0,0.75);
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin: 10px auto;
  max-width: 360px;
  overflow: hidden;
  padding: 12px 10px;
  position: relative;
  text-align: center;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
.pr-text {
    margin: 0 10px;
    padding: 10px;
  }
}

@media screen and (max-width: 479px) {
.pr-text {
    margin: -10px 10px 15px;
  }
.amlink-img {
    display: block;
    margin: 5px auto;
    max-width: 300px;
    width: 100%;
  }
.amlink-img img {
    max-height: 300px;
    width: auto;
  }
.amlink-txt {
    display: block;
  }
.amlink-txt-review a {
    text-align: center;
  }
.PHG-app-frame {
    padding: 10px 10px 0;
  }
.PHG-app-img {
    width: 135px;
  }
.PHG-app-img img {
    height: auto;
    width: 128px;
  }
}

/*----------------------------------------------------------------
 ボタン
-----------------------------------------------------------------*/
.main-btn a,
.pagination-btn a,
.amlink-btn a,
.PHG-app-dl-button a {
  background-color: #FBC02D;
  border-radius: 12px;
  box-shadow: inset 0px 1px 0px #FBC02D, 0px 6px 0px 0px rgba(225, 172, 40, 1), 0px 6px 6px #999;
  color: rgba(0,0,0,0.75);
  display: block;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  max-width: 270px;
  margin: 15px auto;
  overflow: hidden;
  padding: 15px 0;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.main-btn a:before,
.pagination-btn a:before,
.amlink-btn a:before,
.PHG-app-dl-button a:before {
  border-top: 2px solid rgba(0,0,0,0.75);
  border-right: 2px solid rgba(0,0,0,0.75);
  content: "";
  display: block;
  height: 8px;
  margin-top: -5px;
  position: absolute;
    right: 15px;
    top: 50%;
  transform: rotate(45deg);
  width: 8px;
}

/*
.main-btn a:hover,
.pagination-btn a:hover,
.amlink-btn a:hover,
.PHG-app-dl-button a:hover {
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	opacity: 1;
	box-shadow: none;
	transform: translate3d(0, 4px, 0);
  -webkit-transform: translate3d(0, 4px, 0);
}

.entry-card-btn:after,
.amlink-btn a:after,
.PHG-app-dl-button a:after {
  content: '';
  height: 100%;
  width: 30px;
  position: absolute;
  top: -180px;
  left: -50px;
  background-color: #fff;
  opacity: 0;
  -webkit-transform: rotate(45deg);
  -webkit-animation: reflection 3s ease-in-out infinite;
}
/* ===== 本文内tableのスマホ横スクロール対応 ===== */

.dm-table-scroll {
  margin: 0 0 1.5em;
}

.dm-table-scroll:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary, #3a5a80);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .dm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* 端がスクロールで隠れていることを示すヒントの影 */
    background:
      linear-gradient(to right, var(--wp--preset--color--base, #f4f8fa) 30%, rgba(244, 248, 250, 0)),
      linear-gradient(to left, var(--wp--preset--color--base, #f4f8fa) 30%, rgba(244, 248, 250, 0)) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0)),
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }

  /* セルの過剰な圧縮(縦書き状態)を防ぎ、テーブル自体をはみ出させてスクロールさせる */
  .dm-table-scroll > table {
    width: auto;
    min-width: 100%;
  }

  .dm-table-scroll th,
  .dm-table-scroll td {
    min-width: 4.5em;
    max-width: 22em;
    overflow-wrap: break-word;
  }

  /* 旧記事で手動指定していた横スクロールtableは二重にしない */
  .dm-table-scroll > .entry-table-scroll {
    display: table;
    overflow: visible;
    white-space: normal;
  }
}

/* ===== strongタグの赤文字(旧テーマ互換) ===== */
/* 記事内で「赤文字」という言い回しをしている記事があるため、本文内は旧テーマ同様の赤太字にする */

.entry__content strong,
.entry__content b {
  color: #c00;
  font-weight: 700;
}

/* 暗い背景のボックス(ttext)内では読めるように旧テーマ同様の明色に */
.entry__content .ttext strong,
.entry__content .ttext b {
  color: #ff8;
}

/* ===== 記事末の付随要素(旧テーマ移植) ===== */

.entry-caution-price {
  color: var(--wp--preset--color--text-light);
  font-size: var(--wp--preset--font-size--x-small);
}

.entry-footer-banner-frame {
  margin: 20px auto 40px;
  text-align: center;
}

/* ===== 著者紹介ボックス(記事末) ===== */

.author-box {
  margin-top: var(--wp--preset--spacing--40);
  padding: 1.25em 1.5em;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
}

.author-box__label {
  margin: 0 0 0.75em;
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--wp--preset--color--text-light);
}

.author-box__body {
  display: flex;
  gap: 1.25em;
  align-items: flex-start;
}

.author-box__avatar img {
  border-radius: 50%;
}

.author-box__info {
  min-width: 0;
}

.author-box__name {
  margin: 0 0 0.4em;
  font-weight: 700;
}

.author-box__description {
  margin: 0 0 0.75em;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-light);
  line-height: 1.7;
}

.author-box__follow {
  margin: 0;
}

.author-box__follow a {
  display: inline-block;
  padding: 0.4em 1.2em;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: 999px;
  color: var(--wp--preset--color--primary-dark);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
}

.author-box__follow a:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
  text-decoration: none;
}

/* ===== お問い合わせフォーム(Contact Form 7) ===== */

.contact-form-frame {
  max-width: 640px;
}

.contact-form {
  margin: 0 0 1.75em;
}

.contact-form-label {
  margin-bottom: 0.5em;
}

.contact-form-label p,
.contact-form-input p {
  margin: 0;
}

.contact-form-label label {
  font-weight: 700;
}

/* 必須・任意バッジ */
.contact-form-status-required,
.contact-form-status-optional {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  line-height: 1.6;
  vertical-align: middle;
  color: #fff;
}

.contact-form-status-required {
  background: var(--wp--preset--color--accent);
}

.contact-form-status-optional {
  background: var(--wp--preset--color--text-light);
}

/* 入力欄 */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="date"],
.contact-form textarea {
  width: 100%;
  padding: 0.75em 1em;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--medium);
  color: var(--wp--preset--color--text);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 3px rgba(6, 147, 205, 0.15);
}

.contact-form textarea {
  min-height: 14em;
  resize: vertical;
}

/* 送信前の確認チェックボックス */
.contact-form .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin: 0;
}

.contact-form .wpcf7-acceptance input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.35em;
  accent-color: var(--wp--preset--color--primary);
}

/* 注釈 */
.contact-form-caution {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-light);
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
  margin: 2em 0;
  padding: 1em 1.25em;
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: 8px;
  background: var(--wp--preset--color--white);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: var(--wp--preset--color--accent);
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 0.4em;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--accent);
}

.wpcf7 img.ajax-loader {
  width: 16px;
}
