@charset "UTF-8";
/* ===================================
   1. 基本設定（リセット、変数など）
   =================================== */
:root {
  --primary-color: #005a9c;
  --hover-color: #0077cc;
  --background-color-light: #f8f9fa;
  --text-color: #333;
  --font-family-base: 'Noto Sans JP', 'メイリオ', Meiryo, sans-serif;
}
/* サイト全体に適用する基本的なリセットと設定 */
*, *::before, *::after {
  box-sizing: border-box; /* サイズ計算を簡単にし、レイアウト崩れを防ぐ */
}

body {
  font-family: var(--font-family-base);
  color: var(--text-color);
  background-color: var(--background-color-light);
}

img {
  max-width: 100%; /* 画像が親要素からはみ出さないようにする */
  height: auto;
}

/* ===================================
   2. レイアウト（主要な骨格）
   =================================== */
/* サイト全体のコンテナ設定 */
.container {
  max-width: 1300px; /* PCでの最大幅を指定 */
  margin: 0 auto;   /* 中央寄せ */
  padding: 175px 10px 20px;
}

/* スマートフォン向けのスタイル（画面幅が768px以下の場合）*/
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* 横並びを縦並びに切り替える */
  }
}

.header-inner {
  display: flex;
  justify-content: space-between; /* ロゴと連絡先を両端に配置 */
  align-items: center; /* 高さを中央揃え */
  padding: 1em;
}
.contact-info .tel {
  font-size: 1.4em;
  font-weight: bold;
  color: #005a9c; /* 新しいテーマカラーに合わせる */
  margin: 0;
}
.contact-info .tel span {
  font-size: 0.8em;
  color: #333;
  font-weight: normal;
}
.contact-info .address {
  margin: 0;
  font-size: 0.9em;
}
.site-header {
  position: fixed; /* ヘッダーを画面に固定 */
  top: 0;          /* 画面の上端に配置 */
  left: 0;         /* 画面の左端に配置 */
  width: 100%;     /* 幅を画面いっぱいに広げる */
  background-color: #fff; /* 背景を白に */
  border-bottom: 1px solid #ddd; /* 下に薄い境界線 */
  padding: 5px 10px; /* 上下の余白10px、左右の余白20px */
  z-index: 100;
}

/* ヘッダーの中身を中央寄せにし、最大幅を設定 */
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex; /* ロゴと連絡先を横並びにする */
  justify-content: space-between; /* 両端に配置 */
  align-items: center; /* 上下中央揃え */
}

/* ロゴのスタイル */
h1.logo {
  margin: 0;
}
.logo img {
  width: 300px; /* ロゴの幅をお好みで指定 */
  height: auto;   /* 高さは自動で調整 */
  vertical-align: middle; /* 他の要素と高さを揃えるためのおまじない */
}
/* 連絡先情報のスタイル */
.contact-info {
  text-align: right; /* 文字を右揃えに */
}

.contact-info p {
  margin: 0; /* pタグの標準余白をリセット */
  line-height: 1.5; /* 行間を調整 */
}

.contact-info .tel {
  font-size: 1.4em;
  font-weight: bold;
}

.contact-info .address {
  font-size: 0.9em;
}

/* スキップリンクのスタイル（普段は隠しておき、キーボード操作で表示）*/
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 0;
  padding: 1em;
  background: #005a9c;
  color: white;
  z-index: 1000;
}

/* mainコンテンツエリアの基本設定 */
main {
  padding: 20px;
}

/* ヒーローセクション（メイン画像） */
.hero {
  margin-bottom: 2em; /* 下に余白 */
  position: relative; /* z-indexを有効にするため */
  z-index: 1;         /* ヘッダー(z-index: 100)より下の階層に設定 */
}
.hero img {
  width: 100%; /* 画像の幅を親要素の100%にすることで、レスポンシブにする */
  height: auto;
  border-radius: 8px; /* 角を少し丸める */
}

/* TOPICSとNEWSに共通で適用するカードスタイル */
.card {
  background-color: #fff;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 影をつけて立体感を出す */
}

/* セクション見出し(h2)のスタイル */
main h2 {
  font-size: 1.8em;
  border-bottom: 2px solid #005a9c; /* テーマカラーの青い下線 */
  padding-bottom: 0.3em;
  margin-top: 0;
}
main h2 .ja {
  font-size: 0.6em; /* 「新着情報」の文字を少し小さく */
  margin-left: 0.5em;
}

/* NEWSのdl, dt, ddのスタイル */
.news dl {
  display: flex; /* 日付と内容を横並びにする */
  flex-wrap: wrap; /* 複数行に対応 */
  margin-top: 1em;
}
.news dt {
  width: 120px; /* 日付の幅を固定 */
  font-weight: bold;
}
.news dd {
  width: calc(100% - 120px); /* 内容部分の幅を残り全部に */
  margin: 0 0 1em 0;
}

/* ページの先頭へ戻るリンク */
.page-top {
  text-align: right;
  margin-top: 2em;
}
.page-top a {
  text-decoration: none;
  color: #005a9c;
  font-weight: bold;
}
/* ===================================
   3. コンポーネント（再利用する部品）
   =================================== */
/* グローバルナビゲーション */
.global-nav {
  background-color: var(--primary-color);
}.global-nav > ul {
  max-width: 1300px;
  margin: 0 auto;
  display: flex; /* 横並びにする */
  justify-content: center;
  list-style: none;
  padding: 0;
}
.global-nav li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.global-nav li a:hover
.global-nav li a:focus {
  background-color: var(--hover-color);
}
.global-nav li a.current {
  background-color: var(--hover-color);
  pointer-events: none;  /* クリックできないようにする */
}
/* サイドバー */
.sidebar {
  background-color: #f4f7f6;
}

.widget {
  background-color: #fff;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  word-break: break-word; /* ウィジェット内の長い単語を折り返す */
}

.widget h3 {
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5em;
}

.side-menu {
  list-style: none;
  padding: 0;
  margin: 0; /* 余白をリセット */
  width: 100%; /* 親要素の幅いっぱいに広がる */
}

.side-menu li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #005a9c;
  border-bottom: 1px solid #eee;

  /* レイアウトと折り返しをここで一括指定 */
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;

  /* アニメーション効果 */
  transition: all 0.3s ease;
  position: relative;
}

.side-menu li a:hover
.side-menu li a:focus {
  background-color: #e9f5ff;
  color: #005a9c;
  transform: translateX(5px);
}

.company-info {
  text-align: center;
}

.company-info p {
  line-height: 1.8;
  font-size: 0.9em;
}
/* フッター */
.site-footer {
  background-color: #333;
  color: white;
  padding: 1em 0;
  margin-top: 2em;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center; 
}
.footer-inner {
  max-width: 1300px; /* .containerのmax-widthと同じ値に設定 */
  margin: 0 auto;
  padding: 0 10px; /* 左右に余白を追加 */
  width: 100%;
  text-align: center;
}
/* ===================================
   CTAボタン（お問い合わせボタン）
   =================================== */
.cta-button {
  /* ボタンの基本形状 */
  display: inline-block;
  padding: 15px 35px; /* 上下左右の余白を調整 */
  border-radius: 50px; /* 角を丸めて柔らかい印象に */
  
  /* 色と文字 */
  background: linear-gradient(45deg, #007bff, #0056b3); /* 背景を青系のグラデーションに */
  color: #fff; /* 文字色を白に */
  font-size: 18px;
  font-weight: bold; /* 文字を少し太くして強調 */
  text-decoration: none;

  /* 影とアニメーション */
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); /* 青みがかった影で浮かび上がらせる */
  transition: all 0.3s ease; /* すべての変化を0.3秒かけて滑らかに */
}

/* マウスが乗った時、キーボードで選択された時のスタイル */
.cta-button:hover,
.cta-button:focus {
  transform: translateY(-3px); /* 少し上に移動させて浮き上がる動き */
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3); /* 影を少し濃くして、より浮き上がったように見せる */
  background: linear-gradient(45deg, #0088ff, #0062cc); /* グラデーションを少し明るくする */
}

/* クリックした瞬間のスタイル */
.cta-button:active {
  transform: translateY(0); /* 押した時に元の位置に戻す */
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}
/* ヒーローイメージのアニメーション */
.hero-animation {
  animation: fadeIn 1.2s ease-in-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- インタラクション（動き）の追加 --- */
/* TOPICSとNEWSカードのホバー効果 */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 変化を滑らかに */
}

.card:hover {
  transform: translateY(-5px); /* 少し上に浮かび上がる */
  box-shadow: 0 8px 15px rgba(0,0,0,0.12); /* 影を少し濃くする */
}
/* スマートフォン向けのスタイル（画面幅が768px以下の場合）*/
@media (max-width: 768px) {
  
  /* ヘッダーのレイアウトを縦積みに変更 */
  .header-inner {
    flex-direction: column; /* 要素を縦に並べる */
    gap: 10px; /* ロゴと連絡先の間に少し隙間を空ける */
  }

  /* ロゴのサイズをスマホ向けに調整 */
  .logo img {
    width: 240px; /* ロゴの幅を少し小さくする */
  }

  /* 連絡先情報を中央揃えに */
  .contact-info {
    text-align: center;
  }
  
  /* コンテナの頭の余白を調整 */
  .container {
    padding-top: 220px; /* ヘッダーが高くなる分、コンテンツの開始位置を下げる */
  }
}
/* 親メニューの項目を基準にする設定 */
.global-nav li {
  position: relative;
}
/* ===================================
   下線アニメーション用の汎用クラス
   =================================== */

/* アニメーションの基本設定を持つクラス */
.underline-animation {
  position: relative; /* ::after擬似要素の基準位置にする */
}

/* 下線（擬似要素）の初期状態とトランジション */
.underline-animation::after {
  content: '';
  position: absolute;
  bottom: 10px; /* 下線の位置 */
  left: 50%;
  width: 0; /* 最初は幅0で見えない */
  height: 2px;
  transition: all 0.3s ease; /* 幅の変化をアニメーションさせる */
  transform: translateX(-50%);
  background-color: white; /* デフォルトの色（親メニュー用） */
}

/* ホバー/フォーカス時に幅を広げる */
.underline-animation:hover::after,
.underline-animation:focus::after {
  width: calc(100% - 40px); /* 左右のpadding(20px*2)を引いた幅 */
}

/* 下線の色を変更するためのクラス */
.underline-blue::after {
  background-color: var(--hover-color); /* 青色（#0077cc）に変更 */
}

.dropdown-menu {
  position: absolute; /* 親(li)を基準に配置 */
  top: 100%;
  left: 0;
  background-color: #005a9c;
  border-radius: 0 0 8px 8px; /* 下側の角を丸める */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 200px; /* メニューの幅 */
  z-index: 200;

  /* アニメーションのための初期設定 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px); /* 少し下に配置 */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* 親メニューにホバーした時にドロップダウンを表示 */
.global-nav li.list-child:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ドロップダウン内のリンクのスタイル */
.dropdown-menu li a {
  padding: 12px 20px;
  color: #fff; /* design.cssで定義されている青色 */
  font-weight: normal;
  display: block;
  white-space: nowrap; /* 文字を改行させない */
  transition: background-color 0.2s ease;
}

/* ドロップダウン内のリンクのホバー効果 */
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: #fff; /* 薄い青色 */
  color: var(--hover-color);
}
/* ===================================
   ハンバーガーメニュー用スタイル
   =================================== */
/* --- ボタンの基本スタイル --- */
.hamburger-menu {
  display: none; /* PCでは非表示 */
  position: absolute;
  top: 45px;      /* 位置を微調整 */
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 200; /* ヘッダー(100)より手前に表示 */
}

.hamburger-menu__bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu__bar:nth-of-type(1) {
  top: 8px;
}

.hamburger-menu__bar:nth-of-type(2) {
  top: 18px;
}

.hamburger-menu__bar:nth-of-type(3) {
  bottom: 8px;
}

/* --- ボタンがアクティブになった時のスタイル（×印に変形） --- */
.hamburger-menu.is-active .hamburger-menu__bar:nth-of-type(1) {
  top: 18px;
  transform: rotate(45deg);
}

.hamburger-menu.is-active .hamburger-menu__bar:nth-of-type(2) {
  opacity: 0;
}

.hamburger-menu.is-active .hamburger-menu__bar:nth-of-type(3) {
  bottom: 19px; /* topからだと高さがズレるためbottomで調整 */
  transform: rotate(-45deg);
}

/* --- スマートフォン表示 (768px以下) --- */
@media (max-width: 768px) {

  /* ハンバーガーボタンを表示 */
  .hamburger-menu {
    display: block;
  }

  /* PC用のナビゲーションを非表示に */
  .global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 画面全体の高さ */
    background-color: rgba(0, 90, 156, 0.95); /* 少しだけ透過させる */
    padding-top: 100px;
    z-index: 150; /* ボタン(200)より奥に配置 */

    /* 最初は隠しておく */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* メニューが表示された時のスタイル */
  .global-nav.is-active {
    opacity: 1;
    visibility: visible;
  }

  /* メニューの項目を縦並びに */
  .global-nav > ul {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
}
/* ===================================
   トップへ戻るボタン用スタイル
   =================================== */

.page-top-button {
  /* 見た目の設定 */
  background-color: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* 円形にする */
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);

  /* 位置の設定 */
  position: fixed; /* 画面に固定 */
  right: 20px;
  bottom: 20px;
  z-index: 100;

  /* 表示/非表示のアニメーション設定 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* is-visibleクラスが付与されたら表示する */
.page-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ===================================
   サービス・製品一覧（トップページ）
   =================================== */
.products-list {
  display: flex;
  justify-content: space-between;
  gap: 2em; /* 各項目の間の隙間 */
  margin-top: 2em;
}

.product-item {
  flex: 1; /* 3つの項目が均等に幅を取る */
  text-align: center;
  border: 1px solid #eee;
  padding: 1.5em;
  border-radius: 8px;
  background-color: #f8f9fa; /* 背景色を少し変えて区別 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時に少し浮き上がる効果 */
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.product-item img {
  max-width: 80px; /* アイコンのサイズ */
  height: auto;
  margin-bottom: 1em;
}

.product-item h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.2em;
}

.product-item p {
  text-align: left; /* 説明文は左揃えの方が見やすい */
  font-size: 0.9em;
  min-height: 120px; /* PC表示時に高さを揃える */
  margin-bottom: 1.5em;
}

.product-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.product-button:hover,
.product-button:focus {
  background-color: var(--hover-color);
}

/* スマートフォン表示 (768px以下) の調整 */
@media (max-width: 768px) {
  .products-list {
    flex-direction: column; /* 縦並びにする */
  }
  .product-item p {
    min-height: auto; /* スマホでは高さ揃えは不要 */
  }
}
/* ===================================
   ブログ記事ページ用スタイル
   =================================== */
.post-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 2em;
  padding-bottom: 1em;
}

.post-title {
  font-size: 2em;
  margin: 0;
  line-height: 1.4;
  border-bottom: none;
  padding-bottom: 0;
}

.post-date {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
  text-align: right;
}

.post-content {
  line-height: 1.8;
}

.post-content h3 {
  font-size: 1.5em;
  border-left: 5px solid var(--primary-color);
  padding-left: 0.8em;
  margin-top: 2em;
  margin-bottom: 1em;
}

.post-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.post-content li {
  margin-bottom: 0.5em;
}

.back-to-list {
  text-align: center;
  margin-top: 3em;
}
.feature-number {
    color: #005a9c;
}

.section-divider {
    margin: 2em 0;
    border: none;
    border-top: 1px solid #eee;
}
/* ===================================
   メール送信フォーム用スタイル（追記）
   =================================== */
.form-group {
  margin-bottom: 1.5em;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: var(--font-family-base);
}
.form-group textarea {
  min-height: 150px;
}
/* 確認画面用のテーブル */
.confirmation-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}
.confirmation-table th,
.confirmation-table td {
  border: 1px solid #eee;
  padding: 1em;
  text-align: left;
}
.confirmation-table th {
  background-color: var(--background-color-light);
  width: 30%;
  font-weight: bold;
}
/* ボタンの配置 */
.form-buttons {
  text-align: center;
  margin-top: 2em;
  display: flex;
  justify-content: center;
  gap: 1em; /* ボタン間の隙間 */
}
/* 戻るボタン用のスタイル */
.button-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  background: #6c757d; /* グレー系の色 */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button-secondary:hover,
.button-secondary:focus {
  background: #5a6268;
  transform: translateY(-2px);
}