:root{
  --header-height: 80px; /* ヘッダーの高さ */
  --nav-height: 60px;    /* グローバルナビの高さ */
  --accent: #0a63a8;
  --max-width: 1100px;
}

/* 全体 */
*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height:1.8em;
  color:#222;
  background:#fff;
  /* ヘッダー + ナビの高さ分の余白を確保して、コンテンツが隠れないようにする */
  padding-top: calc(var(--header-height) + var(--nav-height));
}

/* ヘッダー（固定） */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--header-height);
  background:#75B1A9;
  z-index:1000;
}
.header-inner{
  max-width:1100px;
  margin:0 auto;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
}
.logo{height:50px;}
.header-right{display:flex;align-items:center;gap:12px}
.contact-btn{display:inline-block;color:#fff;text-decoration:none;font-weight:600}
.nav-toggle{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  cursor:pointer;
}
a {
  color: #4F6457; /* 訪問前 */
  text-decoration: none;
}

a:visited {
  color: #7A9489; /* 少し薄くした色 */
}
a:hover {
  opacity: 0.8;
}

/*検索窓*/
/* ===== 虫眼鏡ボタン ===== */
    #search-trigger {
      background: none;
      border: none;
      cursor: pointer;
      padding: 6px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      color: #333;
    }

    #search-trigger:hover {
      background: #f0f0f0;
    }

    #search-trigger svg {
      width: 22px;
      height: 22px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ===== オーバーレイ背景 ===== */
    #search-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 1000;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding-top: 80px;

      /* 非表示状態 */
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    #search-overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    /* ===== 検索パネル ===== */
    #search-panel {
      background: #fff;
      border-radius: 12px;
      padding: 28px 32px 24px;
      width: 560px;
      max-width: calc(100vw - 32px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      position: relative;

      transform: translateY(-16px);
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #search-overlay.active #search-panel {
      transform: translateY(0);
    }

    /* 閉じるボタン */
    #close-btn {
      position: absolute;
      top: 14px;
      right: 16px;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 20px;
      color: #888;
      line-height: 1;
      padding: 4px 6px;
      border-radius: 4px;
      transition: color 0.15s, background 0.15s;
    }

    #close-btn:hover {
      color: #222;
      background: #f0f0f0;
    }

    /* パネル内ラベル */
    #search-panel h2 {
      font-size: 14px;
      font-weight: 500;
      color: #888;
      margin-bottom: 16px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    /* ===== Google CSE のスタイル上書き ===== */
    /* ↓ 実際に CSE を組み込む場合はここを調整 */
    .gsc-search-box,
    .gsc-input-box {
      width: 100% !important;
    }

    input.gsc-input {
      font-size: 16px !important;
      padding: 10px 12px !important;
    }
/* グローバルナビ（固定） */
.global-nav{
  position:fixed;
  top:var(--header-height);
  left:0; right:0;
  height:var(--nav-height);
  background:#D9B44A;
  z-index:999;
}
.nav-list{
  max-width:1100px;
  margin:10px auto;
  display:flex;
  list-style:none;
  gap:20px;

  height:100%;
  align-items:center;
}

.nav-list li{position:relative;width: 140px; display: flex;justify-content: center;
  padding-left: 20px;
  padding-bottom: 5px;
  padding-right: 10px;
  padding-top: 5px;}
.nav-list a{
  text-decoration:none;
  color:#4F6457;
  font-weight:600;
}

/* 取扱業務アコーディオン（縦並び） */
.nav-item.services{position:relative}
.submenu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  background:#D9B44A;
  width:230px;
  box-shadow:0 20px 20px rgba(0,0,0,0.15);
}

.services:hover .submenu{
  display:block;
}

.submenu li{
  padding-left: 20px;
  padding-bottom: 5px;
  padding-right: 10px;
  padding-top: 5px;
  width:150px;
  list-style:none;
  justify-content: left;
}
.submenu li a{color:#4F6457}
.submenu li:hover{background:#D9B44A}

/* =========================
   ナビ ホバー下線アニメーション
========================= */

.nav-list a,
.submenu li a{
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

/* 下線 */
.nav-list a::after,
.submenu li a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  background: #4F6457;

  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;

  transition: transform .25s ease, opacity .25s ease;
}

/* hover時 */
.nav-list a:hover::after,
.submenu li a:hover::after{
  transform: scaleY(1);
  opacity: 1;
}
/* =========================
   ナビ hover 背景アニメーション
========================= */

/* 親メニュー */
.nav-list li{
  transition: background .25s ease;
}

/* hover時 少し薄く */
.nav-list li:hover{
  background: rgba(255,255,255,0.25);
  border-radius:4px;
}

/* サブメニュー */
.submenu li{
  transition: background .25s ease;
}

.submenu li:hover{
  background: rgba(255,255,255,0.25);
}


/* main / hero / content */
main{max-width:var(--max-width);margin:0 auto;padding:24px}
.main-visual img{width:100%;height:350px;object-fit:cover;display:block;border-radius:8px}
.content{margin-top:18px;background:#fff;padding:18px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.04)}

/* 2カラム */
.two-column{display:flex;gap: 40px;
  justify-content: center;align-items: flex-start;}
.sidebar{width:240px;flex:0 0 260px;position:sticky;top: calc(var(--header-height) + var(--nav-height) + 18px);align-self:flex-start;background:#fafafa;padding:16px;border-radius:8px;margin: 0 auto;}
.content article{margin-bottom:18px;}
/* 本文エリアをサイドメニュー側へ寄せてバランス調整 */
.two-column .content {
  flex: 1;
  max-width: 700px; 
}
h1 {
  font-size: 1.8rem;
  color: #4F6457;
  margin-bottom: 32px;
}
h2 {
  color: #4F6457;
}
h3 {
  color: #4F6457;
}
/*トップページの小見出し*/
.section-title-wrapper {
  display: flex;
  justify-content: center; /* 横中央 */
  margin: 60px 0 30px;
}

.section-title-bg {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px 32px;
  background-color: #ACD0C0;
  border-radius: 999px; /* 完全な丸形 */
}
.contact-cta {
  padding: 80px 20px;
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.contact-item {
  font-size: 1.6rem; /* 大きめ */
  font-weight: 600;
  padding: 20px 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}
/*infomation*/
.info-window {
      border: 1px solid #ccc;
      padding: 15px;
      width: 500px;
      background: #fff;
}
.info-window h2 {
        font-size: 1.1em;
        margin-top: 0;
        border-bottom: 2px solid #75B1A9; 
        padding-bottom: 5px;
}
.info-list {
        list-style: none;
        padding: 0;
        margin: 0;
}
.info-item {
        padding: 10px 0;
        border-bottom: 1px dotted #eee;
        display: flex;
        flex-direction: column;
}
.info-item:last-child { border-bottom: none; }
.info-date {
        font-size: 0.85em;
        color: #888;
}
.info-title a {
        color: #333;
        text-decoration: none;
        font-size: 0.95em;
}
.info-title a:hover {
    text-decoration: underline;
    color: #4F6457;
}
/* 電話 */
.tel {
  background-color: #ACD0C0;
  color: #4F6457;
}

/* LINE */
.line {
  background-color: #e8f5ef;
  border: 2px solid #ACD0C0;
  color: #4F6457;
}

/* フォーム */
.form {
  background-color: #f5f5f5;
  border: 2px solid #ACD0C0;
  color: #4F6457;
}

/* ホバー */
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
/* 各業務 */
.service-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
}
/* 画像 */
.service-image {
  flex: 0 0 200px;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
/* footer */
footer{background:#75B1A9;padding:24px;border-top:1px solid #eee;margin-top:24px;text-align:center}
.footer-logo{height:40px;display:block;margin:0 auto 10px}
.footer-nav a{color:#333;margin:0 8px;text-decoration:none}
/* プロフィールここから*/

.profile {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

/* 2カラム */
.profile-2col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* 写真 */
.profile-photo img {
  width: 100%;
  border-radius: 6px;
}

/* 見出し1 */
.profile h1 {
  font-size: 1.8rem;
  color: #4F6457;
  margin-bottom: 32px;
}

/* 見出し2（①−2） */
.profile h2 {
  font-size: 1.2rem;
  line-height: 1.4;
  color: #4F6457;
  border-left: 3px solid #4F6457;
  border-bottom: 1px dotted #ACD0C0;
  padding: 0 0 6px 12px;
  margin: 40px 0 20px;
}

.profile p {
  margin-bottom: 1em;
}

.emphasis {
  font-weight: bold;
  color: #4F6457;
}

.thought {
  color: #555;
}

.closing {
  font-weight: bold;
  margin-top: 24px;
}

/* スマホ */
@media (max-width: 768px) {
  .profile-2col {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 200px;
    margin-bottom: 24px;
  }
}

/*事務所概要表*/

/* セクション */
.office-overview {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.office-overview h2 {
  margin-bottom: 16px;
  color: #4F6457;
}

/* 表 */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #4F6457; /* 外枠 */
}

/* 共通セル */
.overview-table th,
.overview-table td {
  border: 1px solid #4F6457; /* 罫線（細い） */
  padding: 10px 14px;
  vertical-align: top;
  font-size: 15px;
}

/* 項目セル */
.overview-table th {
  background-color: #ACD0C0;
  width: 20%;
  text-align: left;
  font-weight: 600;
}

/* 内容セル */
.overview-table td {
  background-color: #ffffff;
}
/*パンくずリスト*/
.breadcrumb {
  max-width: 1100px;
  margin: 16px auto;
  padding: 0 16px;
  font-size: 14px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 6px;
  color: #999;
}

.breadcrumb a {
  color: #0a63a8;
  text-decoration: none;
}

.breadcrumb [aria-current="page"] {
  font-weight: 400;
  color: #222;
}

@media(max-width:768px){

  :root{
    --header-height:64px;
  }

  body{
    padding-top: var(--header-height);
  }

  .logo{
    height:35px;
  }

  .nav-toggle{
    display:block;
    position: relative;
    z-index: 4000;
  }

  /* ===== 背景オーバーレイ ===== */
  .nav-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 2000;
  }

  .nav-overlay.active{
    opacity: 1;
    visibility: visible;
  }

  /* ===== 右スライドメニュー ===== */
  .global-nav{
    position: fixed;
    top: 0;
    right: 0;
    left: auto;

    width: 280px;
    height: 100vh;

    background: rgba(217,180,74,0.95);

    transform: translateX(100%);
    transition: transform .3s ease;

    z-index: 3000;
  }

  .global-nav.active{
    transform: translateX(0);
  }

  .nav-list{
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + 20px) 20px 20px;
    gap: 10px;
    width:100%;
  }

  .nav-list li{
    width:100%;
  }

  .submenu{
    position: static;
    width: 100%;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }
  .two-column{flex-direction:column}
  .sidebar{position:static;width:100%}
    .profile-inner {
    flex-direction: column;
  }

  .profile-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  /* ===== ヘッダーアイコン（虫眼鏡・メール）スマホ調整 ===== */
  #search-trigger {
    padding: 4px;
  }

  #search-trigger svg {
    width: 20px;
    height: 20px;
  }

  .contact-btn img {
    height: 24px;
    width: auto;
    display: block;
  }

  .header-right {
    gap: 8px;
  }
}