@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ==========================================================================
   1. 基本設定 & 共通変数
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

:root {
  --primary-color: #00AFCC;
  --text-dark: #000000;
  --text-light: #666666;
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --border-color: #E0E0E0;
  --nav-height: 80px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

main {
  margin-top: 0;
  padding-top: var(--nav-height);
}

/* ==========================================================================
   2. ナビゲーション
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

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

nav .logo img { height: 48px; width: auto; }
nav .menu { display: none; gap: 2rem; align-items: center; }
nav .menu a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: opacity 0.3s ease; }
nav .menu a:hover, nav .menu a.active { opacity: 0.7; color: var(--primary-color); }

@media (min-width: 768px) { nav .menu { display: flex; } }

.mobile-menu-btn { display: block; background: none; border: none; cursor: pointer; font-size: 1.5rem; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* ==========================================================================
   3. ヒーローセクション & メイン動画
   ========================================================================== */
.hero {
  background-color: var(--bg-white);
  padding: 60px 0 30px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-start;
  padding: 0;
  border: none;
  outline: none;
}

.hero-video-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-divider {
  height: 4px;
  background-color: var(--primary-color);
  margin: 32px auto;
  width: 100%;
  max-width: 1200px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-primary { background-color: var(--primary-color); color: var(--bg-white); }
.btn-primary:hover { box-shadow: 0 10px 25px rgba(0, 175, 204, 0.3); transform: translateY(-2px); }

/* ==========================================================================
   4. 事業内容 (Services)
   ========================================================================== */
.services { background-color: var(--bg-white); padding: 60px 0; }
.services h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 48px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: left;
}
.service-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transform: translateY(-4px); }
.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }
.service-icon { margin-bottom: 20px; color: var(--primary-color); }

/* ==========================================================================
   5. 制作実績 (Portfolio 一覧用 3カラム)
   ========================================================================== */
.portfolio { background-color: var(--bg-light); padding: 60px 0; }
.portfolio h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 48px; }

.works-3col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 1024px) { .works-3col-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-item {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 20px;
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.portfolio-img-wrap { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.portfolio-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 700;
  padding: 20px 20px 5px;
}
.portfolio-item h3 { padding: 0 20px 10px; font-size: 1.125rem; font-weight: 600; }

/* ==========================================================================
   6. サイト制作プラン (Pricing)
   ========================================================================== */
.pricing { background-color: var(--bg-white); padding: 80px 0 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 68px;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-color: #fff;
  position: relative;
}
.pricing-card:hover { border-color: var(--primary-color); transform: translateY(-8px) scale(1.05); }
.pricing-card.featured { border-color: var(--primary-color); background-color: #f0fbff; transform: scale(1.05); }

.pricing-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; line-height: 1.5; color: #111; }
.pricing-card .price { font-size: 2.25rem; font-weight: 700; color: var(--primary-color); margin-bottom: 12px; }
.pricing-card .price-unit { font-size: 0.9rem; color: var(--text-light); margin-bottom: 5px; display: block; font-weight: 600; }

.pricing-card ul { list-style: none; margin-bottom: 24px; text-align: left; }
.pricing-card li { padding: 8px 0; color: var(--text-light); font-size: 0.95rem; border-bottom: 1px solid #f0f0f0; }
.pricing-card li::before { content: "\2713"; margin-right: 10px; color: var(--primary-color); font-weight: bold; }

.price-disclaimer {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-top: -15px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.pricing-cta-text {
  text-align: center;
  margin-top: 60px;
  color: #444;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.8;
}

/* ==========================================================================
   7. About (ヘッダー & 会社情報)
   ========================================================================== */
.about-header {
  padding: 100px 0 80px;
  background-color: #fff;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.page-title { font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; }
.page-subtitle { color: var(--text-light); font-size: 1.15rem; line-height: 1.6; }

.company-info { background-color: var(--bg-white); padding: 80px 0; }
.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (min-width: 768px) { .company-grid { grid-template-columns: 1fr 1.2fr; } }

.about-thought-box {
  background-color: var(--bg-light);
  padding: 48px;
  border-radius: 12px;
}

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 24px; color: var(--text-dark); }
.detail-item { margin-bottom: 24px; }
.detail-label { font-weight: 600; color: var(--text-dark); margin-bottom: 4px; display: block; }
.detail-value { color: var(--text-light); line-height: 1.6; }
.company-text { color: var(--text-light); margin-bottom: 16px; line-height: 1.9; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 60px 0; }
.value-card { background: var(--bg-light); padding: 2rem; border-radius: 8px; text-align: center; transition: 0.3s; }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.value-icon { width: 64px !important; height: 64px !important; margin: 0 auto 1rem; display: block; }
.value-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.value-text { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   9. お問い合わせ (Contact)
   ========================================================================== */
.contact { background-color: var(--bg-white); padding: 80px 0; }
.form-row { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 768px) {
  .form-row { flex-direction: row; gap: 24px; }
  .form-row .form-group { flex: 1; }
}

.contact-form .form-group { margin-bottom: 24px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.95rem; }
.contact-form label span { color: #ff4444; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-light);
  transition: 0.3s;
}

.form-submit {
  width: auto; padding: 16px 60px;
  background-color: var(--primary-color);
  color: #fff; border: none; border-radius: 8px;
  font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease;
}

/* ==========================================================================
   10. フッター
   ========================================================================== */
footer {
  background-color: #03acc7;
  color: var(--bg-white);
  padding: 48px 0 0;
}

footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
@media (min-width: 768px) {
  footer .container { grid-template-columns: repeat(3, 1fr); }
}

footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
footer li { margin-bottom: 8px; list-style: none !important; }
footer h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 0; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem;
}

/* ==========================================================================
   14. 実績詳細ページ
   ========================================================================= */
.works-hero-new {
  padding: 120px 0 60px;
  background-color: #fcfcfc;
  border-bottom: 1px solid var(--border-color);
}

.result-tag {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 2px;
  margin-bottom: 15px;
}

.works-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
  line-height: 1.3;
}

/* 画像ブロックの左右中央揃えを強制 */
.works-main-visual-new, .gallery-img.item-wide {
  width: 100%;
  text-align: center; 
  margin-bottom: 40px;
}

.works-main-visual-new img, .gallery-img.item-wide img {
  max-width: 100%;
  height: auto;
  display: inline-block; 
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.works-detail-box { padding: 100px 0 140px; background-color: #fff; }

.works-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 100px;
}

.works-main-col { flex: 1; min-width: 320px; }
.works-side-col { width: 320px; }

.works-sub-title-new {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 12px;
  color: #111;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.works-sub-title-new span {
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.15em;
}

.works-point-row-new {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.works-mobile-img-wrap {
  flex: 1;
  min-width: 280px; max-width: 380px;
}

.works-mobile-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.btn-back-works {
  display: inline-block;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 15px 80px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: #fff;
}
.btn-back-works:hover {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--text-dark);
}

/* ==========================================================================
   11. アニメーション & ユーティリティ
   ========================================================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.text-center { text-align: center; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

/* ==========================================================================
   12. サービス詳細 (崩れ修正: services.html用)
   ========================================================================== */
.services-detail-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 80px;
}

@media (max-width: 767px) {
  .services-detail-layout { display: block; }
}

.services-detail-layout > div:first-child { flex: 1.2; }
.services-detail-layout > .highlights-box { flex: 0.8; }

.highlights-box {
  background-color: #f5f5f5;
  padding: 32px;
  border-radius: 8px;
}

.check-list { list-style: none !important; padding: 0 !important; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #333;
  display: block;
}
.check-list li::before {
  content: "\2714"; 
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.contact-centered-wrapper { max-width: 900px; margin: 0 auto; }

/* ==========================================================================
   15. LINE 誘導 ＋ 16. お打ち合わせの流れ (3カラム)
   ========================================================================== */
.line-cta-section { padding: 40px 0 80px; background-color: #fff; }
.line-cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background-color: #f8fff8;
  border: 2px dashed #00b900;
  border-radius: 16px;
  text-align: center;
}
.line-cta-box h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; color: #00b900; }
.line-qr-wrap img {
  width: 200px;
  height: auto;
  border: 1px solid #eee;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 24px;
}

.contact-flow {
  padding: 40px 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 80px;
  border: 1px solid var(--border-color);
}

.flow-intro { text-align: center; margin-bottom: 40px; }
.flow-intro p { font-size: 1rem; color: #444; line-height: 1.7; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 768px) {
  .flow-grid { grid-template-columns: 1fr; }
}

.flow-step {
  background: #fff;
  padding: 35px 20px 30px;
  border-radius: 8px;
  position: relative;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}
.flow-step:hover { transform: translateY(-5px); }
.step-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary-color);
  color: #fff;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 8px 0 8px 0;
}
.flow-icon { width: 64px; height: 64px; margin: 0 auto 20px; object-fit: contain; display: block; }
.flow-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: #111; }
.flow-step p { font-size: 0.9rem; color: #666; line-height: 1.6; text-align: left; }

/* ==========================================================================
   Instagram ロゴ入り見出し調整（PC版・共通）
   ========================================================================== */
/* 見出しタグをフレックスボックスにして、ロゴと文字を横並び＆中央揃えに */
.insta-logo-title {
    display: flex;
    justify-content: center; /* 横方向中央 */
    align-items: center;     /* 縦方向中央 */
    gap: 15px;               /* ロゴと文字の間隔（PC） */
    color: var(--primary-color) !important; /* 文字色をターコイズに */
}

/* SVGロゴのサイズと色設定 */
.insta-icon-svg {
    width: 38px;             /* ロゴの大きさ（PC） */
    height: 38px;
    fill: var(--primary-color); /* ロゴの色を文字色に合わせる */
    transition: transform 0.3s ease;
}

/* ホバー時にロゴを少し傾ける遊び心（プロっぽさ） */
.insta-logo-title:hover .insta-icon-svg {
    transform: rotate(5deg) scale(1.1);
}



/* ==========================================================================
   スマホ専用Fix (iPhone 17 Pro / Pixel 最適化：日本標準・クリーン)
   ========================================================================== */
@media (max-width: 767px) {
  /* 1. 背景を完全な「純白」に固定 */
  body, .portfolio, .pricing, .contact-flow, .value-card, .service-card, .highlights-box, .works-hero-new {
    background-color: #FFFFFF !important;
  }
  
  /* 2. 日本の標準的な「きれい」を作るタイポグラフィ（14px / 1.6） */
  body, p, li, .detail-value, .company-text {
    font-size: 14px !important;       /* シャープな14px */
    line-height: 1.6 !important;       /* Appleより引き締まった行間 */
    letter-spacing: 0.03em !important;  /* 漢字が綺麗に見えるわずかな余白 */
    color: #333333;                   /* 視認性の高い濃いグレー */
  }

  /* 【追加】フッター内の文字色を強制的に白（統一色）へ戻す */
  footer, 
  footer p, 
  footer li, 
  footer a, 
  .footer-bottom p {
    color: rgba(255, 255, 255, 0.8) !important; /* リンクとコピーライトの色を統一 */
  }
  
  footer h3 {
    color: #FFFFFF !important; /* 見出しはパキッと白く */
  }

  /* その他SP設定（既存のものを維持） */
  .mobile-menu-btn { ... }
  /* ...以下略... */


  /* 見出しのバランス調整 */
  h1, h2, h3 {
    letter-spacing: 0.05em !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
  }

  /* 3. ハンバーガーボタン：CSS描画方式（「？」を物理的に出さない） */
  .mobile-menu-btn {
    display: flex !important;
    width: 26px;
    height: 18px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
  }
  .mobile-menu-btn span,
  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    position: absolute;
    transition: all 0.3s ease-in-out;
  }
  .mobile-menu-btn span { top: 8px; }
  .mobile-menu-btn span::before { top: -8px; }
  .mobile-menu-btn span::after { top: 8px; }

  /* ? アニメーション */
  .mobile-menu-btn.open span { background: transparent; }
  .mobile-menu-btn.open span::before { transform: rotate(45deg); top: 0; }
  .mobile-menu-btn.open span::after { transform: rotate(-45deg); top: 0; }

  /* 4. メニュー（縦並びを強制し、文字サイズも調整） */
  nav .menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1500;
    padding: 0; margin: 0;
  }
  nav .menu.active { display: flex !important; animation: fadeIn 0.3s forwards; }
  nav .menu a {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
  }

  /* 5. 画面全体の余白を日本人に馴染むサイズへ */
  .container { padding: 0 1.25rem !important; }
  .section-title { font-size: 1.6rem !important; margin-bottom: 2rem !important; }




}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ==========================================================================
   Instagram 手動グリッド (PC・共通設定)
   ========================================================================== */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* PCは6列 */
    gap: 12px;
}

.insta-item {
    aspect-ratio: 1 / 1; /* 正方形を維持 */
    overflow: hidden;
    display: block;
    background-color: #eee;
    border-radius: 4px;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* ==========================================================================
   スマホ専用Fix (Instagram 調整)
   ========================================================================== */
@media (max-width: 767px) {
    .insta-grid {
        grid-template-columns: repeat(3, 1fr); /* スマホは3列 */
        gap: 6px; /* スマホは少し隙間を狭く */
    }
    
    /* さっきのフッター修正も含めて、もし上書きが必要ならここに集約 */
    footer p, .footer-bottom p {
        color: rgba(255, 255, 255, 0.8) !important;
    }

/* 【追加】スマホ版のロゴ見出し調整 */
    .insta-logo-title {
        gap: 10px; /* スマホでは間隔を詰める */
        font-size: 1.6rem !important; /* 文字サイズ調整 */
    }
    
    .insta-icon-svg {
        width: 28px;  /* スマホではロゴを小さく */
        height: 28px;
    }

}