@charset "utf-8";

/* ====== Base Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background-color: #fff;
  color: #333;
}

/* ====== Responsive Display Classes ====== */
.pc-only { display: block; }
.sp-only { display: none; }

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

/* ====== Header Styles ====== */
header {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: fixed;
  width: 100%;
  height: 60px;
  z-index: 100;
}
header .logo {
  margin-left: 20px;
}

.logo {
  width: 120px;
}

.logo span.yellow { color: #fdd835; }
.logo span.blue { color: #29b6f6; }

/* Menu Toggle Button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  height: 40px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: '';
  position: absolute;
  width: 24px;
  height: 1px;
  background-color: #333;
  transition: all 0.3s ease;
}

.menu-toggle::before { top: 10px; }
.menu-toggle span { top: 18px; }
.menu-toggle::after { top: 26px; }

.menu {
  font-size: 11px;
  text-align: center;
  margin-left: 30%;
  border: solid 1px #333;
  padding: 0.2rem 0.3rem;
  border-radius: 5px;
  line-height: 1.3;
  width: 100%;
}

/* Navigation Menu */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
}

.nav-menu.open { display: block; }

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
}

img.x-logo {
  width: 50%;
  margin-left: 1rem;
}

/* ====== Footer ====== */
footer {
  background: #44260a;
  color: white;
  text-align: center;
  padding: 1rem 1rem 5rem;
  font-size: 0.8rem;
  line-height: 2.5;
}

.footer-logo {
  margin: 2rem auto;
}

.footer-logo img {
  width: 12rem;
  height: auto;
}

p.footer-txt {
  font-size: 1.1rem;
}

.foot-link {
  margin-top: 30px;
}

.inner {
  margin: auto;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1180px;
}

.link-list {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.link-list li {
  margin: 0 5px;
  margin-bottom: 1rem;
  width: 47%;
}

.link-list li img {
  display: block;
  width: 100%;
  transition: .3s;
  border-radius: 10px;
}

footer .copyright {
  font-size: 12px;
  text-align: center;
}

img.area-logo {
  width: 30%;
  margin-top: 0.5rem;
}

img.carbell-logo {
  width: 40%;
}


@media screen and (min-width:798px){
  /* 共通のスタイル変数 */
  :root {
    --primary-color: #002f6c;
    --accent-color: #00a7e9;
    --orange-color: #ff6600;
    --light-blue: #21bae4;
    --border-radius: 1rem;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* ヘッダー関連 */
  .site-header {
    background: #fff;
    padding: 0.5rem 2rem;
    border-bottom: 2px solid #ddd;
    display: block;
    height: auto;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .menu-info {
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: right;
    border: solid 1px #aaa;
    padding: 0.3rem;
    border-radius: 5px;
  }

  .header-sns img.x-logo {
    width: 30px;
    height: 30px;
  }

  .header-buttons {
    display: flex;
    gap: 0.5rem;
  }

  /* ナビゲーションメニュー */
  .nav-menu {
    display: block;
    padding: 0 10rem;
    background: var(--light-blue);
  }

  .nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--light-blue);
    justify-content: center;
  }

  .nav-menu li {
    padding: 0.7rem 1.5rem;
    border-left: solid 1px #fff;
    font-size: 0.8rem;
    border-bottom:none;
  }

  .nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: normal;
    padding: 0.5rem 0;
    transition: color 0.3s;
  }

  .nav-menu li:hover {
    color: #005fa3;
  }

  /* ボタンスタイル */
  .btn {
    display: inline-block;
    padding: 0.67em 3.2rem;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    white-space: nowrap;
  }

  .btn.estimate {
    background: linear-gradient(to right, #3fc5e8, #10aae0); 
    color: white;
    transition-property: opacity;
    transition-duration: 0.5s;
  }

  .btn.estimate:hover {
    opacity: 0.6; 
  }

  .btn.contact {
    background: linear-gradient(to right, #ff6600, #ff9966);
    color: white;
    transition-property: opacity;
    transition-duration: 0.5s;
  }

  .btn.contact:hover {
    opacity: 0.6; 
  }

  /* フッター */
  .footer-flex-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3rem 10rem;
  }

  .footer-logo {
    margin: 0;
  }

  .footer-logo img {
    width: 15rem;
    height: auto;
  }

  .footer-txt {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 150px;
  }

  .footer-link {
    font-size: 0.9rem;
    line-height: 2;
    margin: 0;
    flex: 1;
    min-width: 150px;
  }

  .footer-link a {
    text-decoration: none;
  }

  .footer-link a:hover {
    text-decoration: underline;
  }

  .inner {
    margin: auto;
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 0 40px;
    max-width: 1180px;
  }

  .link-list {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .link-list li {
    width: 13%;
    max-width: 220px;
    margin: 0 16px 1rem;
  }

  .link-list li img {
    display: block;
    width: 100%;
    transition: .3s;
    border-radius: 10px;
  }

  .copyright img {
    margin: 10px auto;
    display: block;
    max-width: 200px;
    transition: .3s;
  }

  .copyright img:hover {
    opacity: 0.8;
  }

}

@media screen and (max-width:797px){
  header .logo {
    margin-left: 0;
    width: 100px;
  }
  .logo {
    height: unset;
  }
  img.x-logo {
    width: 25%;
  }
  
  p.search-comment {
    text-align: center;
    font-size: 1.1rem;
  }
  .footer-logo {
    margin: 2rem auto;
    width: 60%;
  }
  .footer-logo img {
    width: 100%;
  }
}

@media screen and (max-width:400px){
  .menu {
    margin-left: 28%;
    font-size: 10px;
  }
  img.x-logo {
    width: 50%;
  }
  
  img.person01 {
    width: 41%;
    left: -1%;
    top: -7%;
  }
  .faq-title {
    margin: 10px 0 12px;
    padding: 0.7em;
  }
  .footer-flex-box {
    margin: 0 auto;
  }
  .foot-link > .inner { 
    padding: 0;
  }
  img.carbell-logo {
    width: 50%;
  }
  .copyright img {
    margin: 0 auto;
  }
}