/* Whiskies Membership */

/* --- トップページ固定ログインボタン --- */
.wm-login-fab {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 9999;
}
.wm-login-fab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: #b8860b;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	cursor: pointer;
	list-style: none;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.18 );
}
.wm-login-fab-btn::-webkit-details-marker { display: none; }
.wm-login-fab-btn:hover { background: #a3760a; }
.wm-login-fab-panel {
	position: absolute;
	top: calc( 100% + 8px );
	right: 0;
	width: 280px;
	padding: 16px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.16 );
}
.wm-login-fab-lead {
	margin: 0 0 12px;
	font-size: 12px;
	color: #555;
	line-height: 1.5;
}
.wm-login-fab .wm-social-login { margin: 0; max-width: none; }

/* ログイン中のアカウントチップ（トップページ／ショートコード共通） */
.wm-account {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.12 );
}
.wm-account-avatar img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: block;
}
.wm-account-info {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.wm-account-name {
	font-weight: 700;
	font-size: 14px;
	color: #222;
}
.wm-account-logout {
	font-size: 12px;
	color: #888;
	text-decoration: none;
}
.wm-account-logout:hover { color: #b8860b; }

.wm-login-inline { margin: 16px 0; }

/* --- ソーシャルログインボタン --- */
.wm-social-login {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 320px;
	margin: 12px 0;
}
.wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}
.wm-btn-google {
	background: #fff;
	color: #1f1f1f;
	border-color: #dadce0;
}
.wm-btn-google .wm-icon-google {
	font-weight: 700;
	color: #4285f4;
}
.wm-btn-apple {
	background: #000;
	color: #fff;
}
.wm-btn-primary {
	background: #b8860b;
	color: #fff;
	border: none;
}

.wm-must-login {
	margin-bottom: 8px;
	font-weight: 600;
}

/* --- セットアップ画面 --- */
.wm-setup-wrap {
	max-width: 480px;
	margin: 40px auto;
	padding: 0 16px;
}
.wm-setup-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.wm-setup-form label {
	font-weight: 600;
}
.wm-setup-form input[type="text"],
.wm-setup-form input[type="file"] {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
}
.wm-error {
	background: #fde8e8;
	color: #9b1c1c;
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 12px;
}

/* --- コメントいいね＋レベル --- */
.wm-comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}
/* レベルバッジ（段位カラー＋進捗バー） */
.wm-level-badge {
	--wm-tier-1: #b8860b;
	--wm-tier-2: #8a5a00;
	--wm-progress: 0%;
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 3px 10px 5px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	border-radius: 999px;
	background: linear-gradient( 135deg, var(--wm-tier-1), var(--wm-tier-2) );
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.25 ), 0 1px 2px rgba( 0, 0, 0, 0.2 );
	letter-spacing: 0.02em;
	overflow: hidden;
}
.wm-level-num {
	position: relative;
	z-index: 1;
}
/* 下端の進捗バー: 次のレベルまでの達成率 */
.wm-level-bar {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: var(--wm-progress);
	background: rgba( 255, 255, 255, 0.85 );
	transition: width 0.4s ease;
}

/* 段位カラー */
.wm-tier-bronze { --wm-tier-1: #c8843c; --wm-tier-2: #8a4f1d; }
.wm-tier-silver { --wm-tier-1: #b9c2cc; --wm-tier-2: #7d8893; color: #1f2933; }
.wm-tier-silver .wm-level-bar { background: rgba( 31, 41, 51, 0.7 ); }
.wm-tier-gold   { --wm-tier-1: #f2c14e; --wm-tier-2: #c8940f; color: #4a2f00; }
.wm-tier-gold .wm-level-bar { background: rgba( 74, 47, 0, 0.7 ); }
.wm-tier-amber  { --wm-tier-1: #e8772e; --wm-tier-2: #b8420b; }
.wm-tier-legend {
	--wm-tier-1: #7b5cff;
	--wm-tier-2: #b8860b;
	background: linear-gradient( 120deg, #f2c14e, #e8772e, #7b5cff );
	background-size: 200% 100%;
	animation: wm-legend-shimmer 4s linear infinite;
}
@keyframes wm-legend-shimmer {
	0%   { background-position: 0% 0; }
	100% { background-position: 200% 0; }
}

/* プロフィール等の大きめ表示 */
.wm-level-badge--full {
	font-size: 14px;
	padding: 6px 14px 8px;
}
.wm-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
	color: #555;
}
.wm-like-btn:hover {
	border-color: #e25555;
}
.wm-like-btn .wm-like-heart {
	color: #ccc;
}
.wm-like-btn.is-liked {
	border-color: #e25555;
	color: #e25555;
}
.wm-like-btn.is-liked .wm-like-heart {
	color: #e25555;
}
.wm-like-btn.is-own,
.wm-like-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* --- 蒸溜所検索 --- */
.wm-dist { margin: 16px 0; font-size: 14px; }
.wm-dist-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.wm-dist-search {
	flex: 1 1 220px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}
.wm-dist-country, .wm-dist-region {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
}
.wm-dist-alpha {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 12px;
}
.wm-dist-letter {
	min-width: 28px;
	padding: 4px 6px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 5px;
	cursor: pointer;
	font-size: 13px;
	color: #555;
}
.wm-dist-letter:hover { border-color: #b8860b; color: #b8860b; }
.wm-dist-letter.is-active { background: #b8860b; color: #fff; border-color: #b8860b; }
.wm-dist-clear { color: #999; }
.wm-dist-table {
	width: 100%;
	border-collapse: collapse;
}
.wm-dist-table th, .wm-dist-table td {
	padding: 9px 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
}
.wm-dist-table th.wm-num, .wm-dist-table td.wm-num { text-align: right; }
.wm-dist-table thead th {
	border-bottom: 2px solid #ddd;
	font-weight: 700;
	color: #333;
	background: #faf8f3;
	position: sticky;
	top: 0;
}
.wm-dist-table th.wm-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.wm-dist-table th.wm-sort:hover { color: #b8860b; }
.wm-dist-table th.is-asc::after { content: " \25B2"; font-size: 10px; }
.wm-dist-table th.is-desc::after { content: " \25BC"; font-size: 10px; }
.wm-dist-table tbody tr:hover { background: #fcfaf5; }
.wm-dist-name { font-weight: 600; }
.wm-dist-count { margin-top: 10px; font-size: 13px; color: #777; }

/* 蒸溜所検索: サイト内検索フォーム */
.wm-dist-sitesearch {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
}
.wm-dist-sitesearch input[type="search"] {
	flex: 1 1 auto;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}
.wm-dist-sitesearch button {
	padding: 9px 18px;
	background: #b8860b;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 700;
}
.wm-dist-sitesearch button:hover { background: #a3760a; }
.wm-dist-empty { color: #777; padding: 12px 0; }

/* --- 蒸溜所紹介ページ（単体ページ風） --- */
.wm-dpage { padding: 8px 0; }
.wm-dprofile { display: flex; justify-content: center; padding: 16px 0; }
.wm-dprofile-card {
	width: 100%;
	max-width: 560px;
	background: #fff;
	border: 1px solid #ece8df;
	border-radius: 14px;
	padding: 32px 28px;
	text-align: center;
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.06 );
}
.wm-dprofile-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: #b8860b;
	border-radius: 999px;
	padding: 3px 12px;
	margin-bottom: 12px;
}
.wm-dprofile-name { font-size: 26px; margin: 0 0 16px; }
.wm-dprofile-meta { color: #777; font-size: 13px; margin: 4px 0 0; }
.wm-dprofile-desc { color: #444; font-size: 14px; line-height: 1.7; margin: 16px 0; text-align: left; }
.wm-dprofile-btn { display: inline-block; margin-top: 20px; padding: 12px 24px; border-radius: 8px; text-decoration: none; }

/* 評価（★） */
.wm-dprofile-rating { margin: 8px 0 4px; }
.wm-rate { display: inline-flex; gap: 2px; }
.wm-star {
	background: none;
	border: none;
	font-size: 30px;
	line-height: 1;
	color: #ddd;
	cursor: pointer;
	padding: 0 2px;
	transition: color 0.1s;
}
.wm-star.is-on { color: #f2b01e; }
.wm-star.is-hover { color: #f7c948; }
.wm-rate-summary { margin: 6px 0 0; font-size: 14px; color: #555; }
.wm-rate-avg { font-weight: 700; font-size: 18px; color: #b8860b; }
.wm-rate-count { color: #999; font-size: 12px; }
.wm-rate-login { font-size: 12px; color: #999; margin: 4px 0 0; }
.wm-rate.is-saving { opacity: 0.6; }

/* ボトル一覧 */
.wm-dbottles { max-width: 1140px; margin: 0 auto; }
.wm-dback a { color: #b8860b; text-decoration: none; font-size: 14px; }
.wm-dbottles-title { font-size: 22px; margin: 8px 0 18px; }
.wm-bottle-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; }
.wm-bottle-item a { display: block; text-decoration: none; color: #333; text-align: center; padding: 12px; border: 1px solid #eee; border-radius: 10px; }
.wm-bottle-item a:hover { border-color: #b8860b; }
.wm-bottle-thumb { max-width: 100%; height: auto; border-radius: 6px; }
.wm-bottle-name { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.wm-dist-rating-cell .wm-mini-avg { font-weight: 700; color: #b8860b; }

/* --- 蒸溜所紹介ページ v2 --- */
.wm-dprofile2 { max-width: 760px; margin: 0 auto; }
.wm-dhero { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; padding: 8px 0 20px; }
.wm-dphoto { flex: 0 0 280px; max-width: 280px; }
.wm-dphoto-img { width: 100%; height: auto; border-radius: 12px; display: block; }
.wm-dphoto-empty { height: 200px; background: #f3efe6; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #b6ad97; font-size: 13px; }
.wm-dhead { flex: 1 1 280px; }
.wm-dhead .wm-dprofile-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: #b8860b; border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; }
.wm-dhead .wm-dprofile-name { font-size: 26px; margin: 0 0 10px; }
.wm-dscore { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.wm-dscore-avg { font-size: 34px; font-weight: 800; color: #b8860b; line-height: 1; }
.wm-dscore-max { font-size: 14px; color: #999; }
.wm-dscore-count { font-size: 12px; color: #999; margin-left: 6px; }
.wm-dprofile-meta { color: #777; font-size: 13px; margin: 2px 0 12px; }
.wm-dprofile-btn { display: inline-block; padding: 10px 20px; border-radius: 8px; text-decoration: none; }
.wm-dsection { padding: 18px 0; border-top: 1px solid #eee; }
.wm-dsection-title { font-size: 18px; margin: 0 0 12px; }
.wm-ddesc { font-size: 14px; line-height: 1.8; color: #444; }
.wm-timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.wm-tl-item { position: relative; padding: 0 0 16px 24px; border-left: 2px solid #e7ddc4; }
.wm-tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.wm-tl-item::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #b8860b; }
.wm-tl-year { display: inline-block; font-weight: 700; color: #b8860b; min-width: 64px; }
.wm-tl-event { color: #444; }
.wm-review-form { background: #faf8f3; border: 1px solid #ece6d8; border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.wm-review-score-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wm-review-score-row label { font-weight: 600; font-size: 14px; }
.wm-review-score-row input { width: 90px; padding: 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
.wm-review-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; box-sizing: border-box; margin-bottom: 10px; }
.wm-review-form .wm-btn-primary { padding: 10px 22px; border-radius: 8px; cursor: pointer; }
.wm-review-login { background: #faf8f3; border: 1px solid #ece6d8; border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.wm-review-msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.wm-review-ok { background: #e8f5e9; color: #2e7d32; }
.wm-review-err { background: #fde8e8; color: #9b1c1c; }
.wm-review-list { list-style: none; margin: 0; padding: 0; }
.wm-review-empty { color: #999; font-size: 14px; padding: 10px 0; }
.wm-review-item { padding: 14px 0; border-bottom: 1px solid #eee; }
.wm-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wm-review-avatar img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.wm-review-author { font-weight: 700; font-size: 14px; }
.wm-review-score { background: #b8860b; color: #fff; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 2px 10px; }
.wm-review-date { color: #aaa; font-size: 12px; margin-left: auto; }
.wm-review-body { font-size: 14px; line-height: 1.7; color: #333; white-space: pre-wrap; }
@media (max-width: 600px) { .wm-dphoto { flex-basis: 100%; max-width: 100%; } }

/* --- 蒸溜所紹介ページ v3（横長バナー） --- */
.wm-dbanner {
	position: relative;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	margin: 8px 0 18px;
	min-height: 160px;
	background: #2a1d12;
}
.wm-dbanner-img { width: 100%; height: auto; display: block; max-height: 360px; object-fit: cover; }
.wm-dbanner-empty { display: flex; align-items: center; justify-content: center; min-height: 200px; background: linear-gradient(135deg,#3a2a1a,#5a4023); }
.wm-dbanner-ph { color: #b6a385; font-size: 13px; }
.wm-dbanner-overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 28px 24px 18px;
	background: linear-gradient( to top, rgba(0,0,0,0.65), rgba(0,0,0,0) );
}
.wm-dbanner-overlay .wm-dprofile-badge { display:inline-block; font-size:12px; font-weight:700; color:#fff; background:#b8860b; border-radius:999px; padding:3px 12px; margin-bottom:8px; }
.wm-dbanner-overlay .wm-dprofile-name { color:#fff; font-size:30px; margin:0; text-shadow:0 1px 4px rgba(0,0,0,0.5); }

.wm-dtop { display:flex; gap:24px; flex-wrap:wrap; align-items:flex-start; padding-bottom:8px; }
.wm-dtop-main { flex:1 1 320px; }
.wm-dtop-side { flex:0 0 200px; text-align:center; background:#faf8f3; border:1px solid #ece6d8; border-radius:12px; padding:16px; }
.wm-doverview { font-size:15px; line-height:1.8; color:#444; margin:0 0 14px; }
.wm-dspecs { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; margin:0; }
.wm-dspec { background:#faf8f3; border:1px solid #ece6d8; border-radius:8px; padding:8px 12px; }
.wm-dspec dt { font-size:11px; color:#998; margin:0 0 2px; }
.wm-dspec dd { font-size:15px; font-weight:700; color:#333; margin:0; }
.wm-dtop-side .wm-dscore { justify-content:center; }
.wm-dtop-side .wm-dscore-avg { font-size:38px; }
.wm-dtop-side .wm-dscore-count { margin:2px 0 8px; }
.wm-dtop-side .wm-dprofile-btn { display:inline-block; width:100%; box-sizing:border-box; padding:10px 0; border-radius:8px; text-decoration:none; }
@media (max-width:600px){ .wm-dtop-side{ flex-basis:100%; } }

/* ============================================================
   v1.3.1 追加
   ============================================================ */

/* --- サイト上部の「Whisky」ヘッダーを全ページ非表示 --- */
#header-container,
#header,
.header-container,
#site-title,
.site-name,
.site-name-text {
	display: none !important;
}
/* 固定アカウントチップが上端に被らないよう本文に余白 */
#wrapper,
#main,
.wrap {
	margin-top: 0 !important;
}

/* --- 全ページ右上のアカウント／ログイン固定チップ --- */
.wm-login-fab {
	position: fixed;
	top: 14px;
	right: 16px;
	z-index: 9999;
}

/* --- 蒸溜所紹介ページ: 目立つボトル一覧CTA --- */
.wm-dcta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0 4px;
	padding: 16px 22px;
	border-radius: 12px;
	background: linear-gradient(135deg, #8a5a1c 0%, #b9842f 100%);
	color: #fff !important;
	font-weight: 700;
	font-size: 1.08rem;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(138, 90, 28, 0.32);
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.wm-dcta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(138, 90, 28, 0.42);
	filter: brightness(1.05);
	color: #fff !important;
}
.wm-dcta-count {
	font-weight: 600;
	opacity: .9;
	margin-left: 6px;
	font-size: .95em;
}
.wm-dcta-arrow {
	font-size: 1.4rem;
	line-height: 1;
	flex: 0 0 auto;
}

/* --- フォローボックス（「◯◯をフォローする」）を全ページ非表示 --- */
.sns-follow,
.follow-message,
.author-box .sns-follow,
#follow-buttons {
	display: none !important;
}

/* --- 蒸溜所プロフィール: 英語正式名称（バナー名の下） --- */
.wm-dprofile-enname {
	margin: 4px 0 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, 0.88);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* --- ボトル一覧のカテゴリー（現行 / ボトラーズ / その他） --- */
.wm-bcat {
	margin: 0 0 18px;
	border: 1px solid #e7ded2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.wm-bcat-sum {
	list-style: none;
	cursor: pointer;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 1.05rem;
	background: linear-gradient(135deg, #6b4423 0%, #8a5a1c 100%);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
}
.wm-bcat-sum::-webkit-details-marker { display: none; }
.wm-bcat-sum::before {
	content: "\25B6";
	font-size: .8em;
	transition: transform .15s ease;
}
.wm-bcat[open] > .wm-bcat-sum::before { transform: rotate(90deg); }
.wm-bcat-current > .wm-bcat-sum { background: linear-gradient(135deg, #2e7d4f 0%, #3fa066 100%); }
.wm-bcat-count {
	font-size: .8rem;
	font-weight: 600;
	background: rgba(255,255,255,0.25);
	border-radius: 999px;
	padding: 1px 9px;
}
.wm-bcat > .wm-dist,
.wm-bcat-sub { padding: 12px 16px 4px; }
.wm-bcat-subtitle {
	margin: 6px 0 4px;
	font-size: 1rem;
	font-weight: 700;
	color: #6b4423;
	display: flex;
	align-items: center;
	gap: 8px;
	border-left: 4px solid #b9842f;
	padding-left: 10px;
}
.wm-bcat-subtitle .wm-bcat-count {
	background: #b9842f;
	color: #fff;
}
.wm-bcat-sub { padding-top: 4px; }

/* --- ボトル一覧: 全カテゴリーで列幅を揃える（固定レイアウト・銘柄名を広く） --- */
.wm-bottle-table {
	table-layout: fixed;
	width: 100%;
}
.wm-bottle-table th:nth-child(1), .wm-bottle-table td:nth-child(1) { width: 30%; }  /* 銘柄名 */
.wm-bottle-table th:nth-child(2), .wm-bottle-table td:nth-child(2) { width: 9%; }   /* 熟成年数 */
.wm-bottle-table th:nth-child(3), .wm-bottle-table td:nth-child(3) { width: 9%; }   /* 蒸溜年 */
.wm-bottle-table th:nth-child(4), .wm-bottle-table td:nth-child(4) { width: 12%; }  /* 発売時期 */
.wm-bottle-table th:nth-child(5), .wm-bottle-table td:nth-child(5) { width: 15%; }  /* タイプ */
.wm-bottle-table th:nth-child(6), .wm-bottle-table td:nth-child(6) { width: 14%; }  /* アルコール度数 */
.wm-bottle-table th:nth-child(7), .wm-bottle-table td:nth-child(7) { width: 11%; }  /* 評価 */
.wm-bottle-table .wm-dist-name {
	white-space: normal;
	word-break: break-word;
}

/* --- v1.4.2 ボトル一覧: 短縮ヘッダーに合わせ列幅調整＋1行表示 --- */
.wm-bottle-table th:nth-child(1), .wm-bottle-table td:nth-child(1) { width: 26%; }  /* 銘柄名 */
.wm-bottle-table th:nth-child(2), .wm-bottle-table td:nth-child(2) { width: 9%; }   /* 年数 */
.wm-bottle-table th:nth-child(3), .wm-bottle-table td:nth-child(3) { width: 9%; }   /* 蒸溜年 */
.wm-bottle-table th:nth-child(4), .wm-bottle-table td:nth-child(4) { width: 13%; }  /* 発売 */
.wm-bottle-table th:nth-child(5), .wm-bottle-table td:nth-child(5) { width: 17%; }  /* タイプ */
.wm-bottle-table th:nth-child(6), .wm-bottle-table td:nth-child(6) { width: 13%; }  /* 度数 */
.wm-bottle-table th:nth-child(7), .wm-bottle-table td:nth-child(7) { width: 13%; }  /* 評価 */
.wm-bottle-table th, .wm-bottle-table td { white-space: nowrap; }
.wm-bottle-table .wm-dist-name { white-space: normal; word-break: break-word; }

/* --- v1.4.3 銘柄名を広げ、発売・度数・評価を縮小 --- */
.wm-bottle-table th:nth-child(1), .wm-bottle-table td:nth-child(1) { width: 35%; }  /* 銘柄名 */
.wm-bottle-table th:nth-child(4), .wm-bottle-table td:nth-child(4) { width: 10%; }  /* 発売 */
.wm-bottle-table th:nth-child(6), .wm-bottle-table td:nth-child(6) { width: 10%; }  /* 度数 */
.wm-bottle-table th:nth-child(7), .wm-bottle-table td:nth-child(7) { width: 10%; }  /* 評価 */

/* --- 蒸溜所プロフィール: 公式サイトリンク --- */
.wm-dlinks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.wm-dlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid #b9842f;
	border-radius: 999px;
	color: #6b4423 !important;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none !important;
	background: #fff;
	transition: background .12s ease, color .12s ease;
}
.wm-dlink:hover {
	background: #b9842f;
	color: #fff !important;
}

/* --- 全ページ左上: ホーム導線＋サイト内検索 --- */
.wm-utilitybar {
	position: fixed;
	top: 14px;
	left: 16px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #e7ded2;
	border-radius: 999px;
	padding: 4px 6px 4px 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.wm-home-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #6b4423;
	color: #fff !important;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}
.wm-home-btn:hover { background: #8a5a1c; color: #fff !important; }
.wm-site-search { display: flex; align-items: center; }
.wm-site-search input {
	border: 1px solid #d8cab3;
	border-radius: 999px 0 0 999px;
	padding: 5px 12px;
	font-size: .85rem;
	width: 150px;
	outline: none;
}
.wm-site-search button {
	border: 1px solid #b9842f;
	border-left: none;
	background: #b9842f;
	color: #fff;
	border-radius: 0 999px 999px 0;
	padding: 5px 11px;
	cursor: pointer;
	font-size: .85rem;
}
.wm-site-search button:hover { background: #a3760a; }
@media (max-width: 700px) {
	.wm-utilitybar { position: static; margin: 10px auto; justify-content: center; width: fit-content; }
	.wm-site-search input { width: 120px; }
}

/* --- ホーム: 固定の検索バーと重ならないようカバーを下げる --- */
body.home #content { padding-top: 90px; }
@media (max-width: 700px) {
	body.home #content { padding-top: 0; }
}

/* ============================================================
   v1.5.0 全ページ共通の上部バー
   ============================================================ */
.wm-topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 99999;
	background: linear-gradient(90deg, #3a2414 0%, #5c3a1c 100%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
body { padding-top: 56px; }
body.admin-bar .wm-topbar { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .wm-topbar { top: 46px; } }

.wm-topbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	min-height: 56px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 16px;
}
.wm-tb-brand {
	display: inline-flex; align-items: center; gap: 6px;
	color: #f5e6c8 !important; font-weight: 800; font-size: 1.05rem;
	text-decoration: none !important; white-space: nowrap;
}
.wm-tb-nav { display: flex; align-items: center; gap: 4px; }
.wm-tb-nav a {
	color: #f0e3cf !important; text-decoration: none !important;
	font-weight: 600; font-size: .92rem; padding: 7px 12px; border-radius: 8px; white-space: nowrap;
}
.wm-tb-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff !important; }
.wm-tb-search { display: flex; align-items: center; margin-left: auto; }
.wm-tb-search input {
	border: 1px solid #8a6d4a; border-radius: 999px 0 0 999px;
	padding: 6px 12px; font-size: .88rem; width: 180px; outline: none; background: #fff;
}
.wm-tb-search button {
	border: 1px solid #c79a4a; border-left: none; background: #c79a4a; color: #3a2414;
	border-radius: 0 999px 999px 0; padding: 6px 12px; cursor: pointer;
}
.wm-tb-search button:hover { background: #d8ab59; }
.wm-tb-account { display: flex; align-items: center; }
.wm-tb-account .wm-account { background: transparent; border: none; box-shadow: none; padding: 0; }
.wm-tb-account .wm-account-name { color: #fff; }
.wm-tb-account .wm-account-logout { color: #f0d9b0 !important; }

.wm-tb-login { position: relative; }
.wm-tb-login-btn {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
	background: #c79a4a; color: #3a2414; font-weight: 700; font-size: .9rem;
	padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.wm-tb-login-btn::-webkit-details-marker { display: none; }
.wm-tb-login[open] .wm-tb-login-btn { background: #d8ab59; }
.wm-tb-login-panel {
	position: absolute; right: 0; top: calc(100% + 8px); width: 280px;
	background: #fff; border: 1px solid #e0d0bc; border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); padding: 14px; z-index: 100000;
}
.wm-tb-login-panel .wm-login-fab-lead { font-size: .8rem; color: #6b4423; margin: 0 0 10px; }

/* 旧: ホーム個別余白は不要（バー分は body padding で確保） */
body.home #content { padding-top: 0; }

@media (max-width: 820px) {
	.wm-topbar-inner { flex-wrap: wrap; gap: 6px 10px; }
	.wm-tb-search input { width: 140px; }
	.wm-tb-nav a { padding: 6px 9px; font-size: .85rem; }
	body { padding-top: 96px; }
}
@media (max-width: 600px) {
	.wm-topbar-inner { flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px; min-height: 0; }
	body { padding-top: 128px; }
	/* 1行目: サイト名（左） + ログイン/アカウント（右） */
	.wm-tb-brand { order: 1; font-size: 1rem; }
	.wm-tb-account { order: 2; margin-left: auto; }
	/* 2行目: ナビ（横一列・入りきらなければ横スクロールで高さを一定に保つ） */
	.wm-tb-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px 4px; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
	.wm-tb-nav a { flex: 0 0 auto; padding: 5px 8px; font-size: .82rem; }
	/* 3行目: 検索（全幅） */
	.wm-tb-search { order: 4; margin-left: 0; flex: 1 1 100%; }
	.wm-tb-search input { width: 100%; }

	/* ログインパネル（Google/Appleボタン）が画面外に切れないよう、トップバー全幅に合わせて表示 */
	.wm-tb-login { position: static; }
	.wm-tb-login-panel {
		position: absolute;
		top: 100%;
		left: 12px;
		right: 12px;
		width: auto;
		max-width: none;
		box-sizing: border-box;
	}
}

/* ===== 銘柄テーブルのスマホ表示（横スクロール。文字は折り返さず実サイズで全表示し、切れ・はみ出しを防ぐ） ===== */
@media (max-width: 600px) {
	.wm-bottle-dist { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.wm-bottle-table { width: auto; min-width: 100%; font-size: .9em; }
	.wm-bottle-table th, .wm-bottle-table td { white-space: nowrap; padding: 7px 10px; }
	.wm-bottle-table .wm-dist-name a { white-space: nowrap; }
}
