html {
    scroll-behavior: smooth;
}

body {
    font-family: "Yu Gothic", "YuGothic", "游ゴシック体", "Hiragino Sans", "Meiryo", sans-serif;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
    background: #fff;
}

/* 内部コンテンツのスクロールバーを完全非表示 */
.company-section::-webkit-scrollbar,
.access-content::-webkit-scrollbar {
    display: none;
}

.company-section,
.access-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Logo Image Styling */
.logo-image {
    height: auto;
    display: block;
    margin: 5% auto;
}

#company-h1{
        max-width: 50%;
        margin-top: 12%;
      }
    
    #access-h1{
        max-width: 43%;
      }

/* Section Base Styles - パララックス用sticky配置 */
section {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Company Section - 全体を内部スクロール */
.company-section {
    background: #fff;
    z-index: 1;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.company-header {
    text-align: center;
    padding: 50px 0 30px;
    flex-shrink: 0;
}

/* PC: company-contentは通常フロー */
.company-content {
    display: grid;
    grid-template-columns: 3fr 5fr;
    grid-template-rows: auto;
    gap: 0;
}

/* PC: 画像は自然な高さで表示 */
.building-image {
    width: 100%;
    display: block;
    grid-row: 1;
}

.building-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* PC: 会社情報 - 画像と同じ行に配置し、高さを画像に合わせて中央揃え */
.company-info {
    background: #54c0c0;
    padding: 0px 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    grid-row: 1;
}

.info-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    width: 100%;

  /* 下線を背景として描く */
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0)   0%,   /* 0〜20% 透明 */
    rgba(255, 255, 255, 0)   10%,
    rgba(255, 255, 255, 0.3) 10%,  /* 20〜60% 白(0.3) */
    rgba(255, 255, 255, 0.3) 35%,
    rgba(255, 255, 255, 0)   35%,  /* 60〜100% 透明 */
    rgba(255, 255, 255, 0)   100%
  );

  background-repeat: no-repeat;
  background-size: 100% 1px;          /* 高さ1pxの線にする */
  background-position: left bottom;   /* 要素の一番下に配置 */

}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    position: relative;
    letter-spacing: 0.05em;
}

.info-text {
    font-weight: 400;
    line-height: 1.8;
}

/* Spacer - accessセクションがパララックスで重なるためのスペース */
.scroll-spacer {
    height: 100vh;
    position: relative;
    z-index: 0;
}

/* Access Section - パララックスで上に重なる */
.access-section {
    background: #fff;
    z-index: 2;
}

.access-header {
    text-align: center;
    padding: 50px 0 30px;
    flex-shrink: 0;
}

.access-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Map Container */
.map-container {
    width: 60%;
    position: relative;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Turquoise Band */
.map-turquoise-band {
    background: #54c0c0;
    height: 40px;
    width: 100%;
}

/* Address and Station info - 2行右寄せ */
.map-info-text {
    width: 60%;
    margin: 0 auto 70px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

/* 1行目：住所（右寄せ） */
.map-address {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.03em;
}

/* 2行目：駅情報を横並び（右寄せ） */
.map-stations {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #333;
    justify-content: flex-end;
    font-weight:500;
}

.station-item {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.station-item::before {
    content: '●';
    color: #54c0c0;
    font-size: 0.8rem;
}

.office-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    flex-shrink: 0;
    width: 100%;
}

.gallery-item {
    width: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer-section {
    position: relative;
    z-index: 3;
    background: #fff;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .logo-image {
        max-width: 350px;
    }

     #company-h1{
        max-width: 80%;
        margin-top: 20%;
      }
    
    #access-h1{
        max-width: 70%;
      }

    .company-info {
        padding: 0px 40px;
    }

    .info-item {
        grid-template-columns: 130px 1fr;
        gap: 25px;
    }

    .info-label {
        font-size: 1rem;
    }

    .info-text {
        font-size: 1rem;
    }

    .map-container,
    .map-info-text {
        width: 80%;
    }

    .map-wrapper {
        height: 350px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .logo-image {
        max-width: 250px;
    }

    section {
        position: sticky;
        min-height: 100vh;
    }

    .scroll-spacer {
        height: 100vh;
        display: block;
    }

    .company-header,
    .access-header {
        padding: 40px 0 25px;
    }
.info-item {
        background-image: none;  /* 下線を削除 */
    }
    
    .info-label::after {
content: '';
        position: absolute;
        left: 0;
        bottom: 0px;
        width: 25%;
        height: 1px;
        background: #fff;
    }
    /* company-section全体が内部スクロール */
    .company-section {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .company-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 0;
        display: block;
    }

    /* 画像エリア - 高さ制限なし、縦長画像対応 */
    .building-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .building-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* 会社情報 - スマホでは上寄せ */
    .company-info {
        padding: 25px 20px 40px;
        height: auto;
        justify-content: flex-start;
    }

    .info-item {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 15px;
    }

    .info-label {
        font-size: 0.7rem!important;
        font-weight: 500;
    }

    .info-text {
        font-size: 0.9rem!important;
        line-height: 1.7;
    }

    .access-content {
        overflow-y: auto;
    }

    .map-container,
    .map-info-text {
        width: 87%;
    }

    .map-wrapper {
        height: 280px;
    }

    .map-turquoise-band {
        height: 30px;
    }

    .map-info-text {
        gap: 10px;
        margin-bottom: 15px;
    }

    .map-address {
        font-size: 0.85rem;
    }

    .map-stations {
        gap: 15px;
    }

    .station-item {
        font-size: 0.8rem;
    }

    .office-gallery {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 20px;
    }

    .gallery-item {
        height: 120px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .logo-image {
        max-width: 200px;
    }

    .company-header,
    .access-header {
        padding: 30px 0 20px;
    }

    .company-info {
        padding: 20px 30px 30px;
        padding-bottom: 70px;
    }

    .info-item {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .info-text {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .map-wrapper {
        height: 250px;
    }

    .map-turquoise-band {
        height: 25px;
    }

    .map-address {
        font-size: 0.8rem;
    }

    .station-item {
        font-size: 0.75rem;
    }

    .gallery-item {
        height: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1280px) {
    .company-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
.info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  width: 100%;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0)   0%,
    rgba(255, 255, 255, 0)   15%,
    rgba(255, 255, 255, 0.3) 15%,
    rgba(255, 255, 255, 0.3) 55%,
    rgba(255, 255, 255, 0)   55%,
    rgba(255, 255, 255, 0)   100%
  );

  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left bottom;
}

.info-label {
font-size: 1rem!important;
}

.info-text {
font-size: 1rem!important;
}

.company-info {
    padding: 0px 20%;
}
}


@media (min-width: 1281px){
.info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  width: 100%;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0)   0%,
    rgba(255, 255, 255, 0)   10%,
    rgba(255, 255, 255, 0.3) 10%,
    rgba(255, 255, 255, 0.3) 35%,
    rgba(255, 255, 255, 0)   35%,
    rgba(255, 255, 255, 0)   100%
  );

  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left bottom;
}

.map-wrapper {
    height: 600px;
  }

.map-turquoise-band {
    height: 60px;}

.info-label {
font-size: 1.1rem!important;
}

.info-text {
font-size: 1.1rem!important;
}

.company-info {
    padding: 0px 20%;
}
}