@import url("./all.min.css");

/* ===========================
   Variables and Reset
   =========================== */
:root {
  --primary-color: #0087f5;
  --primary-light: #33a3f7;
  --primary-lighter: #50b3fe;
  --primary-dark: #0066bb;
  --primary-darker: #004d8a;
  --text-color: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-light-blue: #d9eeff;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --overlay-color: rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* bodyで16pxを基準に設定 */
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===========================
   Container
   =========================== */
.c-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===========================
   Header
   =========================== */
.header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: bold;
  font-size: 1.125rem;
  color: var(--text-color);
  transition: var(--transition);
}

.logo a:hover {
  color: var(--primary-color);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.logo-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.25rem;
  height: 1.25rem;
  border: 0.1875rem solid white;
  border-radius: 50%;
  border-top-color: transparent;
}

.logo img {
  width: 300px;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.875rem; 
}

.nav-link {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-color);
  padding: 0.3125rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* モバイル専用要素を隠す（デスクトップ時） */
.mobile-only {
  display: none;
}

.nav-divider {
  height: 1.25rem;
  border: none;
}

/* ヘッダー右側のスタイルをデザイン画像に合わせて修正 */
/* Header Actions */
.header-actions {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 5rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1.25rem;
  background: var(--primary-dark);
  color: var(--text-white);
  transition: var(--transition);
}

.header-phone:hover {
  background: var(--primary-darker);
}

.phone-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
}

.phone-number {
  font-size: 1.25em;
  font-weight: bold;
  color: var(--text-white);
}

.phone-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.9);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 0 1.5625rem;
  background: var(--primary-color);
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
  border-left: 0.0625rem solid rgba(255, 255, 255, 0.2);
  width: 100px;  
}

.header-contact:hover {
  background: var(--primary-dark);
}

.header-contact i {
  font-size: 1.25rem;
}

.contact-text {
  font-size: 0.75rem;
}

.header-search-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 0 1.5625rem;
  background: var(--primary-light);
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
  border-left: 0.0625rem solid rgba(255, 255, 255, 0.2); 
  width: 100px;
}

.header-search-btn:hover {
  background: var(--primary-color);
}

.header-search-btn i {
  font-size: 1.25rem;
}

.search-text {
  font-size: 0.875rem;
}

/* Mobile Actions - 999px以下で表示されるモバイル用アクションボタン */
.mobile-actions {
  display: none;
  align-items: center;
  gap: 0.3125rem; 
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem;
  height: 3.125rem;
  background: var(--primary-color);
  color: var(--text-white);
  border-radius: 0.1875rem; 
  transition: var(--transition);
  font-size: 1.25rem; 
}

.mobile-action-btn:hover {
  background: var(--primary-dark);
}

/* ハンバーガーメニューだけ色を濃くする */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  width: 3.125rem;
  height: 3.125rem;
  justify-content: center;
  align-items: center;
  padding: 0;
  z-index: 1001;
  background: var(--primary-darker);
  border-radius: 0.1875rem;
  transition: var(--transition);
}

.hamburger:hover {
  background: #003366;
}

.hamburger span {
  width: 1.5rem;
  height: 0.1875rem;
  background: var(--text-white);
  border-radius: 0.125rem;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg); 
}

/* Search Box (Expandable) */
.search-box {
  max-height: 0;
  overflow: hidden;
  background: var(--bg-light);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.search-box.active {
  max-height: 6.25rem;
  padding: 1.25rem 0;
  border-top: 0.0625rem solid var(--border-color); 
}

.search-box-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 0.0625rem solid var(--border-color);
  border-radius: 0.3125rem;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.1875rem rgba(0, 135, 245, 0.1);
}

.search-submit {
  padding: 0.75rem 1.25rem;
  background: var(--primary-color);
  color: var(--text-white);
  border-radius: 0.3125rem;
  font-size: 1.125rem;
  transition: var(--transition);
}

.search-submit:hover {
  background: var(--primary-dark);
}

.search-close {
  padding: 0.625rem;
  font-size: 1.25rem;
  color: var(--text-light);
  transition: var(--transition);
}

.search-close:hover {
  color: var(--text-color);
  transform: rotate(90deg);
}

/* モバイルメニューの背景を青、文字を白に変更 */
/* Mobile Navigation */
.nav-search-container {
  padding: 0.9375rem 0.625rem;
  border-bottom: none;
}

.mobile-search-wrapper {
  display: flex;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.3125rem;
  padding: 0.3125rem;
}

.mobile-search-input {
  flex: 1;
  padding: 0.625rem 0.9375rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.3);
  border-radius: 0.3125rem;
  font-size: 0.9375rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
}

.mobile-search-input:focus {
  outline: none;
  border-color: var(--text-white);
  box-shadow: 0 0 0 0.1875rem rgba(255, 255, 255, 0.2);
  background: var(--bg-white);
}

.mobile-search-submit {
  padding: 0.625rem 1.25rem;
  background: var(--text-white);
  color: var(--primary-color);
  border-radius: 0.3125rem;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.mobile-search-submit:hover {
  background: var(--primary-dark);
  color: var(--text-white);
}

/* ===========================
   Hero Slider
   =========================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 37.5rem;
  overflow: hidden;
  margin: 0 auto 0;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}*/

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-white);
  z-index: 10;
  width: 90%;
  max-width: 800px;
  background: var(--primary-dark);
  padding: 1rem;
  /*opacity: 0.9;*/
}

.slide-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.9375rem;
  /*text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5); */
}

.slide-subtitle {
  font-size: 1.375rem;
  font-weight: 500;
  /*text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);*/
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.125rem;
  height: 3.125rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  border-radius: 50%;
  font-size: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: var(--transition);
}

.slider-nav:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.slider-prev {
  left: 2.25rem;
}

.slider-next {
  right: 2.25rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.875rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.625rem;
  z-index: 20;
}

.slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--text-white);
  transform: scale(1.2);
}

/* ===========================
   Section Common
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 3.125rem;
}

.section-title {
  font-size: 3.25rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 0.625rem;
  letter-spacing: 0.125rem; 
}

.section-title.light {
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--primary-color);
  font-weight: 600;
}

.section-subtitle.light {
  color: var(--text-white);
  opacity: 0.9;
}

/* ===========================
   all Section
   =========================== */
.heros {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.heros-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heros-content {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  text-align: left;
}

.heros-sub-content {
  padding: 2rem 0 2rem;
  line-height: 2;
}

.heros-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 2.0;
  /*text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);*/
  text-align: center;
}
.heros-sub-title {
  font-size: 1.25em;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.0;
  /*text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);*/
  text-align: center;
}
.heros-sub {
  height: 190px;
}
.heros-image-sub {
  width: 100%;
  height: 210px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  }
.heros-image-sub.sub01 {
  background-image: url("../images/sub01.jpg");
}
.heros-image-sub.sub02 {
  background-image: url("../images/sub02.jpg");
}
.heros-image-sub.sub03 {
  background-image: url("../images/sub03.jpg");
}
.heros-image-sub.sub04 {
  background-image: url("../images/sub04.jpg");
}
.heros-image-sub.sub05 {
  background-image: url("../images/sub05.jpg");
}

.contents-section {
  padding: 20px 20px;
  background-color: var(--bg-white);
}

.contents-section_bg {
  padding: 20px 20px;
  background-color: var(--bg-gray);
}
.section-title2 {
  font-size: 2.0rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 0.8rem;
}
h2 {
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 1em;
  color: var(--primary-blue);
  text-align: center;
}
h3 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-white);
  margin: 1.25em 0 1.25em;
  display: block;
  padding:0.5em 0.75em;
  background: var(--primary-color);
  border-radius: 0.5em;
}
h4 {
  display: block;
  font-size: 1.375em;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: solid  3px var(--primary-dark);
  /*background-image: linear-gradient(var(--bg-white) 90%, var(--primary-color) 90%);*/
  margin: 1.0em 0 1.5em;
  padding-bottom: 0.5em;
}h5 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.0em 0 1.0em;
}
h6 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.0em 0 1.0em;
}

@media screen and (max-width: 768px) {
  .heros-title {
  font-size: 1.5rem;
  }
  .heros-sub-title {
  font-size: 0.9rem;
  }
  .heros-sub {
  height: 150px;
  }
  .heros-image-sub {
  height: 140px;
  }
  .section-title2 {
  font-size: 1.5rem;
  text-align: left;
  }
  h1 {
    font-size: 0.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.3rem;
  }
  h5 {
    font-size: 1.2rem;
  }
}

/* ===========================
   About Section
   =========================== */
.about-section {
  padding: 2.0rem 0 3.0rem; 
  background: var(--bg-light-blue);
}

.about-content {
  display: flex;
  gap: 3.125rem;
  align-items: center;
  justify-content:center;
  flex-direction:column;
}

.about-text {
  justify-content:center;
  width: 70%;
}

.about-text p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-weight: 700;
  color: var(--text-light);
}

.about-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.875rem;
  background: var(--primary-color);
  color: var(--text-white) !important;
  border-radius: 0.3125rem;
  font-weight: 500;
  transition: var(--transition);
}

.about-btn:hover {
  background: var(--primary-dark);
  transform: translateX(0.3125rem);
  text-decoration: none !important;
}

.about-image {
  flex: 1;
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1); /* 10px 30px -> rem */
}

.about-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ===========================
   Service Section
   =========================== */
.service-section {
  padding: 5rem 0;
  background: var(--bg-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.875rem;
}

.service-card {
  background: var(--bg-white);
  /*border-radius: 0.625rem;*/
  overflow: hidden;
  box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-0.225rem);
  box-shadow: 0 0.9375rem 1.875rem rgba(0, 0, 0, 0.2); 
}

.service-image {
  width: 100%;
  height: 13.5rem;
  overflow: hidden;
  position: relative;
}

.service-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 135, 245, 0);
  transition: var(--transition);
}

.service-card:hover .service-image::after {
  background: rgba(0, 135, 245, 0.2);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

h3.service-name {
  padding: 1.25rem !important;
  text-align: center;
  font-size: 1.25em !important;
  font-weight: bold !important;
  color: var(--text-color);
  transition: var(--transition);
  background: none;
  margin: 0 !important;
}

.service-card:hover .service-name {
  color: var(--primary-color);
}

/* ===========================
   About Section
   =========================== */
.aboutus-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.75rem;
  align-items: start;
}

.aboutus-left {
  padding: 1.25rem 0;
}
.aboutus-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; 
  margin-top: 2.0rem;
}

  /* ===========================
   Service Section
   =========================== */
.service-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.75rem;
  align-items: start;
  margin-bottom: 2rem;
}

.service-layout2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.75rem;
  align-items: start;
  margin-bottom: 2rem;
}
.service-left {
  padding: 1.25rem 0;
}
.service-right {
  display: flex;
  flex-direction: column;
}

.service-layout img,
.service-layout2 img {
  margin-top: 2.0rem;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
  padding: 5rem 0;
  /*background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);*/
  background: url("../images/footer_bg.jpg");
  background-size: cover;
  color: var(--text-white);
  margin-top: 2rem;
}

.contact-header {
  margin-bottom: 3.125rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.75rem;
  align-items: start;
}

.contact-left {
  padding: 1.25rem 0;
}

.contact-section-title {
  font-size: 3.25rem; 
  font-weight: bold;
  margin-bottom: 1.875rem; 
  letter-spacing: 0.1875rem;
  color: var(--text-white);
}

.contact-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1.875rem; 
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; 
  margin-top: 2.0rem;
}


.contact-actions {
  display: flex;
  gap: 1.875rem; 
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-action-item {
  display: inline-flex;
  align-items: center;
  gap: 0.9375rem; 
  padding: 0.9375rem 1.875rem;
  /*background: rgba(255, 255, 255, 0.15);*/
  background: var(--bg-white);
  /*border: 0.125rem solid rgba(255, 255, 255, 0.3); */
  /*border-radius: 0.5rem;*/
  color: var(--primary-dark);
  font-size: 0.9375rem; 
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(0.625rem);
  min-width: 280px;
}

.contact-action-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-0.125rem); 
}

.contact-action-item i {
  font-size: 2.0rem;
}
.contact-action-item span {
  font-size:1.5rem;
  font-weight: 700;
}
.contact-nav {
  padding-top: 1.25rem;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.2); 
}

.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.875rem;
}

.contact-links a {
  font-size: 0.875rem; 
  color: var(--text-white);
  transition: var(--transition);
  opacity: 0.85;
}

.contact-links a:hover {
  opacity: 1;
  color: var(--primary-light);
  text-decoration: underline;
}


/* ===========================
   Footer
   =========================== */

.footer {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 2.5rem 0 1.875rem;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.75rem;
  align-items: start;
}

.footer-info {
  padding: 0;
  background: transparent;
}

h3.footer-company {
  font-size: 1.1875em !important;
  font-weight: bold!important;
  margin: 0 0 1.25rem 0 !important;
  padding: 0 !important;
  color: var(--text-white);
  background-image: none!important;
}

.footer-address {
  font-size: 0.9375em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav-menu {
  padding-top: 1rem;
}

.footer-menu-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 2.5rem;
}

.footer-menu-links a {
  font-size: 1.0rem;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
}

.footer-menu-links a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-copyright {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding-top: 1.25rem;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.15);
}

/* 元のフッタースタイルを削除 */
.footer-top,
.footer-map,
.footer-bottom,
.footer-nav,
.footer-links {
  display: none;
}

/* ===========================
   Responsive Design
   =========================== */

/* 1192px以下でメニューの文字サイズとgapを小さくする */
@media (max-width: 1192px) {
  .nav-list {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9375rem;
  }
}

/* 1200px以下: 電話番号、お問い合わせ、検索をアイコンのみ表示 */
@media (max-width: 1199px) {
  /*.phone-info,
  .contact-text,
  .search-text {
    display: none;
  }*/

  .header-phone {
    padding: 0 1rem;
  }

  .header-contact,
  .header-search-btn {
    padding: 0 1.25rem;
  }
  .search-btn {
     display: none;
  }
}

/* 1099px以下: SERVICEを2カラムに変更 */
@media (max-width: 1099px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 999px以下: スマホレイアウト 999→1099*/
@media (max-width: 1099px) {
  /* ヘッダーコンテナの調整 */
  .header-container {
    height: 4rem;
    padding: 0 1rem;
  }

  .logo a {
    font-size: 1rem;
  }

  .logo-icon {
    width: 2rem;
    height: 2rem;
  }

  /* デスクトップナビとアクションを非表示 */
  .main-nav,
  .header-actions {
    display: none;
  }

  /* モバイルアクションを表示 */
  .mobile-actions {
    display: flex;
  }

  /* モバイルメニュー内のナビゲーションを表示 */
  .main-nav {
    display: block;
    position: fixed;
    top: 4rem;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .main-nav.active {
    max-height: 100vh;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-list li {
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
  }

  .nav-link::after {
    display: none;
  }

  /* モバイル専用要素を表示 */
  .mobile-only {
    display: block;
  }

  .nav-divider {
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.2);
    margin: 0.625rem 0;
  }

  /* Hero Slider */
  .hero-slider {
    width: 100%;
    padding: 0;
    height: 18.75rem;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .slide-subtitle {
    font-size: 0.9375rem;
  }

  .slider-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .slider-prev {
    left: 0.625rem;
  }

  .slider-next {
    right: 0.625rem;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .section-subtitle {
    font-size: 1.0rem;
  }

  /* aboutus Section */
  .aboutus-layout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .aboutus-layout img {
    width: 80%;
    margin: 0 auto 0;
}

  /* service Section */
  .service-layout,
  .service-layout2 {
    grid-template-columns: 1fr;
    gap: 0.5rem !important;

  }
  .service-layout2 .service-left {
    order: 2; 
  }
  .service-layout2 .service-right {
    order: 1; 
  }
  .service-layout img,
  .service-layout2 img {
    width: 60%;
    margin: 0 auto 0;
} 

  /* Contact Section */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-section-title {
    font-size: 1.5rem;
  }

  .contact-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-action-item {
    width: 100%;
    justify-content: center;
  }

  /* フッター */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 999px以下でフッターメニューとCONTACT内のナビを非表示 */
  .footer-nav-menu,
  .contact-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 240px;
  }
}

/*@media (max-width: 768px) {*/
@media (max-width: 428px) {
  .contents-section {
    padding: 20px 0;
  }
  .contents-section_bg {
    padding: 20px 0;
  }
  .about-text {
    width: 100%;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .contact-section {
      padding: 2rem 0;
    }
  .contact-right {
    margin-top: 0;
  }
  .contact-action-item {
    min-width: auto;
  }
  .footer-menu-links {
    flex-direction: column;
    gap: 0.625rem;
  }
}

/*pagetop*/
#pagetop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    aspect-ratio: 1/1;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: solid 1px #fff;
    cursor: pointer;
    color: var(--text-white);
    transition: .3s;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    font-size: 1.875em;
}

#pagetop.visible {
    opacity: 1;
    visibility: visible;
}

/*p {
  margin-bottom: 100px;
}*/