header.l-header { display: none; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* --primary-blue: #2563eb; */
  --primary-blue: #006B7E;
  --primary-blue-tomei: rgba(0, 107, 126, 0.95);
  --secondary-blue: #1e40af;
  --link-hover: #1d4ed8;
  --primary-btn: #FFBA00;
  --secondary-btn: #e69500;
  --light-blue: #eff6ff;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --white: #ffffff;
  --light-gray: #f9fafb;
  --border-gray: #e5e7eb;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ====== PC）ハンバーガーメニュー用トリガー ====== */
.mobile-menu-trigger {
  display: none; /* デフォルトは非表示 */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-trigger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* ハンバーガーがオープン状態の時のスタイル（バッテン表示） */
.mobile-menu-trigger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6.5px);
}
.mobile-menu-trigger.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-trigger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6.5px);
}

.mobile-menu-content {
  display: none; /* 非表示 */
}


/* Header */
.header {
  background: var(--primary-blue-tomei);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: inline-block; /* transformの適用やhover効果が期待どおりに動作するように */
  transition: transform 0.3s ease;
}

.logo img {
  /* 画像がコンテナ内に収まるように調整する場合 */
  max-width: 100%;
  height: 55px;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(37, 99, 235, 0.1) 100%);
  padding: 120px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%232563eb" opacity="0.1"/></svg>') repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  animation: slideUp 1s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 1s ease-out 0.4s both;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;  /* 水平方向中央揃え */
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-btn);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--secondary-btn);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-btn);
  border: 2px solid var(--primary-btn);
}

.btn-secondary:hover {
  background: var(--primary-btn);
  color: var(--white);
  transform: translateY(-2px);
}

@keyframes slideUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Services Section */
.services {
  padding: 80px 2rem;
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue));
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--light-blue);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  min-height: 4.2em; /* 約3行分の高さを確保 */
}

.pricing-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.pricing-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.price-item {
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid #e0f2fe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  position: relative;
}

.price-item::before {
  content: '💰';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  opacity: 0.6;
}

.price-item:last-child {
  margin-bottom: 0;
}

.price-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.price-breakdown {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.price-amount {
  color: #FF5C5C;
  font-weight: 600;
  display: inline-block;
  min-width: 83px;  /* 必要に応じて調整 */
  text-align: right;  
}

.price-amount.torokuseikohosyu {
  min-width: 70px; /* 登録時の「成功報酬」に合わせて調整（数値はご確認の上変更してください） */
}

.price-total-container {
  text-align: right;
  margin-top: 0.5rem;
}

.price-total {
  font-size: 1.1rem;
  font-weight: bold;
  color: #FF5C5C;
  margin-bottom: 0.2rem;
}

.tax-note {
  font-size: 0.7rem;
  color: var(--text-gray);
  font-style: italic;
  opacity: 0.8;
}

.price-note {
  font-size: 0.75rem;
  color: #FF5C5C;
  font-style: italic;
}

/* About Section */
.about {
  padding: 80px 2rem;
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
}

.line-break {
  display: block;
  margin-top: 0.2rem;
}

.spidex-link {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
}

.spidex-link:hover {
  color: var(--link-hover);
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.spidex-link:focus {
  outline: 2px solid var(--secondary-blue);
  outline-offset: 2px;
}

.spidex-link::after {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f35d"; /* fa-external-link-alt */
  font-size: 0.75em;
  margin-left: 0.4rem;
  opacity: 0.6;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.spidex-link:hover::after {
  opacity: 1;
}

ruby {
  ruby-align: center;
}

rt {
  font-size: 0.75em;
  color: var(--secondary-blue);
  font-weight: 500;
}

.about-image {
  border-radius: 20px;
  height: 400px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 画像を要素の全体にフィットさせる */
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストオーバーレイ */
.text-overlay {
  position: absolute;
  bottom: 20px; /* 右下から離す */
  right: 30px; /* 右下から離す */
  background: rgba(45, 123, 145, 0.9); /* 元画像の青緑色を再現 */
  backdrop-filter: blur(5px);
  border: 2px solid white; /* 白い枠線を追加 */
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.overlay-content {
  text-align: left;
  color: white;
}

.office-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  opacity: 0.95;
}

.representative {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}


/* Contact Section */
.contact {
  padding: 80px 2rem;
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  width : 100%;
  line-height: 1.6;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.contact-info p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-details {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.3rem;
}

.contact-form {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}


/* フッター */
.l-footer__logo.p-logo img {
  height: 55px;
  width: auto;
}

/* フッターナビ */
.footer-nav {
  text-align: center;
  margin: 2rem 0 1rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.footer-menu li {
  display: inline-block;
  margin: 0 1rem;
}

.footer-link {
  display: inline-block; /* この行を追加 */
  font-size: 1rem;
  color: var(--white); /* お好みの色に調整 */
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.footer-link:hover {
  background-color: #005361; /* hover時は少し濃い目に */
  transform: translateY(-2px);
}

.footer-service-links {
  text-align: center;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-service-anchor {
  display: inline-block;
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-service-anchor:hover {
  background-color: #005361; /* hover時は少し濃い目に */
  transform: translateY(-2px);
}


.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}




@media (max-width: 1100px) {

  .about-content {
      gap: 2rem;
  }
  
  .about-features {
      gap: 1rem;
  }
  
  .feature-item {
    padding: 0.1rem;
  }

  .feature-text {
    font-size: 0.9rem;
  }
  
}

@media (max-width: 840px) {

  .nav-menu.desktop-menu {
    display: none; /* PC用メニューは非表示 */
  }
  .mobile-menu-trigger {
    display: flex; /* ハンバーガーアイコンを表示 */
  }
  /* ----- モバイル用メニューコンテナ ----- */
  .mobile-menu-content {
    display: none; /* 初期は非表示。JSでdisplay:flexに切替 */
    background-color: #006B7E;
    position: fixed;  /* fixedにすることでビューポート全体に配置 */
    top: 60px; /* ヘッダーの下に配置（ヘッダー高さに合わせる） */
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
  }
  /* モバイル用ナビゲーションを横並びに */
  .nav-menu.mobile-menu {
    margin: 0;
    padding: 0 80px; /* 左右に余白を追加 */
    display: flex;
    flex-direction: column;  /* 縦並び */
    align-items: flex-start;  /* 左寄せ */
    width: 100%;
    gap: 5px;
  }
  .nav-menu.mobile-menu a {
    display: block;
    margin: 10px 0;  /* 縦の余白 */
    padding: 0;       /* 横の余白をなくす */
    color: white;
    text-decoration: none;
    font-size: 18px;
    width: 100%;
    text-align: left;  /* 文字を左揃え */
  }

  .service-card p {
    min-height: 8.2em;
  }

  .feature-text {
    font-size: 0.7rem;
  }
  
  .contact-content {
      gap: 1rem;
  }

}

@media (max-width: 840px) {

  .service-card p {
    min-height: 10.2em;
  }

}


/* Mobile Responsiveness */
@media (max-width: 768px) {

  .service-card p {
    min-height: 4.2em;
  }

  .nav-menu {
      display: none;
  }

  .hero {
    padding: 120px 1.1rem 80px;
  }

  .hero h1 {
      font-size: 2rem;
  }

  .hero p {
      font-size: 1.1rem;
  }

  .cta-buttons {
      flex-direction: column;
      align-items: center;
  }

  .services {
    padding: 80px 5.0rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
      grid-template-columns: 1fr;
  }

  .service-card {
    padding: 0.5rem;
  }

  .service-card h3 {
    font-size: 2rem;
  }

  .service-card p {
    font-size: 1.2rem;
  }  

  .pricing-title {
    font-size: 2rem;
  }

  .price-item {
    padding: 0.3rem;
    margin-bottom: 2.5rem;
  }

  .price-label {
    font-size: 1.5rem;
  }

  .price-breakdown {
    font-size: 1.3rem;
    margin-bottom: 1.3rem;
  }
  
  .price-amount {
    font-weight: 600;
    min-width: 124px;
  }
  
  .price-total-container {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
  }

  .price-total {
    font-size: 1.8rem;
  }
  
  .price-note {
    font-size: 1.0rem;
  }

  .about {
    padding: 80px 5.0rem;
  }

  .about-content,
  .contact-content {
      grid-template-columns: 1fr;
      gap: 2rem;
  }

  .about-text p {
    font-size: 1.2rem;
  }
  
  .about-features {
      grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 1.0rem 1.0rem 1.0rem 2.3rem;
  }

  .feature-icon {
    font-size: 2.7rem;
  }
  
  .feature-text {
    font-size: 1.5rem;
    line-height: 1.5;
  }
  
  .about-image {
    height: 420px;
  }
    
  .text-overlay {
    padding: 12px 16px;
    right: 12px; /* スマホでも適度に離す */
    bottom: 12px; /* スマホでも適度に離す */
    border: 1.5px solid white; /* スマホでは少し細めの白枠 */
    max-width: calc(100% - 24px); /* 両サイドのマージンを考慮 */
  }
  
  .office-name {
    font-size: 12px;
    margin-bottom: 2px;
  }
  
  .representative {
    font-size: 14px;
  }

  .contact {
    padding: 80px 5.0rem;
  }

  .contact-info p {
    font-size: 1.2rem;
  }
    
  .contact-details {
    padding: 0.4rem;
  }

  .contact-item {
    padding: 0rem;
  }

  .contact-item-icon {
    width: 50px;
    height: 50px;
    font-size: 2.0rem;
  }
  
  .contact-item-info {
    font-size: 1.0rem;
  }

  .contact-form {
    padding: 1.0rem;
  }

  .form-group label {
    font-size: 1.4rem;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 1.4rem;
  }

  .btn {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .l-footer__logo.p-logo img {
    height: 50px !important;
    width: auto;
  }

}

@media (max-width: 480px) {

  /* ハンバーガーメニューを親要素（header）内で絶対配置 */
  .mobile-menu-trigger {
    display: flex;
    position: absolute;
    right: 0px;      /* 右端に配置 */
    top: 50%;      /* 垂直中央へ */
    transform: translateY(-50%);
    margin-right: 1rem; /* もし微調整したい場合 */
  }
  
  .logo img {
    height: 46px;
  }

  .services {
    padding: 80px 0.5rem;
  }

  .feature-text {
    font-size: 1.0rem;
  }
  
  .about {
    padding: 80px 1rem;
  }

  .about-image {
    height: 360px;
  }

  .text-overlay {
    padding: 10px 12px;
    right: 10px; /* 小画面でも適度に離す */
    bottom: 10px; /* 小画面でも適度に離す */
    border: 1px solid white; /* 小画面では細めの白枠 */
  }
  
  .office-name {
    font-size: 11px;
  }
  
  .representative {
    font-size: 13px;
  }
  
  .contact {
    padding: 80px 1.2rem;
  }

}

@media (max-width: 378px) {
  
  .logo img {
    /* 画像がコンテナ内に収まるように調整する場合 */
    height: 42px;
  }

  .hero h1 {
      font-size: 1.9rem;
  }

}

@media (max-width: 328px) {
  
  .nav-container {
    padding: 0 0.5rem;
  }

  .logo img {
    height: 37px;
  }

  .hero h1 {
      font-size: 1.6rem;
  }


  .price-label {
    font-size: 1.2rem;
  }

  .price-breakdown {
    font-size: 1.1rem;
  }
  
  .price-amount {
    min-width: 112px;
  }

  .price-amount.torokuseikohosyu {
    min-width: 95px;
  }

  .price-note {
    font-size: 0.8rem;
  }

  .about-image {
    height: 290px;
  }

  .contact-details {
    padding: 0rem;
  }

  .contact-item-icon {
    width: 15px;
    height: 15px;
    font-size: 1.5rem;
  }
  
  .contact-item-info {
    font-size: 1.0rem;
  }

  .contact-form {
    padding: 0.9rem;
  }

  .form-group label {
    font-size: 1.3rem;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 1.3rem;
  }

  .btn {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .l-footer__logo.p-logo img {
    height: 40px !important;
  }

}
