@charset "UTF-8";

/* --------------------------------------
   Variables & Reset
-------------------------------------- */
:root {
  --accent-green: #223B80; /* DIC-N892 メインカラー */
  --accent-green-hover: #17295c; /* メインカラーのホバー */
  --accent-gold: #dfba6b; /* アクセントゴールド */
  --text-main: #1e293b;
  --text-sub: #64748b;
  --bg-light: #f8fafc;
  --border-color: #cbd5e1;
  
  --font-sans: 'Plus Jakarta Sans', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: 'Noto Serif JP', Georgia, YuMincho, "Yu Mincho", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.text_l{text-align: left;}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------
   Header Layout
-------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand-area{
  display: flex;
}

.brand-area h1{
  font-size: 1.2rem;
  line-height: 1.2rem;
  margin-top: -5px;
  }

.header-logo-img {
  height: 44px;
  width: auto;
}

.logo_txt_s{font-size:60%;}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}

.btn-company {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 6px;
  background-color: #ffffff;
  border: 1px solid var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.btn-company:hover {
  background-color: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
  width: 40px;
  height: 38px;
  flex-direction: column;
  justify-content: space-around;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--accent-green);
  transition: all 0.3s ease;
}

/* --------------------------------------
   Global Navigation
-------------------------------------- */
.header-nav {
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid #f1f5f9;
  padding: 6px 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  width: 100%;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-item:hover > .nav-link {
  color: var(--accent-green);
}

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}


@media (min-width: 992px) {
  .sp{display:none;}
  .pc{display: block;}
  .nav-item.has-dropdown {
    padding-bottom: 8px;
    margin-bottom: -8px;
  }
  #link03,
  #link04,
  #group,
  #scale,
  #monitor,
  #contact,
  #financial,
  #group,
  #link01 {
  scroll-margin-top: 100px; /* ヘッダーの高さ＋余白（環境に合わせて調整してください） */
}

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 100;
  }

  .nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: all 0.2s ease;
    z-index: 101;
  }

  .dropdown-item {
    position: relative;
  }

  .dropdown-item:hover > .dropdown-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-main);
  }

  .dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--accent-green);
  }

  .dropdown-arrow-sub {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
  }
}

/* --------------------------------------
   MAIN SECTION 1: Key Visual Slider
-------------------------------------- */
.hero-slider-section {
  position: relative;
  height: 420px;
  overflow: hidden;
  background-color: #d1e2d6;
}

.slider-container {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.slide.active { opacity: 1; }

.slide-1 { background-image: url('../images/slide01.webp?auto=format&fit=crop&w=1800&q=80');}
.slide-2 { background-image: url('../images/slide02.webp?auto=format&fit=crop&w=1800&q=80'); }
.slide-3 { background-image: url('../images/slide03.webp?auto=format&fit=crop&w=1800&q=80'); }

.slide-bg-overlay {
  position: absolute;
  inset: 0;
  background: none; /* オーバーレイ無し */
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--text-main);
  max-width: calc(100% - 40px);
  background: rgba(255, 255, 255, 0.75); /* 白の透過背景 */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-green); /* ゴールドからメインカラーに変更 */
  background: rgba(34, 59, 128, 0.1); /* メインカラーの非常に薄い透過を背景に */
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-catchcopy {
  font-family: var(--font-serif);
  font-size: 1.6rem; /* モバイルファーストで小さめのフォントサイズ */
  line-height: 1.3;
  margin-bottom: 12px;
}

.text-accent-gold { color: var(--accent-green); } /* テキスト内の強調色もメインカラーへ */
.text-accent-green { color: var(--accent-green); }

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-main); /* 白から暗いグレーに変更 */
}

@media (min-width: 992px) {
  .slide-content {
    padding: 30px;
    max-width: 700px;
    margin:0 auto; /* PCでは左側に寄せて余白を作る */
  }
  .hero-catchcopy {
    font-size: 2.5rem;
  }
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: var(--accent-green);
  width: 24px;
  border-radius: 9999px;
}

/* --------------------------------------
   MAIN SECTION 2: Lead Text
-------------------------------------- */
.lead-section {
  padding: 40px 0 20px;
  text-align: left;
}

.lead-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #334155;
  max-width: 980px;
}

/* --------------------------------------
   MAIN SECTION 3: 注目コンテンツ
-------------------------------------- */
.featured-section {
  padding: 30px 0;
}

.section-title-line {
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #64748b;
  margin-bottom: 24px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 36px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 1.4rem;
  color: var(--accent-green);
  margin-right: 8px;
}

.card-icon_w {
  font-size: 1.4rem;
  color: #fff;
  margin-right: 8px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-title_w {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
    

.bg_links{
  background-image: url('../images/links.webp');
  background-size: cover;
  background-position: center;
}

.bg_works{
  background-image: url('../images/works.webp');
  background-size: cover;
  background-position: top;
}

.featured-card-inner{
  background-color:rgba(255,255,255,0.6);
  padding:0.4rem;
}

/* --------------------------------------
   MAIN SECTION 4: お知らせ & お問合せ
-------------------------------------- */
.info-contact-section {
  padding: 30px 0 60px;
}

.info-contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.news-box {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  min-height: 280px;
}

.box-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.news-list-simple {
  list-style: none;
}

.news-item-simple {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.9rem;
}

.news-item-simple:last-child {
  border-bottom: none;
}

.news-mark {
  margin-right: 8px;
  font-weight: bold;
}

.news-date {
  color: var(--text-sub);
  margin-right: 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.news-link {
  color: var(--text-main);
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

.contact-box-dotted {
  border: 2px dashed #94a3b8;
  border-radius: 4px;
  background: #ffffff;
  text-align: center;
  overflow: hidden;
}

.contact-box-header {
  background-color: #e2e8f0;
  padding: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.contact-box-body {
  padding: 24px 16px;
}

.contact-icon {
  font-size: 2.8rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.contact-time-label {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.contact-tel-number {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.4;
}

.fax-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
}

.btn-contact-action {
  display: block;
  background-color: var(--accent-green);
  color: #ffffff;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.btn-contact-action:hover {
  background-color: var(--accent-green-hover);
}

/* --------------------------------------
   Footer
-------------------------------------- */
/* ==========================================
   Footer (PC & SP Layout Base)
========================================== */
.footer {
  background-color: var(--accent-green); 
  color: #ffffff;
  padding: 40px 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-logo-img {
  max-height: 40px;
  width: auto;
  margin-bottom: 8px;
}

.footer__brand-ja {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer__brand-catch {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #ffffff;
  white-space: nowrap;
}

/* リンクエリア全体 */
.footer__policy-links {
  display: flex;
  flex-direction: column;
  gap: 16px; /* 行ごとの上下間隔 */
}

.footer__policy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px; /* リンク同士の余白（縦 横） */
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__policy-row li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer__policy-row li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* 下部境界線 & コピーライト */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* 画像通りの薄い境界線 */
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: #ffffff;
  margin: 0;
}

/* ==========================================
   PC View (769px以上)
========================================== */
@media (min-width: 769px) {
  .footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  .footer__brand-area {
    max-width: 320px;
  }

  .footer__corporate-info {
    flex-grow: 1;
    max-width: 700px;
  }

  .footer__policy-row {
    gap: 16px 36px;
  }
}

/* ==========================================
   SP View (768px以下: スマホ版レイアウト再現)
========================================== */
@media (max-width: 768px) {
  
  .sp{display:block;}
  .pc{display: none;}
  .btn-company{display: none;}
  .footer {
    padding: 32px 0 20px;
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* スマホ版画像にある「ブランドとリンク間のボーダー」 */
  .footer__corporate-info {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
  }

  .footer__policy-links {
    gap: 14px;
  }

  .footer__policy-row {
    gap: 10px 20px;
  }

  .footer__policy-row li a {
    font-size: 0.85rem;
  }
}

/* --------------------------------------
   Responsive Styles (SP対応)
-------------------------------------- */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
  }

  .header-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .dropdown-arrow {
    color: var(--accent-green);
  }

  .dropdown-menu,
  .dropdown-sub-menu {
    display: none;
    background: #f8fafc;
    padding-left: 16px;
    list-style: none;
  }

  .nav-item.is-open > .dropdown-menu,
  .dropdown-item.is-open > .dropdown-sub-menu {
    display: block;
  }

  .dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .hero-slider-section {
    height: 320px;
  }

  .hero-catchcopy {
    font-size: 1.6rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .featured-card {
    padding: 18px 12px;
  }

  .info-contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================
   Font Awesome 矢印の共通設定
========================================== */
/* Font Awesome のフォントファミリー指定 */
.dropdown-arrow,
.dropdown-arrow-sub {
  border: none !important; /* 既存の三角矢印（border）を消去 */
  width: auto !important;
  height: auto !important;
  display: inline-block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Solidアイコンを使用 */
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* 1階層目ナビゲーション（下向き矢印 ∨） */
.dropdown-arrow::before {
  content: "\f078"; /* fa-chevron-down */
  font-size: 0.75em;
  margin-left: 4px;
}

/* PCホバー時に矢印を180度回転させる場合 */
.nav-item:hover > .nav-link .dropdown-arrow {
  transform: rotate(180deg);
}

/* 2階層目サブメニュー（右向き矢印 ＞） */
.dropdown-arrow-sub::before {
  content: "\f054"; /* fa-chevron-right */
  font-size: 0.7em;
  margin-left: 6px;
  color: var(--text-sub);
}

/* サブメニューホバー時に右へ少し動かすアニメーション */
.dropdown-item:hover > .dropdown-link .dropdown-arrow-sub {
  transform: translateX(3px);
  color: var(--accent-green);
}

.text-center{text-align: center;}

.mt1r{margin-top: 1rem;}