@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* 透明感のあるクリーンなカラーパレット */
  --bg-color: #ffffff;
  --bg-alt: #f8f9fa; /* 限りなく白に近いグレー */
  --text-main: #333333; /* 濃すぎないチャコールグレー */
  --text-light: #666666;
  --primary: #153b24; /* 濃い緑（BMEイメージカラー） */
  --primary-light: #e6efe9;
  --border-color: #e5e5e5;
  
  /* タイポグラフィ (Noto Sans JPを最優先に設定) */
  --font-serif: "Noto Sans JP", sans-serif;
  --font-sans: "Noto Sans JP", sans-serif;
  
  /* 余白 */
  --spacing-sm: 1rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;
  
  /* トランジション */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* 固定ヘッダーの高さ分、ジャンプ位置を下げる */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

p {
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Header & Navigation
 ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.6rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--bg-color); /* デフォルトは白抜きの透明感 */
  transition: color 0.3s ease;
}

header.scrolled .logo a {
  color: var(--primary);
}

.logo-default {
  display: block;
}
.logo-active {
  display: none;
}

header.scrolled .logo-default {
  display: none;
}
header.scrolled .logo-active {
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--bg-color);
  position: relative;
}

header.scrolled .nav-links a {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Burger Menu */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 1px;
  background-color: var(--bg-color);
  margin: 6px 0;
  transition: 0.3s;
}

header.scrolled .burger-menu span {
  background-color: var(--text-main);
}

/* ==========================================
   Hero & Page Banners
 ========================================== */
.hero, .page-banner {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.hero {
  min-height: 90vh;
}

.page-banner {
  min-height: 35vh;
}

.access-banner-bg {
  background-image: url('images/access_banner_new.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 背景画像をサポートするための設定 */
.hero::before, .page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 59, 36, 0.4); /* 濃い緑のオーバーレイで白文字を見やすく */
  z-index: 1;
}

/* ヒーローコンテンツ（Z-indexで手前に出す） */
.hero-content, .page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--bg-color);
  padding: 0 2rem;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title, .page-banner-title {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-banner-title {
  font-size: 2.5rem;
}

.hero-subtitle, .page-banner-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* 波のようなカーブ（SVG背景） */
.curve-bottom {
  position: absolute;
  bottom: -1px; /* 隙間防止 */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.curve-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100px; /* 波の高さを半分に変更 */
}

.curve-bottom .shape-fill {
  fill: #FFFFFF;
}

/* ==========================================
   Layout Sections
 ========================================== */
.section {
  padding: var(--spacing-xl) 0;
}

.section.alt-bg {
  background-color: var(--bg-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ==========================================
   Components (Cards, Forms, Tables)
 ========================================== */
/* 透明感のあるカード */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.card {
  background: var(--bg-color);
  padding: 3rem 2rem;
  border-radius: 2px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.card-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  overflow: hidden;
}

.card-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* 料金表 (Menu / Pricing) */
.pricing-table-wrapper {
  background-color: var(--bg-color);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
  margin-bottom: 4rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table th, .pricing-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background-color: var(--bg-alt);
  font-weight: 500;
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

/* Contact Form */
.form-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-alt);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--primary);
  color: var(--bg-color);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn:hover {
  background-color: #384640;
}

.btn-outline-white {
  display: inline-block;
  width: 18rem;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid var(--bg-color);
  background-color: transparent;
  color: var(--bg-color);
  text-align: center;
}

.btn-outline-white:hover {
  background-color: var(--bg-color);
  color: var(--primary);
}

/* ==========================================
   Utilities
 ========================================== */
.mobile-only {
  display: none;
}
.mobile-only-inline {
  display: none;
}

/* ==========================================
   Footer
 ========================================== */
footer {
  background-color: var(--primary);
  color: #a0a8a3;
  padding: var(--spacing-lg) 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-legal a {
  margin-left: 1.5rem;
}

/* ==========================================
   Animations
 ========================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Media Queries
 ========================================== */
/* PC表示ではスマホ専用要素・改行を非表示 */
.sp-br { display: none; }
.mobile-only { display: none !important; }
.mobile-only-inline { display: none !important; }

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  .hero {
    min-height: 70vh !important;
    background-image: url('images/s-top-image.png') !important;
  }
  .page-banner-title {
    font-size: 1.05rem !important;
    letter-spacing: 0.05em !important;
    font-weight: bold !important;
  }
  .page-banner {
    min-height: 20vh !important;
  }
  .subpage-banner {
    padding-top: 3.5rem !important;
  }
  .curve-bottom svg {
    height: 50px !important;
  }
  
  .mobile-hide { display: none !important; }
  .mobile-only { display: block !important; }
  .mobile-only-inline { display: inline !important; }
  
  .hero-subtitle {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
  }
  
  .hero-buttons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  
  .hero-buttons-wrapper a {
    font-size: 1.0rem !important;
    padding: 1rem 0 !important;
    width: 18rem !important;
    max-width: 90% !important;
    text-align: center !important;
  }
  
  .concept-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    letter-spacing: -0.06em !important;
  }
  
  /* スマホでの各ブロック見出しサイズ調整（インラインスタイルを上書き） */
  h2 {
    font-size: 1.05rem !important;
    letter-spacing: 0.05em !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
  }
  h3 {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
  }
  h4 {
    font-size: 1.05rem !important;
    letter-spacing: 0.05em !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
  }
  
  /* ヘッダーロゴのスマホ表示調整 */
  .logo img {
    height: 40px !important;
  }
  .logo a {
    align-items: flex-end !important;
  }
  .logo a div {
    margin-left: 8px !important;
    line-height: 1.0 !important;
  }
  .logo a div span:first-child {
    display: none !important;
  }
  .logo a div span:last-child {
    font-size: 1.15rem !important;
    opacity: 1 !important;
    line-height: 1.0 !important;
  }
  
  /* インラインで指定されているmin-width（スマホでのレイアウト崩れ・はみ出しの原因）を上書き */
  .section div[style*="min-width"] {
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
  .section span[style*="min-width"] {
    min-width: 0 !important;
    max-width: 100% !important;
    display: inline-block;
  }
  
  /* スマホでの料金表示（レイアウト） */
  .price-row {
    flex-wrap: wrap !important;
    gap: 0 0.3rem !important;
  }
  .price-name-group {
    display: contents !important;
  }
  .price-item-name {
    order: 1;
  }
  .price-colon {
    order: 2;
  }
  .price-text {
    order: 3;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }
  .price-item-time {
    order: 4;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.2rem;
    font-weight: 400;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text-main);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }
  
  .burger-menu {
    display: block;
  }
  
  /* バーガーメニューを少し小さく調整 */
  .burger-menu span {
    width: 20px !important;
    margin: 5px 0 !important;
  }
  
  /* Open state for burger menu */
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px) !important;
    background-color: var(--text-main);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px) !important;
    background-color: var(--text-main);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .pricing-table th, .pricing-table td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: none;
  }
  
  .pricing-table tr {
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
  }
  
  .pricing-table td:last-child {
    text-align: left;
    padding-top: 0;
    font-size: 1.2rem;
    color: var(--primary);
  }
  
  /* スマホ用レイアウト・文字サイズ調整（Aboutブロック） */
  .sp-core-values {
    flex-direction: column !important;
    align-items: center !important;
    gap: 3rem !important;
  }
  .sp-small-text {
    font-size: 1.1rem !important; /* 縦並びにあわせて少し大きく調整 */
    line-height: 1.6 !important;
    letter-spacing: 0.02em;
  }
  .sp-access-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .sp-br {
    display: inline !important;
  }
  
  /* スマホ用お知らせリスト調整（タイトルを改行して全幅表示） */
  .info-item {
    gap: 0.8rem 1.5rem !important;
  }
  .info-title {
    width: 100% !important;
    flex: none !important;
    margin-top: 0.2rem;
    font-size: 0.95rem !important;
    letter-spacing: -0.04em !important;
  }
  .info-category {
    letter-spacing: normal !important;
  }
  .service-desc-text {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    letter-spacing: -0.06em !important;
  }
  .about-table,
  .about-table tbody,
  .about-table tr {
    display: block !important;
    width: 100% !important;
  }
  .about-table th {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 10px 0 2px 0 !important;
    border-bottom: none !important;
  }
  .about-table td {
    display: block !important;
    width: 100% !important;
    padding: 2px 0 10px 30px !important;
    border-bottom: 1px solid #ddd !important;
  }
  .about-table tr:last-child td {
    border-bottom: none !important;
  }
  .officer-item {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.3rem;
  }
  .officer-title {
    width: 160px !important;
    display: inline-block !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
  }
  .officer-name {
    font-size: 0.90rem !important;
    padding-left: 0 !important;
    display: inline-block !important;
  }
  .footer-section {
    padding: 2.5rem 0 2rem 0 !important;
  }
  .footer-top-container {
    margin-bottom: 2rem !important;
    gap: 2rem !important;
  }
  .footer-menu-area {
    display: none !important;
  }
  .footer-logo-area {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .footer-logo-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    gap: 0 !important;
  }
  .footer-logo-text {
    margin-left: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  .hero-content {
    margin-top: 5.2rem !important;
  }
  .hero-company-name {
    display: block !important;
    font-size: 1.35rem !important;
    margin-bottom: 1.2rem !important;
    letter-spacing: 0.05em !important;
  }
  .hero-buttons-wrapper {
    margin-top: 2.0rem !important;
  }
  .btn-network-consulting {
    letter-spacing: 0.05em !important;
    font-size: 1.05rem !important;
  }
  .btn-outline-white {
    width: 15rem !important;
    font-size: 0.95rem !important;
    padding: 0.9rem 0 !important;
  }
  .footer-logo-link img {
    height: 40px !important;
  }
  .footer-logo-text span:first-child {
    font-size: 0.65rem !important;
  }
  .footer-logo-text span:last-child {
    font-size: 0.75rem !important;
  }
}

/* ==========================================
   Information List Styles
 ========================================== */
.info-item {
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.03em;
}
.info-item:last-child {
  border-bottom: none;
}
.info-item:hover {
  background-color: var(--bg-alt);
}
.info-item:hover .info-title {
  color: var(--primary) !important;
}

/* ==========================================
   Legal & CSR Content Styles
 ========================================== */
.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-main);
  padding: 0 2rem 0 6rem;
  letter-spacing: -0.04em !important;
}

.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-content li {
  letter-spacing: -0.04em !important;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 0 1.5rem !important;
  }
  .legal-content h2,
  .legal-content h3,
  .legal-content p,
  .legal-content li {
    letter-spacing: -0.05em !important; /* スマホ表示時は字間隔をさらに詰める */
  }
  .legal-content h3 {
    font-size: 1.05rem !important; /* 見出し文字サイズをさらに小さく調整 */
    margin-left: -0.5rem !important; /* 項目名のみ書き出し位置を少し左にずらす */
  }
  .legal-content p,
  .legal-content li {
    font-size: 0.85rem !important; /* 本文・リスト項目の文字サイズをさらに小さく調整 */
    line-height: 1.65 !important; /* 行間を最適化 */
  }
  .contact-intro {
    text-align: left !important; /* スマホ表示時は導入文を左寄せにする */
  }
  .agreement-container {
    text-align: center !important; /* スマホ表示時は同意確認ブロックを中央寄せにする */
  }
  .agreement-container .form-group {
    justify-content: center !important; /* チェックボックスと同意文を中央に寄せる */
  }
}
