@charset "utf-8";

/* ---------- index page ---------- */
/* --- MV --- */
.mv-container {
  display: flex;
  width: 100%;
  height: 100vh;
  /* 1920x1080のアスペクト比を維持したい場合は以下を有効化しheight:100vhを削除 */
  /* aspect-ratio: 16 / 9;
       max-height: 100vh; */
  background-color: #000;
}

/* 左右のパネル共通設定 */
.mv-panel {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--slide-transition);
  overflow: hidden;
  cursor: pointer;
}

/* 左側：医療系パネル */
.medical-panel {
  flex-basis: var(--left-ratio);
  background-image: url("../images/desk_bg.avif");
}

.medical-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 50, 100, 0.6), transparent);
}

/* 右側：一般系パネル */
.general-panel {
  flex-basis: calc(100% - var(--left-ratio));
  background-image: url("../images/img_4711.avif");
}

.general-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
}

.panel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

.panel-content p {
  color: #fff;
}

.medical-panel .panel-content {
  left: 10%;
  transform: translate(0, -50%);
  text-align: left;
}

.general-panel .panel-content {
  right: 10%;
  left: auto;
  transform: translate(0, -50%);
  text-align: right;
}

/* ボタン共通スタイル */
.mv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-main);
  border-radius: 4px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.btn-icon {
  margin-left: 1rem;
  font-family: var(--font-main);
  transition: transform 0.4s ease;
}

/* 左：医療用ボタン */
.medical-btn {
  border: 2px solid #fff;
  background-color: transparent;
}

.medical-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #fff;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.medical-btn:hover {
  color: #0056b3;
}

.medical-btn:hover::before {
  width: 100%;
}

.medical-btn:hover .btn-icon {
  transform: translateX(5px);
}

/* 右：一般用ボタン */
.general-btn {
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.general-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 30%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: rotate(25deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.general-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
  border-color: #fff;
}

.general-btn:hover::after {
  left: 130%;
  opacity: 1;
}

.general-btn:hover .btn-icon {
  animation: arrowSlide 0.6s ease forwards;
}

/* 矢印のアニメーション定義 */
@keyframes arrowSlide {
  0% { transform: translateX(0); opacity: 1; }
  49% { transform: translateX(15px); opacity: 0; }
  50% { transform: translateX(-15px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* --- Strength Section --- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.strength-item {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 119, 204, 0.05);
  border: 1px solid #e0f7fa;
  text-align: center;
}

.strength-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.strength-icon-svg, .expertise-icon-svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-main);
  transition: all 0.3s ease;
}

.strength-icon-svg svg, .expertise-icon-svg svg {
  width: 100%;
  height: 100%;
}

.strength-item:hover .strength-icon-svg,
.expertise-card:hover .expertise-icon-svg {
  color: var(--color-accent);
  transform: scale(1.1) rotate(5deg);
}

.strength-item h3 {
  margin-bottom: 1rem;
}

.strength-description {
  font-size: 0.875rem;
  text-shadow: none;
}

/* --- About --- */
.about-section {
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/back.png") repeat center center;
  background-size: 300px auto;
  opacity: 0.15;
  z-index: 0;
}

.about-section * {
  position: relative;
  z-index: 1;
}

.about-contents {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-content {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.about-photo img {
  width: 300px;
  border-radius: 20%;
  box-shadow: 0 6px 14px rgba(0, 120, 180, 0.15);
}

.about-text h3 {
  margin-bottom: 1rem;
}

.about-skills-title {
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.about-skill {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border: 1px solid #bfdbfe;
  color: var(--color-main);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition: box-shadow 0.3s;
}

.about-btn-group {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  grid-template-columns: 1fr 1fr;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  height: 56px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-icon-official,
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Instagramボタン */
.btn-insta {
  background: linear-gradient(135deg, #1e90ff, #00ced1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-insta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent,rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

.btn-insta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.5);
}

.btn-insta:hover::after {
  left: 130%;
}

/* Moreボタン */
.btn-more {
  background-color: transparent;
  color: #0056b3;
  border: 2px solid #0056b3;
}

.btn-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #0056b3;
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-more:hover {
  color: #fff;
  transform: translateY(-3px);
}

.btn-more:hover::before {
  width: 100%;
}

.about-btn:hover .btn-icon {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

.btn-icon-official {
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  transition: transform 0.4s ease;
}

.btn-icon-official img,
.btn-icon-official svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-insta:hover .btn-icon-official {
  transform: scale(1.1) rotate(-10deg);
}

/* Lancers */
.btn-lancers {
  background-color: transparent;
  color: #165e83;
  border: 2px solid #165e83;
}

.btn-lancers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #165e83;
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-lancers:hover {
  color: #fff;
}

.btn-lancers:hover::before {
  width: 100%;
}

/* coconala */
.btn-coconala {
  background: linear-gradient(135deg, #22bb99, #00ced1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 187, 153, 0.2);
}

.btn-coconala::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

.btn-coconala:hover::after {
  left: 130%;
}

.btn-coconala:hover {
  box-shadow: 0 10px 25px rgba(34, 187, 153, 0.4);
}

/* --- Services Section --- */
.services-section {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.6), rgba(224, 231, 255, 0.4), white);
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.service-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.5s;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-image {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.1), transparent);
}

.service-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 1.125rem;
  font-weight: 700;
  color: #3b82f6;
  font-family: var(--font-main);
}

.price-before {
  text-decoration: line-through;
  color: #666;
  font-size: 0.8rem;
  font-weight: 400;
}

.price-after {
  color: #ff4444;
  font-size: 1.4rem;
  font-weight: 800;
}

.price-tax {
  font-size: 0.7rem;
  color: #666;
  font-weight: 400;
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-shadow: none;
}

.checklist-blue {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.checklist-blue li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}

.checklist-blue li::before {
  content: "✔";
  color: var(--color-main);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.service-button {
  width: 100%;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  color: white;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.service-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.service-note {
  text-align: center;
  margin-top: 3rem;
  color: #666;
  font-size: 0.875rem;
}

.section-links {
  justify-content: center;
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.standard-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}
.standard-features li::before {
  content: "✓";
  color: var(--color-accent);
  margin-right: 0.5rem;
  font-weight: bold;
}

.lead-time-badge {
  display: inline-block;
  background: #eef9ff;
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 86, 179, 0.1);
}

.lead-time-badge i {
  margin-right: 5px;
}

.option-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  text-align: left;
}
.option-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px dashed #ddd;
  font-size: 0.95rem;
}
.option-list li strong {
  color: var(--color-accent);
}

.portfolio-info-tag {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #999;
  text-align: left;
}

/* --- Maintenance Section --- */
.maint-notice-bar {
  max-width: 800px; margin: 0 auto 40px; padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 0.85rem; color: #555; backdrop-filter: blur(5px);
}

.maint-grid { 
  display: flex; gap: 30px; justify-content: center; align-items: stretch; 
}

.maint-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* iPhone/Safari用 */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px; padding: 40px; flex: 1; max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.maint-glass-card.primary { border: 1px solid var(--color-accent); background: white; }
.maint-glass-card:hover { transform: translateY(-10px); }

.price-display { margin: 25px 0; }
.amount { font-size: 3.5rem; font-weight: 800; color: var(--color-primary); }
.unit { font-size: 1rem; color: #888; }

.feature-list { list-style: none; padding: 0; text-align: left; }
.feature-list li { 
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); 
  font-size: 0.9rem; display: flex; align-items: center;
}
.feature-list li::before { content: "●"; color: var(--color-accent); margin-right: 12px; font-size: 0.7rem; }

.option-row {
  display: flex; justify-content: space-between; padding: 15px 0;
  border-bottom: 1px dashed #ccc; font-size: 0.9rem;
}
.val { font-weight: bold; color: var(--color-accent); }

@media (max-width: 768px) {
  .maint-grid { flex-direction: column; align-items: center; }
  .maint-glass-card { width: 90%; padding: 30px; }
}

/* --- Campaign Section --- */
.campaign-section {
  background: #f0f9ff;
  padding: 80px 20px;
}

.campaign-box {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--color-main);
  border-radius: var(--radius-card);
  padding: 50px;
  text-align: center;
  position: relative;
}

.campaign-tag {
  background: #ff4444;
  color: #fff;
  padding: 5px 20px;
  border-radius: 99px;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
}

.campaign-text {
  text-shadow: none;
}

.campaign-limit {
  margin: 20px 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.campaign-limit span {
  color: #ff4444;
  font-size: 2.5rem;
}

/* --- Process --- */
.process-section {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.6), rgba(224, 231, 255, 0.4), white);
  position: relative;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.process-step {
  text-align: center;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-8px);
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step-number.step-1 {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.step-number.step-2 {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.step-number.step-3 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.step-number.step-4 {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.process-step:hover .step-number {
  transform: scale(1.1);
}

.step-title {
  font-weight: bold;
  margin-bottom: 16px;
}

.step-description {
  font-size: 0.875rem;
  text-shadow: none;
}

.process-flow {
  position: relative;
  margin-top: 64px;
}

.flow-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #8b5cf6);
  transform: translateY(-50%);
  opacity: 0;
  animation: flowLineAppear 1s ease-in-out 2s forwards;
}

.flow-dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.flow-dot {
  width: 16px;
  height: 16px;
  background: white;
  border: 4px solid #3b82f6;
  border-radius: 50%;
  opacity: 0;
  animation: dotAppear 0.5s ease-in-out forwards;
}

.flow-dot:nth-child(1) {
  animation-delay: 0.5s;
  border-color: #3b82f6;
}

.flow-dot:nth-child(2) {
  animation-delay: 1s;
  border-color: #10b981;
}

.flow-dot:nth-child(3) {
  animation-delay: 1.5s;
  border-color: #f59e0b;
}

.flow-dot:nth-child(4) {
  animation-delay: 2s;
  border-color: #8b5cf6;
}

@keyframes dotAppear {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flowLineAppear {
  from { opacity: 0; transform: translateY(-50%) scaleX(0); }
  to { opacity: 1; transform: translateY(-50%) scaleX(1); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Portfolio Section --- */
.portfolio-bg {
  background: linear-gradient(135deg, #f9fafb, rgba(239, 246, 255, 0.3));
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.portfolio-sidebar {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.portfolio-sidebar h2 {
  position: relative;
  text-align: center;
  padding-bottom: 20px;
}

.portfolio-sidebar h2::after {
  content: "";
  position: absolute;
  left: 30%;
  transform: translateX(-50%);
  bottom: 0;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0), var(--color-main), rgba(59, 130, 246, 0));
}

.portfolio-sidebar p {
  font-size: 0.875rem;
  text-shadow: none;
}

.portfolio-number {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-number-big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: "Poppins", sans-serif;
}

.portfolio-note {
  background: #fffbeb;
  border-left: 4px solid #fbbf24;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

.portfolio-note p {
  font-size: 0.875rem;
  text-shadow: none;
}

.portfolio-note strong {
  color: #b45309;
  font-weight: 600;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-button {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  background: white;
  color: var(--color-text);
}

.filter-button:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #3b82f6;
}

.filter-button.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.5s;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2), transparent);
}

.portfolio-image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
}

.portfolio-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 0.1rem;
}

.portfolio-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-main);
}

.portfolio-details {
  padding: 1.5rem;
}

.portfolio-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.portfolio-type i {
  color: #3b82f6;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tag {
  padding: 0.25rem 0.75rem;
  background: #eff6ff;
  color: var(--color-main);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.portfolio-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-image-overlay {
  opacity: 0;
}

.portfolio-card:hover .portfolio-view {
  opacity: 0;
}

.portfolio-more {
  margin-top: 4rem;
  text-align: center;
}

.portfolio-more p {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.pagination-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3b82f6;
  background: #fff;
  color: #3b82f6;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-btn.active {
  background: #3b82f6;
  color: #fff;
}

.page-btn:hover:not(.active) {
  background: #eff6ff;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 30px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  border-bottom: 3px solid #e0f7fa;
}

.faq-item dt {
  font-weight: bold;
  color: var(--color-main);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.faq-item dt::before {
  content: "Q. ";
}

.faq-item dd {
  color: #666;
}

/* FAQ内の強調表示 */
.faq-item dd strong {
  color: var(--color-primary);
  display: inline-block;
  margin-top: 10px;
}
.faq-item dd small {
  color: #888;
}

/* --- Contact Section --- */
.contact-section {
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/back.png") repeat center center;
  background-size: 300px auto;
  opacity: 0.15;
  z-index: 0;
}

.contact-section * {
  position: relative;
  z-index: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: none;
  justify-content: center;
}

.contact-form fieldset label {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0.3rem;
}

.contact-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-main);
  vertical-align: middle;
}

/* 送信ボタン */
.form-submit-area {
  text-align: center;
  margin-top: 50px;
}

.submit-btn {
  min-width: 250px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #0056b3 0%, #00ced1 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-scan-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, transparent 100%);
  z-index: 1;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 86, 179, 0.4);
  background: linear-gradient(135deg, #004494 0%, #00b2b5 100%);
}

.submit-btn:hover .btn-scan-line {
  animation: scanRun 1.5s infinite;
}

@keyframes scanRun {
  0% { left: -100%; }
  100% { left: 100%; }
}

.submit-btn .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 15px;
  transition: transform 0.4s ease;
}

.submit-btn .btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.submit-btn:hover .btn-icon {
  transform: scale(1.2) rotate(-10deg);
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 86, 179, 0.2);
}

/* --- ポップアップ（モーダル）のスタイル --- */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(5px);  
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border-radius: var(--radius-card);
}

.modal.visible .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* --- 泡アニメーション フルスクリーン --- */
.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
  0% { transform: translateY(100vh) scale(0.5); opacity: 1; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}
/* --- レスポンス対応 --- */
@media (max-width: 768px) {
  .panel-content h2 { font-size: 2rem; }
  .panel-content p { font-size: 1rem; }
  .section-title { font-size: 2.5rem; }
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow-line .flow-dots { display: none; }
  .portfolio-layout { grid-template-columns: 1fr;}
  .portfolio-sidebar { position: static; top: auto; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .action-cards { flex-direction: column; padding: 0 20px; }
  .footer-grid { flex-direction: column; gap: 40px; padding: 0 20px; }
  .footer-nav { width: 100%; gap: 20px; flex-wrap: wrap; }
  .nav-col { min-width: 140px; }
  .logo-text { margin-bottom: 1rem; width: 300px; }
  .header-logo { font-size: 1.2rem; }
  .header-logo span { font-size: 1rem; }
  .portfolio-more .btn-text { font-size: 0.8rem; }
  .campaign-title { font-size: 2.3rem; }
/*  ハンバーガー  */
  .hamburger { display: flex; }
  .nav ul {
    position: absolute;
    top: 4rem;
    right: 0;
    width: 40%;
    background: #fff;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
  }
  .nav.active ul { opacity: 1; pointer-events: auto; transform: translateY(0); }
  /* ハンバーガー開閉アニメーション */
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .mv-container { flex-direction: column; height: auto; min-height: 100vh; }
  .medical-panel, .general-panel { flex-basis: 50vh !important; width: 100%; }
  .medical-panel .panel-content, 
  .general-panel .panel-content {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
  }
}