@charset "UTF-8";

/* --- 変数定義 --- */
:root {
  /* カラーパレット */
  --primary: #3a7ca5; /* 少し深みのあるブルー */
  --primary-dark: #2f6484;
  --primary-rgb: 58, 124, 165;
  --secondary: #82d4bb; /* 少し落ち着いたティール */
  --secondary-dark: #6abfa3;
  --secondary-rgb: 130, 212, 187;
  --accent: #fdb813; /* 明るいオレンジイエロー */
  --accent-dark: #eaa601;

  /* ニュートラルカラー */
  --dark: #1a2e35; /* より深いダークカラー */
  --body-color: #5a717a; /* 本文テキスト用、少し柔らかく */
  --light: #f7f9fa; /* オフホワイト */
  --white: #ffffff;
  --gray: #869da7;
  --light-gray: #e0e7eb; /* セクション背景用 */

  /* 状態 */
  --error: #dc3545;
  --success: #198754;

  /* グラデーション */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-hero: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.85) 0%,
    rgba(var(--secondary-rgb), 0.7) 100%
  );

  /* トランジション */
  --transition-fast: all 0.2s ease-out;
  --transition-base: all 0.3s ease-out;
  --transition-slow: all 0.5s ease-out;
  --transition-cubic: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* シャドウ */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

  /* レイアウト */
  --header-height: 80px;
  --header-height-scrolled: 70px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-pill: 50px;
  --container-width: 1200px;
  --container-padding: 1rem;

  /* フォント */
  --font-heading: "Roboto", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-size-base: 1rem; /* 16px */
  --line-height-base: 1.7;
  --line-height-heading: 1.3;
}

/* --- 基本設定 --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  line-height: var(--line-height-base);
  color: var(--body-color);
  background-color: var(--light);
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* アクセシビリティ - フォーカススタイル */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 253, 184, 19), 0.4); /* AccentのRGB値を指定 */
}
:root {
  --accent-rgb: 253, 184, 19;
} /* :root にRGB値を定義 */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  /* :focus-visible 未対応用 */
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.4);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-base);
}
a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
address {
  font-style: normal;
}

/* --- レイアウトユーティリティ --- */
.container {
  width: calc(100% - (var(--container-padding) * 2));
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
}
.section:nth-child(odd) {
  background-color: var(--white);
}
.section:nth-child(even) {
  background-color: var(--light-gray);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.025em;
  line-height: var(--line-height-heading);
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray);
  margin-bottom: 3.5rem;
  font-weight: 400;
  max-width: 750px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}
.text-center .section-title {
  display: inline-block;
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius-pill);
  text-align: center;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-cubic);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}
.btn:hover,
.btn:focus {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
  text-decoration: none;
}
.btn i {
  font-size: 1.1em;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: none;
}
.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--dark);
  box-shadow: 0 10px 20px rgba(var(--secondary-rgb), 0.25);
}

/* --- アクセシビリティ --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  height: var(--header-height);
}
.header.scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}
.header-subpage {
  /* ポリシーページなどのサブページ用 */
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  height: var(--header-height-scrolled); /* 最初からスクロール後スタイル */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: clamp(35px, 4.5vw, 45px);
  width: auto;
  transition: var(--transition-base);
}
.header.scrolled .logo-img {
  height: clamp(30px, 4vw, 40px);
}
.header-subpage .logo-img {
  height: clamp(30px, 4vw, 40px);
}

.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-list {
  display: flex;
  gap: 2rem;
  height: 100%;
}
.nav-item {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--dark);
  position: relative;
  padding: 0.5rem 0.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: var(--transition-base);
  border-radius: 1.5px;
}
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary);
  text-decoration: none;
}
.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition-fast);
  z-index: 1100;
}
.hamburger:hover,
.hamburger:focus {
  color: var(--accent);
}

/* モバイル用のヘッダー高さ調整 */
@media (max-width: 767.98px) {
  main#main-content {
    padding-top: var(
      --header-height-scrolled
    ); /* モバイル時の固定ヘッダー高さ */
  }
  /* ヒーローセクションが最初の要素の場合、ヒーローセクション自体のpadding-topを調整 */
  .hero.section#home {
    padding-top: calc(
      var(--header-height-scrolled) + clamp(2rem, 6vw, 4rem)
    ); /* モバイルヘッダー高さ + 元々のヒーロー上部余白 */
    /* clampの第2,3引数は元のヒーローセクションのpadding-topに合わせる */
  }
}

.subpage-main {
  padding-top: var(--header-height-scrolled); /* 固定ヘッダー高さ */
}

/* --- ヒーローセクション --- */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  color: var(--white);
  background-color: var(--dark); /* フォールバック */
  /* ※hero-bg.jpg はダミー。適切な画像に差し替えるか、この背景指定を削除 */
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  margin-bottom: 2.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
}

.shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.08;
  will-change: transform, border-radius;
  animation: morphFloat 15s ease-in-out infinite;
}
.shape1 {
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  background: var(--secondary);
  top: 10%;
  right: 5%;
  animation-duration: 18s;
}
.shape2 {
  width: clamp(150px, 30vw, 400px);
  height: clamp(150px, 30vw, 400px);
  background: var(--primary);
  bottom: 15%;
  left: 10%;
  animation-duration: 22s;
  animation-delay: -5s;
}
.shape3 {
  width: clamp(100px, 20vw, 300px);
  height: clamp(100px, 20vw, 300px);
  background: var(--accent);
  top: 30%;
  left: 40%;
  opacity: 0.06;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes morphFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    transform: translateY(-30px) rotate(15deg) scale(1.05);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* --- 事業内容 (Services) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 18px 35px rgba(var(--dark-rgb, 26, 46, 53), 0.12);
}
:root {
  --dark-rgb: 26, 46, 53;
} /* :root にRGB値を定義 */

.service-icon {
  margin: 0 auto 1.8rem;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  color: var(--white);
  transition: var(--transition-base);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}
.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  transform: translateY(-5px) scale(1.1) rotate(8deg);
  box-shadow: 0 8px 20px rgba(var(--secondary-rgb), 0.4);
}
.service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary);
  line-height: var(--line-height-heading);
}
.service-description {
  color: var(--body-color);
  text-align: center;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* --- プロダクト紹介 (Product) --- */
.product-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.product-item {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  background-color: var(--white);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}
.product-item:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}
.product-item:nth-child(even) .product-image {
  order: 2;
}

.product-image {
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.product-image img {
  object-fit: cover;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-lg);
}
.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-name {
  /* product-title から変更 */
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: var(--line-height-heading);
}
.product-tagline {
  /* product-subtitle から変更 */
  font-size: 1.15rem;
  color: var(--secondary-dark);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-family: var(--font-heading);
}
.product-description {
  margin-bottom: 2rem;
}
.product-features {
  margin-bottom: 2.5rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.8rem;
}
.feature-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.2em;
  flex-shrink: 0;
}

/* --- 会社概要 (About) --- */
.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 992px) {
  .about-container {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

.about-image-wrapper {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.about-lead {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: var(--line-height-heading);
}
.about-description {
  margin-bottom: 2.5rem;
}
.company-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 576px) {
  .company-info {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

.info-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.info-item:last-child {
  border-bottom: none;
}
.info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--dark);
  font-size: 1rem;
}
.info-item p {
  color: var(--body-color);
  font-size: 0.95rem;
}

/* --- お問い合わせ (Contact) --- */
.contact-container-wrapper {
  background-color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  margin: 0 auto;
}
.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: var(--line-height-heading);
}
.contact-info-description {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1.5rem;
}
.contact-icon {
  width: 55px;
  height: 55px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contact-details h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--dark);
}
.contact-details p,
.contact-details a {
  color: var(--body-color);
  font-size: 1rem;
  line-height: 1.5;
}
.contact-details a:hover {
  color: var(--primary-dark);
}
.contact-details small {
  font-size: 0.85rem;
  color: var(--gray);
  display: block;
  margin-top: 0.2rem;
}

/* --- ポリシー関連ページ --- */
.subpage-main {
  padding-top: var(--header-height-scrolled);
}
.policy-section {
  background-color: var(--light);
}
.policy-content {
  background-color: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}
.policy-page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: var(--line-height-heading);
}
.policy-page-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}
.policy-item {
  margin-bottom: 2rem;
}
.policy-item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--dark);
}
.policy-item p,
.policy-item ul {
  color: var(--body-color);
  font-size: 0.95rem;
  line-height: 1.8;
}
.policy-item ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.policy-item li {
  margin-bottom: 0.5rem;
}
.policy-item p a {
  color: var(--primary);
  font-weight: 500;
}
.policy-item p a:hover {
  color: var(--primary-dark);
}
.policy-update-date {
  text-align: right;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 2.5rem;
}

.transaction-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.transaction-table th,
.transaction-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}
.transaction-table th {
  background-color: var(--light);
  font-weight: 700;
  width: 30%;
  color: var(--dark);
  vertical-align: top;
}
.transaction-table td {
  color: var(--body-color);
}
.transaction-table td a {
  color: var(--primary);
  font-weight: 500;
}

/* --- フッター --- */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4.5rem 0 2.5rem;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.2rem;
}
.footer-logo-img {
  height: 50px;
  width: auto;
}
.footer-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition-base);
  font-size: 1.1rem;
}
.social-link:hover,
.social-link:focus {
  background-color: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
  text-decoration: none;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 1.5px;
}
.footer-links ul {
  padding-left: 0;
  list-style: none;
}
.footer-links li,
.footer-contact-item {
  margin-bottom: 0.9rem;
}
.footer-links a,
.footer-contact span,
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus,
.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--white);
  padding-left: 5px;
  text-decoration: none;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.footer-contact-icon {
  color: var(--accent);
  margin-top: 0.2em;
  font-size: 1.1rem;
}

.copyright {
  text-align: center;
  padding-top: 3.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}
.copyright p {
  margin-bottom: 0.5rem;
}

/* --- スクロールトップボタン --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-md);
  border: none;
  font-size: 1.2rem;
}
.scroll-top.active {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover,
.scroll-top:focus {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* --- 通知 (Notification) --- */
.notification {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  color: var(--white);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.5s ease-out;
  z-index: 1050;
  display: flex;
  align-items: center;
  max-width: 400px;
}
.notification.active {
  transform: translateX(0);
}
.notification.success {
  background-color: var(--success);
}
.notification.error {
  background-color: var(--error);
}
.notification-icon {
  margin-right: 0.8rem;
  font-size: 1.3rem;
}

/* --- レスポンシブデザイン --- */
@media (max-width: 991.98px) {
  .hero {
    min-height: unset;
    padding: calc(var(--header-height) + 4rem) 0 4rem;
  }
  .shapes {
    display: none;
  }
  .product-item,
  .product-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-item:nth-child(even) .product-image {
    order: 0;
  }
  .product-image {
    margin: 0 auto;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  .section-subtitle {
    margin-bottom: 2.5rem;
  }

  .header,
  .header.scrolled,
  .header-subpage {
    height: var(--header-height-scrolled);
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    padding: calc(var(--header-height-scrolled) + 1.5rem) 1.5rem 2rem;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1050;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
    width: 100%;
  }
  .nav-item {
    height: auto;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    padding: 0.8rem 0.5rem;
    height: auto;
    font-size: 1rem;
  }
  .nav-link::after {
    bottom: 5px;
    height: 2.5px;
  }
  .hamburger {
    display: block;
    position: relative;
    z-index: 1100;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .company-info {
    grid-template-columns: 1fr;
  }
  .contact-container-wrapper {
    padding: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-info,
  .footer-links,
  .footer-contact {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-contact-item {
    justify-content: center;
  }

  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
  .notification {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* --- 印刷用スタイル --- */
@media print {
  :root {
    --primary: #000000;
    --secondary: #444444;
    --dark: #000000;
    --body-color: #000000;
    --light: #ffffff;
    --white: #ffffff;
    --gray: #333333;
  }
  body {
    font-size: 11pt;
    line-height: 1.4;
    color: black !important;
    background: white !important;
  }
  .header,
  .footer,
  .scroll-top,
  .hero-btns,
  .hamburger,
  .shapes,
  .service-icon,
  .product-image,
  .contact-icon,
  .btn,
  .footer-social,
  [data-aos],
  .about-image-wrapper {
    display: none !important;
  }
  .section {
    padding: 20px 0 !important;
    page-break-inside: avoid;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  a {
    color: inherit !important;
    text-decoration: underline !important;
  }
  a[href^="http"]::after,
  a[href^="mailto"]::after,
  a[href^="tel"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
  a[href^="#"] {
    text-decoration: none !important;
  }
  .section-title::after {
    background: #000 !important;
  }
  .service-card,
  .info-item,
  .policy-item,
  .transaction-table th,
  .transaction-table td {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }
  .product-item,
  .about-container,
  .contact-container-wrapper,
  .footer-container {
    display: block !important;
  }
  .company-info {
    display: block !important;
  }
  .policy-content {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}

/* --- アニメーション抑制 --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
