/* ページ固有の装飾。各ページのクラス内に限定して指定する。 */

/* 制作実績一覧・詳細 */
.works-archive__grid {
  display: grid;
  gap: clamp(var(--space-5), 7vw, var(--space-8));
}

.works-archive .work-card--archive,
.work-detail .work-card--detail {
  flex-basis: auto;
}

.work-detail__back {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

.work-detail .page-intro h1 {
  overflow-wrap: anywhere;
}

/* 主要な料金表示 */
.wordpress-cost__base-summary > p,
.operation-plan .operation-plan__price {
  line-height: var(--line-height-heading);
}

/* ホームページ制作ページ専用 */
.website-production > section {
  scroll-margin-top: var(--space-3);
}

/* ホームページリニューアルページ専用 */

/* 参考図のワイヤーフレーム。配色は以下の変数で調整。 */
.renewal-wireframe-stage {
  --wire-background: #9bd1bf;
  --wire-text: #151515;
  --wire-line: #151515;
  --wire-copy: #bfbfbf;
  --wire-logo: #818582;
  --wire-button: #88b0a3;
  --wire-button-label: #ffffff;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--wire-background);
}
.renewal-wireframe { display: block; width: 100%; height: auto; }
.renewal-wireframe text { font-family: var(--font-sans); fill: var(--wire-text); }
.renewal-wireframe .wire-heading { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.renewal-wireframe .wire-label { font-size: 25px; font-weight: 400; }
.renewal-wireframe .wire-outline {
  fill: #ffffff;
  stroke: var(--wire-line);
  stroke-width: 1;
}
.renewal-wireframe .wire-page-outline {
  filter: drop-shadow(0 5px 10px rgb(0 0 0 / 50%));
}
.renewal-wireframe .wire-cross {
  fill: none;
  stroke: var(--wire-line);
  stroke-width: 1;
}
.renewal-wireframe .wire-leaders { fill: var(--wire-text); stroke: var(--wire-text); stroke-width: 1; }
.renewal-wireframe .wire-leaders path { fill: none; }
.renewal-wireframe .wire-check rect { fill: var(--wire-line); }
.renewal-wireframe .wire-check path { fill: none; stroke: var(--wire-button-label); stroke-width: 4; }
.renewal-wireframe .wire-logo { fill: var(--wire-logo); }
.renewal-wireframe .wire-heading-bar { fill: var(--wire-text); }
.renewal-wireframe .wire-copy { fill: var(--wire-copy); }
.renewal-wireframe .wire-button rect { fill: var(--wire-button); }
.renewal-wireframe .wire-button path { stroke: var(--wire-button-label); stroke-width: 10; stroke-linecap: round; }

/* WordPressカスタマイズページ専用 */

.wordpress-review__graphic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.wordpress-cost__base,
.wordpress-cost__work {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  background: var(--color-surface);
  padding: clamp(var(--space-3), 4vw, var(--space-4));
  border-radius: var(--radius-lg);
}

.wordpress-cost__work table {
  width: 100%;
  margin-top: var(--space-3);
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.wordpress-cost__base-summary {
  display: grid;
  gap: var(--space-3);
  align-items: center;
}

.wordpress-cost__base-summary > p {
  text-align: right;
  font-weight: var(--font-weight-bold);
}

.wordpress-cost__base > p {
  margin-top: var(--space-2);
}

.wordpress-cost__plus {
  display: block;
  margin-block: var(--space-3);
  color: var(--color-accent-text);
  font-size: 32px;
  text-align: center;
}

.wordpress-cost__research {
  display: grid;
  align-items: start;
  gap: var(--space-3);
  margin-top: clamp(var(--space-4), 4vw, var(--space-6));
  padding: clamp(var(--space-3), 4vw, var(--space-4));
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.wordpress-cost__work th,
.wordpress-cost__work td {
  padding: clamp(var(--space-1), 2vw, var(--space-2));
  vertical-align: middle;
  font-size: var(--font-size-small);
  overflow-wrap: anywhere;
  line-height: var(--line-height-compact);
}

.wordpress-cost__work thead th {
  border-bottom: 1px solid var(--color-border);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.wordpress-cost__work tbody th,
.wordpress-cost__work tbody td {
  border-bottom: 1px solid var(--color-border);
}

.wordpress-cost__work tbody td {
  font-variant-numeric: tabular-nums;
}

.wordpress-cost__work th:last-child,
.wordpress-cost__work td:last-child {
  white-space: nowrap;
  text-align: right;
}

.wordpress-cost__work--comparison table {
  table-layout: fixed;
}

.wordpress-cost__work--comparison th:last-child,
.wordpress-cost__work--comparison td:last-child {
  white-space: normal;
}

.wordpress-cost__accordion {
  margin-top: var(--space-3);
}

.wordpress-cost__accordion > summary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 6px var(--space-2);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-small);
  cursor: pointer;
  list-style: none;
}

.wordpress-cost__accordion > summary::-webkit-details-marker {
  display: none;
}

.wordpress-cost__accordion > summary:hover {
  background: var(--color-background);
}

.wordpress-cost__accordion > summary .icon {
  flex-shrink: 0;
  font-size: 20px;
  transition: transform var(--transition);
}

.wordpress-cost__accordion[open]:not([data-expanded="false"]) > summary .icon {
  transform: rotate(45deg);
}

.wordpress-cost__additional {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

.wordpress-cost__additional h4 {
  margin: 0;
  font-size: var(--font-size-subheading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-control);
}

.wordpress-cost__work > p {
  margin-top: var(--space-3);
}

.wordpress-cost__work + .wordpress-cost__work {
  margin-top: var(--space-4);
}

.wordpress-cost__base > p,
.wordpress-cost__work > p {
  color: var(--color-text-secondary);
}

/* ホームページ運用・改善ページ専用 */
.operation-benefits__grid {
  display: grid;
  align-items: start;
  gap: var(--space-4);
}

.operation-benefits__grid > div {
  min-width: 0;
}

.operation-benefits__intro h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-heading);
}

.operation-benefits__items {
  display: grid;
  gap: var(--space-4);
}

.operation-benefits__item h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--font-size-subheading);
  line-height: var(--line-height-control);
}

.operation-benefits__number {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.operation-benefits__grid p {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  overflow-wrap: anywhere;
}

.operation-benefits__intro p {
  font-size: var(--font-size-h2);
}

.operation-plan h3 {
  font-size: var(--font-size-h3);
}

.operation-plan .operation-plan__price {
  margin-block: var(--space-3);
  color: var(--color-text);
}

.operation-plan + .wordpress-cost__base {
  margin-top: var(--space-4);
}

.operation-plan__price [data-price-amount] {
  font-size: var(--font-size-price);
}

.operation-plans__switcher[hidden] {
  display: none;
}

.operation-plans__annual-note {
  margin-bottom: var(--space-4);
  text-align: center;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-body);
}

.operation-plans__content--enter {
  animation: faq-category-enter 420ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .operation-plans__content--enter {
    animation: none;
  }
}

.operation-plan__features {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  padding-left: 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}

.operation-plan__features li {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.operation-plan__features .icon {
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.operation-plans__note {
  max-width: 800px;
  margin-top: var(--space-4);
  margin-inline: auto;
  padding: clamp(var(--space-2), 3vw, var(--space-3));
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.operation-plans__note h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--font-size-subheading);
}

.operation-plans__note summary {
  cursor: pointer;
  list-style: none;
}

.operation-plans__note summary::-webkit-details-marker {
  display: none;
}

.operation-plans__note summary .icon {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--color-text-secondary);
  transition: transform var(--transition);
}

.operation-plans__note[open]:not([data-expanded="false"]) summary .icon {
  transform: rotate(45deg);
}

.operation-plans__note ul {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-2);
  padding-left: var(--space-3);
  list-style: disc;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-body);
  overflow-wrap: anywhere;
}

/* お問い合わせページ専用 */
.contact-form {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  text-align: left;
}
.contact-form > label {
  margin-bottom: var(--space-1);
  font-size: var(--font-size-small);
}
.contact-form > label span {
  margin-left: .5rem;
  font-size: var(--font-size-note);
  opacity: .7;
}
.contact-form > input, .contact-form > textarea {
  width: 100%;
  min-width: 0;
  padding: .625rem .75rem;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  background: var(--color-surface);
  font-size: var(--font-size-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.contact-form > textarea {
  resize: vertical;
  line-height: var(--line-height-body);
}
.contact-form > input:focus, .contact-form > textarea:focus {
  outline: 2px solid #c8754f;
  outline-offset: 2px;
}
.contact-form > p {
  line-height: var(--line-height-compact);
  font-size: var(--font-size-small);
}
.contact-form__feedback:not(:empty) {
  color: var(--color-notice);
  margin-bottom: var(--space-1);
}
.contact-form > .button {
  justify-self: start;
  margin-top: var(--space-3);
  min-height: 44px;
  padding: .75rem 1.5rem;
}
.contact-form > .button::after {
  content: none;
}
.contact-form > label,
.contact-form > p {
  color: var(--color-text-secondary);
}
.contact-form ::placeholder {
  color: var(--color-text-secondary);
  opacity: 1;
}
.contact-form__privacy a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.contact-page {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--color-background);
  color: var(--color-text);
}
.contact-page__layout {
  display: grid;
  gap: var(--space-5);
}
.contact-page__intro h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-heading);
}
.contact-page__benefits {
  display: grid;
  gap: .5rem;
  margin-block: var(--space-4);
}
.contact-page__benefits li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.contact-page__check {
  flex: 0 0 auto;
  align-self: center;
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: var(--line-height-icon);
  color: var(--color-text-secondary);
}
.contact-page__intro > p,
.contact-page__intro > a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
}
.contact-page__intro > a {
  display: inline-block;
  margin-top: var(--space-2);
}
.contact-page__form-title {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-subheading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-control);
  letter-spacing: 0;
}

/* プライバシーポリシー */
.policy-page .policy-page__content {
  width: min(100% - 40px, 840px);
}

.policy-page h1 {
  margin-bottom: var(--space-5);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-heading);
}

.policy-page h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-control);
}

.policy-page ul {
  margin-block: var(--space-3);
  padding-left: var(--space-3);
  list-style: disc;
  font-weight: var(--font-weight-body);
}

.policy-page li + li {
  margin-top: var(--space-1);
}

.policy-page a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.policy-page .policy-page__dates {
  margin-top: var(--space-8);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* サービス一覧 */
.services-page__primary,
.service-specialty-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.services-page__primary .service-item,
.services-page__primary .service-item + .service-item,
.service-specialty-card,
.service-specialty-card + .service-specialty-card {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  justify-self: stretch;
  transform: none;
}

.services-page__primary .service-item {
  justify-self: stretch;
}

.service-specialty-card {
  justify-self: stretch;
}

.services-page__primary .service-item::after,
.services-page__primary .service-item:not(:last-child)::after,
.service-specialty-card::after,
.service-specialty-card:not(:last-child)::after {
  display: none;
}

/* レスポンシブ：幅の境界は768px・1024pxに統一 */

@media (min-width: 768px) {
  .work-detail .page-intro .split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .services-page__primary,
  .service-specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-page__primary {
    padding-bottom: 0;
  }

  .wordpress-cost__research {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .wordpress-cost__base-summary {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--space-6);
  }

  .operation-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .contact-page__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
  .contact-form {
    padding-top: 0;
    padding-left: var(--space-4);
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }

  .policy-page .policy-page__content {
    width: min(100% - 80px, 840px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordpress-cost__accordion > summary .icon {
    transition: none;
  }

  .operation-plans__note summary .icon {
    transition: none;
  }
}
.update-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.update-note__icon {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  font-size: 24px;
}


