@charset "UTF-8";

/* ==========================================
   有限会社徳吉工業 共通デザインシステム
   ブランドカラー：
     ネイビー : #1d2975
     イエロー : #f5e928
     背景グレー: #f4f6f9
   ========================================== */

html {
            scroll-behavior: smooth;
        }

/* ------------------------------------------
   1. 基本設定・リセット
   ------------------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "源ノ角ゴシック", "Noto Sans JP", "小塚ゴシック Pro", sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #ffffff;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 共通セクションタイトル */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #1d2975;
  margin-bottom: 40px;
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f5e928;
  margin: 12px auto 0;
  border-radius: 2px;
}

.text-white {
  color: #ffffff !important;
}

.text-white::after {
  background-color: #f5e928 !important;
}

/* 共通ボタン */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-weight: bold;
  font-size: 1.05rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-yellow {
  background-color: #f5e928;
  color: #1d2975;
  border: 2px solid #1d2975;
}

.btn-yellow:hover {
  background-color: #ffffff;
  color: #1d2975;
  transform: translateY(-2px);
}

/* ------------------------------------------
   2. 共通ヘッダー & ハンバーガーメニュー
   ------------------------------------------ */
.site-header {
  background-color: #1d2975;
  border-bottom: 3px solid #f5e928;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴエリア（アプローチ1：白角丸ベース対応） */
.header-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  z-index: 1002;
}

.logo-sub {
  color: #e0e6ff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.header-logo-bg {
  background-color: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.header-logo:hover .header-logo-bg {
  transform: scale(1.02);
}

.header-logo-img {
  height: 26px;
  width: auto;
  display: block;
}

/* ナビゲーションメニュー */
.header-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: bold;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #f5e928;
}

.header-contact-btn {
  background-color: #f5e928;
  color: #1d2975;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.header-contact-btn:hover {
  background-color: #ffffff;
  color: #1d2975;
}

/* ハンバーガーボタン */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-bar:nth-child(1) { top: 0; }
.hamburger-bar:nth-child(2) { top: 10px; }
.hamburger-bar:nth-child(3) { top: 20px; }

.hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: #f5e928;
}

.hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: #f5e928;
}

/* ------------------------------------------
   3. ヒーローセクション（ページ毎背景切り替え）
   ------------------------------------------ */
.hero-section {
  position: relative;
  color: #ffffff;
  padding: 110px 0 100px;
  text-align: center;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid #f5e928;
  color: #f5e928;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 22px 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
  color: #f5e928;
  background: linear-gradient(transparent 70%, rgba(245, 233, 40, 0.2) 70%);
}

.hero-lead {
  font-size: 1.15rem;
  color: #e2e8ff;
  margin-bottom: 35px;
  line-height: 1.8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
ヒーローエリア背景（共通グラデーション ＋ 個別画像）
========================================== */

/* 共通設定（グラデーションや配置指定） */
.hero-section {
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}

/* index.html 用 */
.hero-top {
background-image:
linear-gradient(135deg, rgba(29, 41, 117, 0.88) 0%, rgba(15, 22, 68, 0.82) 100%),
url('../images/endmill_after_1000-500.png');
}

/* tool.html 用 */
.hero-tool {
background-image:
linear-gradient(135deg, rgba(29, 41, 117, 0.88) 0%, rgba(15, 22, 68, 0.82) 100%),
url('../images/endmill_after_1000-500.png');
}

/* barrel.html 用 */
.hero-barrel {
background-image:
linear-gradient(135deg, rgba(29, 41, 117, 0.88) 0%, rgba(15, 22, 68, 0.82) 100%),
url('../images/snapring_mass_beforeafter_sns-card_1200-630.jpg');
}

/* three-d.html 用 */
.hero-threed {
background-image:
linear-gradient(135deg, rgba(29, 41, 117, 0.88) 0%, rgba(15, 22, 68, 0.82) 100%),
url('../images/POWDERBED_nylon_R_beforeafter.jpg');
}

/* box.html 用 */
.hero-boxorder {
background-image:
linear-gradient(135deg, rgba(29, 41, 117, 0.88) 0%, rgba(15, 22, 68, 0.82) 100%),
url('../images/BOX_order_for_Nylon_SLS_1000_500.jpg');
}

/* ------------------------------------------
   4. お悩み解決 & 技術説明
   ------------------------------------------ */
.trouble-section {
  padding: 70px 0;
  background-color: #ffffff;
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.trouble-card {
  background: #f4f6f9;
  border-radius: 8px;
  padding: 25px 20px;
  position: relative;
  border-left: 4px solid #1d2975;
}

.trouble-num {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1d2975;
  opacity: 0.4;
  margin-bottom: 5px;
}

.trouble-card h3 {
  font-size: 1.1rem;
  color: #1d2975;
  margin: 0 0 10px 0;
}

.trouble-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.about-drag-section {
  padding: 70px 0;
  background-color: #f4f6f9;
}

.about-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text { flex: 1; }
.sub-tag { color: #1d2975; font-weight: bold; font-size: 0.9rem; }
.about-text h2 { color: #1d2975; font-size: 1.8rem; margin: 5px 0 20px; }

.about-point-box {
  flex: 1;
  background: #ffffff;
  border: 2px solid #1d2975;
  border-radius: 8px;
  padding: 25px;
}

.about-point-box h3 {
  color: #1d2975;
  margin-top: 0;
  border-bottom: 2px solid #f5e928;
  padding-bottom: 8px;
  font-size: 1.2rem;
}

.about-point-box ul { padding-left: 20px; margin: 0; }
.about-point-box li { margin-bottom: 12px; font-size: 0.95rem; }

/* ------------------------------------------
   5. トップページ専用：サービスカード (index.html)
   ------------------------------------------ */
.top-services-section {
  padding: 80px 0;
  background-color: #f4f6f9;
}

.top-service-lead {
  text-align: center;
  color: #555;
  margin-top: -20px;
  margin-bottom: 40px;
  font-size: 1rem;
}

.top-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.service-card {
  background: #ffffff;
  border: 2px solid #e0e6f0;
  border-top: 5px solid #1d2975;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #1d2975;
  box-shadow: 0 12px 25px rgba(29, 41, 117, 0.18);
}

.service-card-header { padding: 20px 20px 10px; }
.service-tag { display: inline-block; font-size: 0.78rem; font-weight: bold; color: #1d2975; background-color: #eaf0ed; padding: 3px 10px; border-radius: 12px; margin-bottom: 10px; }
.service-card-header h3 { margin: 0; font-size: 1.2rem; color: #1d2975; line-height: 1.4; }
.service-card-body { padding: 0 20px 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.service-desc { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 15px; }
.service-card-badge { background-color: #fdfbe6; border: 1px dashed #1d2975; color: #1d2975; font-size: 0.82rem; font-weight: bold; padding: 8px; border-radius: 4px; text-align: center; margin-bottom: 15px; }
.service-more { font-size: 0.9rem; font-weight: bold; color: #1d2975; text-align: right; display: block; }
.service-card:hover .service-more { color: #d8ca00; text-decoration: underline; }

.top-news-banner-section { padding: 50px 0; background-color: #ffffff; }
.news-banner-box { background: linear-gradient(135deg, #1d2975 0%, #111a52 100%); border-radius: 12px; padding: 35px 30px; color: #ffffff; box-shadow: 0 10px 25px rgba(29, 41, 117, 0.12); border: 1px solid rgba(245, 233, 40, 0.3); }
.news-banner-text h2 { color: #ffffff; font-size: 1.6rem; margin: 10px 0; }
.news-banner-text p { color: #e0e6ff; margin: 0; line-height: 1.7; font-size: 0.98rem; }

/* 展示会バナーのリンク化対応 */
.news-banner-link {
  text-decoration: none !important; /* 下線を強制的に消去 */
  color: inherit;                  /* 内部の文字色を維持 */
  display: block;                  /* カード全体をクリック範囲にする */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時にカードを少し浮き上がらせる（クリックできる感を出す） */
.news-banner-link:hover {
  text-decoration: none !important; /* ホバー時も下線を出さない */
}

.news-banner-link:hover .news-banner-box {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(29, 41, 117, 0.25);
  border-color: #f5e928; /* ホバー時に枠線のイエローを強調 */
}
/* ------------------------------------------
   6. 3Dプリント品 特化バナー (barrel.html)
   ------------------------------------------ */
.threed-feature-section { padding: 40px 0 60px; background-color: #ffffff; }
.threed-banner-box { background: linear-gradient(135deg, #1d2975 0%, #111a52 100%); border-radius: 12px; padding: 40px 30px; color: #ffffff; box-shadow: 0 10px 25px rgba(29, 41, 117, 0.15); border: 1px solid rgba(245, 233, 40, 0.3); }
.threed-banner-content h2 { color: #ffffff; font-size: 1.8rem; margin: 10px 0 15px; }
.threed-banner-content p { color: #e0e6ff; line-height: 1.7; font-size: 1rem; margin-bottom: 20px; }
.threed-check-list { list-style: none; padding: 0; margin: 0 0 25px 0; }
.threed-check-list li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 0.95rem; color: #f5e928; }
.threed-check-list li::before { content: "✔"; position: absolute; left: 0; top: 0; color: #f5e928; font-weight: bold; }
.threed-btn-wrap { text-align: right; }
.btn-sub-link { color: #f5e928; font-weight: bold; text-decoration: none; font-size: 1.05rem; transition: opacity 0.3s; }
.btn-sub-link:hover { opacity: 0.8; text-decoration: underline; }

/* ------------------------------------------
   7. 試作パッケージ・オファーカード＆4 STEP
   ------------------------------------------ */
.trial-package-section { background-color: #ffffff; padding: 80px 0; border-top: 1px solid #eee; }
.tp-header { text-align: center; margin-bottom: 40px; }
.tp-sub-title { color: #1d2975; font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; letter-spacing: 0.05em; }
.tp-main-title { color: #1d2975; font-size: 2.2rem; font-weight: 700; line-height: 1.3; margin: 0 0 20px 0; }
.tp-main-title .highlight-text { background: linear-gradient(transparent 60%, #f5e928 60%); padding: 0 4px; }
.tp-lead-text { font-size: 1rem; line-height: 1.8; color: #555; max-width: 780px; margin: 0 auto; }

.tp-card { background: #ffffff; border: 2px solid #1d2975; border-radius: 8px; box-shadow: 0 10px 25px rgba(29, 41, 117, 0.1); overflow: hidden; margin-bottom: 50px; }
.tp-card-header { background-color: #1d2975; color: #ffffff; padding: 20px; text-align: center; }
.tp-badge { display: inline-block; background-color: #f5e928; color: #1d2975; font-weight: bold; font-size: 0.85rem; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.tp-card-title { margin: 0; font-size: 1.5rem; letter-spacing: 0.05em; }
.tp-card-body { padding: 30px 20px; display: flex; flex-direction: column; align-items: center; }

.tp-price-box { background-color: #fdfbe6; border: 2px dashed #1d2975; border-radius: 6px; padding: 15px 40px; text-align: center; margin-bottom: 30px; width: 100%; max-width: 450px; box-sizing: border-box; }
.tp-price-label { font-size: 0.95rem; color: #1d2975; font-weight: bold; }
.tp-price-value { font-size: 2.8rem; font-weight: bold; color: #1d2975; font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif; line-height: 1.1; }
.tp-price-value .tax { font-size: 1rem; font-weight: normal; margin-left: 4px; }

.tp-spec-list { list-style: none; padding: 0; margin: 0; width: 100%; max-width: 720px; }
.tp-spec-list li { display: flex; border-bottom: 1px solid #eee; padding: 14px 0; font-size: 0.95rem; line-height: 1.6; }
.tp-spec-list li:last-child { border-bottom: none; }
.spec-label { font-weight: bold; color: #1d2975; width: 130px; flex-shrink: 0; position: relative; padding-left: 15px; }
.spec-label::before { content: "■"; color: #f5e928; position: absolute; left: 0; top: 0; }
.spec-detail { color: #333; }

.tp-steps-wrapper { margin-bottom: 50px; }
.tp-steps-title { text-align: center; color: #1d2975; font-size: 1.4rem; margin-bottom: 25px; }
.tp-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.tp-step-item { background: #f4f6f9; border: 1px solid #e0e0e0; border-top: 4px solid #1d2975; border-radius: 6px; padding: 20px 15px; text-align: center; }
.step-num { font-size: 0.85rem; font-weight: bold; color: #1d2975; background: #ffffff; display: inline-block; padding: 2px 10px; border-radius: 12px; margin-bottom: 10px; }
.step-title { font-weight: bold; font-size: 1.05rem; color: #1d2975; margin-bottom: 8px; }
.step-desc { font-size: 0.85rem; color: #666; line-height: 1.5; margin: 0; }

.tp-cta-box { text-align: center; }
.tp-cta-text { font-size: 0.95rem; color: #555; margin-bottom: 15px; }
.tp-cta-btn { display: inline-block; background-color: #f5e928; color: #1d2975; font-weight: bold; font-size: 1.2rem; padding: 16px 40px; border-radius: 50px; text-decoration: none; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; border: 2px solid #1d2975; }
.tp-cta-btn:hover { background-color: #1d2975; color: #ffffff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29, 41, 117, 0.3); }

/* ------------------------------------------
   8. メガフッター (site-footer)
   ------------------------------------------ */
.site-footer {
  background-color: #111a52;
  color: #ffffff;
  padding: 70px 0 30px;
  border-top: 4px solid #f5e928;
}

.sub-tag-light {
  color: #f5e928;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 5px;
}

.footer-grid-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-block h3 { color: #ffffff; font-size: 1.2rem; margin: 0 0 12px 0; }
.footer-block p { color: #cdd6f6; font-size: 0.9rem; line-height: 1.7; margin: 0 0 15px 0; }

.highlight-block {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 233, 40, 0.4);
  padding: 20px;
  border-radius: 8px;
}

.footer-sns-links { display: flex; gap: 10px; flex-wrap: wrap; }
.sns-btn { display: inline-block; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; text-decoration: none; font-size: 0.85rem; font-weight: bold; padding: 8px 14px; border-radius: 20px; transition: all 0.3s ease; }
.sns-btn:hover { background-color: #f5e928; color: #1d2975; border-color: #f5e928; }


/* フッター内の「Tsubame Blade 公式サイトへ」等のリンクボタン */
.footer-block .sns-btn-link {
  display: inline-block;
  background-color: rgba(245, 233, 40, 0.15); /* うっすら黄色い背景 */
  border: 1px solid #f5e928;                /* くっきり黄色枠 */
  color: #f5e928 !important;                 /* テキスト色を明るいイエローに固定 */
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.footer-block .sns-btn-link:hover {
  background-color: #f5e928;                 /* ホバーで黄色塗りつぶし */
  color: #1d2975 !important;                 /* 文字色を濃いネイビーに */
  border-color: #f5e928;
  transform: translateY(-2px);
}



.footer-grid-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.bottom-info-box { background-color: rgba(0, 0, 0, 0.2); padding: 25px; border-radius: 8px; }
.bottom-info-box h4 { color: #f5e928; font-size: 1.1rem; margin: 0 0 15px 0; }
.company-address { font-size: 0.92rem; color: #e0e6ff; line-height: 1.6; margin-bottom: 12px; }
.access-note { font-size: 0.82rem; color: #aab8e8; display: block; margin-top: 4px; }
.map-link { color: #f5e928; font-size: 0.88rem; font-weight: bold; text-decoration: none; }
.map-link:hover { text-decoration: underline; }

.business-info-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: #e0e6ff; }
.business-info-list li { margin-bottom: 10px; line-height: 1.6; }
.contact-details { background-color: rgba(255, 255, 255, 0.08); padding: 8px 12px; border-radius: 4px; margin-top: 5px; font-size: 0.88rem; }

.footer-copyright {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #aab8e8;
}

/* ------------------------------------------
   9. スマホ・タブレット表示 (850px以下)
   ------------------------------------------ */
@media (max-width: 850px) {
  .header-logo-img { height: 22px; } /* スマホ用ロゴ微調整 */

  .hamburger-btn { display: block; }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #1d2975;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    padding: 40px 20px;
  }

  .header-nav.is-active { right: 0; }
  .nav-list { flex-direction: column; align-items: center; gap: 25px; }
  .nav-list a { font-size: 1.1rem; }
  .header-contact-btn { width: 100%; text-align: center; padding: 12px 0; font-size: 1rem; }

  .hero-section { padding: 70px 0 60px; }
  .hero-title { font-size: 1.9rem; }
  .hero-lead { font-size: 0.98rem; }
  .about-flex { flex-direction: column; }
  .tp-main-title { font-size: 1.6rem; }
  .tp-spec-list li { flex-direction: column; }
  .spec-label { width: 100%; margin-bottom: 4px; }
  .tp-price-value { font-size: 2.2rem; }
  .tp-cta-btn { width: 100%; box-sizing: border-box; padding: 16px 20px; font-size: 1rem; }
  
  .top-service-grid { grid-template-columns: 1fr; }
  .threed-banner-box { padding: 25px 20px; }
  .threed-banner-content h2 { font-size: 1.4rem; }
  .threed-btn-wrap { text-align: left; }
  .footer-grid-top, .footer-grid-bottom { grid-template-columns: 1fr; }
}