@charset "utf-8";

.df-container {
  width: calc(100% - (var(--df-gutter) * 2));
  max-width: var(--df-content-max);
  margin-right: auto;
  margin-left: auto;
}

.df-section {
  padding-top: var(--df-section-space);
  padding-bottom: var(--df-section-space);
}

.df-section-heading,
.df-card-title,
.df-lead,
.df-wrap-budoux {
  text-wrap: balance;
}

.df-section-heading {
  margin: 0;
  color: var(--df-color-text);
  font-family: var(--df-font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: center;
}

.df-section-heading-eyebrow {
  margin: 0 0 12px;
  color: var(--df-color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: center;
}

.df-button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--df-transition-duration) ease, border-color var(--df-transition-duration) ease, color var(--df-transition-duration) ease;
}

a.df-button.df-button-primary,
button.df-button.df-button-primary {
  min-height: 48px;
  border: 2px solid #c35400;
  border-radius: 0;
  background-color: #c35400;
  box-shadow: none;
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

a.df-button.df-button-primary:hover,
a.df-button.df-button-primary:focus-visible,
button.df-button.df-button-primary:hover,
button.df-button.df-button-primary:focus-visible {
  border: 2px solid #9a3e00;
  background-color: #9a3e00;
  box-shadow: none;
  color: #fff;
  transform: none;
}

a.df-button.df-button-primary:active,
button.df-button.df-button-primary:active {
  border: 2px solid #7f3300;
  background-color: #7f3300;
  box-shadow: none;
  color: #fff;
  transform: none;
}

a.df-button.df-button-secondary,
button.df-button.df-button-secondary {
  min-height: 48px;
  border: 2px solid #174f57;
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
  color: #174f57;
  font-weight: 800;
  line-height: 1.3;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

a.df-button.df-button-secondary:hover,
a.df-button.df-button-secondary:focus-visible,
button.df-button.df-button-secondary:hover,
button.df-button.df-button-secondary:focus-visible {
  border: 2px solid #174f57;
  background-color: #dcebed;
  box-shadow: none;
  color: #174f57;
  transform: none;
}

a.df-button.df-button-secondary:active,
button.df-button.df-button-secondary:active {
  border: 2px solid #174f57;
  background-color: #c5dde0;
  box-shadow: none;
  color: #174f57;
  transform: none;
}

a.df-button.df-button-primary:focus-visible,
a.df-button.df-button-secondary:focus-visible,
button.df-button.df-button-primary:focus-visible,
button.df-button.df-button-secondary:focus-visible {
  outline: 3px solid #174f57;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
  transform: none;
}

button.df-button.df-button-primary:disabled,
button.df-button.df-button-secondary:disabled {
  border-color: #aebfc2;
  background-color: #edf1f2;
  color: #718689;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  a.df-button.df-button-primary,
  a.df-button.df-button-secondary,
  button.df-button.df-button-primary,
  button.df-button.df-button-secondary {
    transition: none;
  }
}

a.df-button.df-button-primary,
button.df-button.df-button-primary{box-shadow:5px 5px 0 #174f57}

a.df-button.df-button-secondary,
button.df-button.df-button-secondary{box-shadow:5px 5px 0 #ffe75b}

a.df-button.df-button-primary:hover,
a.df-button.df-button-primary:focus-visible,
button.df-button.df-button-primary:hover,
button.df-button.df-button-primary:focus-visible,
a.df-button.df-button-secondary:hover,
a.df-button.df-button-secondary:focus-visible,
button.df-button.df-button-secondary:hover,
button.df-button.df-button-secondary:focus-visible{box-shadow:3px 3px 0 #174f57;transform:translate(2px,2px)}

a.df-button.df-button-secondary:hover,
a.df-button.df-button-secondary:focus-visible,
button.df-button.df-button-secondary:hover,
button.df-button.df-button-secondary:focus-visible{box-shadow:3px 3px 0 #ffe75b}

a.df-button.df-button-primary:active,
a.df-button.df-button-secondary:active,
button.df-button.df-button-primary:active,
button.df-button.df-button-secondary:active{box-shadow:none;transform:translate(5px,5px)}

/* Site-wide button behavior: primary actions use the orange filled treatment;
   secondary actions use the white outlined treatment. */
:is(a,button,input).df-button.df-button-primary,
.lower-button,
.formBtn,
.submitBtn {
  border: 2px solid #c35400;
  background-color: #c35400;
  box-shadow: 5px 5px 0 #174f57;
  color: #fff;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:is(a,button,input).df-button.df-button-secondary {
  border: 2px solid #174f57;
  background-color: #fff;
  box-shadow: 5px 5px 0 #ffe75b;
  color: #174f57;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:is(a,button,input).df-button.df-button-primary:hover,
.lower-button:hover,
.formBtn:hover,
.submitBtn:hover {
  border-color: #9a3e00;
  background-color: #9a3e00;
  box-shadow: 3px 3px 0 #174f57;
  color: #fff;
  transform: translate(2px, 2px);
}

:is(a,button,input).df-button.df-button-secondary:hover {
  border-color: #174f57;
  background-color: #dcebed;
  box-shadow: 3px 3px 0 #ffe75b;
  color: #174f57;
  transform: translate(2px, 2px);
}

:is(a,button,input).df-button.df-button-primary:active,
.lower-button:active,
.formBtn:active,
.submitBtn:active,
:is(a,button,input).df-button.df-button-secondary:active {
  box-shadow: none;
  transform: translate(5px, 5px);
}

:is(a,button,input).df-button.df-button-primary:focus-visible,
.lower-button:focus-visible,
.formBtn:focus-visible,
.submitBtn:focus-visible,
:is(a,button,input).df-button.df-button-secondary:focus-visible {
  outline: 3px solid #174f57;
  outline-offset: 3px;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  :is(a,button,input).df-button.df-button-primary,
  :is(a,button,input).df-button.df-button-secondary,
  .lower-button,
  .formBtn,
  .submitBtn {
    transition: none;
  }

  :is(a,button,input).df-button.df-button-primary:hover,
  :is(a,button,input).df-button.df-button-primary:active,
  :is(a,button,input).df-button.df-button-secondary:hover,
  :is(a,button,input).df-button.df-button-secondary:active,
  .lower-button:hover,
  .lower-button:active,
  .formBtn:hover,
  .formBtn:active,
  .submitBtn:hover,
  .submitBtn:active {
    transform: none;
  }
}

/*
  カード一覧の標準HTML:

  <div class="df-card-grid">
    <div class="df-card-grid__item">
      <div class="df-card">
        <img class="df-card-media" src="..." alt="...">
        <div class="df-card-body">
          <h3 class="df-card-title">カード見出し</h3>
          <p>カードの説明文</p>
        </div>
      </div>
    </div>
  </div>

  直接の子要素をカード項目として扱い、カード数に応じて列構成を変える。
  1〜6件は件数別の構成を優先し、7件以上は4→3→2→1を基本とする。
  データブロックやネイティブcomponentのHTML形状・属性は変更しない。
*/
.df-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--df-card-grid-gap, 24px);
}

.df-card-grid__item {
  min-width: 0;
}

.df-card {
  border: 1px solid var(--df-color-line);
  border-radius: var(--df-radius);
  background-color: var(--df-color-bg);
}

.df-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--df-radius) var(--df-radius) 0 0;
  object-fit: cover;
}

.df-card-body {
  min-width: 0;
  padding: 24px;
}

.df-card-title {
  margin: 0;
  color: var(--df-color-text);
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.df-cta {
  padding: 48px var(--df-gutter);
  background-color: var(--df-color-surface);
  text-align: center;
}

/* 古いブラウザでも成立する標準状態。対応ブラウザでは件数別ルールが上書きする。 */
@media (min-width: 40rem) {
  .df-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .df-section-heading {
    font-size: 32px;
  }

  .df-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(1):last-child) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(3):last-child),
  .df-card-grid:has(> .df-card-grid__item:nth-child(5):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .df-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(1):last-child),
  .df-card-grid:has(> .df-card-grid__item:nth-child(2):last-child),
  .df-card-grid:has(> .df-card-grid__item:nth-child(4):last-child),
  .df-card-grid:has(> .df-card-grid__item:nth-child(6):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(1):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 80rem) {
  .df-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(1):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .df-card-grid:has(> .df-card-grid__item:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
