/*
Theme Name: Dunlop Shop
Theme URI: https://example.com/
Author: Shop Owner
Description: DUNLOP専門のオンラインタイヤショップ向けテーマ。左サイドメニュー、タイヤサイズ検索(幅/扁平率/リム径)、WooCommerce標準スタイルに合わせたレイアウト。スマートフォンではサイドメニューがドロワーになります。
Version: 1.10.7
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dunlop-shop
Tags: e-commerce, left-sidebar, custom-logo, custom-menu, responsive-layout, translation-ready
*/

/* ---------------------------------------------------------------
   Tokens
--------------------------------------------------------------- */
:root {
	--rubber: #2a2927;
	--rubber-2: #373532;
	--line: #4a4844;
	--yellow: #ffd100;
	--asphalt: #ecedee;
	--paper: #ffffff;
	--ink: #1f1e1c;
	--muted: #66655f;
	--rule: #d6d6d1;
	--focus: #0b57d0;
	--sidebar-w: 296px;
	--topbar-h: 56px;
	--font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
	--font-num: "Barlow Condensed", "Arial Narrow", "Noto Sans JP", sans-serif;
}

/* ---------------------------------------------------------------
   Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 1rem); }

body {
	margin: 0;
	background: var(--asphalt);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}
body.nav-open { overflow: hidden; }

img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-sidebar :focus-visible,
.hero :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	clip: auto; clip-path: none;
	width: auto; height: auto; margin: 0;
	left: .5rem; top: .5rem; z-index: 100;
	padding: .75rem 1rem;
	background: var(--yellow); color: var(--ink); font-weight: 700;
}

/* Generic form controls (WooCommerce keeps its own on shop pages) */
input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
input[type="url"], input[type="password"], input[type="number"], textarea, select {
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid #b9b9b3;
	border-radius: 3px;
	padding: .6rem .75rem;
	max-width: 100%;
}
textarea { width: 100%; }

.button, button.button, input[type="submit"] {
	display: inline-block;
	font: inherit; font-weight: 700;
	background: var(--yellow); color: var(--ink);
	border: 0; border-radius: 3px;
	padding: .75rem 1.4rem;
	text-decoration: none; cursor: pointer;
}
.button:hover, input[type="submit"]:hover { background: #ffdf3d; }

/* ---------------------------------------------------------------
   Layout: sidebar + body
--------------------------------------------------------------- */
.site-body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

.topbar {
	position: sticky; top: 0; z-index: 40;
	display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center;
	height: var(--topbar-h);
	background: var(--rubber); color: #fff;
	border-bottom: 3px solid var(--yellow);
}
.admin-bar .topbar { top: 46px; }
@media (min-width: 783px) { .admin-bar .topbar { top: 32px; } }

.topbar-toggle {
	width: 3.5rem; height: var(--topbar-h);
	background: none; border: 0; color: inherit; cursor: pointer; position: relative;
}
.topbar-toggle__bars,
.topbar-toggle__bars::before,
.topbar-toggle__bars::after {
	content: ""; display: block; width: 22px; height: 2px; background: #fff; position: absolute; left: 50%; margin-left: -11px;
}
.topbar-toggle__bars { top: 50%; margin-top: -1px; }
.topbar-toggle__bars::before { top: -7px; margin-left: 0; left: 0; }
.topbar-toggle__bars::after { top: 7px; margin-left: 0; left: 0; }

.topbar-cart { padding-right: 1rem; font-size: .9rem; }

.nav-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(20, 19, 18, .6); }
.nav-scrim[hidden] { display: none; }

.site-sidebar {
	position: fixed; z-index: 50; top: 0; bottom: 0; left: 0;
	width: min(var(--sidebar-w), 88vw);
	display: flex; flex-direction: column;
	background: var(--rubber); color: #e8e6df;
	overflow-y: auto; overscroll-behavior: contain;
	transform: translateX(-100%); visibility: hidden;
	transition: transform .25s ease, visibility 0s linear .25s;
}
.admin-bar .site-sidebar { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-sidebar { top: 32px; } }
.nav-open .site-sidebar { transform: none; visibility: visible; transition-delay: 0s; }
.site-sidebar > * { flex: none; }

@media (min-width: 1024px) {
	.topbar, .nav-scrim { display: none !important; }
	.site-sidebar { width: var(--sidebar-w); transform: none; visibility: visible; transition: none; }
	.site-body { margin-left: var(--sidebar-w); }
	html { scroll-padding-top: 1rem; }
	.sidebar-close { display: none; }
}

/* Sidebar parts */
.sidebar-head {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 1.25rem 1rem;
	border-bottom: 3px solid var(--yellow);
}
.brand { display: block; color: #fff; text-decoration: none; line-height: 1.25; }
.brand-name { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }
.brand-tag { display: block; margin-top: .3rem; font-size: .75rem; color: #b9b7af; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand--topbar { text-align: center; min-width: 0; }
.brand--topbar .brand-name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--topbar .brand-tag { display: none; }
.brand--topbar .brand-logo { max-height: 36px; margin: 0 auto; }

.sidebar-close {
	background: none; border: 1px solid var(--line); color: #fff; border-radius: 3px;
	width: 2.25rem; height: 2.25rem; font-size: 1.4rem; line-height: 1; cursor: pointer;
}

.sidebar-block { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }

.sidebar-block .search-form,
.sidebar-block .woocommerce-product-search { display: flex; gap: .4rem; }
.sidebar-block .search-field { flex: 1; min-width: 0; background: var(--rubber-2); color: #fff; border-color: var(--line); }
.sidebar-block .search-field::placeholder { color: #a7a59d; }
.sidebar-block button[type="submit"], .sidebar-block .search-submit {
	background: transparent; color: #fff; border: 1px solid #8a8880; border-radius: 3px;
	padding: 0 .9rem; font: inherit; font-size: .9rem; cursor: pointer;
}
.sidebar-block button[type="submit"]:hover { border-color: var(--yellow); color: var(--yellow); }

.sidebar-cal iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: 4px; background: #fff; }
.sidebar-news { font-size: .9rem; }
.sidebar-news ul { margin: 0; padding-left: 1.1rem; }
.sidebar-news li { margin-bottom: .35rem; }
.sidebar-news a { color: #e8e6df; }
.widget-title { font-size: .85rem; color: #b9b7af; margin-bottom: .6rem; }

/* Side menu */
.side-nav { padding: .5rem 0 1rem; border-bottom: 1px solid var(--line); }
.side-menu, .side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu li { position: relative; }
.side-menu a {
	display: block; padding: .65rem 2.75rem .65rem 1.25rem;
	color: #e8e6df; text-decoration: none; font-size: .95rem; line-height: 1.45;
	border-left: 4px solid transparent;
}
.side-menu a:hover { background: var(--rubber-2); color: #fff; }
.side-menu .current-menu-item > a,
.side-menu .current-cat > a,
.side-menu .current_page_item > a {
	border-left-color: var(--yellow); background: var(--rubber-2); color: #fff; font-weight: 700;
}
.side-menu ul a { padding-left: 2.25rem; font-size: .9rem; color: #cfcdc5; }
.side-menu ul ul a { padding-left: 3.25rem; }

.js .side-menu li > ul { display: none; }
.js .side-menu li.is-open > ul { display: block; }

.sub-toggle {
	position: absolute; top: 0; right: 0; width: 2.75rem; height: 2.75rem;
	background: none; border: 0; color: #e8e6df; cursor: pointer;
}
.sub-toggle::before {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: .5rem; height: .5rem; margin: -.4rem 0 0 -.25rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .2s ease;
}
.is-open > .sub-toggle::before { transform: rotate(-135deg); margin-top: -.1rem; }
.sub-toggle:hover { color: var(--yellow); }

.sidebar-foot {
	margin-top: auto;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
	padding: 1rem 1.25rem 1.25rem; font-size: .9rem;
}
.sidebar-foot__link { color: #e8e6df; }

.dls-cart-link { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.dls-cart-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
	background: var(--yellow); color: var(--ink);
	border-radius: 999px; font-family: var(--font-num); font-weight: 700; font-size: 1rem; line-height: 1;
}

/* 管理画面のメニューで「CSSクラス」に指定して使う(見出し・区切り線・強調) */
.side-menu .menu-heading > a {
	pointer-events: none; cursor: default;
	padding-top: 1rem; padding-bottom: .3rem;
	font-size: .8rem; font-weight: 700; color: #a7a59d; background: none;
}
.side-menu .menu-heading > .sub-toggle { display: none; }
.side-menu .menu-separator { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.side-menu .menu-highlight > a { border-left-color: var(--yellow); font-weight: 700; color: #fff; }
.side-menu .menu-highlight > a::after {
	content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .5rem;
	background: var(--yellow); border-radius: 50%; vertical-align: .1em;
}

/* ---------------------------------------------------------------
   Size finder (タイヤ側面の表記に見立てた入力)
--------------------------------------------------------------- */
.size-finder--side { padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); }
.sf-title { margin: 0 0 .6rem; font-weight: 700; font-size: .95rem; }
.sf-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .3rem; }
.sf-field { display: block; min-width: 0; }
.sf-field select {
	width: 100%;
	appearance: none; -webkit-appearance: none;
	background-color: var(--rubber-2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffd100' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .45rem center;
	color: var(--yellow);
	border: 1px solid var(--line); border-bottom: 3px solid var(--yellow); border-radius: 3px 3px 0 0;
	padding: .35rem 1.2rem .25rem .5rem;
	font-family: var(--font-num); font-weight: 700; font-size: 1.6rem; line-height: 1.2; letter-spacing: .02em;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.sf-field select option { color: var(--ink); background: #fff; font-family: var(--font-body); font-size: 1rem; }
.sf-sep { font-family: var(--font-num); font-weight: 700; font-size: 1.6rem; color: #8f8d85; line-height: 1; }
.sf-hint { margin: .7rem 0 0; font-size: .75rem; line-height: 1.6; color: #b9b7af; }
.sf-submit {
	display: block; width: 100%; margin-top: .9rem; padding: .7rem 1rem;
	background: var(--yellow); color: var(--ink);
	border: 0; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer;
}
.sf-submit:hover { background: #ffdf3d; }

/* ---------------------------------------------------------------
   Header links (各ページの上部に常に表示)
--------------------------------------------------------------- */
.utility-bar { background: var(--paper); border-bottom: 1px solid var(--rule); font-size: .875rem; }
.utility-bar__inner {
	display: flex; align-items: center; gap: .25rem 1.5rem;
	padding: .35rem clamp(1rem, 3vw, 2.5rem);
	flex-wrap: wrap; white-space: nowrap;
}
.utility-bar__inner > :first-child { margin-left: auto; }
.utility-bar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.utility-bar a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; color: var(--ink); text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.utility-fixed { padding-left: 1.5rem !important; border-left: 1px solid var(--rule); }
.utility-bar .dls-cart-link { font-weight: 700; }

/* ---------------------------------------------------------------
   Content
--------------------------------------------------------------- */
.notice-bar { background: var(--yellow); color: var(--ink); font-size: .875rem; }
.notice-bar p { margin: 0; padding: .5rem clamp(1rem, 3vw, 2.5rem); }

.content-inner { max-width: 1180px; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.5rem); }
.content-inner--narrow { max-width: 820px; }

.entry-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.entry-meta { margin: 0 0 .25rem; font-size: .85rem; color: var(--muted); }
.entry { background: var(--paper); padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--rule); }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: .6rem .8rem; text-align: left; }
.archive-header { margin-bottom: 1.5rem; }

.post-item { background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.post-item__title { font-size: 1.15rem; margin-bottom: .4rem; }
.post-item__title a { text-decoration: none; }
.post-item__title a:hover { text-decoration: underline; }
.post-item__excerpt p { margin: 0; color: var(--muted); }

.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.pagination .page-numbers { padding: .4rem .9rem; background: var(--paper); border: 1px solid var(--rule); text-decoration: none; }
.pagination .page-numbers.current { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }

/* ---------------------------------------------------------------
   Front page
--------------------------------------------------------------- */
.hero {
	background-color: var(--rubber);
	background-image:
		repeating-linear-gradient(62deg, transparent 0 26px, rgba(255, 255, 255, .04) 26px 30px);
	color: #fff;
	border-bottom: 6px solid var(--yellow);
}
.hero__inner { max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2.5rem); }
.hero__title { max-width: 22em; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: .02em; margin-bottom: .6rem; }
.hero__text { max-width: 36em; color: #d4d2ca; margin-bottom: 2rem; }

.size-finder--hero { max-width: 720px; }
.size-finder--hero .sf-title { font-size: 1rem; color: #d4d2ca; }
.size-finder--hero .sf-row { gap: clamp(.3rem, 1.5vw, .75rem); }
.size-finder--hero .sf-field select {
	font-size: clamp(2.1rem, 7vw, 3.8rem); padding: .3rem 1.6rem .15rem .6rem; background-position: right .7rem center;
}
.size-finder--hero .sf-sep { font-size: clamp(2rem, 6vw, 3.4rem); }
.size-finder--hero .sf-hint { font-size: .85rem; }
.size-finder--hero .sf-submit { width: auto; min-width: 14rem; padding: .9rem 2rem; font-size: 1.05rem; }

.home-section { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-title { font-size: 1.35rem; padding-left: .7rem; border-left: 5px solid var(--yellow); margin-bottom: 1.1rem; }
.section-more { font-size: .9rem; }

.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.cat-tile a {
	display: flex; flex-direction: column; height: 100%;
	background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--yellow);
	padding: 1rem 1.1rem; text-decoration: none;
}
.cat-tile a:hover { border-color: var(--ink); border-left-color: var(--yellow); }
.cat-tile__img { margin: -1rem -1.1rem .8rem; background: #f6f6f4; }
.cat-tile__img img { display: block; width: 100%; }
.cat-tile__name { font-weight: 700; line-height: 1.4; }
.cat-tile__count { margin-top: auto; padding-top: .5rem; font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer { background: var(--rubber); color: #cfcdc5; border-top: 4px solid var(--yellow); font-size: .9rem; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 2rem clamp(1.25rem, 3vw, 2.5rem); }
.site-footer a { color: #e8e6df; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-widgets ul { margin: 0; padding-left: 1.1rem; }
.footer-menu { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer-text { margin: 0 0 1rem; }
.footer-copy { margin: 0; font-size: .8rem; color: #a7a59d; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* WordPress core alignments */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------
   Front page (v1.4: スタイリッシュなトップ)
--------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 0; background-image:
	linear-gradient(100deg, rgba(20,19,18,.92) 0 62%, rgba(20,19,18,0) 100%),
	repeating-linear-gradient(62deg, transparent 0 26px, rgba(255,255,255,.05) 26px 30px); }
.hero::before { content: ""; position: absolute; top: 0; right: -6%; width: 34%; height: 100%; background: var(--yellow); transform: skewX(-18deg); opacity: .96; }
.hero::after { content: ""; position: absolute; top: 0; right: 24%; width: 3.5%; height: 100%; background: var(--yellow); transform: skewX(-18deg); opacity: .5; }
.hero__inner { position: relative; z-index: 1; }
.hero__kicker { margin: 0 0 .8rem; font-family: var(--font-num); font-weight: 700; font-size: 1rem; letter-spacing: .28em; color: #d4d2ca; text-transform: uppercase; }
.hero__kicker span { background: var(--yellow); color: var(--ink); padding: .05em .55em; margin-right: .6em; letter-spacing: .12em; }
.hero__title { font-size: clamp(1.8rem, 4.4vw, 3.3rem); line-height: 1.25; letter-spacing: .01em; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.size-finder--hero { max-width: 640px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: #fff; border-bottom: 6px solid var(--yellow); }
.steps__item { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: 1rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid #3d3b38; }
.steps__item:first-child { border-left: 0; }
.steps__no { grid-row: span 2; font-family: var(--font-num); font-style: italic; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--yellow); }
.steps__label { font-weight: 700; line-height: 1.3; }
.steps__text { font-size: .82rem; color: #b9b7af; line-height: 1.4; }

.content-inner { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-kicker { margin: 0 0 .1rem; font-family: var(--font-num); font-style: italic; font-weight: 700; font-size: .95rem; letter-spacing: .24em; color: var(--muted); }
.section-title { border-left: 0; padding-left: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); position: relative; padding-bottom: .55rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 5px; background: var(--yellow); transform: skewX(-24deg); }
.cat-tile a { border-radius: 0; border-left: 6px solid var(--ink); transition: border-color .15s, transform .15s; }
.cat-tile a:hover { transform: translateY(-2px); }

@media (max-width: 720px) {
	.hero::before { width: 22%; right: -8%; }
	.hero::after { display: none; }
	.steps { grid-template-columns: 1fr; }
	.steps__item { border-left: 0; border-top: 1px solid #3d3b38; padding-top: .7rem; padding-bottom: .7rem; }
	.steps__item:first-child { border-top: 0; }
}

.pattern-group { background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--ink); margin-bottom: .6rem; }
.pattern-group[open] { border-left-color: var(--yellow); }
.pattern-group summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: .8rem 1.1rem; font-weight: 700; list-style: none; }
.pattern-group summary::-webkit-details-marker { display: none; }
.pattern-group summary::after { content: "+"; font-family: var(--font-num); font-size: 1.5rem; line-height: 1; margin-left: auto; order: 3; }
.pattern-group[open] summary::after { content: "\2212"; }
.pattern-group__count { font-family: var(--font-num); font-size: .95rem; background: var(--ink); color: var(--yellow); padding: 0 .55em; border-radius: 2px; }
.pattern-list { list-style: none; margin: 0; padding: .2rem 1.1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pattern-list a { display: block; padding: .35rem .8rem; border: 1px solid var(--rule); background: #f6f6f4; text-decoration: none; font-size: .92rem; line-height: 1.4; }
.pattern-list a:hover { border-color: var(--ink); background: var(--yellow); }

.dls-final-notice { margin: 1rem 0 .6rem; color: #c00000; font-weight: 700; line-height: 1.6; }
.dls-checkout-asct { margin: .4rem 0 1rem; font-size: .9rem; }

/* ヘッダーリンクのプルダウン */
.utility-menu > li { position: relative; }
.utility-menu .sub-menu {
	display: none; position: absolute; top: 100%; right: 0; z-index: 60; min-width: 13em;
	flex-direction: column; align-items: stretch; gap: 0;
	background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--yellow);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15); padding: .25rem 0;
}
.utility-menu li.menu-item-has-children:hover > .sub-menu,
.utility-menu li.menu-item-has-children:focus-within > .sub-menu,
.utility-menu li.menu-item-has-children.is-open > .sub-menu { display: flex; }
.utility-menu .sub-menu a { display: block; padding: .5rem 1rem; white-space: nowrap; }
.utility-menu .sub-menu a:hover { background: var(--yellow); text-decoration: none; }
.utility-menu li.menu-item-has-children > a::after {
	content: ""; width: .4em; height: .4em; margin-left: .15em;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-25%);
}

/* 幅が狭いとき: ヘッダーリンクの帯全体を左右にスライドして見る。
   プルダウンは帯の外(画面基準)に開く。位置は theme.js が決める */
@media (max-width: 720px) {
	.utility-bar__inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.utility-bar__inner::-webkit-scrollbar { display: none; }
	.utility-bar__inner > * { flex: 0 0 auto; }
	.utility-bar ul { flex-wrap: nowrap; gap: 1.5rem; }
	.utility-menu .sub-menu { position: fixed; right: auto; z-index: 80; }
	.utility-menu li.menu-item-has-children:hover > .sub-menu,
	.utility-menu li.menu-item-has-children:focus-within > .sub-menu { display: none; }
	.utility-menu li.menu-item-has-children.is-open > .sub-menu { display: flex; }
}

/* ---------------------------------------------------------------
   案内ページ(送料・手数料 / お買い物ガイド / よくあるご質問 などで共通)
   固定ページの本文に <div class="dls-info"> … </div> を入れて使う
--------------------------------------------------------------- */
.page-template-default .content-inner--narrow:has(.dls-info) { max-width: 980px; }
.dls-info { --info-red: #c00000; --info-green: #1b6e3c; --info-blue: #0b57d0; font-size: 1rem; }
.dls-info .late { color: var(--info-red); }
.dls-info strong.late { font-weight: 700; }
.dls-info .ok { color: var(--info-green); }
.dls-info .blue { color: var(--info-blue); }

.info-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.info-nav a {
	display: inline-block; padding: .45rem .95rem; background: var(--ink); color: #fff; text-decoration: none;
	font-size: .9rem; font-weight: 700; border-left: 4px solid var(--yellow);
}
.info-nav a:hover { background: var(--rubber-2); color: var(--yellow); }

.info-section { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--ink); padding: clamp(1.1rem, 3vw, 2rem); margin-bottom: clamp(1.25rem, 3vw, 2rem); scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.info-section .section-kicker { margin-bottom: .1rem; }
.info-section h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); position: relative; padding-bottom: .55rem; margin-bottom: 1.1rem; }
.info-section h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 5px; background: var(--yellow); transform: skewX(-24deg); }
.info-section h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.info-section > :last-child { margin-bottom: 0; }

.info-table-wrap { margin: 0 0 1rem; }
.info-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.info-table th, .info-table td { border: 1px solid var(--rule); padding: .7rem .9rem; text-align: left; vertical-align: top; line-height: 1.7; }
.info-table thead th { background: var(--ink); color: #fff; font-weight: 700; border-color: var(--ink); }
.info-table tbody th { background: #f6f6f4; font-weight: 700; white-space: nowrap; width: 9em; }
.info-table .price { font-family: var(--font-num); font-size: 1.35rem; font-weight: 700; white-space: nowrap; width: 7em; }
.info-table tbody tr:nth-child(even) td { background: #fbfbfa; }

.info-note { font-size: .92rem; color: var(--muted); }
.info-note--warn { color: var(--ink); background: #fff6d6; border-left: 5px solid var(--yellow); padding: .8rem 1rem; }
.info-box { background: #f6f6f4; border-left: 5px solid var(--ink); padding: 1rem 1.2rem; margin: 1.25rem 0 0; }
.info-box p:last-child { margin-bottom: 0; }
.info-box--tip { border-left-color: var(--info-green); }
.info-box--warn { border-left-color: var(--info-red); background: #fdf2f2; }

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0 0; }
.area-card { border: 1px solid var(--rule); border-top-width: 6px; background: var(--paper); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.area-card--1 { border-top-color: #2e9e5b; }
.area-card--2 { border-top-color: var(--yellow); }
.area-card--3 { border-top-color: #d64545; }
.area-tag { display: inline-block; font-weight: 700; font-size: .95rem; background: var(--ink); color: #fff; padding: .1rem .7rem; margin-bottom: .5rem; }
.area-card header p { font-size: .92rem; margin-bottom: .8rem; }
.area-card dl { margin: 0; }
.area-card dt { font-weight: 700; font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.area-card dd { margin: 0; line-height: 1.6; }
.area-foot { margin: auto 0 0; padding-top: .9rem; font-size: .82rem; color: var(--muted); }

.info-steps { margin: 1rem 0; padding-left: 0; list-style: none; counter-reset: s; }
.info-steps li { counter-increment: s; position: relative; padding: .2rem 0 .9rem 3rem; }
.info-steps li::before {
	content: counter(s); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; line-height: 2.1rem; text-align: center;
	background: var(--yellow); color: var(--ink); font-family: var(--font-num); font-weight: 700; font-size: 1.2rem; transform: skewX(-8deg);
}

.info-button { display: inline-block; padding: .75rem 1.6rem; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; border-bottom: 4px solid var(--yellow); }
.info-button:hover { background: var(--rubber-2); color: var(--yellow); }
.info-top { text-align: right; font-size: .9rem; }

@media (max-width: 860px) {
	.area-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.info-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: auto; }
	.info-table tr { border: 1px solid var(--rule); margin-bottom: .8rem; background: var(--paper); }
	.info-table th, .info-table td { border: 0; padding: .55rem .85rem; }
	.info-table tbody th { width: auto; white-space: normal; background: var(--ink); color: #fff; }
	.info-table td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); }
	.info-table .price { font-size: 1.5rem; width: auto; white-space: normal; }
	.info-table tbody tr:nth-child(even) td { background: transparent; }
	.info-table--cod td[data-label="手数料"] { border-top: 1px dashed var(--rule); }
	.info-nav a { flex: 1 1 auto; text-align: center; }
	.info-steps li { padding-left: 2.7rem; }
}

/* 案内ページ(お買い物ガイド): リード文・ポイント・お支払い方法カード */
.info-lead { background: var(--ink); color: #fff; border-left: 8px solid var(--yellow); padding: clamp(1.25rem, 3.5vw, 2.25rem); margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.info-lead .section-kicker { color: var(--yellow); }
.info-lead h2 { color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.7; margin: 0; }
.info-points { list-style: none; margin: 0; padding: 0; }
.info-points li { position: relative; padding: .2rem 0 .9rem 1.6rem; }
.info-points li::before { content: ""; position: absolute; left: 0; top: .75em; width: .7rem; height: .7rem; background: var(--yellow); transform: skewX(-18deg); }
.info-points li:last-child { padding-bottom: 0; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 1.1rem; }
.info-card { border: 1px solid var(--rule); border-top: 6px solid var(--yellow); background: #f6f6f4; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .9rem; }
.info-card__no { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; line-height: 2.2rem; text-align: center; background: var(--ink); color: var(--yellow); font-family: var(--font-num); font-weight: 700; font-size: 1.25rem; }
.info-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.info-card h3 small { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); }
@media (max-width: 860px) { .info-cards { grid-template-columns: 1fr; } }

/* 案内ページ: 銀行口座の表示 */
.info-subtitle { margin: 1.5rem 0 .8rem; padding-left: .7rem; border-left: 5px solid var(--yellow); font-size: 1.1rem; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.bank-card { border: 1px solid var(--rule); border-top: 6px solid var(--ink); background: var(--paper); padding: 1rem 1.2rem 1.2rem; }
.bank-card h4 { margin: 0 0 .6rem; font-size: 1.15rem; }
.bank-list { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--rule); }
.bank-list dt, .bank-list dd { margin: 0; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); line-height: 1.6; }
.bank-list dt { font-size: .85rem; color: var(--muted); background: #f6f6f4; white-space: nowrap; padding-right: 1rem; }
.bank-list dd { font-weight: 700; overflow-wrap: anywhere; }
.bank-card .info-box { margin-top: 1rem; }
.bank-card .info-box h5 { margin: 0 0 .3rem; font-size: .95rem; }
@media (max-width: 480px) {
	.bank-list { grid-template-columns: 1fr; }
	.bank-list dt { border-bottom: 0; padding-bottom: .1rem; }
	.bank-list dd { padding-top: .1rem; }
}

/* 案内ページ(よくあるご質問): タイヤサイズの見方・一覧・折りたたみ */
.ref { display: inline-block; min-width: 1.6em; padding: 0 .35em; background: var(--yellow); color: var(--ink); font-family: var(--font-num); font-style: normal; font-weight: 700; font-size: .95em; line-height: 1.5; text-align: center; }
.size-examples { display: grid; gap: .8rem; margin: 1.1rem 0 1.25rem; }
.size-example { background: var(--ink); color: #fff; padding: .9rem 1.2rem 1.1rem; border-left: 6px solid var(--yellow); }
.size-example__name { margin: 0 0 .5rem; font-size: .85rem; color: #b9b7af; }
.size-example__code { margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .2rem .3rem; }
.size-example .part { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; }
.size-example .part b { font-family: var(--font-num); font-size: clamp(1rem, 4.6vw, 2.4rem); line-height: 1; letter-spacing: 0; }
.size-example .part--gap { margin-left: .35rem; }
.size-example .sep { align-self: flex-start; font-family: var(--font-num); font-size: clamp(1rem, 4.6vw, 2.4rem); line-height: 1; color: #8a8880; }
.size-example .ref { font-size: .8rem; min-width: 1.5em; }
.size-legend { display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; margin: 0 0 1rem; align-items: center; }
.size-legend dt, .size-legend dd { margin: 0; padding: .3rem 0; border-bottom: 1px solid var(--rule); }
.size-legend dt { text-align: center; }
.spec-grid { list-style: none; margin: .5rem 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: .4rem; }
.spec-grid li { border: 1px solid var(--rule); background: #f6f6f4; padding: .35rem .5rem; text-align: center; line-height: 1.3; }
.spec-grid b { display: block; font-family: var(--font-num); font-size: 1.25rem; }
.spec-grid span { font-size: .9rem; }
.spec-grid small { font-size: .72rem; color: var(--muted); }
.info-details { margin: .5rem 0 1.25rem; border: 1px solid var(--rule); }
.info-details summary { cursor: pointer; padding: .7rem 1rem; font-weight: 700; background: #f6f6f4; }
.info-details[open] summary { border-bottom: 1px solid var(--rule); }
.info-details .spec-grid { margin: 0; padding: .8rem; }
.info-table--compact { max-width: 28rem; }
@media (max-width: 640px) {
	.info-table--compact tr { display: grid; grid-template-columns: 1fr 1fr; }
	.info-table--compact td::before { display: none; }
	.info-table--compact tbody td { padding: .5rem .85rem; }
}

.size-example .part-group { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.size-example .part-row { display: flex; align-items: flex-end; gap: .15rem; padding-bottom: .15rem; border-bottom: 3px solid var(--yellow); }
.size-example .group-label { font-size: .72rem; line-height: 1.3; color: #d4d2ca; }
