html, body {
  height: 100%;
  margin: 0;
}
body {
font-family: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "verdana", sans-serif;
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  color: #222;
  font-size: 1.1rem;
  margin : 0;
  min-height: 100vh;
}
.container {
  max-width: 480px;
  margin: 0 auto;
  background-color: #fff;
  background-image: 
    linear-gradient(to right, #eaeaea 1px, transparent 1px),
    linear-gradient(to bottom, #eaeaea 1px, transparent 1px);
  box-shadow: inset 0 0 0 0.5px #222;
  padding: 20px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}
h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 10px;
}
.section {
  margin: 15px 0;
}
.label {
  display: block;
  font-size: 16px;
  padding-bottom: 4px;
  background-image:
    linear-gradient(to right, #00c8a0 0 5em, transparent 0),
    repeating-linear-gradient(to right, #ccc 0 1px, transparent 0.5px 1.5px);
  background-size: 75% 2px;
  background-repeat: no-repeat;
  background-position: bottom left;
}
a.tel {
  display: inline-block;
  margin-top: 5px;
  color: #000;
  text-decoration: none;
}

iframe.map {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 5px;
}

ul {
  padding-left: 0;
  margin: 5px 0;
  list-style: none; 
}
ul li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.logo {
  max-width: min(264px, 55%);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 200, 160, 0.4));
}

.value {
  font-size: 0.9rem;
}
.pc {
    display: none;
}

.mb5{
  margin-bottom: 10px;
}

@media (1080px <= width) and (780px <= height) and (hover: hover) and (pointer: fine) {
    .mobile {
      display: none;
    }

    .pc {
      display: block;
      max-width: min(1180px, 80%);
    }

    .clearfix:after {
      content:".";
      display:block;
      height:0;
      clear:both;
      visibility:hidden
    }

    .clearfix{
        display:inline-table;
        min-height:1px
    }

    .container {
        width: 100%;
        min-width: 1080px;
        margin: 0 auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 80px;
      background: rgba(248, 248, 248, 0.9);
      z-index: 10;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .header-inner {
      max-width: 90%;
      margin: 0 auto;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
    }
    
    .menu-item > a:hover {
      border-bottom: 2px solid #00c8a0; 
    }

    .menu a {
      margin-left: 20px;
      text-decoration: none;
      color: #333;
    }
    

    .logo_pc {
        margin-top: 5px;
        max-width: min(264px, 15%);
        height: auto;
        display: block;
    }
    
    .logo_pc img{
      max-height: 60px;
      transition: filter 0.3s ease;
    }
    
    .logo_pc img:hover {
      filter: drop-shadow(0 0 8px rgba(0, 200, 160, 0.5));
    }

    .pc_main {
        width: 100%;
        height: 100%;
        min-height: 640px;
        margin-top: 20px;
    }

    .carousel {
        position: relative;
        /* top: 12px; */
        left: 0;
        width: 100%;
        height: 202px;
        background: #C0F0E0;
        display: flex;
        transition: transform 0.5s ease;
        overflow: hidden;
      }
      
      .slide {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
      }
      

      .active img
      {
        border-radius:6px;
      }
      
      .slide.active {
        opacity: 1;
      }

      #slideshow-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.95); /* ヘッダーと同じ背景で余白を自然に */
        overflow: hidden;
      }

      #slideshow {
        aspect-ratio: 16 / 9;
        width: 100%;
        max-height: 100vh;
      }

      #screenFrame {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
      }
      
      #screenFrame.active {
        display: block;
        opacity: 1;
      }
      
      .screen-header {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 8%;
        background: #131A17;
        display: block;
        align-items: center;
        justify-content: center;
        z-index: 3;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.5s ease, opacity 0.5s ease;
        padding-left: 10px;
      }
      
      .screen-header.hidden {
        transform: translateY(100%);
      }

      .pc-footer {
        width: 100%;
        text-align: center;
        padding: 0.3rem 0 0.2rem 0;
        position: absolute;
        bottom: 0;
        background: #131A17;
        color: #fff;
      }

      .copyright {
        font-size: smaller;
      }

      .pc-window {
        width: min(640px, 70%);
        border: 2px solid #ddd;
        border-radius: 10px;
        box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        font-family: sans-serif;
        margin-top: 1.2rem;
        margin-left: 2rem;
      }
      
      .pc-titlebar {
        background-color: #ddd;
        padding: 6px 10px;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        font-size: 18px;
      }
      
      .pc-titlebar span {
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 4px;
        /* background: #bbb; */
        transition: background 0.2s ease;
      }
      
      .pc-titlebar span:hover {
        background: #999;
      }
      
      .pc-contents {
        height: 202px;
        position: relative;
      }
      
      .carousel {
        width: 100%;
        position: relative;
      }
      
      .slide {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
      }
      
      .slide.active {
        opacity: 1;
        z-index: 1;
      }
      
      .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
      }

      
      .chatbot-float {
        position: fixed;
        bottom: 12%;
        right: 5%;
        width: 60px;
        height: auto;
        z-index: 9999;
        cursor: pointer;
        animation: floatUpDown 3s ease-in-out infinite;
      }
      
      .chatbot-float img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      }
      
      .chatbot-tooltip {
        background-color: #00ab8d;
        color: white;
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 20px;
        position: absolute;
        bottom: 100%;
        right: 0;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        animation: fadeInUp 1s ease forwards;
      }
      
      .chatbot-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 38%;
        border-width: 8px;
        border-style: solid;
        border-color: #00ab8d transparent transparent transparent;
      }
      
      @keyframes floatUpDown {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
      }
      
      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      nav {
        display: flex;
        gap: 30px;
        position: relative;
      }
  
      .menu-item {
        position: relative;
      }
  
      .menu-item > a {
        text-decoration: none;
        color: #333;
        font-size: 1.2rem;
        font-weight: bold;
        padding: 10px 0;
        display: block;
      }

      .external-link::after {
        content: "🔗";
        margin-left: 6px;
        font-size: 1rem;
        vertical-align: top;
      }
  
      .dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
        border-radius: 6px;
        min-width: 200px;
        padding: 10px 0;
        font-size: 1.0rem;
      }
  
      .dropdown a {
        display: block;
        padding: 10px 20px;
        text-decoration: none;
        color: #333;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        margin: 0 auto;
        transition: border-color 0.2s ease;
      }

      .dropdown a:hover {
        /* border-bottom: 2px solid #00c8a0; */
        background: rgba(210, 231, 225, 0.9);
      }
  
      .menu-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .menu-title {
        font-size: 1.2rem;
        font-weight: bold;
        padding: 10px 0;
        display: block;
        color: #333;
        cursor: pointer;
        position: relative;
      }

      .menu-title:hover::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        border-bottom: 2px solid #00c8a0;
      }
      
      #slide-caption {
        position: absolute;
        z-index: 10;
        text-shadow: none;
        font-size: 1rem;
        pointer-events: none;
      }

      .cloud-style {
        background: rgba(255, 255, 255, 0.8);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        border-radius: 40px;
        padding: 1rem 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      }

      .image-center {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
      }

        /* PC用アイコン */
  
      .header_logo {
        margin: auto;
          padding-top: 15px;
          text-align: center;
          padding-bottom: 15px;
      }
  
  /* ------------------------------------------------------------
      追加分
  ------------------------------------------------------------ */
  .table_ul {
    list-style: none; /* デフォルトの黒丸を消す */
    padding-left: 1em;
  }

  .table_ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.6em;
  }

  .table_ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c7c9f; /* 好きな色に変更可能 */
    font-weight: bold;
  }
  /* 事業内容名 */
  .icon_title {
    text-decoration: none;
      font-size: 18px;
      padding-top: auto;
      padding-bottom: auto;
      font-weight: bold;
      color: #00AB8D;
      text-align: center;
  }
  
  /* 背景色変更 */
  
  .gray {
    background-color: #f5f5f5;
      padding: 20px;
  }
  
  #top_icon img {
    padding-top: 30px;
      padding-bottom: 30px;
  }
  
  /* 各項目の枠 */
    
  .boxContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .box {
    width: 140px;
    height: 140px;
    border-radius: 20%;
    background: linear-gradient(145deg, #f4f4f4, #ffffff);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.1), -4px -4px 8px rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
  }

  .box:hover {
    transform: translateY(-6px);
    box-shadow: 6px 6px 12px rgba(0,0,0,0.15), -6px -6px 12px rgba(255,255,255,0.9);
  }

  .box img {
    width: 60%
  }

  .box p {
    font-size: 0.85rem;
    margin: 0;
    color: #333;
  }

  .scroll-down-guide {
    position: fixed;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    opacity: 0.8;
    animation: fadeInUp 1.5s infinite;
  }

  .scroll-down-guide .arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
    margin: 0 auto;
  }

  .scroll-down-guide.color-white .arrow 
  {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
  }

  @keyframes fadeInUp {
    0% {
      transform: translate(-50%, 0);
      opacity: 0.5;
    }
    50% {
      transform: translate(-50%, 10px);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, 0);
      opacity: 0.5;
    }
  }

  #slide-caption {
      line-height: normal;
  }

  .inner_1160 {
      max-width: 1000px;
      width: 100%;
      margin: auto;
      padding-left: 10px;
      padding-right: 10px;
  }

  .noborder{
    border: none !important;
  }
  
  .bg-overlay-legalis {
    background-image: url('/img/legal-is/meetingroom.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
  }

  .bg-overlay-legalis::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.3); 
    z-index: 0;
  }

  .icon-item {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .icon-item.active {
    border: 2px solid #00796b;
    box-shadow: 0 0 10px rgba(0, 121, 107, 0.3);
  }

  .preview-box-container {
    margin-top: 30px;
  }

  .preview-box {
    display: none;
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .preview-box.active {
    display: block;
  }

  .collapse-on-overflow {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
  }

  .collapse-on-overflow.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
  }
}