/*
 * デザインワーク準備室 / common styles v1.0.1
 * Target: WordPress themes including GOLD MEDIA and SWELL.
 * No external assets or remote font imports.
 */

:root {
  --dw-primary: #b85c7a;
  --dw-primary-dark: #93445f;
  --dw-secondary: #2f3542;
  --dw-secondary-light: #697386;
  --dw-teal: #4e8c86;
  --dw-gold: #d39a3a;
  --dw-card: #ffffff;
  --dw-sub-bg: #f7f3f5;
  --dw-text: #242832;
  --dw-border: #e6dde1;
  --dw-focus: #1769aa;
  --dw-shadow: 0 12px 32px rgb(47 53 66 / 9%);
  --dw-radius-sm: 10px;
  --dw-radius-md: 18px;
  --dw-radius-lg: 28px;
  --dw-content: 1120px;
  --dw-reading: 760px;
  --dw-heading-font: "Zen Kaku Gothic New", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --dw-body-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
}

.dw-site {
  color: var(--dw-text);
  font-family: var(--dw-body-font);
  font-size: 16px;
  line-height: 1.85;
}

.dw-site *,
.dw-site *::before,
.dw-site *::after {
  box-sizing: border-box;
}

.dw-site :where(h1, h2, h3, h4) {
  color: var(--dw-secondary);
  font-family: var(--dw-heading-font);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-wrap: pretty;
}

.dw-site :where(p, li) {
  font-size: 16px !important;
  line-height: 1.9 !important;
  text-wrap: pretty;
}

.dw-site :where(a) {
  color: var(--dw-primary-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.dw-site :where(a:hover) {
  color: var(--dw-primary);
}

.dw-site :where(a, button, input, select, textarea):focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--dw-focus);
  outline-offset: 3px;
}

.dw-section {
  margin-inline: auto;
  max-width: var(--dw-content);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.dw-section--soft {
  background: var(--dw-sub-bg);
  border-radius: var(--dw-radius-lg);
}

.dw-section__lead {
  color: var(--dw-secondary-light);
  margin: 0.75rem 0 2rem;
  max-width: 46rem;
}

.dw-hero {
  background:
    radial-gradient(circle at 88% 12%, rgb(211 154 58 / 16%), transparent 28%),
    radial-gradient(circle at 8% 90%, rgb(78 140 134 / 12%), transparent 30%),
    linear-gradient(135deg, #fff 0%, var(--dw-sub-bg) 100%);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-lg);
  box-shadow: var(--dw-shadow);
  margin: clamp(1rem, 3vw, 2.5rem) auto;
  max-width: var(--dw-content);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 6vw, 5.5rem);
  position: relative;
}

.dw-hero::after {
  background: linear-gradient(
    135deg,
    rgb(184 92 122 / 14%),
    rgb(78 140 134 / 8%)
  );
  border-radius: 999px;
  content: "";
  height: 17rem;
  pointer-events: none;
  position: absolute;
  right: -6rem;
  top: -8rem;
  width: 17rem;
}

.dw-hero__eyebrow {
  color: var(--dw-primary-dark);
  font-family: var(--dw-heading-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.dw-hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  margin: 0;
  max-width: 15ch;
}

.dw-hero__copy {
  color: var(--dw-secondary-light);
  font-size: clamp(16px, 1.5vw, 18px);
  margin: 1.5rem 0 0;
  max-width: 42rem;
}

.dw-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.dw-hero__note {
  color: var(--dw-secondary-light);
  font-size: 14px !important;
  margin: 1.25rem 0 0;
}

.dw-btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--dw-heading-font);
  font-weight: 700;
  gap: 0.45rem;
  justify-content: center;
  line-height: 1.4;
  min-height: 48px;
  padding: 0.78rem 1.45rem;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.dw-btn--primary {
  background: var(--dw-primary-dark);
  color: #fff !important;
}

.dw-btn--primary:hover {
  background: #7d3850;
  color: #fff !important;
  transform: translateY(-1px);
}

.dw-btn--secondary {
  background: #fff;
  border-color: var(--dw-primary-dark);
  color: var(--dw-primary-dark) !important;
}

.dw-btn--secondary:hover {
  background: var(--dw-sub-bg);
  border-color: #7d3850;
  color: #7d3850 !important;
  transform: translateY(-1px);
}

.dw-path-grid,
.dw-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dw-path-card,
.dw-category-card,
.dw-choice-card {
  background: var(--dw-card);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-md);
  box-shadow: 0 8px 22px rgb(47 53 66 / 6%);
  color: var(--dw-text);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.4rem;
  position: relative;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.dw-path-card:hover,
.dw-category-card:hover,
.dw-choice-card:hover {
  border-color: var(--dw-primary);
  box-shadow: var(--dw-shadow);
  color: var(--dw-text);
  transform: translateY(-3px);
}

.dw-path-card__label {
  color: var(--dw-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.55rem;
}

.dw-path-card h3,
.dw-category-card h3,
.dw-choice-card h3 {
  font-size: 17px;
  margin: 0;
}

.dw-path-card p,
.dw-category-card p,
.dw-choice-card p {
  color: var(--dw-secondary-light);
  font-size: 15px !important;
  margin: 0.7rem 0 0;
}

.dw-path-card__more,
.dw-category-card__more {
  color: var(--dw-primary-dark);
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 1rem;
}

.dw-category-card {
  border-top: 5px solid var(--dw-primary);
}

.dw-category-card:nth-child(2) {
  border-top-color: var(--dw-gold);
}

.dw-category-card:nth-child(3) {
  border-top-color: var(--dw-teal);
}

.dw-category-card:nth-child(4) {
  border-top-color: var(--dw-secondary);
}

.dw-three-points {
  counter-reset: dw-point;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.dw-three-points > li {
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-md);
  counter-increment: dw-point;
  padding: 1.4rem;
}

.dw-three-points > li::before {
  align-items: center;
  background: var(--dw-primary-dark);
  border-radius: 50%;
  color: #fff;
  content: counter(dw-point);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 2rem;
}

.dw-trust-box,
.dw-author-card,
.dw-pr-notice {
  border-radius: var(--dw-radius-md);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.dw-trust-box {
  background: #fffaf0;
  border: 1px solid rgb(211 154 58 / 50%);
}

.dw-trust-box > :first-child,
.dw-author-card > :first-child,
.dw-pr-notice > :first-child {
  margin-top: 0;
}

.dw-trust-box > :last-child,
.dw-author-card > :last-child,
.dw-pr-notice > :last-child {
  margin-bottom: 0;
}

.dw-check-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.dw-check-list li {
  padding: 0.45rem 0 0.45rem 1.8rem;
  position: relative;
}

.dw-check-list li::before {
  color: var(--dw-teal);
  content: "✓";
  font-weight: 700;
  left: 0.2rem;
  position: absolute;
  top: 0.45rem;
}

.dw-pr-notice {
  background: #fff8e9;
  border: 1px solid #c58b25;
  color: #4b3a1b;
  font-size: 14px !important;
  margin: 1.25rem 0 2rem;
}

.dw-pr-notice::before {
  background: #7b5517;
  border-radius: 999px;
  color: #fff;
  content: "広告・PR";
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.62rem;
}

.dw-pr-notice a {
  color: #603f0d;
}

.dw-two-choice {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 1.5rem;
}

.dw-choice-card--recommended {
  border: 2px solid var(--dw-primary-dark);
}

.dw-author-card {
  align-items: center;
  background: var(--dw-sub-bg);
  border: 1px solid var(--dw-border);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 104px minmax(0, 1fr);
  margin-block: 2.5rem;
}

.dw-author-card__image {
  aspect-ratio: 1;
  border-radius: 50%;
  height: auto;
  object-fit: cover;
  width: 104px;
}

.dw-author-card h2,
.dw-author-card h3 {
  font-size: 17px;
  margin: 0 0 0.4rem;
}

.dw-author-card p {
  font-size: 15px !important;
  margin: 0;
}

.dw-fixed-page {
  margin-inline: auto;
  max-width: var(--dw-reading);
}

.dw-fixed-page h2 {
  border-left: 5px solid var(--dw-primary);
  margin-top: 3.5rem;
  padding-left: 0.85rem;
}

.dw-fixed-page h3 {
  margin-top: 2.2rem;
}

.dw-table-wrap {
  margin-block: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.dw-table-wrap table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.dw-table-wrap :where(th, td) {
  border: 1px solid var(--dw-border);
  font-size: 14px !important;
  line-height: 1.7 !important;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.dw-table-wrap th {
  background: var(--dw-sub-bg);
  color: var(--dw-secondary);
  font-family: var(--dw-heading-font);
}

.dw-cta {
  background: var(--dw-sub-bg);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-md);
  margin-block: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.dw-cta__fit,
.dw-cta__check,
.dw-cta__note {
  margin-inline: auto;
  max-width: 42rem;
}

.dw-cta__note {
  color: var(--dw-secondary-light);
  font-size: 13px;
  margin-bottom: 0;
  margin-top: 0.8rem;
}

@media (max-width: 960px) {
  .dw-path-grid,
  .dw-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 781px) {
  .dw-section {
    padding-block: 3.5rem;
  }

  .dw-hero {
    border-radius: var(--dw-radius-md);
    margin-inline: 1rem;
  }

  .dw-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dw-btn {
    width: 100%;
  }

  .dw-three-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dw-site {
    font-size: 15px;
    line-height: 1.8;
  }

  .dw-site :where(p, li) {
    font-size: 15px !important;
  }

  .dw-site :where(table, th, td) {
    font-size: 13px !important;
  }

  .dw-path-grid,
  .dw-category-grid,
  .dw-two-choice {
    grid-template-columns: 1fr;
  }

  .dw-path-card,
  .dw-category-card,
  .dw-choice-card {
    padding: 1.2rem;
  }

  .dw-author-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dw-author-card__image {
    width: 72px;
  }

  .dw-fixed-page h2 {
    margin-top: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dw-site *,
  .dw-site *::before,
  .dw-site *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Stage 6 Gutenberg compatibility layer */
.dw-site .wp-block-table { margin-block: 1.5rem; max-width: 100%; overflow-x: auto; }
.dw-site .wp-block-table table { border-collapse: collapse; min-width: 680px; width: 100%; }
.dw-site .wp-block-table :where(th, td) { border: 1px solid var(--dw-border); font-size: 14px !important; line-height: 1.7 !important; padding: .75rem; text-align: left; vertical-align: top; }
.dw-site .wp-block-table th { background: var(--dw-sub-bg); color: var(--dw-secondary); }
.dw-cta .wp-block-button__link { background: var(--dw-primary-dark); border-radius: 999px; color: #fff; font-weight: 700; min-height: 48px; padding: .78rem 1.45rem; }
.dw-cta .wp-block-button__link:hover { background: #7d3850; color: #fff; }
.dw-card { border: 1px solid var(--dw-border); border-radius: var(--dw-radius-md); box-shadow: 0 8px 22px rgb(47 53 66 / 6%); height: 100%; overflow: hidden; padding: 1rem; }
.dw-config-warning { background: #fff1f0; border: 1px solid #b32d2e; border-radius: var(--dw-radius-sm); color: #7a1b1b; padding: 1rem; }


/* ログイン用パネルリンクを非表示 */
a.panel_link__link[href*="wp-login"],
a.panel_link__link[href*="login_"],
a.panel_link__link.panel_link__link-is-text_circle {
  display: none !important;
}