/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ---------------------------------------------
　Header Related : Fixed background color issue
---------------------------------------------- */
/* ▼ PC (1025px and above): White background + white text for the cart icon */
@media (min-width: 1025px) {
  .whb-general-header {
    background-color: #ffffff !important;
  }

  .wd-tools-element {
    --wd-header-el-color: #333 !important;
    --wd-header-el-color-hover: rgba(51, 51, 51, 0.6) !important;
  }

  .wd-header-cart .wd-tools-text,
  .wd-header-cart .wd-cart-number span,
  .wd-header-cart .subtotal-divider,
  .wd-header-cart .wd-cart-subtotal {
    color: #ffffff !important;
  }
}

/* ▼ Tablet/Smartphone (up to 1024px): Black background + white text + number of results in orange */
@media (max-width: 1024px) {
  .whb-general-header {
    background-color: #000000 !important;
  }

  .wd-tools-element {
    --wd-header-el-color: #ffffff !important;
    --wd-header-el-color-hover: rgba(255, 255, 255, 0.6) !important;
  }

  .wd-header-cart .wd-tools-text,
  .wd-header-cart .subtotal-divider,
  .wd-header-cart .wd-cart-subtotal {
    color: #ffffff !important;
  }

  .wd-header-cart .wd-cart-number,
  .wd-header-cart .wd-cart-number span {
    color: #f97316 !important; /* orange */
  }
}

/* ---------------------------------------------
  Disable scroll bar for brand filter list
---------------------------------------------- */
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
    max-height: none !important;
}

/* Disable click behavior and pointer cursor for custom menu items with href="#" */
.menu-item-type-custom > a[href="#"] {
  cursor: default;
  pointer-events: none;
}

/* Category title links above the image on the Front page */
.e-con-inner h2.elementor-heading-title > a {
  color: #fff;
  text-shadow:
    -2px -2px 0 rgba(154, 55, 73, 0.8),
     0px -2px 0 rgba(154, 55, 73, 0.8),
     2px -2px 0 rgba(154, 55, 73, 0.8),
    -2px  0px 0 rgba(154, 55, 73, 0.8),
     2px  0px 0 rgba(154, 55, 73, 0.8),
    -2px  2px 0 rgba(154, 55, 73, 0.8),
     0px  2px 0 rgba(154, 55, 73, 0.8),
     2px  2px 0 rgba(154, 55, 73, 0.8);
}

/* Improve visibility of breadcrumbs on any background (white, dark, or photo) */
.wd-breadcrumbs {
  color: #fff; /* Keep text white for contrast */
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.4); /* Multi-layered shadow for stronger contrast */
  font-weight: 500;
}

.wd-breadcrumbs a {
  color: #fff;
  text-decoration: underline;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.4);
}

.wd-breadcrumbs .wd-last {
  font-weight: bold;
  color: #fff !important;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(0, 0, 0, 0.4); /* Even more prominent shadow for current page */
}

/* ---------------------------------------------
  Convert the "もっと見る >>" link on the front page into a refined glass-style button
---------------------------------------------- */
.e-con-inner .elementor-widget-text-editor a {
  display: inline-block;
  padding: 0.5em 1.2em;
  background-color: rgba(255, 255, 255, 0.45); /* 透過度を少し下げて視認性アップ */
  color: #222; /* 濃グレー文字：白背景でも沈まない */
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2); /* 輪郭補助 */
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;

  /* Slightly emphasized white shadows for improved visibility */
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 0 2px rgba(255, 255, 255, 0.4);

  /* Glass-like blur effect (supported browsers only) */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  /* Three-dimensional feel and operability */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  /* Smooth animation */
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

/* ---------------------------------------------
  Hover state: increase brightness and depth
---------------------------------------------- */
.e-con-inner .elementor-widget-text-editor a:hover {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.3);
  color: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Improve visibility of the headline below the menu in the header */
.wd-page-title h1.entry-title {
  font-weight: 700;
  text-shadow:
    -1px -1px 1px rgba(255, 255, 255, 0.95),
     1px -1px 1px rgba(255, 255, 255, 0.95),
    -1px  1px 1px rgba(255, 255, 255, 0.95),
     1px  1px 1px rgba(255, 255, 255, 0.95),
     0px  0px 3px rgba(255, 255, 255, 0.3),
     0px  0px 8px rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------
  TOP page slider section adjustment
---------------------------------------------- */
@media (min-width: 768px) {
  [class*="elementor-"] [class*="elementor-element-"] [class*="elementor-repeater-item-"] .swiper-slide-bg {
    background-color: transparent !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    width: 100% !important;
    padding-top: 41.67% !important; /* 1920x800 = 800/1920*100 */

    display: block !important;
    position: relative !important;
  }

  [class*="elementor-"] [class*="elementor-element-"] .swiper-slide {
    height: auto !important;
  }

  [class*="elementor-element"] .swiper,
  [class*="elementor-element"] .swiper-container {
    height: auto !important;
  }
}

/* Margin below slider section (tablet only) */
@media (min-width: 768px) {
  [class*="elementor-"] [class*="elementor-element-"] .swiper {
    margin-bottom: 30px !important;
  }
}

/* ---------------------------------------------
TOPページ内カテゴリー別メニュー関連
---------------------------------------------- */
.cat-menu-info {
  width: 100%;
  max-width: 400px;
  margin: 1em auto 0;
  padding: 0.6em 1em;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
  word-break: break-word;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  min-height: 3.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.cat-menu-info:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ---------------------------------------------
TOPページ：更新情報
---------------------------------------------- */

@media (min-width: 769px) {
  .home-module {
    max-width: 1100px;
    margin:50px auto 0;
  }
  .home-module .home-tit1 {
    font-size: 46px;
    color: #d6247d;
    text-align: center;
    position: relative;
    font-weight: bold;
  }
  .home-module .home-tit1 span {
    position: relative;
    background: #F3F2ED;
    padding: 0 20px;
    z-index: 9;
  }
  .home-module .home-tit1::before {
    content: '';
    width: 100%;
    height: 1px;
    border-radius: 5px;
    background-color: #ccc;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
  .home-module .home-tit2 {
    font-size: 100%;
    margin-bottom: 15px;
    text-align: center;
  }
  .home-module tr td{
    border-left: none;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
  }
  .home-module tr td:nth-child(1){
    width: 260px;
	color:#fff;
	font-size:20px;
	background: linear-gradient(to top right, #ABB3FF, #FF89D1);
	letter-spacing: 5px;
  }
  .home-module tr td:nth-child(2){
	  padding: 30px 90px;
	  background-color: #FFF;
  }
}

@media (max-width: 768px) {
  .home-module .home-tit1 {
    font-size: 20px;
    color: #E33189;
    text-transform: var(--wd-title-transform);
    font-weight: bold;
    font-style: var(--wd-title-font-style);
    font-family: var(--wd-title-font);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
  }

  .home-module .home-tit1::after,
  .home-module .home-tit1::before {
    content: '';
    width: 15%;
    height: 1px;
    border-radius: 5px;
    background-color: #CDCDCD;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .home-module .home-tit1::after {
    left: 0;
  }

  .home-module .home-tit1::before {
    right: 0;
  }

  .home-module .home-tit2 {
    font-size: 100%;
    margin-bottom: 15px;
    text-align: center;
  }

  .home-module .home-txt {
    font-size: 16px;
  }

  .home-module .home-txt-style1 {
    display: block;
    color: #E33189;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .home-module ul {
    line-height: 1.5;
    padding-left: 20px;
  }

  .home-module ul li {
    margin-bottom: 0;
  }
  .home-module tr td {
    padding: 5px;
    border: 1px solid #808080;
    border-left: none;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    color: #d6247d;
  }
  .home-module tr td:nth-child(1){
    width: 30%;
   color:#fff;
   font-size:20px;
   background: linear-gradient(to top right, #ABB3FF, #FF89D1);
   letter-spacing: 5px;
  }
}

/* ---------------------------------------------
フッター関連
---------------------------------------------- */
@media (min-width: 769px) {
	.mobile-show{
		display: none !important;
	}
  .irodoll-footer {
  	background-color: #000000;
  	color: #FFFFFF;
  	padding: 20px 0 0;
  }

  .irodoll-footer a {
  	text-decoration: none;
  	color: #FFFFFF;
	color: #FFFFFF;
	position: static;
  }

  .irodoll-footer .txt1 {
  	color: #FFFFFF;
  	font-size: 13px;
  	margin-bottom: 15px;
  }

  .irodoll-footer .txt2 {
  	color: #ED145B;
  	font-size: 13px;
  	font-weight: bold;
  	margin-bottom: 15px;
  }

  .irodoll-footer .txt3 {
  	display: block;
  	font-size: 13px;
  	color: #FFFFFF;
  	margin-bottom: 15px;
  }

  .irodoll-footer .footer-module01 {
  	padding: 80px 0;
  	max-width: 1100px;
  	margin: auto;
  }

  .irodoll-footer .footer-module01 .item-list {
  	display: flex;
  	flex-wrap: wrap;
  	justify-content: space-between;
  	align-items: flex-end;
  }

  .irodoll-footer .footer-module01 .item-box {
  	width: 14%;
  	flex-shrink: 0;
  	text-align: center;
  }

  .irodoll-footer .footer-module01 .txt1 {
  	font-size: 16px;
  	font-weight: bold;
  }

  .irodoll-footer .footer-module01 .txt2 {
  	font-size: 13px;
  	font-weight: bold;
  	color: #FFFFFF;
  }

  .irodoll-footer .footer-module01 img {
  	width: 50%;
  }

  /* pc下部メールボックス */
  .irodoll-footer .pc-footer-module01 {
  	background: url(https://irodoll.com/wp-content/uploads/2025/07/home-pc-email-img01.png) no-repeat;
  	background-size: cover;
  	height: 543px;
  	position: relative;
  }

  .irodoll-footer .pc-footer-module01 .email-box {
  	width: 30%;
  	position: absolute;
  	top: 50%;
  	left: 50%;
  	transform: translate(-50%, -50%);
  	text-align: center;
  }

  .irodoll-footer .pc-footer-module01 .email-txt1 {
  	color: #ed145b;
  	font-size: 36px;
  	font-weight: bold;
  	margin-bottom: 10px;
  }

  .irodoll-footer .pc-footer-module01 .email-txt2 {
  	font-size: 16px;
  	color: #FFFFFF;
  	margin-bottom: 60px;
  }

  .pc-footer-module01 .elementor-form-fields-wrapper label {
  	display: none;
  }

  .pc-footer-module01 .elementor-form-fields-wrapper {
  	display: flex;
  	width: 100%;
  }

  .pc-footer-module01 .elementor-field-type-email {
  	width: 70%;
  	height: 100%;
  	flex-shrink: 0;
  }

  .pc-footer-module01 .elementor-field-type-email input {
  	width: calc(100%);
  	outline: none;
  	border: none;
  	background-color: #FFFFFF;
  	font-size: 12px;
  	padding: 15px 10px;
  }

  .pc-footer-module01 .elementor-field-type-submit {
  	flex: 1;
  }

  .pc-footer-module01 .elementor-button {
  	background-color: #000000;
  	color: #FFFFFF;
  	width: 100%;
  	height: 100%;
  	border: none;
  }
  .pc-footer-module01 .fa-envelope-open{
	  display:none;
  }
  .pc-footer-module01 .elementor-screen-only {
	position: static;
	width: auto;
	height: auto;
  	font-size: 12px;
  	font-weight: bold;
	color:#fff;
  }

  /*  */
  .pc-footer-module02 {
  	max-width: 1100px;
  	margin: auto;
  	display: flex;
  	justify-content: space-between;
  	align-items: center;
  	padding: 80px 0;
  }

  .pc-footer-module02 .footer-cont-left {
  	width: 27%;
  	flex-shrink: 0;
  }

  .pc-footer-module02 .left-right-separa {
  	display: flex;
  	justify-content: space-between;
  	margin-top: 15px;
  }

  .pc-footer-module02 .footer-cont-left>img {
  	width: 60%;
  	margin-bottom: 15px;
  }

  .pc-footer-module02 .media-list {
  	display: flex;
  	align-items: center;
  	margin-top: 20px;
  }

  .pc-footer-module02 .media-list a {
  	width: 11%;
  	flex-shrink: 0;
  	margin-right: 10%;
  }

  .pc-footer-module02 .media-list img {
  	width: 100%;
  	vertical-align: top;
  }

  .pc-footer-module02 .footer-cont-right {
  	width: 56%;
  	flex-shrink: 0;
  	display: flex;
  	justify-content: space-between;
  }
}
@media (max-width: 768px) {
	.pc-show{
		display: none !important;
	}
  .irodoll-footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 5vw 0 0;
  }
  .irodoll-footer a {
    text-decoration: none;
    color: #FFFFFF;
	position: static;
  }
  .irodoll-footer .txt2 {
    color: #ED145B;
    font-size: 4vw;
    font-weight: bold;
    margin-bottom: 4vw;
  }
  .irodoll-footer .txt3 {
    display: block;
    font-size: 3vw;
    color: #FFFFFF;
    margin-bottom: 4vw;
  }
  /* Footer Module 1 */
  .irodoll-footer .footer-module01 {
    padding: 5vw 2vw;
  }
  .irodoll-footer .footer-module01 .item-list {
    padding: 2vw;
    border-top: 1px solid #ED145B;
    border-bottom: 1px solid #ED145B;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }
  .irodoll-footer .footer-module01 .item-box {
    width: 47%;
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 2vw;
  }
  .irodoll-footer .footer-module01 .txt1 {
    font-size: 3.5vw;
    font-weight: bold;
  }
  .irodoll-footer .footer-module01 .txt2 {
    font-size: 2.8vw;
    font-weight: bold;
  }
  .irodoll-footer .footer-module01 img {
    width: 50%;
  }
  /* Footer Module 2 */
  .irodoll-footer .footer-module02 {
    padding: 5vw 2vw;
  }
  .irodoll-footer .footer-module02>img {
    width: 50%;
  }
  .irodoll-footer .footer-module02 .txt1 {
    font-size: 3.2vw;
    color: #FFFFFF;
    line-height: 2;
    margin: 5vw 0;
  }
  .irodoll-footer .footer-module02 .media-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
  }
  .irodoll-footer .footer-module02 .media-list a {
    width: 13%;
  }
  .irodoll-footer .footer-module02 .media-list a:nth-child(2) {
    width: 11%;
  }
  .irodoll-footer .footer-module02 .media-box img {
    width: 100%;
  }
  /* Footer Module 3 */
  .footer-module03 {
    position: relative;
  }
  .footer-module03>img {
    width: 100%;
  }
  .footer-module03 .email-box {
    width: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  .footer-module03 .email-box .email-txt1 {
    font-size: 4vw;
    font-weight: bold;
  }
  .footer-module03 .email-box .email-txt2 {
    font-size: 3vw;
    font-weight: bold;
    margin: 2vw 0 5vw;
  }
  .footer-module03 .elementor-field-label {
    display: none;
  }
  .footer-module03 .elementor-form-fields-wrapper {
    display: flex;
    width: 100%;
  }
  .footer-module03 .elementor-field-type-email {
    width: 70%;
    height: 100%;
    flex-shrink: 0;
  }
  .footer-module03 .elementor-field-type-email input {
    width: calc(100% - 4vw);
    outline: none;
    border: none;
    background-color: #FFFFFF;
    font-size: 3vw;
    padding: 2vw;
  }
  .footer-module03 .elementor-field-type-submit {
    flex: 1;
  }
  .footer-module03 .elementor-button {
    background-color: #000000;
    color: #FFFFFF;
    width: 100%;
    height: 100%;
    border: none;
  }
  .footer-module03 .elementor-screen-only {
    font-size: 2.5vw;
    font-weight: bold;
  }
  /* Footer Module 4 */
  .footer-module04 {
    padding: 5vw;
  }
  .footer-module04 .foot-box {
    padding: 6vw 0;
    border-bottom: 1px solid #ED145B;
  }
  .footer-module04 .foot-box .txt3:last-child {
    margin-bottom: 0;
  }
  .footer-module04 .foot-box:last-child {
    border-bottom: none;
  }
}

/* ---------------------------------------------
固定ページ関連
---------------------------------------------- */
/* テーブル「会社概要」など */
.website-details {
  padding: 2em 0 1em;
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: auto;
}
.website-details table {
  width: 100%;
  border: 1px solid #DAE0E0;
  border-collapse: collapse;
  background-color: #fff;
}
/* セル共通スタイル（td, th両方に適用） */
.website-details td,
.website-details th {
  padding: 24px 12px;
  border-bottom: 1px solid #DAE0E0;
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
}
/* 見出しセル（1列目のth）に背景色と強調 */
.website-details tr th:nth-child(1) {
  background-color: #F7F7F7;
  font-weight: bold;
  width: 30%;
  white-space: nowrap;
}
/* 内容セル（2列目のtd） */
.website-details tr td:nth-child(2) {
  width: 70%;
}
/* スマホ対応 */
@media screen and (max-width: 768px) {
  .website-details td,
  .website-details th {
    font-size: 0.9rem;
    padding: 0.8em 0.6em;
  }
}

/* FrontPage 「IRODOLLの理念」デザイン＆開閉トグル */
.collapse-box {
  font-size:16px!important;
}

.collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-top: 10px;
}
.collapse-content.show {
  max-height: 3000px; /* 内容に応じて調整 */
}
.collapse-btn {
  background-color: #9A3749;
  position: relative;
  border: none;
  font-size: 15px;
  line-height: 1;
  padding: 12px 34px 12px 24px;
  text-align: center;
  color: #FFFFFF;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}
.collapse-btn::before {
  content: "";
  display: block;
  position: absolute;
  top: 19px;
  right: 11px;
  width: 10px;
  height: 2px;
  background-color: rgb(250, 250, 250);
  transition: all 0.3s ease;
}
.collapse-btn::after {
  content: "";
  display: block;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 2px;
  height: 10px;
  background-color: rgb(250, 250, 250);
  transition: all 0.3s ease;
}
.collapse-btn-active::after {
  transform: rotate(90deg);
}
.collapse-btn-hide {
  display: none;
}

/* PC・タブレットでボタンの表示・非表示を切り替え */
@media screen and (min-width: 1025px) {
  .collapse-content {
    max-height: none !important;
    overflow: visible !important;
  }
  #btn-open,
  #btn-close {
    display: none !important;
  }
}

/* キャッチコピー：上品に目立たせる */
.catch-message {
  font-size: 1.6rem;   /* PCベースで程よいサイズ感 */
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #333;
}

/* タブレット（768～1024px） */
@media screen and (max-width: 1024px) and (min-width: 768px) {
  .catch-message {
    font-size: 1.5rem;
  }
}

/* スマホ（～767px） */
@media screen and (max-width: 767px) {
  .catch-message {
    font-size: 1.3rem;
    color: #DDD;
    padding: 0 10px;
  }
}

/* ---------------------------------------------
汎用コンテンツブロック「よくあるご質問」など固定ページで使用
---------------------------------------------- */
.content-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  word-break: break-word;
}

/* 段落の余白 */
.content-block p {
  margin-bottom: 1.2em;
}

/* リスト（番号付き） */
.content-block ol {
  list-style-position: inside;
  margin: 2em 0 1em 0;
  padding-left: 0;
}

.content-block ol li {
  font-weight: bold;
  margin-bottom: 0.5em;
}

/* リストの  は通常色・通常太さ */
.content-block ol li p {
  color: #333;
  font-weight: normal;
  margin: 0.5em 0 0 0;
}

/* h3のサイズ調整：やや小さめにして階層を明確化 */
.content-block h3 {
  font-size: 1.2rem;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  font-weight: bold;
}

/* 汎用的な番号付きセクションブロック */
.numbered-block {
  counter-reset: item;
}

/* セクションごとの余白調整（番号付きの1項目） */
.numbered-block .numbered-item {
  margin-bottom: 2em;
}

/* h3見出しの前に連番を付与（1. 2. 3. ...） */
.numbered-block .numbered-item h3::before {
  content: counter(item) ". ";
  counter-increment: item;
  font-weight: bold;
}

/* plain-blockでは自動番号は完全に無効化 */
.plain-block h3::before {
  content: none !important;
  counter-increment: none !important;
}

/* リンクのスタイル（必要に応じて調整） */
.content-block a {
  color: #0066cc;
  text-decoration: underline;
}

/* 横並びスタイル用（見出しの左に番号）「ご利用規約」「プライバシーポリシー」など */
.content-block ol.horizontal-list {
  list-style-position: outside;
  padding-left: 1.5em; /* 番号とテキストの余白 */
  margin-left: 1em;
}

.content-block ol.horizontal-list li h3 {
  display: inline; /* 番号とh3を横並びに */
  margin-left: 0.5em;
  font-weight: bold;
}

.content-block ol.horizontal-list li {
  margin-bottom: 1.5em;
}

/* インフォメーション用の囲み枠 */
.info-box {
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  padding: 1.2em;
  margin: 1.5em 0;
  border-radius: 6px;
}

.info-box h4 {
  font-size: 1.05rem;
  margin-top: 0;
  font-weight: bold;
  color: #333;
}

/* ---------------------------------------------
お届け時間 テーブルグリッド
---------------------------------------------- */
.delivery-table-grid .grid-header {
  background-color: #3949ab;
  color: #fff;
  padding: 1em;
  font-weight: bold;
  text-align: left;
}

.delivery-table-grid .grid-table {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid transparent;  /* 外枠は消したまま */
  border-top: 1px solid #ccc;      /* ← 追加：ヘッダーとの境界線をここで定義 */
}

.delivery-table-grid .grid-cell {
  border: 1px solid #ccc;
  padding: 0.8em 0.5em;
  margin: 0;
  background-color: #fff;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.delivery-table-grid .grid-cell span {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3em;
}

.delivery-table-grid .grid-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5em;
}

/* タブレット表示：午前中だけ全幅、他2列 */
@media (max-width: 1024px) {
  .delivery-table-grid .grid-table {
    grid-template-columns: repeat(2, 1fr);
  }
  .delivery-table-grid .grid-cell.full-span {
    grid-column: 1 / -1;
  }
}

/* スマホ表示：すべて1列 */
@media (max-width: 768px) {
  .delivery-table-grid .grid-table {
    grid-template-columns: 1fr;
  }
}

/* 日付メタ情報のスタイル */
.document-meta {
  margin-top: 2em;
  font-size: 0.95rem;
  color: #666;
  text-align: right;
}
.document-meta p {
  line-height: 1.4;
  margin-bottom: 0.3em;
}

/* スマホ対応（レスポンシブ） */
@media screen and (max-width: 768px) {
  .content-block {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* =========================================================
   フッター上：ご注文からお届けまでの流れ
========================================================= */
.irodoll-order-flow{
  padding:2rem;
  font-family:"Helvetica Neue",sans-serif;
  text-align:center;
}
.flow-title{
  font-size:1.75rem;
  margin-bottom:2rem;
}
.flow-steps{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:1rem;
  position:relative;
  z-index:0;
  overflow:visible;
}

/* カード（各ステップ） */
.step{
  --tt-shift: 0px; /* ツールチップ水平補正（JSで上書き） */
  position:relative;
  background:#fff;
  border-radius:12px;
  box-shadow:
    0 10px 30px rgba(0,0,0,.12),
    0 2px 6px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.06);
  padding:1rem;
  transition:transform .3s, box-shadow .3s, border-color .3s;
  overflow:visible;
  z-index:1;
  cursor:pointer;
}
.step:hover{
  transform:translateY(-4px);
  z-index:10;
  box-shadow:
    0 16px 38px rgba(0,0,0,.18),
    0 4px 12px rgba(0,0,0,.08);
  border-color:rgba(0,0,0,.08);
}

.step-label{
  font-weight:bold;
  color:#fcd400;
  font-size:1.2rem;
  margin-bottom:.5rem;
}
.step-title{
  font-size:1rem;
  margin-bottom:.5rem;
}
.step-image{
  width:100px;
  height:auto;
  margin:0 auto 8px;
  display:block;
}

/* ツールチップ */
.tooltip{
  visibility:hidden;
  opacity:0;
  background:#333;
  color:#fff;
  text-align:left;
  padding:.75rem;
  border-radius:8px;
  position:absolute;
  bottom:105%;
  left:50%;
  transform:translateX(calc(-50% + var(--tt-shift)));
  width:clamp(280px, 38vw, 420px);
  max-width:calc(100vw - 32px);
  font-size:.85rem;
  transition:opacity .3s ease;
  z-index:1000;
  pointer-events:none;
}
.tooltip p{ margin-bottom:8px; }
.step:hover .tooltip{
  visibility:visible;
  opacity:1;
}

/* 矢印（デフォルトはPC用のみ表示） */
.step::after{
  content:"";
  position:absolute;
  width:0;
  height:0;
  border-style:solid;
  display:none;
  z-index:500;
}

/* PC：1025px以上 */
@media (min-width:1025px){
  .step:not(:last-child)::after{
    display:block;
    top:50%;
    right:-1rem;
    border-width:10px 0 10px 14px;
    border-color:transparent transparent transparent #f00;
    transform:translateY(-50%);
  }
}

/* タブレット：769px～1024px */
@media (min-width:769px) and (max-width:1024px){
  .flow-steps{
    grid-template-columns:repeat(3,1fr);
    grid-template-areas:
      "step1 step2 step3"
      "step6 step5 step4";
  }
  .step-1{ grid-area:step1; }
  .step-2{ grid-area:step2; }
  .step-3{ overflow:visible; z-index:2; }
  .step-4{ grid-area:step4; }
  .step-5{ grid-area:step5; }
  .step-6{ grid-area:step6; }

  .step-1::after,
  .step-2::after{
    display:block;
    position:absolute;
    top:50%;
    right:-1rem;
    border-width:10px 0 10px 14px;
    border-style:solid;
    border-color:transparent transparent transparent #f00;
    transform:translateY(-50%);
  }
  .step-3::after{
    display:block;
    position:absolute;
    left:50%;
    bottom:-1.5rem;
    border-width:14px 10px 0 10px;
    border-style:solid;
    border-color:#f00 transparent transparent transparent;
    transform:translateX(-50%);
    z-index:10;
  }
  .step-5::after,
  .step-4::after{
    display:block;
    position:absolute;
    top:50%;
    left:-1rem;
    border-width:10px 14px 10px 0;
    border-style:solid;
    border-color:transparent #f00 transparent transparent;
    transform:translateY(-50%);
  }

  /* タブレット時はツールチップをさらに広めに（現状維持） */
  .tooltip{
    width:clamp(320px, 42vw, 460px);
    max-width:calc(100vw - 48px);
  }
}

/* スマホ：768px以下 */
@media (max-width:768px){
  .flow-steps{
    grid-template-columns:1fr;
    padding-bottom:2rem;
    position:relative;
  }
  .step{
    width:90%;
    margin:0 auto;
    position:relative;
    overflow:visible;
    z-index:1;
  }
  .step:not(:last-child)::after{
    display:block;
    position:absolute;
    left:50%;
    bottom:-16px;
    transform:translateX(-50%);
    border-width:10px 8px 0 8px;
    border-style:solid;
    border-color:#f00 transparent transparent transparent;
    z-index:2;
  }
  .step:last-child{ padding-bottom:.5rem; }

  /* スマホは画面幅一杯に近づけつつ左右に余白を残す（現状維持） */
  .tooltip{
    width:min(92vw, 480px);
    max-width:92vw;
  }
}

/* =========================================================
   フッター上：お買い物前にご確認ください
   ========================================================= */

/* 見出し */
.irodoll-buy-heading {
  background-color: #000;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 12px 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin: 40px auto 0px;
  max-width: 100%;
  box-sizing: border-box;
}

/* 全体背景 */
.irodoll-buy-info {
  background-color: #000;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 20px;
  border-radius: 0 0 10px 10px; /* 上の丸み削除済 */
}

/* 左右の大枠：初期は1カラム */
.irodoll-buy-left,
.irodoll-buy-right {
  background-color: #ffffff;
  border: 1px solid #f0e0cf;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  padding: 0px 25px 10px;
  flex: 1 1 100%;
}

/* PC時に2カラム化（1024px以上） */
@media (min-width: 1024px) {
  .irodoll-buy-left,
  .irodoll-buy-right {
    flex: 1 1 48%;
  }
}

/* 各セクションの見出し */
.buy-section h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 24px;
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}

.buy-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 1.2em;
  background-color: #f2a13a;
  border-radius: 2px;
}

/* 段落とリスト */
.buy-section p,
.buy-section ul {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 20px;
}

/* リストスタイル */
.delivery-times,
.payment-methods {
  list-style: disc;
  padding-left: 20px;
}

/* 詳細リンク */
.more-link {
  color: #d87f2d;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.more-link:hover {
  color: #b4631c;
}

/* 配送時間帯：空要素は非表示 */
.time-icon p:empty {
  display: none;
}

/* 時間帯アイコンの親ラッパー */
.delivery-time-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 10px;
}

/* 共通アイコンスタイル */
.time-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  gap: 6px;
  box-sizing: border-box;
}

/* アイコン画像 */
.time-icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70px;
  margin-bottom: 6px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* ラベル下部 */
.time-icon p {
  margin: 0;
  margin-top: auto;  
  padding: 6px 0;
  background-color: #f7e8d4;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  width: 100%;
  min-height: 36px;
  text-align: center;
  box-sizing: border-box;
}

/* --- 支払い詳細用 --- */

.payment-box {
  background-color: #fff;
  border: 1px solid #e0d5c7;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.payment-box h4 {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.payment-box p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.payment-box ul {
  margin-left: 1.2em;
  padding-left: 0;
  list-style-type: disc;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #555;
  font-size: 14px;
}

.payment-box .warning {
  color: #c0392b;
  font-weight: bold;
  font-size: 13px;
  margin-top: 10px;
}

.irodoll-buy-info .logo {
  display: block;
  margin: 5px 0 10px;
  max-width: 300px;
}

.paypal-steps {
  margin: 1em 0 1.5em;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  list-style: decimal!important;
  list-style-position: outside;
}

.paypal-steps li {
  margin-bottom: 0.5em;
}

/* Notice ボックス（薄ピンク版）*/
.irodoll-buy-info .notice {
  background-color: #fff5f8;
  border: 3px solid #f7cdd5;
  color: #333;
  padding: 12px 16px;
  margin: 1em 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}
.irodoll-buy-info .notice strong {
  color: #d6336c; /* 濃いめのピンクでアクセント */
}

/* フッター リンク装飾 */
a.normal-link {
  color: #2563eb;
}
a.normal-link:hover {
  color: #a93365;
}

/* ----------- ブレイクポイント ----------- */

/* PC・タブレット（7つ並び） */
@media (min-width: 768px) {
  .delivery-time-icons {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .time-icon {
    flex: 0 0 calc((100% - 6 * 8px) / 7); /* 6gap分 = 48px */
  }
}

/* スマホ（3つ並び） */
@media (max-width: 767px) {
  .delivery-time-icons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .time-icon {
    width: calc((100% - 2 * 8px) / 3); /* 2gap分 = 16px */
  }
}

/* =========================
   PayPal.me ボタンスタイル
   ========================= */
.btn-paypal {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0070ba; /* PayPal公式ブルー */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.btn-paypal:hover {
  background-color: #005c99; /* 濃いブルー */
  transform: translateY(-1px);
  color: #FF0;
}
.btn-paypal:active {
  background-color: #003f73;
  transform: translateY(0);
}

/* ブログ記事一覧装飾 */
.wd-post-cat.wd-style-with-bg {
    background-color: var(--wp--preset--color--pale-pink)!important;
}
/* 1) カード全体を基準にする */
.blog-design-masonry .wd-post-inner {
  position: relative;
}

/* 2) 本文ブロックの position をリセット（←ここが重要） */
.blog-design-masonry .wd-post-content {
  position: static !important;
}

/* 3) カテゴリーバッジをカード右上＝画像右上へ */
.blog-design-masonry .wd-post-cat {
  position: absolute;
  top: 14px;          /* 上の余白はお好みで微調整 */
  right: 14px;        /* 右の余白はお好みで微調整 */
  margin: 0 !important;
  transform: none !important;
  z-index: 6;         /* タイトル等より前面に */
}

/* 見た目調整（任意） */
.blog-design-masonry .wd-post-cat.wd-style-with-bg {
  border-radius: 999px;
  padding-inline: 12px;
  height: auto;
  line-height: 1.9;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* スマホ微調整（任意） */
@media (max-width: 767.98px) {
  .blog-design-masonry .wd-post-cat { top: 10px; right: 10px; }
}

/* =========================================================
   IRODOLL BLOG — Headings CSS（clean + scoped to .single-post）
   ※WooCommerce系のウィジェット内のHタグは除外
   ========================================================= */

/* 共通カラ―（必要に応じて微調整） */
.single-post{
  --iro-pink:        #f6b3c3;                 /* IRODOLL ピンク */
  --iro-pink-strong: #e97f97;                 /* 少し濃いピンク */
  --iro-glare:       rgba(255,255,255,.38);   /* 斜めの薄い白 */
}

/* ---------------------------------------------------------
   H1：ブログ記事タイトル（枠＋イラスト上乗せ）
   --------------------------------------------------------- */

/* 親…はみ出しを切らず中央基準を作る */
.single-post .wd-single-post-title,
.single-post .elementor-widget-wd_post_title{
  position: relative;
  text-align: center;
  overflow: visible; /* ::before を切らない */
}

/* 見出し本体 */
.single-post h1.entry-title.wd-post-title{
  position: relative;
  display: block;
  margin: 70px auto 10px;
  padding: 1.2rem 2rem;
  color: #333;
  background: #fff;
  border: 3px solid var(--iro-pink);
  border-radius: 14px;
  box-shadow: 0 10px 0 var(--iro-pink), 0 18px 24px rgba(246,179,195,.22);
  z-index: 2;
}

/* 上のイラスト */
.single-post h1.entry-title.wd-post-title::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0;                                  /* h1の上端を基準 */
  transform: translate(-50%, -80%);        /* 上にピタッと */
  width: min(220px, 70vw);
  aspect-ratio: 700 / 390;
  background:
    url("https://irodoll.com/wp-content/uploads/parts/ui/irodoll-post-title-illust.png")
    no-repeat center bottom / contain;
  pointer-events: none;
  z-index: 3;
  image-rendering: -webkit-optimize-contrast;
}

/* 吹き出しテール（任意） */
.single-post h1.entry-title.wd-post-title::after{
  content: "";
  position: absolute;
  left: 46px;
  top: 100%;
  width: 18px;
  height: 24px;
  background: #fff;
  border-right: 12px solid var(--iro-pink);
  transform: skew(-22deg);
  border-bottom-right-radius: 5px;
  z-index: 1;
}

/* H1：モバイル調整 */
@media (max-width:768px){
  .single-post h1.entry-title.wd-post-title{
    margin: 50px 10px 5px;
    max-width: calc(100% - 20px);
    padding: 1rem 1.4rem;
    box-shadow: 0 7px 0 var(--iro-pink), 0 12px 18px rgba(246,179,195,.18);
  }
  .single-post h1.entry-title.wd-post-title::before{
    width: min(180px, 60vw);
  }
}

/* ---------------------------------------------------------
   H2：本文内のみ（白文字＋ピンク帯＋右端斜めハイライト）
   WooCommerce/ウィジェット内部のh2は除外
   --------------------------------------------------------- */

.single-post :is(.wd-single-post-content, .entry-content)
  :where(h2):not(:is(
    .woocommerce *, .wd-products *, .products *, .product *,
    .related-products *, .upsells *, .cross-sells *,
    .wd-carousel *, .widget *
)){
  position: relative;
  margin: 1.6em 0 .9em;
  padding: 12px 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.08);
  background:
    linear-gradient(90deg,
      var(--iro-pink-strong) 0%,
      #f290a5 48%,
      var(--iro-pink) 72%) left / 100% 100% no-repeat,
    linear-gradient(-30deg,
      transparent 0 74%,
      var(--iro-glare) 74% 92%,
      transparent 92% 100%) right / 140% 100% no-repeat;
  border-radius: 8px;
  border: 1px solid #f3aabe;
  overflow: hidden;
}

/* H2：狭幅時の可読性優先 */
@media (max-width:768px){
  .single-post :is(.wd-single-post-content, .entry-content)
    :where(h2):not(:is(
      .woocommerce *, .wd-products *, .products *, .product *,
      .related-products *, .upsells *, .cross-sells *,
      .wd-carousel *, .widget *
  )){
    padding: 10px 14px;
    background:
      linear-gradient(90deg,
        var(--iro-pink-strong) 0%,
        #f290a5 48%,
        var(--iro-pink) 76%) left / 100% 100% no-repeat,
      linear-gradient(-30deg,
        transparent 0 82%,
        rgba(255,255,255,.28) 82% 94%,
        transparent 94% 100%) right / 170% 100% no-repeat;
  }
}

/* H2：極小幅では模様OFF */
@media (max-width:480px){
  .single-post :is(.wd-single-post-content, .entry-content)
    :where(h2):not(:is(
      .woocommerce *, .wd-products *, .products *, .product *,
      .related-products *, .upsells *, .cross-sells *,
      .wd-carousel *, .widget *
  )){
    background:
      linear-gradient(90deg,
        var(--iro-pink-strong) 0%,
        #f290a5 48%,
        var(--iro-pink) 100%) left / 100% 100% no-repeat;
  }
}

/* ---------------------------------------------------------
   H3：本文内のみ（アスタリスク花＋下点線）
   WooCommerce/ウィジェット内部のh3は除外
   --------------------------------------------------------- */

.single-post :is(.wd-single-post-content, .entry-content)
  :where(h3):not(:is(
    .woocommerce *, .wd-products *, .products *, .product *,
    .related-products *, .upsells *, .cross-sells *,
    .wd-carousel *, .widget *
)){
  position: relative;
  margin: 1.4em 0 .8em;
  padding: 10px 12px 10px 56px; /* 左はアイコン分 */
  color: #d04255;
  line-height: 1.5;
}

/* 花風アスタリスク */
.single-post :is(.wd-single-post-content, .entry-content)
  :where(h3):not(:is(
    .woocommerce *, .wd-products *, .products *, .product *,
    .related-products *, .upsells *, .cross-sells *,
    .wd-carousel *, .widget *
))::before{
  content: '＊*';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(20deg);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 0 8px  var(--iro-pink),
    0 0 5px  var(--iro-pink),
    0 0 1px  var(--iro-pink);
  pointer-events: none;
}

/* 下点線 */
.single-post :is(.wd-single-post-content, .entry-content)
  :where(h3):not(:is(
    .woocommerce *, .wd-products *, .products *, .product *,
    .related-products *, .upsells *, .cross-sells *,
    .wd-carousel *, .widget *
))::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-bottom: 2px dotted #eaa8bf;
}

/* H3：モバイル微調整 */
@media (max-width:480px){
  .single-post :is(.wd-single-post-content, .entry-content)
    :where(h3):not(:is(
      .woocommerce *, .wd-products *, .products *, .product *,
      .related-products *, .upsells *, .cross-sells *,
      .wd-carousel *, .widget *
  )){
    padding-left: 48px;
  }
  .single-post :is(.wd-single-post-content, .entry-content)
    :where(h3):not(:is(
      .woocommerce *, .wd-products *, .products *, .product *,
      .related-products *, .upsells *, .cross-sells *,
      .wd-carousel *, .widget *
  ))::before{
    font-size: 24px;
    left: 6px;
  }
}

/* ---------------------------------------------------------
   サイドバー：ウィジェットの見出し（h5.widget-title）
   ※ブログ記事ページ内のサイドバーのみ
   --------------------------------------------------------- */

.single-post .elementor-widget-wd_sidebar .widget-title,
.single-post .widget.sidebar-widget > .widget-title{
  --iro-pink-1: #ef858c;  /* 左 */
  --iro-pink-2: var(--iro-pink); /* 右 */
  --iro-white:  #ffffff;

  position: relative;
  margin: 0 0 12px;
  padding: .55rem .9rem;
  color: var(--iro-white);
  background: linear-gradient(90deg, var(--iro-pink-1) 0%, var(--iro-pink-2) 72%);
  border-radius: 10px;
  overflow: hidden; /* 斜め帯を切る */
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
  box-shadow: 0 3px 0 rgba(246,179,195,.95);
}

/* 右端の淡い“切替帯” */
.single-post .elementor-widget-wd_sidebar .widget-title::after,
.single-post .widget.sidebar-widget > .widget-title::after{
  content: "";
  position: absolute;
  top: 0; right: -8%; bottom: 0;
  width: 36%;
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.58));
  transform: skewX(-22deg);
  pointer-events: none;
}

/* サイドバー：狭幅調整 */
@media (max-width:480px){
  .single-post .elementor-widget-wd_sidebar .widget-title::after,
  .single-post .widget.sidebar-widget > .widget-title::after{
    right: -10%;
    width: 32%;
    background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.46));
  }
}

/* ---------------------------------------------
　「WP-PostViews」サイドバー用
---------------------------------------------- */
.widget_views ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_views li {
  display: flex;
  align-items: center;
  margin-bottom: 1.2em;
  gap: 12px;
  padding-bottom: 1.2em;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.widget_views li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* サムネイル画像 */
.widget_views .recent-posts-thumbnail img {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
  border-radius: 4px;
}

/* カウンターリセット */
.widget_views ul {
  counter-reset: rank;
}

/* タイトル部分 */
.widget_views .recent-posts-info {
  flex: 1;
}

.widget_views .recent-posts-info .wd-entities-title a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  text-decoration: none;
}

.widget_views .recent-posts-info .wd-entities-title a:hover {
  color: #cc3366; /* お好みのアクセントカラーに変更可能 */
}

/* =========================================================
   IRODOLL WooCommerce ウィジェット
   ========================================================= */
/* ---------------------------------------------
　「Brand Thumbnails」サイドバー用
---------------------------------------------- */
/* 基本のグリッド。ULに .brand-thumbnails と .columns-N が付与されている前提 */
ul.brand-thumbnails { list-style:none; margin:0; padding:0; }

/* 3列 */
ul.brand-thumbnails.columns-3 {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 10px;
}
/* 2列（他ウィジェットで使う可能性に備えて） */
ul.brand-thumbnails.columns-2 {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 16px;
}
/* 1列 */
ul.brand-thumbnails.columns-1 {
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px 0;
}

/* 端の余白調整（first/last クラスを使う旧CSSへの互換ケア） */
ul.brand-thumbnails li { margin:0; }

/* レスポンシブ（ご指定のブレイクポイントに合わせる） */
@media (max-width:1024px){ /* タブレット */
  ul.brand-thumbnails.columns-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:768px){  /* スマホ */
  ul.brand-thumbnails.columns-3,
  ul.brand-thumbnails.columns-2 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------
　年齢認証
---------------------------------------------- */
/* 年齢認証ポップアップ全体 */
.wd-popup.wd-age-verify {
  margin: 5% auto;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #333;
  font-family: "Helvetica Neue", "Noto Sans JP", sans-serif;
}
/* テキストブロック */
.wd-age-verify p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.wd-age-verify p.warning {
  color: #c0392b;
  font-weight: bold;
}

.wd-age-verify h4 {
  font-size: 22px !important;
  font-weight: 700;
  color: #D72638;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: block;
  padding-bottom: 0.4em;
  line-height: 1.4;
}

/* アンダーライン風の装飾 */
.wd-age-verify h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #D72638, #FFA500);
  border-radius: 2px;
}

/* 画像サイズ調整（レスポンシブ対応） */
.wd-age-verify img {
  display: block;
  max-width: 60%;
  height: auto;
  margin: 0 auto 0.5rem;
}

/* ボタンデザイン */
.wd-age-verify-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wd-age-verify-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

/* 有効ボタン（YES） */
.wd-age-verify-buttons .wd-age-verify-allowed {
  background-color: #D72638;
  color: #fff;
}
.wd-age-verify-buttons .wd-age-verify-allowed:hover {
  background-color: #b41f2d;
}
/* 拒否ボタン（NO） */
.wd-age-verify-buttons .wd-age-verify-forbidden {
  background-color: #ccc;
  color: #333;
}
.wd-age-verify-buttons .wd-age-verify-forbidden:hover {
  background-color: #bbb;
}

@media (max-width: 767px) {
  .wd-age-verify p.no-sp {
    display:none!important;
  }
}

/* 年齢制限エラーメッセージ */
.wd-age-verify-text-error h4,
.wd-age-verify-text-error p {
  color: #D72638;
  font-weight: bold;
}

/* ---------------------------------------------
カテゴリー別 説明文＋メニュー
---------------------------------------------- */
/* 自動整形による空のタグの非表示化 */
.category-children > p:empty {
  display: none;
}
.category-description {
  padding: 1em 0 0;
}
/* 共通：親ブロック全体 */
.category-description.has-bg {
  position: relative;
  padding: 1em 1em 0;
  color: #fff;
  background-size: cover;
  background-position: 10% center;
  background-repeat: no-repeat;
  margin-bottom: 0.5em;
}

/* 上部 見出し＋説明の2カラム */
.style-header-flex {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

/* 見出し */
.style-heading {
  flex: 0 0 200px; /* 固定幅 */
  margin: 0;
}
.category-description h1 {
  font-size: 2rem;
  color: #000;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

/* 説明文（背景＋角丸） */
.style-description {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5em 1em;
  border-radius: 5px;
  color: #fff;
}
.style-description p {
  font-size:14px;
}

/* 子カテゴリブロック全体 */
.category-children-toggle-wrapper {
  padding: 2em 1.5em;
  margin-top: 1em;
  text-align: center;
}

/* ボタン一覧ラップ */
.category-children {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  max-width: 1200px;
  margin: 0 auto;
}

/* 各ボタン共通 */
.child-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111;
  font-weight: bold;
  padding: 0.8em 1.2em;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 3px solid #ccc;
  transition: all 0.3s ease;
  min-height: 60px;
  min-width: 120px;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;

  position: relative;
  overflow: hidden;
}

/* ホバーエフェクト：キラッと光るアニメーション */
.child-button:hover {
  background: #f9f9f9;
  border-color: #aaa;
  color: #DC143C;
}
.child-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
}

/* ホバー時に光を流す */
.child-button:hover::before {
  animation: shine 0.8s ease forwards;
}

/* キラッアニメーション定義 */
@keyframes shine {
  from {
    left: -75%;
  }
  to {
    left: 125%;
  }
}

/* 現在見ているカテゴリーのボタンの色を変化 */
.child-button.is-current {
  background: #fcd400;
  color: #000;
  border-color: #fcd400;
  pointer-events: none;
}

/* ブランドロゴ付きボタン調整（ロゴ + テキスト対応） */
.child-button img {
  display: block;
  max-height: 80px;
  max-width: 80px;
  margin: 0 0 0.5em 0; /* 下に余白 */
}

/* スマホ時：非表示ボタンのブロック */
.child-button-hidden {
  display: none;
}

/* スマホ時：トグル表示時 */
.child-button-hidden.active {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

/* スマホ時：トグルボタン */
.toggle-button {
  background: #DC143C;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 9999px;
  font-weight: bold;
  margin-top: 1em;
  cursor: pointer;
}

/* ---------------- PC向けスタイル ---------------- */
@media (min-width: 769px) {
  .style-header-flex {
    flex-wrap: nowrap;
  }

  .hide-after-br {
    display: inline;
  }

  .toggle-button {
    display: none;
  }

  /* 親要素も含めてフレックス制御 */
  .category-children {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    align-items: stretch;
  }

  /* ← ここが重要：wrapperとしてのdivは無視して中のaだけ対象にする */
  .child-button-hidden {
    display: contents;
  }

  .child-button {
    flex: 0 1 calc(20% - 1em);
    max-width: calc(20% - 1em);
    min-height: 60px;
  }
}

/* ---------------- スマホ・タブレット ---------------- */
@media (max-width: 768px) {
  .style-header-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .category-description.has-bg {
    background-position: center top !important;
  }

  .style-description {
    margin-top: 1em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hide-after-br {
    display: none;
  }

  /* すべてのボタンを2カラムベースで揃える */
  .child-button,
  .child-button-hidden .child-button {
    flex: 1 1 calc(50% - 1em);
    max-width: calc(50% - 1em);
    box-sizing: border-box;
  }

  /* 隠しカテゴリ表示時のレイアウト調整 */
  .child-button-hidden.active {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
  }

  /* 奇数個目の最後のボタンを中央揃え＆幅100% */
  .child-button-hidden.active .child-button:nth-last-child(1):nth-child(odd) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* トグルボタン */
  .toggle-button {
    display: block;
    margin: 1em auto 0;
  }
}
