/* ===== リセット・ベーススタイル ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  background-color: #f9f8f4;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}

/* ===== 画像表示問題の完全修正 ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: transparent;
  border: 0;
  outline: 0;
  margin: 0;
  padding: 0;
}

/* 画像読み込み状態の制御（モバイル専用の改善） */
img[src=""],
img:not([src]) {
  opacity: 0;
}

img.loaded {
  opacity: 1;
  animation: fadeInImage 0.3s ease-out;
}

/* 画像読み込み状態の制御 */
img[src=""],
img:not([src]) {
  opacity: 0;
}

img.loaded {
  opacity: 1;
  animation: fadeInImage 0.6s ease-out;
}

@keyframes fadeInImage {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== H1タグの非推奨API警告対応 ===== */
/* セマンティックHTML要素内のH1タグに明示的なフォントサイズを指定 */
section h1,
article h1,
aside h1,
nav h1 {
  font-size: 2rem;
}

/* ===== カスタムプロパティ（CSS変数） ===== */
:root {
  --color-primary: #6fa5c7;
  --color-accent: #a8d8b9;
  --color-background: #f9f8f4;
  --color-text: #333333;
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-dark: #1a1a1a;

  --font-primary: "Poppins", sans-serif;
  --font-japanese: "Noto Sans JP", sans-serif;

  --container-width: 1200px;
  --header-height: 80px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 共通コンポーネント ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* セクションタイトル */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.3;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 2px;
}

.section-title--compact {
  font-size: 2.2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

/* ===== レスポンシブ改行の制御 ===== */
.mobile-br {
  display: none;
}

/* ボタンスタイル */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 160px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

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

.btn--primary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(111, 165, 199, 0.3);
}

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

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Secondary button on white background */
.news-article .btn--secondary,
.main .btn--secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.news-article .btn--secondary:hover,
.main .btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn--small {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  margin-top: 1rem;
}

.btn--small:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== プルスローディングアニメーション ===== */
.pulse-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8f9fa 50%,
    var(--color-background) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

.pulse-loading.fade-out {
  opacity: 0;
  visibility: hidden;
}

.pulse-loading-container {
  text-align: center;
  position: relative;
  z-index: 10;
}

/* ===== プルスロゴ ===== */
.pulse-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  animation: pulse 2s ease-in-out infinite;
  color: var(--color-text); /* ロゴを黒色に変更 */
  filter: drop-shadow(
    0 0 15px rgba(51, 51, 51, 0.1)
  ); /* 黒色のドロップシャドウ */
}

/* ===== プルステキスト ===== */
.pulse-text {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 100;
  color: var(--color-text);
  letter-spacing: 6px;
  margin-bottom: 1rem;
  animation: textPulse 2s ease-in-out infinite;
}

/* ===== プルスサブタイトル ===== */
.pulse-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
}

/* ===== プルスアニメーション定義 ===== */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(249, 248, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(111, 165, 199, 0.1);
  transition: var(--transition);
  z-index: 1000;
}

.header.scrolled {
  background: rgba(249, 248, 244, 0.98);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.nav__logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  transition: var(--transition);
}

.nav__logo:hover {
  color: var(--color-primary);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
  position: relative;
}

@media (max-width: 768px) {
  .nav__link {
    font-size: 0.9rem;
  }
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

/* ハンバーガーメニュー */
.nav__toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
}

.nav__toggle-line {
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
  position: absolute;
}

.nav__toggle-line:nth-child(1) {
  top: 0;
}

.nav__toggle-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav__toggle-line:nth-child(3) {
  bottom: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* モバイルメニューのオーバーレイ */
.nav__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* モバイルメニュー */
.nav__menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--color-background);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 6rem 2rem 2rem;
  z-index: 1001;
  overflow-y: auto;
}

.nav__menu.active {
  transform: translateX(0);
}

.nav__menu-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nav__menu-item {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav__menu.active .nav__menu-item {
  opacity: 1;
  transform: translateX(0);
}

.nav__menu-item:nth-child(1) {
  transition-delay: 0.1s;
}

.nav__menu-item:nth-child(2) {
  transition-delay: 0.15s;
}

.nav__menu-item:nth-child(3) {
  transition-delay: 0.2s;
}

.nav__menu-item:nth-child(4) {
  transition-delay: 0.25s;
}

.nav__menu-item:nth-child(5) {
  transition-delay: 0.3s;
}

.nav__menu-link {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
}

.nav__menu-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav__menu-link:hover::before {
  width: 100%;
}

.nav__menu-link:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* ===== ファーストビュー ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  line-height: 0;
  font-size: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImageZoom 20s ease-in-out infinite;
  display: block;
  background-color: transparent;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero__content {
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 20px;
  animation: heroContentSlide 1s ease-out;
  transform: translateY(60px);
}

.hero__title {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.hero__title-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #333;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  /* animation: pulse 2s infinite; アニメーションを削除 */
}

.hero__title-main {
  text-align: center;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.hero__title-accent {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(111, 165, 199, 0.6);
}

.hero__title-key {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(111, 165, 199, 0.6);
}

.hero__title-large {
  font-size: 3.8rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(111, 165, 199, 0.6);
}

.hero__title-sub {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.95;
  color: var(--color-white);
  text-align: center;
}

.hero__title-emphasis {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.hero__title-main--compact {
  font-size: 2.8rem;
  line-height: 1.4;
}

/* indexページのcompactタイトル内ブランド名の特別対応 */
.hero__title-main--compact .hero__title-brand {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: none !important;
  opacity: 1 !important;
}

/* H1タイトル内のブランド名スタイル */
.hero__title-brand {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white) !important;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
  background: none !important;
  display: block;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero__title-highlight {
    font-size: 1rem;
    padding: 0.25rem 0.8rem;
  }

  .hero__title-accent {
    font-size: 2rem;
  }

  .hero__title-key {
    font-size: 2.4rem;
  }

  .hero__title-large {
    font-size: 2.5rem;
  }

  .hero__title-sub {
    font-size: 1.1rem;
  }

  .hero__title-brand {
    font-size: 1.5rem;
  }

  .desktop-br {
    display: none;
  }
}

/* H1タイトル内のロケーション情報 */
.hero__title-location {
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0.95;
  display: block;
  margin-top: 0.2em;
}

.hero__title-sub {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__description {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* スクロールボタン */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
  transition: var(--transition);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-button:hover {
  transform: translateY(-5px);
}

.scroll-button__text {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.scroll-button__icon {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  position: relative;
}

.scroll-button__arrow {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: translateX(-50%) rotate(45deg);
  animation: arrowMove 2s ease-in-out infinite;
}

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

@keyframes heroContentSlide {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes arrowMove {
  0%,
  100% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 20px;
    opacity: 0.5;
  }
}

/* ===== サービスセクション ===== */
.services {
  padding: 6rem 0;
  background: var(--color-white);
}

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

.service-card {
  background: var(--color-background);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(111, 165, 199, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 165, 199, 0.05),
    transparent
  );
  transition: left 0.6s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(111, 165, 199, 0.15);
  border-color: var(--color-primary);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card__title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.service-card__description {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-card__action {
  margin-top: 1rem;
  text-align: center;
}

/* ===== 作品紹介セクション（修正版 - 2枚ずつ並べるレイアウト） ===== */
.works-preview {
  padding: 6rem 0;
  background: var(--color-background);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列固定レイアウト */
  gap: 3rem;
  margin-bottom: 4rem;
  max-width: 1000px; /* 幅を制限してバランスを調整 */
  margin-left: auto;
  margin-right: auto;
}

.work-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

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

.work-card__image {
  position: relative;
  height: 280px; /* 高さを少し調整 */
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  display: block;
  background: transparent;
  margin: 0;
  padding: 0;
}

.work-card:hover .work-card__image img {
  transform: scale(1.1);
}

.work-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(111, 165, 199, 0.85) 0%,
    rgba(168, 216, 185, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__actions {
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card__actions {
  transform: translateY(0);
}

.work-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.work-card__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 165, 199, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.work-card__btn:hover::before {
  left: 100%;
}

.work-card__btn::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.work-card__btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(111, 165, 199, 0.4);
}

.work-card__btn:hover::after {
  transform: translateX(5px);
}

.work-card__content {
  padding: 2rem;
}

.work-card__title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.work-card__category {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(111, 165, 199, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

.work-card__description {
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
}

.works-preview__action {
  text-align: center;
  margin-top: 4rem;
}

/* ===== About セクション ===== */
.about {
  padding: 6rem 0;
  background: var(--color-light-gray);
}

.about__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* お悩みセクションの新しいレイアウト */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.problem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.problem-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.problem-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.problem-item__text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.solution-card {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(111, 165, 199, 0.3);
  margin-top: 2rem;
}

.solution-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.solution-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.solution-card__description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* Skills ページ - AI活用・SEO対策強調スタイル */
.tech-card--featured {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
  position: relative;
  overflow: hidden;
}

.tech-card--featured::before {
  content: "★ Featured";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.tech-card--featured .tech-card__title {
  color: white;
}

.tech-card--featured .tech-card__description {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.tech-card--featured .tech-card__level-text {
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
}

.service-area--featured {
  background: linear-gradient(
    135deg,
    rgba(111, 165, 199, 0.1),
    rgba(168, 216, 185, 0.1)
  );
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  position: relative;
}

.service-area--featured::before {
  content: "🚀 強み";
  position: absolute;
  top: -1rem;
  left: 2rem;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 特別な強みセクション */
.special-strengths {
  background: linear-gradient(135deg, #f8f9ff, #f0f8ff);
  padding: 4rem 0;
}

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

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

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

.strength-card--ai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.strength-card--seo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6fa5c7, #a8d8b9);
}

.strength-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.strength-card--ai .strength-card__icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.strength-card--seo .strength-card__icon {
  background: linear-gradient(135deg, #6fa5c7, #a8d8b9);
  color: white;
}

.strength-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.3;
}

.strength-card__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.strength-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.strength-feature__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.strength-feature span {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.strengths-summary {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.strengths-summary__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.strengths-summary__text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* About文章の順次表示用スタイル - 最適化済み */
.about__description--4 {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1.1s ease-out;
}

.about__description--4.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== フッター ===== */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer__brand h3 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.footer__tagline {
  color: #ccc;
  font-style: italic;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__nav-link {
  color: #ccc;
  transition: var(--transition);
  font-size: 1rem;
}

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

.footer__actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 25px;
  transition: var(--transition);
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(111, 165, 199, 0.3);
}

.page-top__icon {
  transition: var(--transition);
}

.page-top:hover .page-top__icon {
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
}

.footer__copyright {
  color: #999;
  font-size: 0.9rem;
}

/* ===== アニメーション用クラス（表示速度を調整） ===== */
.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: all 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1.1s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1.1s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
  /* ナビゲーション */
  .nav__list {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* ハンバーガーメニューは明示的にactiveクラスでのみ表示 */
  .nav__menu {
    transform: translateX(100%);
  }

  .nav__menu.active {
    transform: translateX(0);
  }

  /* レスポンシブ改行をスマートフォンで表示 */
  .mobile-br {
    display: block;
  }

  /* プルスローディングのレスポンシブ */
  .pulse-logo {
    width: 100px;
    height: 100px;
  }

  .pulse-text {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }

  /* ヒーローセクション */
  .hero__content {
    transform: translateY(40px);
  }

  .hero__title-main {
    font-size: 2.2rem;
  }

  .hero__title-main--compact {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .hero__title-brand {
    font-size: 0.8em;
    margin-top: 0.2em;
  }

  .hero__title-location {
    font-size: 0.75em;
    margin-top: 0.2em;
  }

  .hero__title {
    margin-bottom: 1rem;
  }

  .hero__title-sub {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .hero__description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
  }

  .hero__scroll {
    bottom: 20px;
  }

  /* セクションタイトル */
  .section-title {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .section-title--compact {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
    margin-bottom: 2.5rem;
  }

  /* サービスカード */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    padding: 2rem;
  }

  /* 作品紹介（2列レイアウト対応） */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
  }

  .work-card__image {
    height: 220px;
  }

  .work-card__content {
    padding: 1.5rem;
  }

  /* フッター */
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer__nav-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Problems grid - 統合されたスタイル */
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .problem-item {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .problem-item__icon {
    width: 36px;
    height: 36px;
  }

  .problem-item__text {
    font-size: 0.85rem;
  }

  .solution-card {
    padding: 2rem;
  }

  .solution-card__title {
    font-size: 1.5rem;
  }

  .solution-card__description {
    font-size: 1rem;
  }

  /* Strengths grid - 統合されたスタイル */
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .strength-card {
    padding: 2rem;
  }

  .strength-card__title {
    font-size: 1.2rem;
  }

  .strength-feature span {
    font-size: 0.9rem;
  }

  .strengths-summary {
    padding: 1.5rem;
  }

  .strengths-summary__title {
    font-size: 1.1rem;
  }

  .strengths-summary__text {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  /* 600px以下でレスポンシブ改行を表示 */
  .mobile-br {
    display: block;
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  /* プルスローディングの極小画面対応 */
  .pulse-logo {
    width: 90px;
    height: 90px;
  }

  .pulse-text {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  /* モバイルメニュー幅調整 */
  .nav__menu {
    width: 100%;
    max-width: 320px;
  }

  /* ヒーローセクション - 極小画面対応 */
  .hero__content {
    transform: translateY(30px);
  }

  .hero__title-main {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .hero__title-main--compact {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .hero__title-brand {
    font-size: 0.85em;
    margin-top: 0.2rem;
  }

  .hero__title-location {
    font-size: 0.8em;
    margin-top: 0.1rem;
  }

  .hero__title {
    margin-bottom: 0.8rem;
  }

  .hero__description {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  /* セクションタイトル - 極小画面対応 */
  .section-title {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .section-title--compact {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .nav__menu-link {
    font-size: 1.2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    min-width: 140px;
  }

  /* 全体の文字サイズ調整 - 小画面 */
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
  }

  .work-card__content {
    padding: 1.2rem;
  }

  .work-card__title {
    font-size: 1.3rem;
  }

  .work-card__image {
    height: 200px;
  }

  .work-card__description {
    font-size: 0.9rem;
  }
}

/* ===== ボディのスクロール制御 ===== */
body.menu-open {
  overflow: hidden;
}

/* ===== アクセシビリティ対応 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pulse-logo,
  .pulse-text {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  img {
    animation: none !important;
  }

  .work-card:hover,
  .service-card:hover {
    transform: none !important;
  }
}

/* ===== 高解像度ディスプレイ対応 ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== プリント用スタイル ===== */
@media print {
  .header,
  .footer,
  .nav__toggle,
  .hero__scroll,
  .page-top,
  .pulse-loading {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    height: auto;
    padding: 2rem 0;
  }

  .hero__content {
    color: #000;
  }

  .hero__title-main {
    -webkit-text-fill-color: #000;
  }

  .services,
  .works-preview,
  .about {
    page-break-inside: avoid;
  }

  .mobile-br {
    display: none;
  }
}

/* ===== フェードインアニメーション ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 新しく追加したコンテンツのアニメーション ===== */
.problem-item,
.solution-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* 問題アイテムの遅延アニメーション */
.problem-item:nth-child(1) {
  animation-delay: 0.1s;
}

.problem-item:nth-child(2) {
  animation-delay: 0.2s;
}

.problem-item:nth-child(3) {
  animation-delay: 0.3s;
}

.problem-item:nth-child(4) {
  animation-delay: 0.4s;
}

.problem-item:nth-child(5) {
  animation-delay: 0.5s;
}

.solution-card {
  animation-delay: 0.7s;
}

/* ===== アクセシビリティ対応 ===== */
@media (prefers-reduced-motion: reduce) {
  .problem-item,
  .solution-card {
    animation: none;
    opacity: 1;
  }
}