@charset "utf-8";

/* ============================================================
   商品・コンテンツページ共通（リニューアル）
   common-renewal の上に載せる本文スタイル
   ============================================================ */

.item-page {
  padding-bottom: var(--space-section);
  background: var(--color-bg);
}

.item-page__hero {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.item-page__hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
}

.item-page__hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.item-page__hero-copy .item-page__lead {
  max-width: 36em;
}

.item-page__hero-inner .svc-sample,
.item-page__hero-inner .bc-sample {
  flex: 0 0 auto;
  width: 200px;
  margin: 4px 0 0;
}

.item-page__hero-inner .svc-sample img,
.item-page__hero-inner .bc-sample img {
  max-height: 140px;
}

.company-landmark {
  margin: 0;
  flex: 0 0 auto;
  width: 140px;
}

.company-landmark img {
  display: block;
  width: 100%;
  height: auto;
}

.page-company .item-page__hero-inner {
  justify-content: flex-start;
  gap: 28px 32px;
}

@media (max-width: 720px) {
  .item-page__hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .item-page__hero-inner .svc-sample,
  .item-page__hero-inner .bc-sample {
    width: 160px;
    align-self: flex-end;
  }

  .company-landmark {
    align-self: flex-start;
    width: 96px;
  }
}

.item-page__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.item-page__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-black);
  letter-spacing: 0.02em;
}

.item-page__title span {
  display: block;
  margin-top: 6px;
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.item-page__lead {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-sub);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.item-page__body {
  padding-top: 40px;
}

.item-page__body > .container > :first-child {
  margin-top: 0;
}

.item-page__body h2 {
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--color-black);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-black);
}

.item-page__body h2 span {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  vertical-align: middle;
}

.item-page__body h3 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
}

.item-page__body p {
  margin: 0 0 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.item-page__body ul:not([class]) {
  margin: 0 0 20px;
  padding-left: 1.2em;
  list-style: disc;
}

.item-page__body ul:not([class]) li {
  margin-bottom: 6px;
}

.item-page__body img {
  display: block;
  margin: 16px auto;
}

.item-page__body a {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.item-page__body a:hover {
  color: var(--color-text-sub);
}

.item-page__body a.btn,
.item-page__body a.btn--solid,
.item-page__body a.news__nav-link {
  text-decoration: none;
}

.item-page__body a.btn--solid {
  color: #ffffff;
}

.item-page__body a.btn--solid:hover {
  color: #ffffff;
}

.item-page__body a.news__nav-link:hover {
  color: #ffffff;
}

/* Tables */
.item-page__body table,
.item-page__body .ta1,
.item-page__body .content_tableB {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-size: 14px;
  background: var(--color-bg);
}

.item-page__body table caption {
  caption-side: top;
  margin-bottom: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--color-text-muted);
}

.item-page__body th,
.item-page__body td {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.item-page__body th {
  width: 28%;
  background: var(--color-bg-sub);
  font-weight: 600;
  color: var(--color-black);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .item-page__body th {
    width: 34%;
    white-space: normal;
  }
}

/* Gallery grids from legacy */
.item-page__body .list-square {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 0 0 28px;
}

.item-page__body .list-square .list {
  flex: 0 1 180px;
  margin: 0 !important;
}

.item-page__body .list-square img {
  margin: 0;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border-light);
}

.item-page__body .brF,
.item-page__body .brL,
.item-page__body .brS {
  margin: 20px 0;
}

.item-page__body .brF img,
.item-page__body .brL img {
  width: 100%;
  max-width: 1000px;
}

.item-page__body .center {
  text-align: center;
}

.item-page__body .grey-marker {
  margin: 12px 0 24px;
  padding: 14px 16px;
  background: var(--color-bg-warm-alt);
  border-left: 3px solid var(--color-border);
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.item-page__body .tabletitle {
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
}

.item-page__body .description {
  margin: 0 0 16px;
  padding-left: 1.1em;
  list-style: disc;
}

.item-page__body .f-r {
  color: #b33;
  font-weight: 600;
}

.item-page__body .mb15 { margin-bottom: 15px !important; }
.item-page__body .mb20 { margin-bottom: 20px !important; }
.item-page__body .mb30 { margin-bottom: 30px !important; }
.item-page__body .mt20 { margin-top: 20px !important; }
.item-page__body .mt25 { margin-top: 25px !important; }
.item-page__body .mt30 { margin-top: 30px !important; }
.item-page__body .ml15 { margin-left: 0 !important; }
.item-page__body .mr15 { margin-right: 0 !important; }
.item-page__body .ml20 { margin-left: 0 !important; }
.item-page__body .mr20 { margin-right: 0 !important; }

/* Tabs (legacy CSS radio tabs, restyled) */
.item-page__body .tab_container {
  margin: 28px 0;
}

.item-page__body .tab_item {
  display: inline-block;
  margin: 0 4px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-bottom: none;
  background: var(--color-bg-sub);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
}

.item-page__body input[name="tab_item"] {
  display: none;
}

.item-page__body .tab_content {
  display: none;
  padding: 24px 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.item-page__body #tab1:checked ~ #tab1_content,
.item-page__body #tab2:checked ~ #tab2_content,
.item-page__body #tab3:checked ~ #tab3_content,
.item-page__body #tab4:checked ~ #tab4_content,
.item-page__body #tab5:checked ~ #tab5_content {
  display: block;
}

.item-page__body #tab1:checked + .tab_item,
.item-page__body #tab2:checked + .tab_item,
.item-page__body #tab3:checked + .tab_item,
.item-page__body #tab4:checked + .tab_item,
.item-page__body #tab5:checked + .tab_item {
  background: var(--color-bg);
  color: var(--color-black);
}

/* Nested tab labels: style checked sibling labels via general adjacent patterns used in markup */
.item-page__body input#tab1:checked ~ label[for="tab1"],
.item-page__body input#tab2:checked ~ label[for="tab2"],
.item-page__body input#tab3:checked ~ label[for="tab3"],
.item-page__body input#tab4:checked ~ label[for="tab4"],
.item-page__body input#tab5:checked ~ label[for="tab5"] {
  background: var(--color-bg);
  border-color: var(--color-border);
}

/* FAQ accordion */
.faq-list {
  margin: 0 0 40px;
  border-top: 1px solid var(--color-border);
}

.faq-list__item {
  border-bottom: 1px solid var(--color-border);
}

.faq-list__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--color-black);
}

.faq-list__trigger:hover {
  color: var(--color-text-sub);
}

.faq-list__q {
  flex: 1;
  font-weight: 600;
  line-height: 1.6;
}

.faq-list__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  position: relative;
}

.faq-list__icon::before,
.faq-list__icon::after {
  content: "";
  position: absolute;
  background: var(--color-black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-list__icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-list__icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq-list__trigger[aria-expanded="true"] .faq-list__icon::after {
  opacity: 0;
  transform: scaleY(0);
}

.faq-list__panel {
  padding: 0 4px 20px;
  color: var(--color-text-sub);
  line-height: 1.9;
}

.faq-list__panel[hidden] {
  display: none;
}

.faq-list__panel a.btn {
  display: inline-flex;
  margin-top: 12px;
}

.item-page__cta {
  margin-top: 48px;
  padding: 28px 24px;
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border-light);
  text-align: center;
}

.item-page__cta-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.item-page__cta-text {
  margin: 0 0 16px;
  color: var(--color-text-sub);
}

.item-page__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 720px) {
  .item-page__hero {
    padding: 32px 0 24px;
  }

  .item-page__body {
    padding-top: 28px;
  }

  .item-page__body .tab_item {
    display: block;
    margin: 0 0 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
  }
}

/* ── Legacy content patterns (scoped) — 旧 style-v1.0.1 の見やすさを復元 ── */

.item-page__body .content_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #7b7b7b;
  line-height: 1.6;
  margin: 0 0 40px;
  background: #fff;
}

.item-page__body .content_table.border {
  border: 1px solid #7b7b7b;
}

.item-page__body .content_table th,
.item-page__body .content_table td {
  padding: 12px 14px;
  border-bottom: 1px solid #7b7b7b;
  vertical-align: top;
  text-align: left;
}

.item-page__body .content_table th {
  width: 22%;
  min-width: 7em;
  background: #e0e0e0;
  text-align: center;
  color: #393939;
  font-weight: 700;
  vertical-align: middle;
}

.item-page__body .content_table tr:last-child th,
.item-page__body .content_table tr:last-child td {
  border-bottom: none;
}

.item-page__body .content_table ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.item-page__body .content_table li {
  list-style: none;
  margin-top: 8px;
  padding-left: 0;
}

.item-page__body .content_table li::before {
  content: "● ";
  color: #8fd0ff;
}

.item-page__body .content_tableB {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  line-height: 1.6;
}

.item-page__body .content_tableB th,
.item-page__body .content_tableB td {
  padding: 12px 14px;
  border-bottom: 1px solid #cfcfcf;
  vertical-align: top;
}

.item-page__body .content_tableB th {
  width: 22%;
  background: #e0e0e0;
  text-align: center;
  font-weight: 700;
  color: #393939;
}

.item-page__body .content_tableB ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-page__body .content_tableB li {
  list-style: none;
  margin-top: 8px;
}

.item-page__body .content_tableB li::before {
  content: "● ";
  color: #8fd0ff;
}

.item-page__body .content_f13 {
  font-size: 90%;
  color: #7e7e7e;
  margin: 8px 0 0;
}

.item-page__body .tabletitle2 {
  display: inline-block;
  margin: 14px 0 8px;
  padding: 2px 16px;
  border-radius: 30px;
  background: #66b6ff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.item-page__body .tabletitle {
  display: inline-block;
  margin: 20px 0 10px;
  padding: 2px 20px;
  border-radius: 30px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.item-page__body .cmyk-icon,
.item-page__body .k-icon,
.item-page__body .n-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 3px;
  background-size: cover;
  vertical-align: middle;
  transform: translateY(2px);
}

.item-page__body .cmyk-icon {
  background-image: url("../images/cmyk.svg");
}

.item-page__body .k-icon {
  background-image: url("../images/k.svg");
}

.item-page__body .n-icon {
  background-image: url("../images/n.svg");
}

.item-page__body .list-square {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 0 0 28px;
}

.item-page__body .list-square .list {
  flex: 0 1 180px;
  margin: 0 !important;
}

.item-page__body .list-square .list a {
  display: block;
}

.item-page__body .list-square .list img {
  width: 100%;
  margin: 0;
  border: 1px solid var(--color-border-light);
  transition: opacity 0.15s ease;
}

.item-page__body .list-square .list img:hover {
  opacity: 0.85;
}

.item-page__body .table101 {
  width: 100%;
  border-collapse: collapse;
  font-size: 85%;
  text-align: center;
  margin-bottom: 8px;
}

.item-page__body .table101 th,
.item-page__body .table101 td {
  border: 1px solid #7b7b7b;
  padding: 10px;
  text-align: center;
}

.item-page__body h3 {
  margin-top: 36px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border-light);
}

.page-news .news__empty {
  margin: 0;
  padding: 8px 0 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.page-news .news__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.page-news .news__item {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 8px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
  scroll-margin-top: 88px;
}

.page-news .news__item.is-pinned,
.page-news .news__item:target {
  background: rgba(0, 0, 0, 0.035);
  border: none;
  border-radius: 10px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}

.page-news .news__list:has(> .news__item:first-child.is-pinned),
.page-news .news__list:has(> .news__item:first-child:target) {
  border-top: none;
}

.page-news .news__date {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.page-news .news__body {
  min-width: 0;
}

.page-news .item-page__body .news__flag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border: 1px solid var(--color-black);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--color-black);
}

.page-news .item-page__body h3.news__title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--color-black);
}

.page-news .news__excerpt {
  margin: 8px 0 0;
  max-width: 40em;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-news .item-page__body .news__title a,
.page-news .item-page__body .news__excerpt a {
  color: var(--color-black);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  padding-bottom: 1px;
}

.page-news .item-page__body .news__excerpt a {
  font-weight: 600;
}

.page-news .item-page__body .news__title a:hover,
.page-news .item-page__body .news__excerpt a:hover {
  color: var(--color-black);
  background-size: 100% 1px;
}

.page-news .item-page__body .news__nav {
  margin: 32px 0 0;
}

.page-contact .item-page__hero .item-page__lead {
  max-width: none;
}

.page-contact .item-page__body {
  padding-top: 8px;
}

.page-contact .item-page__body h2.wear-estimate__panel-title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 18px;
}

.page-contact .item-page__body .wear-estimate__privacy-policy-body p,
.page-contact .item-page__body .wear-estimate__privacy-check {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .item-page__body .content_table th,
  .item-page__body .content_tableB th {
    width: 30%;
  }

  .page-news .news__list {
    border-top: none;
  }

  .page-news .news__item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .page-news .news__item:first-child:not(.is-pinned):not(:target) {
    border-top: 1px solid var(--color-border);
  }

  .page-news .news__item.is-pinned,
  .page-news .news__item:target {
    margin-left: -16px;
    margin-right: -16px;
    padding: 16px;
    border-radius: 8px;
  }

  .page-news .news__date {
    font-size: 12px;
    margin: 0;
  }

  .page-news .item-page__body h3.news__title {
    font-size: 16px;
  }

  .page-news .news__excerpt {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.75;
  }
}
