/* =======================================
   1. 基本設定・リセット & グローバルスタイル
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #000;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =======================================
   2. ヘッダー・ナビゲーション
========================================== */
.header {
  background-color: #fd9733 !important;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 1rem 0;
  /* 後半のheader-inner等で内包レイアウトを統一 */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-left: 1.5rem;
  flex-shrink: 0;
  max-width: fit-content;
}
.logo-img {
  height: 50px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  letter-spacing: 0.05em;
  white-space: nowrap;
  /* 以前は二か所に分かれていたので統合 */
  align-items: left;
}

.nav .hamburger {
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

.nav .menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  position: static;
  flex-direction: row;
  background: transparent;
  padding: 0;
}
.nav .menu li a {
  color: white;
  text-decoration: none;
}
.menu-toggle {
  display: none;
}

/* =======================================
   3. メインコンテンツ／画像・テキストセクション
========================================== */
.main-content {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  align-items: stretch;
  margin-bottom: 0;
}

/* 画像・テキストの基本設定（重複ルールの統合） */
.image-section,
.text-section {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  flex: unset;
}

/* .image-section ：後半で上書きした最新ルールも保持 */
/* ※ width と min-height は !important 指定 */
.image-section {
  width: 38.2% !important;
  background: #ccc;
  background-color: #ccc;
  z-index: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  height: auto;
  min-height: auto !important;
  align-self: stretch;
}

/* .text-section ：幅指定も !important */
.text-section {
  width: 61.8% !important;
  font-size: 1.1rem;
  line-height: 2;
  padding-top: 2rem; /* ← 好みで1rem〜2remに調整可 */
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 0;
}

/* =======================================
   4. 事業内容ページ用（目次・サービスブロック）
========================================== */
/* 目次（services.html 内の目次部分） */
.services-menu {
  padding: 0;
  background-color: #f5f5f5;
  text-align: center;
}
.services-menu h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.services-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.services-menu li {
  margin: 0;
}
.services-menu a {
  text-decoration: none;
  color: #FF5000;
  font-weight: bold;
}
.services-menu a:hover {
  text-decoration: underline;
}

/* サービスブロック（各事業セクション） */
.service-block {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.service-block .service-text {
  width: 61.8%;
  padding: 2rem;
  box-sizing: border-box;
  font-size: 1.1rem;
  line-height: 1.9;
}
.service-block:last-of-type {
  margin-bottom: -1rem;
}

/* =======================================
   5. お問い合わせページ用
========================================== */
.contact-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.contact-section h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
form label {
  font-weight: bold;
  font-size: 1rem;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}
form textarea {
  resize: vertical;
}
form button {
  background-color: #fd9733;
  color: white;
  font-size: 1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
form button:hover {
  background-color: #e64700;
}

/* =======================================
   6. Thanksページ用
========================================== */
.thanks-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 2rem;
}
.thanks-section h1 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 1rem;
}
.thanks-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #fd9733;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
}

/* =======================================
   7. フッター
========================================== */
.footer {
  background-color: #333333;
  color: white;
  padding: 1rem 1rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-column {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}
.footer-column h3 {
  color: white;
  margin-bottom: 1rem;
}
.footer-column table {
  width: 100%;
  color: white;
  font-size: 0.9rem;
}
.footer-column th {
  text-align: left;
  padding-right: 1rem;
  vertical-align: top;
  color: #00E4E9;
}
.footer-column td {
  color: white;
}

.footer-logo {
  text-align: center;
  font-size: 10rem;
  letter-spacing: 2rem;
  font-weight: bold;
  line-height: 1;
  height: 10.5rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  text-transform: none;
  mix-blend-mode: difference;
}
.footer-logo span {
  display: inline-block;
  transform: translateY(0%);
  color: white;
  font-weight: bold;
  letter-spacing: 0.2rem;
}
.footer-logo .footer-e {
  color: #00E4E9;
  font-size: 13rem;
  transform: translateY(0%);
  text-transform: none !important;
}

/* =======================================
   8. 円メニュー・その他グローバル要素
========================================== */
.circle-menu {
  position: relative;
  width: 100%;
  height: 500px;
  background: #f9f9f9;
  overflow: hidden;
  z-index: 1;
  margin: 0;
  padding: 0;
}
.circle-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/okayama_city.jpg') center/cover no-repeat;
  filter: blur(6px);
  z-index: 0;
}

.circle-logo {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-family: "Hiragino Mincho ProN", serif;
  font-weight: bold;
  color: #333;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.circle-logo:focus,
.circle-logo:active {
  outline: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.circle-logo .logo-e {
  color: #00E4E9;
  font-size: 4.2rem;
  margin: 0 0.1rem;
}
.circle-logo .logo-A,
.circle-logo .logo-CAN {
  color: #222;
}
.circle-logo:hover {
  background-color: #e0faff;
  box-shadow: 0 0 10px rgba(0, 228, 233, 0.4);
}
.circle-logo:focus {
  outline: none;
}

.circle-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.circle-item {
  position: absolute;
  width: 160px;
  height: 90px;
  border: 2px solid #fd9733;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.circle-item:hover {
  background-color: #fd9733;
  color: white;
}
.item1 {
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
}
.item2 {
  top: 35%;
  left: 20%;
}
.item3 {
  top: 75%;
  left: 30%;
}
.item4 {
  top: 75%;
  left: 70%;
}
.item5 {
  top: 35%;
  left: 75%;
}

.logo-a {
  display: block;
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom right;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.svg-above-footer {
  text-align: center;
  margin-bottom: 20px;
}

/* 改行用（PCでは非表示、モバイルで有効） */
.sp-br {
  display: none;
}

.company-name {
  padding-top: 1rem;
  padding-bottom: 1rem;
  line-height: 1.2;
}
.company-name .second-line {
  display: inline;
}

/* =======================================
   9. モバイル対応（@media クエリ）
========================================== */
@media (max-width: 768px) {
  /* ヘッダー・ナビゲーション */
  .header {
    z-index: 1100;
    position: relative;
  }
  .nav .hamburger {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    position: relative;
  }
  .nav .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50%;
    /* 透明度や背景の上書き：最新ルールとして後半を採用 */
    background-color: rgba(253, 151, 51, 0.92);
    display: none;
    flex-direction: column;
    padding: 5rem 1rem 1rem;
    z-index: 1000;
    backdrop-filter: blur(2px);
  }
  /* .menu-toggle は重複指定を避け1回のみ */
  .menu-toggle {
    display: none;
  }
  .menu-toggle:checked + .hamburger + .menu {
    display: flex;
  }
  .menu-toggle:checked ~ .menu-overlay {
    display: block;
  }
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* メインコンテンツ・画像・テキストの調整 */
  .main-content {
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
  }
  .image-section {
    width: 38.2% !important;
    background-color: #ccc;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
  }
  .text-section {
    width: 61.8% !important;
  }

  /* フッター調整 */
  .footer-container {
    flex-direction: column;
  }
  .footer-logo {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    font-size: 4.5rem;
    height: 5.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
    position: relative;
  }
  .footer-logo span {
    flex: 1;
    text-align: center;
    color: white;
    font-weight: bold;
    transform: translateY(18%);
  }
  .footer-logo .footer-e {
    color: #00E4E9;
    font-size: 5.5rem;
    transform: translateY(18%);
  }

  /* サービスブロックのモバイル用調整 */
  .service-block {
    flex-direction: column !important;
    margin: 2rem 0;
  }
  .service-block.reverse {
    flex-direction: column !important;
  }
  .service-block .service-text,
  .services-image,
  .service-text {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
  }
  .service-block .service-image {
    width: 50%;
    padding: 1rem;
  }
  .services-image img {
    height: auto;
    border-radius: 4px;
  }

  /* 円メニューのモバイル対応 */
  .circle-logo {
    display: none;
  }
  .circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }
  .circle-menu {
    padding-top: 2.5rem;
    background: transparent;
  }
  .circle-item {
    position: static;
    width: 90%;
    max-width: 280px;
    height: 60px;
    font-size: 1rem;
    border-radius: 999px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .circle-menu::before {
    filter: blur(5px) brightness(0.9);
  }
  .item1 {
    transform: none !important;
  }
  .logo-a {
    height: 40vh;
  }
  .nowrap {
    white-space: nowrap;
  }
  .company-name {
    word-break: keep-all;
    white-space: normal;
  }
  .sp-br {
    display: inline;
  }
  .company-name .second-line {
    display: block;
    text-align: right;
    padding-right: 1rem;
    margin-top: 2px;
  }
  .thanks-title {
    font-size: 1.8rem !important;
  }
}

.company-profile {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.company-profile h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.company-profile .as-of-date {
  text-align: right;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th{
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  font-size: 1rem;
  background-color: #f5faff;
}

.profile-table td {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  font-size: 1rem;
  background-color: #fff;
}

.profile-table th {
  width: 30%;
  background-color: #e9f3fb;
  font-weight: bold;
  color: #333;
}

.profile-table td {
  width: 70%;
}

.rep-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  align-items: flex-start;
}

.rep-photo {
  flex: 0 0 40%;
  min-width: 280px;
  max-width: 400px;
}

.rep-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.rep-text {
  flex: 1;
  min-width: 300px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.9;
  font-size: 1.05rem;
}

.services-intro {
  padding: 3rem 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 8px;
}
.services-intro h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #fd9733;
  display: inline-block;
  padding-bottom: 0.3rem;
}
.services-intro p {
  font-size: 1.1rem;
  line-height: 2;
  color: #333;
  text-align: left;
}

.service-points {
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  line-height: 1.8;
}
.service-points li {
  margin-bottom: 0.5rem;
  list-style: disc;
}
.service-points strong {
  font-weight: bold;
  display: inline-block;
  font-size: 1.2rem; /* ← 通常本文が1remなら +0.2程度で自然 */
  margin-bottom: 0.3rem;
  color: #333;
}

.left-divider {
  font-weight: bold;
  font-size: 1.1rem;
  border-left: 4px solid #fd9733;
  padding-left: 0.75rem;
  margin: 2.5rem 0 1rem;
  color: #333;
}

.inquiry-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.inquiry-button {
  display: inline-block;
  background-color: #fd9733;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  width: auto;
  min-width: unset;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.inquiry-button:hover {
  background-color: #e56700;
}

.service-block.reverse{  
  flex-direction: row-reverse;
}

.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
.related-links li {
  margin-bottom: 0.5rem;
}
.related-links a {
  color: #00E4E9;
  text-decoration: underline;
}
.related-links a:hover {
  color: #fd9733;
}
