html {
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
}

.brand-page {
  --brand-black: #111;
  --brand-dark: #222;
  --brand-gray: #666;
  --brand-light-gray: #f5f5f5;
  --brand-border: #ddd;
  --brand-white: #fff;
  --brand-accent: #000;
  --brand-image-frame: #ebebeb;

  color: var(--brand-dark);
  font-family: inherit;
  line-height: 1.9;
}

.brand-page * {
  box-sizing: border-box;
}

.brand-section {
  margin: 0 auto 64px;
  max-width: 1080px;
}

/* ヒーロー直下〜本文：ビューポート端との隙間をそろえる（フルブリード締めは除外） */
.brand-section:not(.brand-closing) {
  padding-inline: clamp(18px, 4.5vw, 32px);
}

.brand-section:last-child {
  margin-bottom: 0;
}

.brand-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-title {
  margin: 0 0 24px;
  color: var(--brand-black);
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.brand-heading {
  margin: 0 0 28px;
  color: var(--brand-black);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.brand-subheading {
  margin: 0 0 16px;
  color: var(--brand-black);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.brand-text {
  margin: 0 0 22px;
  font-size: 16px;
}

.brand-text:last-child {
  margin-bottom: 0;
}

.brand-lead {
  font-size: 17px;
  line-height: 2;
}

/* 画像なし: 従来のプレースホルダー */
.brand-image-placeholder:not(:has(img)) {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(
      -45deg,
      #eeeeee,
      #eeeeee 10px,
      #e4e4e4 10px,
      #e4e4e4 20px
    );
  color: #777;
  border: 1px solid var(--brand-border);
}

.brand-image-placeholder:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.brand-image-placeholder span {
  position: relative;
  z-index: 2;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #555;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* 画像あり: トリミングせず縦横比を維持（PC/SPで同一比率の素材を置く想定） */
.brand-image-placeholder:has(img) {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  background: var(--brand-image-frame);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.brand-image-placeholder:has(img)::before {
  display: none;
}

.brand-image-placeholder > picture,
.brand-image-placeholder > img {
  display: block;
  width: 100%;
  margin: 0;
}

.brand-image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-image-placeholder--hero:not(:has(img)) {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.16) 10px,
      rgba(255, 255, 255, 0.08) 10px,
      rgba(255, 255, 255, 0.08) 20px
    );
  border-color: rgba(255, 255, 255, 0.22);
}

.brand-image-placeholder--hero:not(:has(img))::before {
  border-color: rgba(255, 255, 255, 0.22);
}

.brand-image-placeholder--hero:not(:has(img)) span {
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.86);
}

.brand-image-placeholder--hero:has(img) {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

/* ヒーロー内フルブリード（brand-hero-media）では下記で上書き */

.brand-image-placeholder--wide:not(:has(img)) {
  min-height: 280px;
  margin-top: 36px;
}

.brand-image-placeholder--wide:has(img) {
  margin-top: 36px;
}

.brand-image-placeholder--product:not(:has(img)) {
  min-height: 360px;
}

.brand-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 72px;
  padding: 0;
  min-height: clamp(400px, 68vh, 720px);
  background: #141414;
  color: var(--brand-white);
}

/* 文字の可読性：全面グラデ（左〜右でメインコピー側を確保） */
.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.91) 0%,
    rgba(0, 0, 0, 0.72) 28%,
    rgba(0, 0, 0, 0.38) 58%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.brand-hero::after {
  content: attr(data-brand-name);
  position: absolute;
  right: -12px;
  bottom: -18px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.06);
  font-size: clamp(56px, 13vw, 160px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.brand-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brand-hero-media .brand-image-placeholder--hero {
  position: absolute;
  inset: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #111;
}

.brand-hero-media .brand-image-placeholder--hero:has(img) {
  box-shadow: none;
  background: #111;
}

.brand-hero-media .brand-image-placeholder > picture,
.brand-hero-media .brand-image-placeholder > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-hero-media .brand-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-hero-layout {
  position: relative;
  z-index: 3;
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 52px);
}

@media (min-width: 901px) {
  .brand-hero-layout {
    align-items: center;
    min-height: clamp(400px, 68vh, 720px);
  }
}

.brand-hero-inner {
  max-width: min(38rem, 92vw);
}

.brand-hero .brand-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.brand-hero .brand-title {
  color: var(--brand-white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.brand-hero .brand-lead {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.brand-hero-copy {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.brand-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
}

.brand-card--gray {
  background: var(--brand-light-gray);
  border: none;
}

.brand-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.brand-story-text {
  max-width: 860px;
}

@media (min-width: 901px) {
  /* 左に大きくビジュアル、右にストーリー（編集デザイン・インパクト重視） */
  .brand-story-layout {
    grid-template-columns: minmax(340px, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: stretch;
  }

  .brand-story-layout .brand-story-text {
    padding-top: 4px;
    max-width: none;
  }

  .brand-story-layout .brand-image-placeholder--wide {
    order: -1;
    margin-top: 0;
    align-self: stretch;
  }

  .brand-story-layout .brand-image-placeholder--wide:has(img) {
    position: relative;
    min-height: min(620px, 78vh);
    overflow: hidden;
  }

  .brand-story-layout .brand-image-placeholder--wide:has(img) > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

.brand-data-section {
  padding: clamp(32px, 5vw, 48px);
  background: var(--brand-light-gray);
}

.brand-data-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.brand-data-head .brand-heading {
  margin-bottom: 0;
}

.brand-data-lead {
  margin: 0;
  color: var(--brand-gray);
  font-size: 15px;
  line-height: 1.9;
}

.brand-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-data-card {
  min-height: 122px;
  padding: 18px 18px 20px;
  background: var(--brand-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.brand-data-label {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-gray);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-data-value {
  display: block;
  color: var(--brand-black);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.brand-data-card--wide {
  grid-column: span 2;
}

.brand-data-card--full {
  grid-column: span 4;
  min-height: auto;
}

.brand-data-note {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-gray);
  font-size: 14px;
  line-height: 1.9;
}

.brand-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.brand-feature-card {
  padding: 32px 28px;
  background: var(--brand-light-gray);
}

.brand-feature-number {
  display: block;
  margin-bottom: 20px;
  color: var(--brand-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-feature-card .brand-subheading {
  min-height: 60px;
}

.brand-reason-list {
  display: grid;
  gap: 20px;
}

.brand-reason-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--brand-border);
}

.brand-reason-item:first-child {
  border-top: 1px solid var(--brand-border);
}

.brand-reason-label {
  color: var(--brand-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-product-box {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
  padding: clamp(32px, 5vw, 56px);
  background: var(--brand-light-gray);
}

/* 商品写真とおすすめポイントを並列（PC）。本文ブロックはその上に全幅 */
.brand-product-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}

.brand-product-split > .brand-image-placeholder:has(img) {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
}

.brand-product-split > .brand-card {
  align-self: stretch;
}

@media (min-width: 901px) {
  .brand-product-split > .brand-image-placeholder:has(img) img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.brand-product-points {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.brand-product-points li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}

.brand-product-points li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--brand-black);
}

.brand-type-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.brand-type-card {
  padding: 24px 20px;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
}

.brand-type-card h3 {
  margin: 0 0 10px;
  color: var(--brand-black);
  font-size: 17px;
  font-weight: 700;
}

.brand-type-card p {
  margin: 0;
  color: var(--brand-gray);
  font-size: 14px;
  line-height: 1.8;
}

.brand-closing {
  padding: clamp(40px, 6vw, 72px);
  background: var(--brand-black);
  color: var(--brand-white);
  text-align: center;
}

.brand-closing .brand-heading {
  color: var(--brand-white);
}

.brand-closing .brand-text {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.9);
}

.brand-cta-wrap {
  margin-top: 36px;
}

.brand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 16px 28px;
  background: var(--brand-white);
  color: var(--brand-black);
  border: 1px solid var(--brand-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: 0.25s ease;
  color: #000;
}
.brand-cta:visited,
.brand-cta:link {
  text-decoration: none;
  color: #000;
}

.brand-cta:hover {
  background: transparent;
  color: var(--brand-white);
}

@media (max-width: 1024px) {
  .brand-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-data-card--full {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  /* ストーリー画像の 100vw が横スクロールを出さないように */
  .brand-page {
    overflow-x: clip;
  }

  /* SP: メインビジュアルは上部・横幅100%、その下にコピー（全面オーバーレイなし） */
  .brand-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .brand-hero::before {
    display: none;
  }

  .brand-hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    flex: 0 0 auto;
  }

  .brand-hero-media .brand-image-placeholder--hero {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
    min-height: min(216px, 38vw);
    background: #111;
  }

  .brand-hero-media .brand-image-placeholder > picture,
  .brand-hero-media .brand-image-placeholder > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .brand-hero-media .brand-image-placeholder img {
    object-fit: cover;
    object-position: center top;
  }

  .brand-hero-layout {
    flex: 1 1 auto;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding-top: clamp(20px, 5vw, 36px);
    padding-bottom: clamp(26px, 6vw, 44px);
  }

  .brand-hero .brand-title,
  .brand-hero .brand-lead {
    text-shadow: none;
  }

  .brand-section {
    margin-bottom: 36px;
  }

  .brand-section:not(.brand-closing) {
    padding-inline: clamp(14px, 4vw, 20px);
  }

  .brand-image-placeholder--wide:has(img) {
    margin-top: 0;
  }

  .brand-story-layout {
    gap: 22px;
  }

  /* ストーリー画像：セクションの横パディングを突き抜けてビューポート幅いっぱいに */
  .brand-story-layout .brand-image-placeholder--wide {
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-left: none;
    border-right: none;
  }

  .brand-story-layout .brand-image-placeholder--wide:has(img) > img {
    position: static;
    width: 100%;
    height: auto;
    display: block;
  }

  .brand-hero-copy {
    margin-top: 16px;
    padding-left: 18px;
  }

  .brand-page .brand-title {
    margin-bottom: 16px;
  }

  .brand-page .brand-heading {
    margin-bottom: 18px;
  }

  .brand-page .brand-subheading {
    margin-bottom: 10px;
  }

  .brand-page .brand-text {
    margin-bottom: 14px;
  }

  .brand-page .brand-eyebrow {
    margin-bottom: 8px;
  }

  .brand-data-section {
    padding: clamp(20px, 3.8vw, 32px);
  }

  .brand-data-head {
    gap: 18px;
    margin-bottom: 18px;
  }

  .brand-data-grid {
    gap: 10px;
  }

  .brand-data-card {
    min-height: 0;
    padding: 14px 14px 16px;
  }

  .brand-data-note {
    margin-top: 14px;
    padding-top: 14px;
  }

  .brand-feature-grid {
    gap: 14px;
  }

  .brand-feature-card {
    padding: 20px 16px;
  }

  .brand-feature-number {
    margin-bottom: 12px;
  }

  .brand-reason-list {
    gap: 12px;
  }

  .brand-reason-item {
    gap: 16px;
    padding: 18px 0;
  }

  .brand-product-box {
    gap: clamp(16px, 2.8vw, 24px);
    padding: clamp(20px, 3.6vw, 36px);
  }

  .brand-product-points {
    margin-top: 14px;
  }

  .brand-type-list {
    gap: 10px;
  }

  .brand-type-card {
    padding: 16px 12px;
  }

  .brand-closing {
    padding: clamp(24px, 4.5vw, 40px);
  }

  .brand-cta-wrap {
    margin-top: 20px;
  }

  .brand-card {
    padding: clamp(18px, 3.2vw, 28px);
  }

  .brand-product-split {
    grid-template-columns: 1fr;
    gap: clamp(14px, 3vw, 22px);
  }

  .brand-data-head {
    grid-template-columns: 1fr;
  }

  .brand-feature-grid {
    grid-template-columns: 1fr;
  }

  .brand-feature-card .brand-subheading {
    min-height: auto;
  }

  .brand-type-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .brand-hero {
    margin-bottom: 36px;
  }

  .brand-hero-layout {
    padding: clamp(22px, 7vw, 36px) clamp(14px, 4vw, 18px);
  }

  .brand-hero-copy {
    padding-left: 12px;
  }

  .brand-section {
    margin-bottom: 32px;
  }

  .brand-card,
  .brand-feature-card,
  .brand-product-box,
  .brand-closing,
  .brand-data-section {
    padding: 20px 16px;
  }

  .brand-image-placeholder:not(:has(img)) {
    min-height: 220px;
  }

  .brand-image-placeholder--hero:not(:has(img)) {
    min-height: 280px;
  }

  .brand-reason-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-type-list,
  .brand-data-grid {
    grid-template-columns: 1fr;
  }

  .brand-data-card,
  .brand-data-card--wide,
  .brand-data-card--full {
    grid-column: auto;
    min-height: auto;
  }

  .brand-cta {
    width: 100%;
    min-width: auto;
  }
}

/* WordPress (lucanor2017_brand) */
body.brand2026-detail #header {
  display: block;
}

body.brand2026-detail #pageBody {
  padding-top: 60px;
}

@media (min-width: 769px) {
  body.brand2026-detail #pageBody {
    padding-top: 80px;
  }
}

body.brand2026-detail #contents.brand2026-contents {
  max-width: none;
  width: 100%;
  padding: 0 0 40px 0;
  text-align: left;
}

body.brand2026-detail #pageBody .brand-page {
  text-align: left;
}