@charset "utf-8";

.page-hero {
    padding-top: 155px;
    margin: 0 auto ;
    max-width: 325px;
    position: relative;
}

.company-bg {
    background-image: url(../img/backimg-company.svg);
    background-repeat:no-repeat;
    background-size: auto;
    background-position: top right;
}

.lead {
    margin-top: 50px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
}

.title-en {
    margin-top: 50px;
   color: #2B958A;
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.2;
}

.company-bg span{
    margin-top: 9px;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
}

.company-bg p{
    margin-top: 40px;
}

.office-top {
    margin-top: 34px;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}

/* ============================
タブ
=============================== */
.tabs {
    max-width: 325px;
    width: 100%;
    margin: 40px auto 0;
    justify-content: center;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.tab {
    color: #2B958A;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 5px 30px 0 0;
    background: #fff;
    width: 100px;
    height: 60px;
    justify-content: center;
    text-align: center;
    border: 1px solid #2B958A;
    cursor: pointer;
}

.tab.active {
    background: #2B958A;
    color: #fff;
    cursor: pointer;
}

.tab-line {
    margin: 0 auto;
    width: 325px;
    height: 1px;
    background: #2B958A;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ============================
タブ切り替え写真
=============================== */
.content-all {
    max-width: 325px;
    width: 100%;
    margin: 30px auto 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content.active img {
    display: block;
    max-width: 325px;
    width: 100%;
    height: 195px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    margin-top: 18px;
}

.osaka-flex1 {
    display: flex;
    justify-content: space-between;
}

.osaka-flex1 img:first-child{
    width: 150.246px;
    height: 201px;
    object-fit: cover;
    object-position: center;
}

.osaka-flex1 img:nth-child(2){
    width: 157px;
    height: 201px;
    object-fit: cover;
    object-position: center;
}

.osaka-flex2 {
    display: flex;
    justify-content: space-between;
}

.osaka-flex2 img:first-child{
    width: 128px;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.osaka-flex2 img:nth-child(2){
    width: 179px;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.osaka-flex3 {
    display: flex;
    justify-content: space-between;
}

.osaka-flex3 img:first-child{
    width: 178px;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.osaka-flex3 img:nth-child(2){
    width: 129px;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.tab-content img {
    display: block;
    max-width: 325px;
    width: 100%;
    height: 195px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    margin-top: 18px;
}

.shiga-flex1 {
    display: flex;
    justify-content: space-between;
}

.shiga-flex1 img:first-child {
    width: 150.246px;
    height: 201px;
    object-fit: cover;
    object-position: center;
}

.shiga-flex1 img:nth-child(2) {
    width: 157px;
    height: 201px;
    object-fit: cover;
    object-position: center;
}

.shiga-flex2 {
    display: flex;
    justify-content: space-between;
}

.shiga-flex2 img:first-child {
    width: 188px;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.shiga-flex2 img:nth-child(2) {
    width: 119px;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.shiga-flex3 {
    display: flex;
    justify-content: space-between;
}
.shiga-flex3 img:first-child {
    width: 126px;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.shiga-flex3 img:nth-child(2) {
    width: 181px;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* ============================
トップへ戻る
=============================== */
.branch-info {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  justify-content: flex-end;
}

.top-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #2B958A;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.top-arrow {
  font-size: 10px;
  margin-bottom: 1px;
}

.top-text {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.jump-img {
    margin: 60px auto 0;
    max-width: 325px;
    width: 100%;
}
.jump-img img{
    margin-top: 30px;
    height: 177px;
    border-radius: 20px;
}

/* ============================
ギャラリー画像 hover
=============================== */
.tab-content img,
.osaka-flex1 img,
.osaka-flex2 img,
.osaka-flex3 img,
.shiga-flex1 img,
.shiga-flex2 img,
.shiga-flex3 img,
.jump img {
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.tab-content img:hover,
.osaka-flex1 img:hover,
.osaka-flex2 img:hover,
.osaka-flex3 img:hover,
.shiga-flex1 img:hover,
.shiga-flex2 img:hover,
.shiga-flex3 img:hover,
.jump img:hover {
    opacity: 0.85;
    filter: brightness(1.08);
}

/* ============================
モーダル
=============================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.gallery-modal-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 1000px);
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.gallery-modal-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #2B958A;
    font-size: 3rem;
    line-height: 0.9;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.gallery-modal-btn:hover {
    background: #fff;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #2B958A;
    font-size: 3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-modal-close:hover {
    background: #fff;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gallery-modal-btn {
        width: 44px;
        height: 44px;
        font-size: 2.4rem;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }

    .gallery-modal-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 2.4rem;
    }

    .gallery-modal-content {
        width: min(88vw, 1000px);
    }
}

/* ============================
モーダル
=============================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.gallery-modal-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 1000px);
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.gallery-modal-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.gallery-modal-btn:hover {
    background: #fff;
}

.gallery-modal-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #2B958A;
    border-right: 3px solid #2B958A;
}

/* 左矢印 */
.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-prev::before {
    transform: translate(-40%, -50%) rotate(-135deg);
}

/* 右矢印 */
.gallery-modal-next {
    right: 20px;
}

.gallery-modal-next::before {
    transform: translate(-60%, -50%) rotate(45deg);
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #2B958A;
    font-size: 3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-modal-close:hover {
    background: #fff;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gallery-modal-btn {
        width: 44px;
        height: 44px;
    }

    .gallery-modal-btn::before {
        width: 12px;
        height: 12px;
        border-top: 2.5px solid #2B958A;
        border-right: 2.5px solid #2B958A;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }

    .gallery-modal-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 2.4rem;
    }

    .gallery-modal-content {
        width: min(88vw, 1000px);
    }
}

