/* リセット */
/* 1. 余計なマージン・パディングのリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. デフォルトフォントサイズの統一（日本語フォント対応） */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #ffff;
}

/* 3. リンクの装飾リセット */
a {
  text-decoration: none;
  color: inherit;
}

/* 4. リストのマーカー（点・数字）を消す */
ul, ol {
  list-style: none;
}

/* 5. 画像の余白対策（imgの下に隙間ができるのを防止） */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6. ボタンなどフォーム要素の表示統一 */
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* 7. テーブルの枠表示をリセット（必要な場合だけ適用） */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1 {
  font-size: 2rem;
  border-bottom: 3px solid #ffaf58;   
  padding-bottom: 6px;
  margin-bottom: 32px;
}

h2 {
  font-size: 1.5rem;
  padding: 0.5em;/*文字周りの余白*/
  color: #333;/*文字色*/
  background: #ffffcc;/*背景色*/
  border-left: solid 5px #ffaf58;/*左線（実線 太さ 色）*/
}


/* ヘッダー */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  
}

.site-header {
  background: #fafafa;
  border-bottom: 3px solid #ccc;
  color: #333;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", sans-serif;
}

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

.header-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-info {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  justify-content: center;
}

.header-icon {
  display: flex;
  align-items: center; 
  gap: 8px;
  padding-bottom: 5px;
}

.header-icon img {
  width: 24px; 
  height: 24px;
  object-fit: contain;
}

.header-tel,
.header-mail {
  margin: 0;
  font-size: 1.3rem; 
  font-weight: 500;
  line-height: 1.4;
}

.navigation {
  position: relative;
}

.navigation .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #eee;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.navigation ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  align-items: center;
}

.navigation a {
  color: #333;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.navigation a:hover {
  background-color: #eee;
  text-decoration: none;
  color: #111;
}

.navigation li.has-dropdown {
  position: relative;
}

.dropdown {
  background-color: #fafafa;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 5px 0;
}

.dropdown li a {
  display: block;
  font-size: 1rem;
}

.navigation .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fafafa;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 100;
  flex-direction: column;
}

.navigation .dropdown li {
  width: 100%;
}

/* 子メニューリンクのデザイン */
.navigation .dropdown a {
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 0;
}

/* hoverで表示 */
.navigation li.has-dropdown:hover .dropdown {
  display: flex;
}

/* デスクトップ時のハンバーガーボタン非表示 */
.menu-toggle {
  display: none;
}

.pc-only { display: block; }

.sp-only { display: none; }

@media screen and (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }

  .navigation {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navigation.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background-color: #fafafa;
    color: #333333;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
  }

  .site-header {
    position: relative;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .navigation a {
    padding: 15px;
  }

  .menu-toggle {
    display: block;
  }

    .navigation li.has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    background-color: #333333;
  }

  .navigation li.has-dropdown .dropdown a {
    border-top: 1px solid #eee;
    background-color: #333333;
    color: #333;
  }

  .navigation li.has-dropdown:hover .dropdown {
    display: none; 
  }

  .navigation li.has-dropdown.active .dropdown {
    display: flex; 
  }

  .container {
    flex-direction: column;
  }

  .logo-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 10px;
  }

  .contact-info {
    font-size: 0.9rem;
  }
}

/* メインビジュアル */

.site-main {
  width: 100%;
  margin: 0 auto;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-visual {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 20px 0px;
}

.slider {
  position: relative;
  width: 80%;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  animation: fade 1s ease-in-out;
}

.slide.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

.main-slogan {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  font-family: "Yu Gothic", "游ゴシック", YuGothic, sans-serif;
  margin-bottom: 100px;
}

.company-info {
  position: relative;
  margin: 0 auto 40px;
  text-align: center;
  background-image: url('../img/company_info_bgimg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  width: 100%;
  z-index: 0;
  overflow: hidden;
}

.company-info-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.company-info::before {
  content: "";
  inset: 0;
  background-color: rgba(255, 255, 255, 0.5); 
  z-index: -1; 
}

.company-info-item {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.service-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.company-card {
  position: relative;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.company-card p,
.service-card p {
  font-size: 1.5rem;
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-weight: 500;
  margin: 0;
  padding: 15px 10px;
}

.company-card img {
  width: 100%;
  height: 230px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.company-card:hover {
  transform: translateY(-5px); /* ホバーで少し浮く */
}

.service-card {
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.service-card img {
  width: 100%;
  height: 250px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.company-card p,
.service-card p {
  font-size: 1.3rem;
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
  font-weight: 500;
  margin: 0;
  padding: 15px 10px;
}

.service-card:hover {
  transform: translateY(-5px);
}

  .service-title {
  margin-top: 40px;
  font-size: 1.5rem;
  color: #333;
}

.service-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .navigation ul {
    justify-content: flex-end;
  }
}

@media screen and (max-width: 768px) {
  .main-visual img {
    width: 100%;
    height: auto;
  }

  .main-visual-text {
    font-size: 17.5px;
    text-align: center;
    text-shadow: 0 0 2px black;
  }

  .main-slogan {
    font-size: 20px;
  }

  .company-info-row {
    gap: 10px;
  }

  .company-card {
    flex: 1 1 45%;
    width: 50px;
    height: auto;
  }
  
  .company-card img {
    width: 100%;
    display: block;
  }

  .company-card p {
    font-size: 0.8rem; /* 文字も小さく */
  }
}

  /* フッター */
/* ------------------------------
   PC・共通スタイル
------------------------------ */

.site-footer {
  margin-top: 50px;
  background: #fafafa;
  border-top: 3px solid #ccc;
  color: #333333;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 300px;
  height: auto;
}

.footer-info {
  flex-wrap: wrap;
}

/* ------------------------------
   スマホ（768px以下）専用スタイル
------------------------------ */
@media screen and (max-width: 768px) {


  .site-footer {
    padding: 30px 15px;
  }

  .footer-logo {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ここからcompany_info */

.company-info_main {
  color: #333;
  font-family: serif;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 20px;
  padding: 20px;
}

.greeting-header p {
  color: #333;
  line-height: 1.8;
}

.greeting-header h2 {
  color: white;
  padding: 6px 16px;
  font-size: 30px;
  margin-bottom: 20px;
  display: inline-block;
}

.profile-photo {
  width: auto;
  height: 400px;
  border-radius: 4px;
  flex-shrink: 0;
}

.greeting p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.philosophy {
  align-items: center;
  justify-content: center;
  margin: 40px 0px;
}

.company-info-header {
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;

}

.philosophy-header {
  background-color: #ffffcc;
  display: inline-block;
  color: white;
  padding: 6px 20px;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
}

.philosophy-header-msg p {
  font-size: 16px;
  line-height: 1.8;
  margin: 40px 0px;
  color: #333;
}

.profile-table,
.history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 40px 0px;
}

.profile-table td,
.history-table td {
  border: 1px solid #ccc;
  padding: 10px;
  height: 40px;
}

.profile-table td:first-child,
.history-table td:first-child {
  background-color: #ffffcc;
  color: #333333;
  white-space: nowrap;
  text-align: center;
  border: 1px solid #ccc;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  box-sizing: border-box;
}

.company-profile {
  margin-bottom: 60px;
}

.map-embed {
  margin: 40px 0px;
  display: flex;
  justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .greeting {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin-top: 20px;
  }

  .greeting-header h2 {
    font-size: 24px;
  }

  .philosophy {
    flex-direction: column;
    padding: 0 10px;
  }

  .philosophy-header {
    font-size: 18px;
    padding: 6px 12px;
  }

  .philosophy-header-msg p {
    font-size: 14px;
    margin: 15px 0 0;
    text-align: center;
  }

  .history-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .history-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 20px;
  }

  .history-top p {
    font-size: 14px;
  }

  .company-info_main {
    padding: 20px 15px;
  }
}

/* ＝ サービスページ専用 ＝＝＝＝＝＝＝＝＝＝ */

.intro-flex,
.block-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.trouble-list {
  margin-top: 16px;
  margin-bottom: 24px;
  padding-left: 1.2em;
  list-style: disc;
}

.guide-link {
  display: inline-block;
  padding: 12px 20px;
  background: #ffaf58;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.3s;
}
.guide-link:hover {
  background: #ff8400;
}

.block-subtitle {
  font-size: 1.4rem;
  font-weight: bold;
  padding-left: 0.5em;
  margin-top: 2em;
  margin-bottom: 1em;
}


/* ─ 画像サイズ調整 ─ */
.intro-img img,
.block-img img {
  width: 350px;
  max-width: 100%;
  height: auto;
  display: flex;
  align-content: center;
  justify-content: center;
  border-radius: 4px;
  object-fit: cover;
}

.main-image {
  width: 60%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.section-lead {
  margin-top: 10px;
  text-align: center;
}

/* ─ テキスト側 ─ */
.intro-text,
.block-text {
  flex: 1 1 0;
  font-size: 1rem;
  line-height: 1.8;
}


/* ─ セクション間余白 ─ */
.service-intro,
.service-block {
  margin-top: 60px;
}

/* ─ レスポンシブ対応 ─ */
@media (max-width: 768px) {
  .intro-flex,
  .block-flex {
    flex-direction: column;
  }
  .intro-img img,
  .block-img img {
    width: 100%;
  }
  .service-page h1 {
    font-size: 1.6rem;
  }
  .service-page h2 {
    font-size: 1.3rem;
  }
}

