body{
  color: #444;
  margin: 0;
  padding-top: 200px;
  line-height: 150%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  border: none;
  display: block;
  max-width: 100%;
  height: auto;
}
.header1 {
  max-width: 100%;
  margin: 0 auto;
  display: flex;               /* 横並びにする */
  align-items: center;         /* 高さを揃える */
  justify-content: space-between; /* 要素間のスペースを調整（必要なら） */ 
  margin-left: 10px;
}

.header-left img {
  margin-right: 10px; 
  flex-shrink: 0;
  text-align: left;
  top: 5px;
  left: 5px;
}
.sub-image{
  width: 200px;
  height: 80px;
  min-width: 220px;
}
@media(max-width:769px){
  .sub-image {
  width: calc(100%/4);
  }
}
@media(max-width:640px){
  .sub-image {
  width: calc(100%/3);
  }
}
@media(max-width:376px){
  .sub-image {
  width: calc(100%/2);
  }
}
.header-right {
  display: flex;
  flex-wrap: wrap;
}

.call-btn,
.contact-btn {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 20px;
  width: 200px;
  height: 80px;
  padding: 0;
  margin-right: 8px;
}

/* 小さいアイコンはデフォルト非表示 */
.call-btn-s,
.contact-btn-s {
  display: none;
}

/* 画面幅が768px以下のとき */
@media (max-width: 768px) {
  /* 大きいボタンは非表示 */
  .call-btn,
  .contact-btn {
    display: none;
  }

  /* 小さいアイコンを表示 */
  .call-btn-s,
  .contact-btn-s {
    width: 50px;
    height: 50px;
    display: inline-block;
    border: none;
    margin-right: 5px;
    cursor: pointer;
  }
@media (max-width: 768px) {
    .call-btn-s,
    .contact-btn-s {
      display: block !important;
      width: 50px;
      height: 50px;

    }
  } 
}

.nav-a ul {
  display: flex;                 
  justify-content: center;       
  align-items: center;           
  list-style: none;              
  margin: 0;
  padding: 0;
  flex-wrap: wrap;               
}

.nav-a li {
  padding: 20px;
  text-align: center;
  color: grey;
  position: relative;
}

/* 各項目の間に線を引く（最後の項目以外） */
.nav-a li:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;               /* 線の太さ */
  height: 40px;             /* 線の高さ */
  background-color: lightgray;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%); /* 縦方向中央に配置 */
}

.nav-a li a {
  color: grey;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s, text-decoration 0.3s;
}

.nav-a li a:hover {
  color: orange;
}


 /* ハンバーガーボタン */
 .hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 50px;
  height: 50px;
  margin-right: 8px;
}

.hamburger-btn:hover {
  opacity: 0.7;
}

.hamburger-btn svg {
  display: block;
  width: 100%;
  height: 100%;
}
  /* モバイルメニュー */
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: auto;
    background-color: lightgray;
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }
  
  /* 閉じるボタン */
  .close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }
  
  .close-btn:hover {
    opacity: 0.7;
  }
  
  .close-btn svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .menu-items {
    display: flex;              /* 横並びにする */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;           /* デフォルトの点を消す */
    padding: 0;
    margin: 20px 0 0 0;         /* 上にだけマージン */
    flex-wrap: wrap;
    width: 100%;
  }
  
  .menu-items li {
    padding: 10px 15px;
  }
  
  .menu-items li a {
    display: block;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: opacity 0.3s;
  }
  
  .menu-items li a:hover {
    opacity: 0.7;
  }
  
  /* 768px以下の設定 */
  @media (max-width: 768px) {
    /* デスクトップナビを非表示 */
    .nav-a {
      display: none;
    }
  
    /* ハンバーガーボタンとモバイルメニューを表示 */
    .hamburger-btn,
    .mobile-menu {
      display: block;
    }
  }
  
  
/* 768px以下の設定 */
@media (max-width: 768px) {
  /* デスクトップナビを非表示 */
  .nav-a {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }
}
@media (min-width: 769px) {
  /* デスクトップナビを非表示 */
  .nav-a {
    display: block;
  }

  .hamburger-btn {
    display: none;
  }
}
/* トップバナー */
.top-banner img {
  display: block;
  width: 100%;   /* 横幅いっぱいに */
  height: auto;  /* 縦横比を保って縮小 */
  margin-top: 80px; /* ← ヘッダー高さ分を空ける */
}
.top-banner img {
  display: block;
  width: 100%;
  height: auto; /* 比率を保つ */
}
@media(max-width:769px){
  .top-banner {
  width: calc(100%/4);
  }
}
@media(max-width:640px){
  .top-banner {
  width: calc(100%/3);
  }
}
@media(max-width:376px){
  .top-banner {
  width: calc(100%/2);
  }
}
#topshita h1.title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 50px;
  font-weight: 700;          /* 太字 */
  letter-spacing: 0.05em;    /* 文字間隔を少し広げる */
  text-align: center;        /* 中央揃え */
  color: darkorange;
  margin: 80px 0;
  line-height: 1.4;          /* 行間を少し広めに */
  position: relative;
}


.konnashita {
  width: fit-content;       /* 中身の幅に合わせる */
  margin: 100px auto;       /* 中央寄せ */
  font-size: 20px;
  color: black;
  text-align: left;
  line-height: 2;
  border: 1px solid darkorange;
  padding: 20px 250px;      /* ← ここが大きすぎる */
  background-color: #fff;
}

/* スマホ表示用 */
@media (max-width: 768px) {
  #topshita h1.title {
    font-size: 26px;       /* ← 同じセレクタで上書き */
    line-height: 1.3;
    margin: 40px 0;
  }

  .konnashita {
    width: 80%;           /* 画面の80%に収める */
    font-size: 3vw;       /* 可変文字サイズ */
    padding: 20px 20px;   /* スマホ用にパディング縮小 */
    margin-top: 30px;
    margin-bottom: 100px;
  
  }
}
h1.title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 50px;
  font-weight: 700;          /* 太字 */
  letter-spacing: 0.05em;    /* 文字間隔を少し広げる */
  text-align: center;        /* 中央揃え */
  color: darkorange;
  margin: 80px 0;
  line-height: 1.4;          /* 行間を少し広めに */
  position: relative;
}
/* スマホ表示用 */
@media (max-width: 768px) {
h1.title {
    font-size: 26px;       /* ← 同じセレクタで上書き */
    line-height: 1.3;
    margin: 40px 0;
  }
}
.halhomegadekirukoto{
    background-image: url("img/AdobeStock_284044711.jpeg"); /* 画像のパス */
    background-size: cover;                         /* セクション全体に画像をフィットさせる */
    background-position: center;                    /* 中央に配置 */
    background-repeat: no-repeat;                   /* 繰り返しを防ぐ */  
    padding-top: 100px;
    padding-bottom: 120px;
}

.dekirukotoshita{
  width: fit-content;           /* 中身の幅に合わせて中央寄せ */
  margin: 0px auto;            /* 上下50px、左右は自動で中央配置 */
  height: auto;                 /* 高さは自動で調整 */
  font-size: 20px;
  color: black;
  text-align: left;
  line-height: 2;
}
@media (max-width: 768px) {
  .halhomegadekirukoto{
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .dekirukotoshita{
    width: 80%;           /* 画面の80%に収める */
    font-size: 3vw;       /* 可変文字サイズ */
    margin: 0px auto;
    text-align: center;
  }
}
.image-row {
  display: flex;              /* 横並びにする */
  justify-content: center;    /* 中央揃え */
  gap: 20px;                  /* 画像の間隔 */
  margin: 40px 20px;             /* 上下に余白 */
}

.image-row img {
  width: 300px;               /* 画像サイズ（必要に応じて調整） */
  height: auto;
  border-radius: 8px;         /* 角を丸くする（任意） */
  transition: transform 0.3s; /* アニメーション（任意） */
}

.image-row a:hover img {
  transform: scale(1.05);     /* ホバーで拡大（任意） */
}

.kaishaannai {
  width: 1000px;    /* 親要素の幅に対して50% */
  height: auto;  /* アスペクト比を保つ */
  margin: 100px auto 0;
}
.shigyou{
  width: 1000px;
  height: auto;
  margin-top: 100px;
  margin: 100px auto 200px;
}
@media (max-width: 768px) {
  .kaishaannai,
  .shigyou {
    width: 90%;          /* 画面の90%までに縮小 */
    margin: 60px auto;   /* 余白も少し減らす */
  }
}
.access {
  background-image: url("img/AdobeStock_302132528.jpeg"); /* 画像のパス */
  background-size: cover;                         /* セクション全体に画像をフィットさせる */
  background-position: center;                    /* 中央に配置 */
  background-repeat: no-repeat;
  padding: 50px 0;
  overflow: hidden;
}
.access2 {
  text-align: center;
  color: white;
  font-size: 30px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.map-container {
  position: relative;
  width: 100%;
  max-width: 1000px;   /* two-column と揃える */
  margin: 0 auto;      /* 中央寄せ */
  padding: 0 20px;     /* 左右に20pxの余白 */
  box-sizing: border-box;
}

.map-container iframe {
  width: 100%;         /* コンテナ幅いっぱいに */
  height: 450px;
  border: 0;
  display: block;
}

/* two-column のレイアウト */
.two-column {
  display: flex;
  justify-content: space-between;
  gap: 20px;                      /* 左右に20pxの隙間 */
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;                /*左右20px余白 */
  box-sizing: border-box;
}

.left-text2,
.right-text {
  flex: 1;
}

.right-text img {
  width: 100%;
  height: auto;
  display: block;
}


@media screen and (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }

  .left-image, .right-text {
    width: 100%;
  }
}
.line {
  height: 1px;
  background-color: white;
  width: 100%;
  margin: 20px 0;
}
.adress{
  color: white;
  font-size: 20px;
}
.yoko{
  height: 414.688px;
}


/*コンテンツ横幅*/
.site-width{
  width: 980px;
  margin: 0 auto;
}


.footer_section {
  font-size: 16px;
  padding: 100px 0px;
  background: darkorange;
  text-align: center;
  color: white;

  width: 100%;
  margin: 0;             /* 余計な中央寄せは削除 */
  box-sizing: border-box;
}

.footer_inner {
  max-width: 1000px;     /* 中の要素は1000pxに制限 */
  margin: 0 auto;
  text-align: center;
}
.two-column2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.text3 {
  color: white;
  font-size: 3em;
  line-height: 1.4;
  text-align: left;
}

.mail {
  cursor: pointer;
}
.link-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}

.link-grid ul {
  display: grid;
  grid-template-columns: repeat(2, auto); /* 2列で自動幅 */
  gap: 15px 200px; /* 行間15px、列間40px */
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.link-grid li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s, text-decoration 0.3s;
}

.link-grid li a:hover {
  color:lightgray;
}



.hover-area {
  display: inline-block;
  padding: 10px 15px;
  background-color: #0073aa;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.hover-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #f9f9f9;
  color: #333;
  border-radius: 8px;
  padding: 15px;
  width: 400px;
  z-index: 10;
  line-height: 1.6;
}

.hover-area:hover .hover-content {
  display: block;
}
@media (max-width: 768px) {
  .two-column2 {
    flex-direction: column;   /* 縦並び */
    align-items: center;
    text-align: center;
  }
  .text3 {
    font-size: 25px;
    text-align: center;
  }
  img.mail {
    width: 80%;
    display: block;
    margin: 0 auto 50px;
  }
  .link-grid ul {
    grid-template-columns: 1fr;  /* 1列に変更 */
    text-align: center;
    gap: 10px;
    margin-top: 40px;
  }
}

.line-container {
  display: flex;
  width: 1000px;
  height: 2px;
  margin: 0 auto;
}

.line {
  height: 1px;
}

.first {
  width: 80px;
  background-color: darkorange;
}

.gap {
  width: 10px;
  background-color: transparent;
}

.second {
  width: 910px;
  background-color: gray;
}
h2.title2 {
  font-size: 50px;
  font-weight: bold;
  background-color: antiquewhite;
  width: 100vw;     /* ブラウザ幅いっぱい */
  height: 300px;
  margin: 20px 0;
  text-align: center;
  line-height: 300px;
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* 中央寄せ */
}


h3.title3{
  font-size: 39px;
  font-weight: bold;
  margin-top: 100px;
  margin-bottom: 100px;
}
.daiya{
  color: darkorange;
  font-size: 31px;
}
h4.title4{
  font-size: 31px;
}
.naiyo{
  font-size: 16px;
  line-height: 40px;
}
.page{
  color: gray;
  font-size: 16px;
  text-align: right;
  margin-right: 50px;
}
.fudosanbaikyaku{
  width: 1000px;
  margin: 0 auto;
  text-align: left; 
}
.greeting {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 16px;
}

.greeting-img {
  float: right;          /* 右に寄せる */
  width: 300px;          /* 好きなサイズに調整 */
  margin: 150px 0 20px 20px; /* 左と下に余白 */
}
.ayumi {
    width: 1000px;
    margin: 0 auto;   /* ← 左右中央寄せ */
    text-align: left;
  }
/* 📱スマホ・小タブレット対応 */
@media (max-width: 768px) {

  /* 横線（2色ライン） */
  .line-container {
    width: 90%;          /* 幅を画面の90%に縮小 */
  }

  .first {
    width: 10%;           /* 左のオレンジラインも短く調整 */
  }

  .gap {
    width: 2%;
  }

  .second {
    width: 88%;           /* グレー部分を調整して全体を収める */
  }

  /* 見出し */
  h2.title2 {
    font-size: 28px;      /* タイトルを小さく */
    height: auto;         /* 固定高さを解除 */
    line-height: normal;  /* 通常の行間に */
    padding: 60px 10px;   /* 内側に余白を付けてバランス調整 */
  }

  h3.title3 {
    font-size: 24px;
    margin-top: 60px;
    margin-bottom: 40px;
  }

  h4.title4 {
    font-size: 20px;
  }

  .daiya {
    font-size: 20px;
  }

  /* 段落・本文 */
  .naiyo {
    font-size: 15px;
    line-height: 1.8;
    padding: 0 10px;     /* 余白を確保して読みやすく */
  }

  /* ページ右下の小文字 */
  .page {
    font-size: 14px;
    margin-right: 20px;
  }

  /* 各セクション共通の幅調整 */
  .fudosanbaikyaku,
  .greeting,
  .ayumi {
    width: 90%;           /* 画面幅の90%で中央寄せ */
    margin: 0 auto 60px;
  }

  /* 挨拶文の画像配置 */
  .greeting-img {
    float: none;           /* 回り込み解除 */
    display: block;        /* ブロック化 */
    width: 80%;            /* スマホでは大きめに中央配置 */
    margin: 30px auto;     /* 上下に余白＋中央寄せ */
  }
}

/* PC用：デフォルトは横並び */
#nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hamburger {
  display: none; /* PCでは非表示 */
  font-size: 30px;
  cursor: pointer;
}

/* スマホ用 */
@media (max-width: 768px) {
  #nav-menu {
    display: none; /* 最初は非表示 */
    flex-direction: column; /* 縦並び */
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    border: 1px solid #ccc;
  }
  #nav-menu.active {
    display: flex; /* ハンバーガークリックで出現 */
  }
  .hamburger {
    display: block; /* スマホでは表示 */
  }
}
@media (max-width: 768px) {
  .table {
    display: none;
  }
}
@media (min-width: 769px) {
  .task-card {
    display: none;
  }
}