.md-page.ag-custom-page .ag-container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

.md-page.ag-custom-page .ag-container-sm {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 24px;
}

.md-page.ag-custom-page .ag-profile-flex,
.md-page.ag-custom-page .ag-profile-left {
  display: flex;
  flex-direction: column;
}

.md-page.ag-custom-page .ag-profile-flex {
  gap: 32px;
  align-items: center;
}

.md-page.ag-custom-page .ag-profile-left {
  width: 100%;
  flex-shrink: 0;
  align-items: center;
}

.md-page.ag-custom-page .ag-profile-right {
  width: 100%;
}

@media (min-width: 768px) {
  .md-page.ag-custom-page .ag-profile-section {
    padding-top: 64px !important;
  }
}

.md-page.ag-custom-page .ag-serif {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
}

.md-page.ag-custom-page .ag-section-title,
.md-page.ag-custom-page .ag-profile-title,
.md-page.ag-custom-page .ag-card h3,
.md-page.ag-custom-page .ag-service-text h3,
.md-page.ag-custom-page .ag-worry-card h3 {
  color: var(--md-color-primary-400) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.55 !important;
}

.md-page.ag-custom-page .ag-profile-title {
  margin-bottom: 24px !important;
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
}

.md-page.ag-custom-page .ag-section-title {
  margin-bottom: 24px !important;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.md-page.ag-custom-page .ag-lead-text {
  margin-bottom: 60px !important;
  color: var(--md-color-text-soft) !important;
  font-weight: 350;
  text-align: center;
  line-height: 2;
}

.md-page.ag-custom-page .ag-profile-box,
.md-page.ag-custom-page .ag-card,
.md-page.ag-custom-page .ag-worry-card,
.md-page.ag-custom-page .ag-carousel-item {
  border: 1px solid var(--md-color-border) !important;
  background: var(--md-color-neutral-0) !important;
  box-shadow: var(--md-shadow-card);
}

.md-page.ag-custom-page .ag-profile-box {
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
}

.md-page.ag-custom-page .ag-profile-img-wrap {
  width: 160px;
  height: 160px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid var(--md-color-neutral-0);
  background: var(--md-color-primary-50);
  box-shadow: 0 8px 24px rgba(111, 145, 168, 0.14);
}

.md-page.ag-custom-page .ag-profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-page.ag-custom-page .ag-card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.md-page.ag-custom-page .ag-card:hover,
.md-page.ag-custom-page .ag-carousel-item:hover {
  transform: translateY(-5px);
}

.md-page.ag-custom-page .ag-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
}

.md-page.ag-custom-page .ag-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.md-page.ag-custom-page .ag-card:hover .ag-card-img-wrap img {
  transform: scale(1.05);
}

.md-page.ag-custom-page .ag-card-body {
  position: relative;
  flex: 1;
  padding: 32px;
}

.md-page.ag-custom-page .ag-card-icon {
  position: relative;
  z-index: 1;
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
  margin-bottom: 14px;
  border-radius: 50%;
  border-color: var(--md-color-border) !important;
  color: var(--md-color-primary-400) !important;
  background: var(--md-color-primary-50) !important;
  box-shadow: 0 8px 20px rgba(111, 145, 168, 0.1);
}

.md-page.ag-custom-page .ag-card-icon svg,
.md-page.ag-custom-page .ag-service-num svg,
.md-page.ag-custom-page .ag-worry-icon svg {
  width: 23px;
  height: 23px;
}

.md-page.ag-custom-page .ag-card h3 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.md-page.ag-custom-page .ag-card .ag-subtitle,
.md-page.ag-custom-page .ag-service-num,
.md-page.ag-custom-page .ag-service-num span,
.md-page.ag-custom-page .ag-service-text > p {
  color: var(--md-color-accent) !important;
}

.md-page.ag-custom-page .ag-card .ag-subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.md-page.ag-custom-page .ag-card p.ag-desc,
.md-page.ag-custom-page .ag-worry-card p {
  color: var(--md-color-text);
  line-height: 1.85;
}

.md-page.ag-custom-page .ag-card-body .ag-btn-row {
  margin-top: 0;
}

@media (min-width: 768px) {
  .md-page.ag-custom-page .ag-card-body .ag-btn-row .ag-btn-outline {
    min-width: 0;
    flex: 1 1 160px;
  }
}

.md-page.ag-custom-page .ag-grid-2,
.md-page.ag-custom-page .ag-worry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.md-page.ag-custom-page .ag-worry-section {
  background: var(--md-color-neutral-0) !important;
}

.md-page.ag-custom-page .ag-worry-section .ag-section-title {
  color: var(--md-color-warm-text) !important;
}

.md-page.ag-custom-page .ag-bg-surface {
  border-color: var(--md-color-warm-border-soft) !important;
  background: var(--md-color-neutral-0) !important;
}

.md-page.ag-custom-page .ag-service-img img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.md-page.ag-custom-page .ag-service-img-inner {
  position: relative;
}

.md-page.ag-custom-page .ag-service-img-inner::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  background: var(--md-color-primary-50) !important;
  border-radius: 16px;
}

.md-page.ag-custom-page .ag-service-row.reverse .ag-service-img-inner::after {
  right: -16px;
  left: auto;
}

.md-page.ag-custom-page .ag-service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 100px;
}

.md-page.ag-custom-page .ag-service-text h3 {
  margin-top: 0 !important;
}

.md-page.ag-custom-page .ag-service-num {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.md-page.ag-custom-page .ag-service-num span {
  font-size: 2.7rem;
  font-weight: 500 !important;
}

.md-page.ag-custom-page .ag-service-num svg {
  width: 34px;
  height: 34px;
  color: var(--md-color-primary-400);
}

.md-page.ag-custom-page .ag-carousel-section {
  overflow: hidden;
  padding-block: 48px !important;
  background: var(--md-color-bg) !important;
}

.md-page.ag-custom-page .ag-carousel-wrap {
  position: relative;
  width: 100%;
  padding-block: 12px;
}

.md-page.ag-custom-page .ag-carousel-wrap::before,
.md-page.ag-custom-page .ag-carousel-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  width: 15%;
  height: 100%;
  pointer-events: none;
}

.md-page.ag-custom-page .ag-carousel-wrap::before {
  left: 0;
}

.md-page.ag-custom-page .ag-carousel-wrap::after {
  right: 0;
}

.md-page.ag-custom-page .ag-carousel-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(111, 145, 168, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--md-color-primary-400);
  box-shadow: 0 10px 26px rgba(111, 145, 168, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.md-page.ag-custom-page .ag-carousel-control:hover {
  background: var(--md-color-accent);
  color: var(--md-color-neutral-0);
  transform: translateY(-50%) scale(1.04);
}

.md-page.ag-custom-page .ag-carousel-control:focus-visible {
  outline: 2px solid var(--md-color-primary-300);
  outline-offset: 3px;
}

.md-page.ag-custom-page .ag-carousel-control svg {
  width: 22px;
  height: 22px;
}

.md-page.ag-custom-page .ag-carousel-control--prev {
  left: max(14px, calc((100vw - var(--md-content-width)) / 2));
}

.md-page.ag-custom-page .ag-carousel-control--next {
  right: max(14px, calc((100vw - var(--md-content-width)) / 2));
}

.md-page.ag-custom-page .ag-carousel-track {
  display: flex;
  width: max-content;
  animation: ag-scroll 40s linear infinite;
}

.md-page.ag-custom-page .ag-carousel-track:hover {
  animation-play-state: paused;
}

.md-page.ag-custom-page .ag-carousel-item {
  width: 320px;
  flex-shrink: 0;
  margin-right: 24px;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.md-page.ag-custom-page .ag-carousel-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.md-page.ag-custom-page .ag-carousel-button:focus-visible {
  outline: 2px solid var(--md-color-primary-300);
  outline-offset: 4px;
}

.md-page.ag-custom-page .ag-carousel-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.md-page.ag-custom-page .ag-carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-page.ag-custom-page .ag-carousel-text {
  padding: 16px;
  color: var(--md-color-text);
  font-size: 0.95rem;
  font-weight: 350;
  text-align: center;
}

.md-page.ag-custom-page .ag-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(104px, calc(env(safe-area-inset-top) + 96px)) 24px max(32px, calc(env(safe-area-inset-bottom) + 24px));
}

.md-page.ag-custom-page .ag-modal.is-open {
  display: flex;
}

.md-page.ag-custom-page .ag-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(57, 55, 52, 0.76);
}

.md-page.ag-custom-page .ag-modal__dialog {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  width: min(100%, 980px);
  max-height: min(86vh, 760px);
  max-height: min(calc(100vh - 144px), 760px);
  max-height: min(calc(100dvh - 144px), 760px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--md-color-neutral-0);
  box-shadow: 0 24px 80px rgba(57, 55, 52, 0.24);
}

.md-page.ag-custom-page .ag-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--md-color-neutral-0);
}

.md-page.ag-custom-page .ag-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(74vh, 620px);
  background: var(--md-color-bg-soft);
  padding: clamp(24px, 5vw, 48px);
}

.md-page.ag-custom-page .ag-modal__media img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 6px;
}

.md-page.ag-custom-page .ag-modal__body {
  overflow: auto;
  padding: clamp(28px, 5vw, 54px);
}

.md-page.ag-custom-page .ag-modal__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--md-color-primary-400);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.md-page.ag-custom-page .ag-modal__title {
  margin: 0 0 14px !important;
  color: var(--md-color-primary-400) !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.md-page.ag-custom-page .ag-modal__lead {
  margin: 0 0 22px;
  color: var(--md-color-text-soft) !important;
  line-height: 1.9;
}

.md-page.ag-custom-page .ag-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.md-page.ag-custom-page .ag-modal__list li {
  position: relative;
  padding-left: 1.15em;
  line-height: 1.9;
}

.md-page.ag-custom-page .ag-modal__list li::before {
  content: "";
  position: absolute;
  top: 0.86em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--md-color-primary-300);
}

.md-page.ag-custom-page .ag-modal__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--md-color-accent);
  color: var(--md-color-neutral-0);
  padding: 0 22px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(111, 145, 168, 0.18);
  transition: background-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
  pointer-events: auto;
}

.md-page.ag-custom-page .ag-modal__link:hover {
  background: var(--md-color-accent-hover);
  color: var(--md-color-neutral-0);
}

.md-page.ag-custom-page .ag-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--md-color-neutral-0);
  color: var(--md-color-text);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(57, 55, 52, 0.16);
}

.md-page.ag-custom-page .ag-modal__close svg {
  width: 21px;
  height: 21px;
}

body.is-ag-modal-open #pagetop,
body.is-ag-modal-open .p-fixBtnWrap,
body.is-ag-modal-open .c-fixBtn,
body.is-ag-modal-open .ag-cta-section,
body:has(.ag-modal.is-open) #pagetop,
body:has(.ag-modal.is-open) .p-fixBtnWrap,
body:has(.ag-modal.is-open) .c-fixBtn,
body:has(.ag-modal.is-open) .ag-cta-section {
  display: none !important;
}

.md-page.ag-custom-page .ag-carousel-wrap::before {
  background: linear-gradient(to right, var(--md-color-bg) 0%, rgba(248, 246, 242, 0) 100%) !important;
}

.md-page.ag-custom-page .ag-carousel-wrap::after {
  background: linear-gradient(to left, var(--md-color-bg) 0%, rgba(248, 246, 242, 0) 100%) !important;
}

.md-page.ag-custom-page .ag-cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 40px);
  border-radius: 24px !important;
  background: linear-gradient(135deg, var(--md-color-primary-50), var(--md-color-neutral-0) 58%, var(--md-color-warm-bg)) !important;
  box-shadow: none !important;
}

.md-page.ag-custom-page .ag-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
}

.md-page.ag-custom-page .ag-cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.24) 46%, rgba(255, 255, 255, 0.06) 78%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.md-page.ag-custom-page .ag-cta-content {
  position: relative;
  z-index: 2;
  color: var(--md-color-text);
}

.md-page.ag-custom-page .ag-cta-content .ag-section-title {
  color: var(--md-color-accent-hover) !important;
}

.md-page.ag-custom-page .ag-cta-content .ag-lead-text {
  color: #6F6A64 !important;
}

.md-page.ag-custom-page .ag-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.md-page.ag-custom-page .ag-fade-up.ag-visible {
  opacity: 1;
  transform: translateY(0);
}

.md-page.ag-custom-page .ag-wave-top,
.md-page.ag-custom-page .ag-wave-bottom {
  position: relative;
}

.md-page.ag-custom-page .ag-wave-top {
  padding-top: 132px !important;
}

.md-page.ag-custom-page .ag-wave-top::before,
.md-page.ag-custom-page .ag-wave-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 110px;
  pointer-events: none;
}

.md-page.ag-custom-page .ag-wave-top::before {
  top: -1px;
  background: var(--md-wave-from, #FFFFFF);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%201440%20110%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M0%2C0H1440V36C1235%2C70%201028%2C84%20794%2C70C560%2C56%20345%2C18%200%2C54V0Z%27/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%201440%20110%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M0%2C0H1440V36C1235%2C70%201028%2C84%20794%2C70C560%2C56%20345%2C18%200%2C54V0Z%27/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.md-page.ag-custom-page .ag-wave-top > *,
.md-page.ag-custom-page .ag-wave-bottom > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .md-page.ag-custom-page .ag-profile-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .md-page.ag-custom-page .ag-profile-left {
    width: auto;
  }

  .md-page.ag-custom-page .ag-profile-right {
    flex: 1;
    width: auto;
  }

  .md-page.ag-custom-page .ag-profile-img-wrap {
    width: 150px;
    height: 150px;
  }

  .md-page.ag-custom-page .ag-grid-2,
  .md-page.ag-custom-page .ag-worry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .md-page.ag-custom-page .ag-service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 60px;
  }

  .md-page.ag-custom-page .ag-service-img {
    margin-top: 58px;
  }

  .md-page.ag-custom-page .ag-service-row.reverse .ag-service-img {
    order: 2;
  }

  .md-page.ag-custom-page .ag-service-row.reverse .ag-service-text {
    order: 1;
  }
}

@media (max-width: 767px) {
  .md-page.ag-custom-page .ag-container,
  .md-page.ag-custom-page .ag-container-sm {
    width: 100% !important;
    max-width: calc(100% - 40px) !important;
    padding-inline: 0 !important;
  }

.md-page.ag-custom-page .ag-section-title,
  .md-page.ag-custom-page .ag-profile-title {
    margin-bottom: 16px !important;
    font-size: 1.35rem !important;
    line-height: 1.5 !important;
  }

.md-page.ag-custom-page .ag-lead-text {
    margin-bottom: 36px !important;
    font-size: 0.88rem !important;
    line-height: 1.75 !important;
    text-align: left !important;
  }

.md-page.ag-custom-page .ag-profile-title {
    font-size: 1.125rem !important;
  }

.md-page.ag-custom-page .ag-profile-flex {
    gap: 36px;
  }

.md-page.ag-custom-page .ag-profile-img-wrap {
    width: 110px;
    height: 110px;
    margin-bottom: 8px;
  }

.md-page.ag-custom-page .ag-profile-box {
    margin-top: 0 !important;
    padding-top: 28px !important;
  }

.md-page.ag-custom-page .ag-card,
  .md-page.ag-custom-page .ag-profile-box,
  .md-page.ag-custom-page .ag-worry-card,
  .md-page.ag-custom-page .ag-cta-box {
    width: 100% !important;
    max-width: 100% !important;
  }

.md-page.ag-custom-page .ag-service-row {
    display: grid;
    gap: 24px !important;
    margin-bottom: 44px !important;
  }

.md-page.ag-custom-page .ag-service-img {
    margin-top: 0;
    order: -1;
  }

.md-page.ag-custom-page .ag-service-num span {
    font-size: 2rem;
  }

.md-page.ag-custom-page .ag-carousel-item {
    width: 252px;
    margin-right: 18px;
  }

.md-page.ag-custom-page .ag-carousel-img {
    height: auto;
  }

.md-page.ag-custom-page .ag-carousel-wrap::before,
  .md-page.ag-custom-page .ag-carousel-wrap::after {
    width: 20%;
  }

.md-page.ag-custom-page .ag-carousel-control {
    top: auto;
    bottom: 8px;
    width: 38px;
    height: 38px;
    transform: none;
  }

.md-page.ag-custom-page .ag-carousel-control:hover {
    transform: none;
  }

.md-page.ag-custom-page .ag-carousel-control svg {
    width: 20px;
    height: 20px;
  }

.md-page.ag-custom-page .ag-carousel-control--prev {
    left: 18px;
  }

.md-page.ag-custom-page .ag-carousel-control--next {
    right: 18px;
  }

.md-page.ag-custom-page .ag-wave-top {
    padding-top: 104px !important;
  }

.md-page.ag-custom-page .ag-wave-top::before,
  .md-page.ag-custom-page .ag-wave-bottom::after {
    height: 82px;
  }

.md-page.ag-custom-page .ag-wave-top::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%201440%2082%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M0%2C0H1440V28C1110%2C48%20872%2C54%20634%2C46C398%2C38%20206%2C24%200%2C42V0Z%27/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%201440%2082%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M0%2C0H1440V28C1110%2C48%20872%2C54%20634%2C46C398%2C38%20206%2C24%200%2C42V0Z%27/%3E%3C/svg%3E");
  }

.md-page.ag-custom-page .ag-modal {
    padding: max(92px, calc(env(safe-area-inset-top) + 88px)) 12px max(12px, calc(env(safe-area-inset-bottom) + 10px));
  }

.md-page.ag-custom-page .ag-modal__dialog {
    display: grid;
    height: calc(100vh - 112px);
    height: calc(100dvh - 112px);
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

.md-page.ag-custom-page .ag-modal__media {
    min-height: 0;
    max-height: 30vh;
    max-height: 30dvh;
    padding: 18px 18px 16px;
  }

.md-page.ag-custom-page .ag-modal__media img {
    max-height: 24vh;
    max-height: 24dvh;
  }

.md-page.ag-custom-page .ag-modal__body {
    overflow: auto;
    padding: 18px 20px 22px;
  }

.md-page.ag-custom-page .ag-modal__eyebrow {
    margin-bottom: 6px;
    font-size: 0.78rem;
  }

.md-page.ag-custom-page .ag-modal__title {
    margin-bottom: 10px !important;
    font-size: 1.2rem;
    line-height: 1.45;
  }

.md-page.ag-custom-page .ag-modal__lead {
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

.md-page.ag-custom-page .ag-modal__list li {
    font-size: 0.9rem;
    line-height: 1.65;
  }

.md-page.ag-custom-page .ag-modal__list li::before {
    top: 0.72em;
  }

.md-page.ag-custom-page .ag-modal__link {
    min-height: 38px;
    margin-top: 16px;
    padding-inline: 18px;
    font-size: 0.86rem;
  }

.md-page.ag-custom-page .ag-modal__close {
    top: 22px;
    right: 10px;
    width: 34px;
    height: 34px;
  }
}

.md-page.ag-custom-page .ag-cta-content .ag-section-title,
.md-page.ag-custom-page .ag-cta-content .ag-lead-text {
  color: #ffffff !important;
}

.ag-target-list {
  max-width: 760px;
  margin: 0 auto;
  background: #FAF7F4;
  border-radius: 16px;
  padding: 8px 40px;
}

.ag-target-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed #E8DDD7;
}

.ag-target-item--last {
  border-bottom: none;
}

.ag-target-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #7A6355;
}

.ag-target-dot svg {
  width: 24px;
  height: 24px;
  stroke: #7A6355;
  stroke-width: 1.5;
  fill: none;
}

.ag-target-item p {
  margin: 0;
  line-height: 1.8;
  color: var(--md-color-text);
}

/* メインビジュアル */
.ag-hero {
  line-height: 0;
}

.ag-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ====== News ====== */
.md-page.ag-custom-page .ag-news-section {
  padding-top: 40px;
  padding-bottom: 96px;
}

@media (max-width: 767px) {
  .md-page.ag-custom-page .ag-news-section {
    padding-bottom: 60px !important;
  }
}

.ag-news-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--md-color-primary-200);
}

.ag-news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--md-color-primary-200);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.ag-news-item:hover {
  opacity: 0.7;
}

.ag-news-date {
  flex-shrink: 0;
  width: 90px;
  font-family: "Times New Roman", serif;
  color: var(--md-color-text-soft);
  font-size: 0.9rem;
}

.ag-news-title {
  color: var(--md-color-text);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.7;
}

.ag-news-item:hover .ag-news-title {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .ag-news-item {
    flex-direction: column;
    gap: 4px;
    padding: 16px 4px;
  }
  .ag-news-date {
    width: auto;
    font-size: 0.8rem;
  }
}

/* ====== Blog ====== */
.ag-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}

.ag-blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--md-color-neutral-0);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--md-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ag-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(95, 129, 152, 0.18);
}

.ag-blog-card-img {
  aspect-ratio: 16 / 10;
  background: var(--md-color-neutral-50);
}

.ag-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-blog-card-img--placeholder {
  background: linear-gradient(135deg, var(--md-color-primary-50), var(--md-color-primary-200));
}

.ag-blog-card-body {
  padding: 20px 20px 24px;
}

.ag-blog-card-date {
  display: block;
  margin-bottom: 8px;
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: var(--md-color-accent);
  font-size: 0.85rem;
}

.ag-blog-card-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--md-color-primary-400);
}

.ag-blog-card-excerpt {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--md-color-text-soft);
}

@media (max-width: 767px) {
  .ag-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (min-width: 769px) {
  .md-page.ag-custom-page .ag-blog-section {
    padding-bottom: 48px;
  }
}

/* ====== 診断バナー（Blog〜最終CTAの間の誘導帯） ====== */
.md-page.ag-custom-page .ag-shindan-band {
  background: #6E91A7;
  padding-block: clamp(28px, 4vw, 36px);
}

.md-page.ag-custom-page .ag-shindan-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.md-page.ag-custom-page .ag-shindan-band-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

.md-page.ag-custom-page .ag-shindan-band-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.75;
}

.md-page.ag-custom-page .ag-shindan-band-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.md-page.ag-custom-page .ag-shindan-band-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 32px;
  background: var(--md-color-neutral-0);
  color: var(--md-color-primary-400);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.md-page.ag-custom-page .ag-shindan-band-btn:hover {
  opacity: 0.85;
}

.md-page.ag-custom-page .ag-shindan-band-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

@media (min-width: 769px) {
  .md-page.ag-custom-page .ag-shindan-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
  }

  .md-page.ag-custom-page .ag-shindan-band-title {
    margin-bottom: 8px;
  }

  .md-page.ag-custom-page .ag-shindan-band-action {
    flex-shrink: 0;
    align-items: center;
  }

  .md-page.ag-custom-page .ag-section:has(+ .ag-shindan-band) {
    padding-bottom: clamp(40px, 4vw, 56px);
  }

  .md-page.ag-custom-page .ag-shindan-band + .ag-section {
    padding-top: clamp(40px, 4vw, 56px);
  }
}

/* ====== 最終CTA内・診断ページへのテキストリンク ====== */
.md-page.ag-custom-page .ag-cta-shindan-link {
  margin-top: 16px;
}

.md-page.ag-custom-page .ag-cta-shindan-link a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s ease;
}

.md-page.ag-custom-page .ag-cta-shindan-link a:hover {
  opacity: 0.75;
}
