@charset "UTF-8";

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-main-dark), var(--color-main));
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 背景装飾 */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
  z-index: 0;
}

.page-header-container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.page-subtitle {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
}

/* --- Notification Bar --- */
.notification-bar {
  background-color: #FFF9C4;
  /* 薄い黄色 */
  color: #333;
  padding: 12px 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid #FBC02D;
  line-height: 1.5;
}

/* --- AI Consult Banner (New) --- */
.ai-consult-banner {
  background: #fff;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
}

.ai-banner-box {
  background: linear-gradient(135deg, #E3F2FD, #FFFFFF);
  border: 2px solid #BBDEFB;
  border-radius: 12px;
  padding: 25px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 4px 15px rgba(0, 77, 161, 0.05);
}

.ai-text-group h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-text-group p {
  font-size: 15px;
  color: var(--color-text-main);
  margin: 0;
}

.btn-ai-consult {
  background: linear-gradient(45deg, #2979FF, #2962FF);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
  white-space: nowrap;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  gap: 8px;
}

.btn-ai-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 121, 255, 0.4);
}

@media screen and (max-width: 768px) {
  .ai-banner-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
  }

  .ai-text-group h2 {
    justify-content: center;
    font-size: 18px;
  }

  .btn-ai-consult {
    width: 100%;
  }
}

/* --- Modal --- */
.ai-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-modal-overlay.is-visible {
  display: flex;
  opacity: 1;
}

.ai-modal-content {
  background: #fff;
  width: 90%;
  max-width: 1000px;
  height: 80vh;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: #333;
  z-index: 10;
  transition: 0.3s;
  line-height: 1;
}

.ai-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.ai-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Consultation Section (Revised for 2 Columns) --- */
.consultation-section {
  background-color: #fff;
  padding: 50px 0;
  border-bottom: 1px solid var(--color-border);
}

.consultation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.consult-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}

.consult-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--color-sub);
}

.consult-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-main-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-main);
}

.consult-icon-box .material-symbols-outlined {
  font-size: 36px;
}

.consult-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.consult-card-text {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.consult-card .btn {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Service Detail Section --- */
.service-section {
  padding: 60px 0;
}

.service-section:nth-child(odd) {
  background-color: var(--color-bg-body);
}

.service-section:nth-child(even) {
  background-color: #fff;
}

.category-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-icon {
  font-size: 32px;
  color: var(--color-main);
}

.category-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-main);
}

.category-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-left: auto;
}

/* --- Service Item Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-item-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 77, 161, 0.1);
}

.service-img-wrapper {
  height: 180px;
  overflow: hidden;
  background-color: #eee;
  position: relative;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-item-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.service-text {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-meta {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-price {
  font-size: 13px;
  color: var(--color-text-sub);
}

.service-price strong {
  color: var(--color-main);
  font-size: 16px;
  margin-left: 4px;
}

.service-link-icon {
  color: var(--color-sub);
  font-size: 20px;
}

/* --- Monthly Subscription Banner --- */
.sub-banner-monthly {
  background: linear-gradient(135deg, var(--color-main), var(--color-main-dark));
  border: none;
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 77, 161, 0.25);
  color: #fff;
}

.sub-banner-monthly::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  z-index: 0;
}

.sub-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.sub-icon {
  width: 70px;
  height: 70px;
  background: #fff;
  color: var(--color-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sub-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.sub-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.sub-features {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.sub-feature-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 4px;
}

.sub-feature-item::before {
  content: 'check_circle';
  font-family: 'Material Symbols Outlined';
  color: #4FC3F7;
  margin-right: 6px;
  font-size: 18px;
}

.sub-action {
  text-align: right;
  position: relative;
  z-index: 1;
}

.sub-price {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 8px;
}

.sub-price strong {
  font-size: 26px;
  color: #fff;
  font-weight: 800;
}

.sub-banner-monthly .btn-primary {
  background: #fff;
  color: var(--color-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sub-banner-monthly .btn-primary:hover {
  background: #f0f8ff;
}

/* --- Regular Contact Banner --- */
.sub-banner {
  background: #fff;
  border: 2px solid var(--color-main-light);
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sub-banner .sub-icon {
  width: 60px;
  height: 60px;
  background: var(--color-main-light);
  color: var(--color-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.sub-banner .sub-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.sub-banner .sub-text p {
  font-size: 14px;
  color: var(--color-text-sub);
}

.sub-banner .btn-primary {
  background: var(--color-main);
  color: #fff;
}

/* SP Adjustments */
@media screen and (max-width: 900px) {
  .page-title {
    font-size: 24px;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-desc {
    margin-left: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sub-banner,
  .sub-banner-monthly {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .sub-banner .sub-action,
  .sub-banner-monthly .sub-action {
    width: 100%;
    text-align: center;
  }

  .sub-banner .sub-action .btn,
  .sub-banner-monthly .sub-action .btn {
    width: 100%;
  }

  .sub-features {
    flex-direction: column;
    margin-left: 0;
    margin-top: 15px;
    gap: 10px;
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}