@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.1.0
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/


/* compare */
.wrapper-comptext p{
  margin: 24px auto;
}
	.noimage div.yyi-rinker-box div.yyi-rinker-image{
    display: none;
  }
  .noimage div.yyi-rinker-box div.yyi-rinker-info div.yyi-rinker-title{
    display: none;    
  }
/* shortcode */
.table_shortcode{
  margin: 0;
  /* overflow-x:scroll; */
  max-width: 800px;
  overflow: auto;
  /* white-space: nowrap; */
}
.table_shortcode table{
  margin: 0;
  table-layout: fixed;
  min-width: 100%;
}
.table_shortcode tbody th {
  width: 240px;
  min-width: 240px;
  white-space: normal;
  word-wrap: break-word;
}
.table_shortcode td {
  width: 210px;
  min-width: 210px;
  text-align: center;
	white-space: normal;/* 追加 */
  word-wrap: break-word; /* 追加 */
}
.table_shortcode td img{
  height: 100%;
}

.sticky {
  position: sticky;
  left: 0;
}



/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1240px以下*/
/* @media screen and (max-width: 1240px){ */
  /*必要ならばここにコードを書く*/
/* } */

/*1023px以下*/
/* @media screen and (max-width: 1023px){ */
  /*必要ならばここにコードを書く*/
/* } */

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  .table_compare thead th {
    height: 360px;
  }
	.table_shortcode tbody th {
    width: 120px;
  }
	.table_shortcode td {
  	width: 120px;
  	min-width: 120px;
	}
}

/*480px以下*/
/* @media screen and (max-width: 480px){ */
  /*必要ならばここにコードを書く*/
/* } */

/* 比較表デザイン */
.table_compare {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e8e8e8;
  background: #fff;
  font-size: 14px;
}
.table_compare thead {
  font-size: 14px !important;
  border-bottom: 2px solid #e0e0e0;
}
.table_compare thead th {
  padding: 16px 12px;
  background: #fafafa;
  font-weight: normal;
}
.table_compare td {
  padding: 10px 16px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: top;
}
/* セクションラベル行 */
.table_compare td[colspan="2"] {
  background: #f5f7fa;
  color: #444;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 10px 16px 8px;
  border-top: 2px solid #e0e0e0;
}
/* ツールチップアイコン */
.table_compare .fa-info-circle {
  font-size: 12px;
  color: #bbb;
  margin-left: 5px;
  vertical-align: middle;
}

/* 最安値ハイライト */
.price-cheapest .scrape-price-text,
.price-cheapest .scrape-price-text a {
  font-weight: 700;
  color: #dc2626;
}
.scrape-price-date {
  font-size: 0.75em;
  color: #666;
}

/* 差分ハイライト */
.table_compare tr.diff-highlight > td {
  font-weight: 700;
}

/* カード型UI */
.table_compare thead th {
  position: relative;
  vertical-align: top;
}
.product-card {
  display: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  overflow: visible;
  text-align: center;
  font-size: 14px;
  padding-bottom: 20px;
}
.product-card-thumb {
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #f5f5f5;
}
.product-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.product-card-body {
  padding: 14px 16px 8px;
}
.product-card-maker {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.product-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}
.product-card-change {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  padding: 9px 0;
  background: #f0f4ff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #3d6ae8;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}
.product-card-change:hover {
  background: #dce6ff;
}

/* カスタムドロップダウンパネル */
.product-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  text-align: left;
}
.product-panel-group-label {
  padding: 8px 14px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
}
.product-panel-item {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  transition: background 0.1s;
}
.product-panel-item:hover {
  background: #f0f7ff;
}
.product-panel-item.is-selected {
  background: #e8f0fe;
  font-weight: 600;
  color: #1a73e8;
}


/* 表内rinker */
@media(min-width: 768px){
  .aff_shortcode .yyi-rinker-contents .yyi-rinker-box{
    flex-direction: column;
    /* padding: 26px 14px 0; */
    padding: 8px;
  }
  .aff_shortcode .yyi-rinker-box .yyi-rinker-info{
    text-align: center;
    padding-left: 0;
  }
  .aff_shortcode .yyi-rinker-box .yyi-rinker-info .yyi-rinker-detail .credit-box{
    display:none;
  }

  .aff_shortcode ul.yyi-rinker-links {
    flex-direction: column;
    align-items: center;
  }
  .aff_shortcode ul.yyi-rinker-links li{
    width: 100%;
    margin-right: 8px;
  }

}


/* ===== Price Tracker ===== */
.pt-wrap {
  font-size: 14px;
  color: #2d3a6b;
  background: #f0f2fa;
  border-radius: 16px;
  padding: 20px 20px 24px;
  min-height: 80vh;
}

/* モーダルオーバーレイ（backdrop-blur） */
.pt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) {
  .pt-modal-overlay { align-items: center; }
}

/* ボトムシート（モバイル：下から / PC：中央） */
.pt-modal-sheet {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 32px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
  position: relative;
  text-align: center;
  animation: ptSlideUp 0.25s ease;
}
@media (min-width: 640px) {
  .pt-modal-sheet {
    border-radius: 20px;
    padding: 32px 28px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    animation: none;
  }
}
@keyframes ptSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.pt-sheet-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.pt-sheet-close:hover { color: #2d3a6b; }
.pt-sheet-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #2d3a6b;
}
.pt-sheet-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 18px;
}
.pt-sheet-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e6f3;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pt-sheet-input:focus {
  border-color: #6c83e0;
  box-shadow: 0 0 0 3px rgba(108,131,224,0.15);
}
.pt-sheet-submit {
  display: block;
  width: 100%;
  padding: 11px 0;
  background: #6c83e0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pt-sheet-submit:hover { background: #5a6fce; }
.pt-sheet-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.pt-sheet-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
  min-height: 1em;
}
.pt-sheet-header { margin-bottom: 20px; }
.pt-sheet-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; margin-bottom: 10px; }
.pt-sheet-member {
  margin-top: 16px;
  border: 1px solid #e2e6f3;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}
.pt-sheet-member-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #9aa0b8;
}
.pt-sheet-member-toggle:hover { background: #f8f9fc; }
.pt-sheet-chevron { font-size: 10px; }
.pt-sheet-member-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid #e2e6f3;
}
.pt-sheet-member-body.open { display: block; }
.pt-sheet-member-lead { font-size: 12px; color: #5a6480; margin: 10px 0 8px; line-height: 1.5; }
.pt-sheet-member-lead a { color: #6c83e0; font-weight: 600; text-decoration: none; }
.pt-sheet-benefits { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.pt-sheet-benefits li { font-size: 12px; color: #5a6480; display: flex; gap: 6px; align-items: flex-start; }
.pt-sheet-member-hint {
  background: #f0f2fa;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #5a6480;
  line-height: 1.6;
  margin-bottom: 10px;
}
.pt-sheet-member-note { font-size: 10px; color: #9aa0b8; }
.pt-sheet-yt-btn {
  display: block;
  text-align: center;
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px;
  transition: background 0.15s;
}
.pt-sheet-yt-btn:hover { background: #b91c1c; color: #fff; }

/* タブ */
.pt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pt-tab {
  padding: 7px 16px;
  border: 1px solid #e2e6f3;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #5a6480;
  font-weight: 500;
}
.pt-tab:hover { background: #eef1fb; border-color: #6c83e0; color: #6c83e0; }
.pt-tab.active {
  background: #6c83e0;
  border-color: #6c83e0;
  color: #fff;
  font-weight: 600;
}

/* コントロール */
.pt-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.pt-product-select {
  flex: 1 1 220px;
  padding: 9px 12px;
  border: 1px solid #e2e6f3;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  min-width: 0;
  color: #2d3a6b;
  outline: none;
}
.pt-product-select:focus { border-color: #6c83e0; box-shadow: 0 0 0 3px rgba(108,131,224,0.15); }
.pt-duration-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.pt-duration-label {
  font-size: 12px;
  color: #9ca3af;
}
.pt-dur {
  padding: 7px 12px;
  border: 1px solid #e2e6f3;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #5a6480;
}
.pt-dur:hover { background: #eef1fb; border-color: #6c83e0; color: #6c83e0; }
.pt-dur.active {
  background: #6c83e0;
  border-color: #6c83e0;
  color: #fff;
  font-weight: 600;
}

/* チャートカード+サイドバー */
.pt-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pt-chart-area {
  flex: 6;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e6f3;
}
.pt-chart-area canvas {
  height: 300px !important;
}
.pt-chart-hint {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
}
.pt-loading {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 14px;
}

/* サイドバーカード */
.pt-sidebar {
  flex: 4;
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  border: 1px solid #e2e6f3;
}
.pt-sidebar-hint { font-size: 13px; color: #9ca3af; }
.pt-sidebar-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}
.pt-sidebar-product {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-word;
  color: #2d3a6b;
}
.pt-sidebar-date-label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.pt-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pt-price-table tr { border-bottom: 1px solid #f0f2fa; }
.pt-price-table td { padding: 6px 4px; vertical-align: middle; }
.pt-src-label {
  padding-left: 6px !important;
  font-size: 12px;
  color: #5a6480;
  white-space: nowrap;
}
.pt-src-price {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  padding-right: 4px !important;
  color: #2d3a6b;
}
.pt-cheapest .pt-src-price { color: #dc2626; }
.pt-row-link { cursor: pointer; }
.pt-row-link:hover td { background: #f0f2fa; }
.pt-tag {
  display: inline-block;
  font-size: 10px;
  color: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.4;
}

/* フッター・注記 */
.pt-note {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 14px;
  line-height: 1.6;
}
.pt-footer {
  margin-top: 10px;
  text-align: right;
}
.pt-feedback-btn {
  padding: 7px 16px;
  border: 1px solid #e2e6f3;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  color: #5a6480;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pt-feedback-btn:hover {
  border-color: #6c83e0;
  color: #6c83e0;
  box-shadow: 0 2px 8px rgba(108,131,224,0.18);
}
.pt-feedback-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e6f3;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 12px;
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pt-feedback-textarea:focus {
  border-color: #6c83e0;
  box-shadow: 0 0 0 3px rgba(108,131,224,0.15);
}

@media (max-width: 640px) {
  .pt-wrap { padding: 12px 10px 18px; border-radius: 12px; min-height: unset; }

  /* タブ横スクロール・折り返しなし */
  .pt-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 12px;
  }
  .pt-tabs::-webkit-scrollbar { display: none; }
  .pt-tab { flex-shrink: 0; padding: 5px 12px; font-size: 12px; }

  /* コントロール */
  .pt-controls { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 12px; }
  /* flex-basis:220px が縦方向の高さになるのを防ぐ + iOSズーム防止で16px */
  .pt-product-select { flex: none; width: 100%; height: 38px; padding: 0 10px; font-size: 16px; box-sizing: border-box; }
  .pt-duration-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pt-duration-row::-webkit-scrollbar { display: none; }
  .pt-dur { flex-shrink: 0; padding: 5px 10px; font-size: 12px; }
  .pt-duration-label { flex-shrink: 0; font-size: 11px; }

  /* チャート + サイドバー */
  .pt-main { flex-direction: column; gap: 8px; }
  .pt-chart-area {
    width: 100%; flex: none; box-sizing: border-box;
    padding: 10px 8px 8px;
  }
  .pt-chart-area canvas { height: 200px !important; }

  /* 価格パネル：左に画像固定、右に製品名→価格テーブル */
  .pt-sidebar {
    width: 100%; flex: none; box-sizing: border-box;
    padding: 10px;
    display: grid;
    grid-template-columns: 84px 1fr;
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
  }
  .pt-sidebar > a { grid-column: 1; grid-row: 1 / span 3; }
  .pt-sidebar-img { width: 80px; margin-bottom: 0; }
  .pt-sidebar-product { grid-column: 2; grid-row: 1; font-size: 12px; margin-bottom: 2px; align-self: end; }
  .pt-sidebar-date-label { grid-column: 2; grid-row: 2; margin-bottom: 4px; }
  .pt-price-table { grid-column: 2; grid-row: 3; }
  .pt-price-table td { padding: 4px 3px; }
  .pt-src-label { font-size: 11px; }
  .pt-src-price { font-size: 13px; }
}
