#company_block,
#group_company {
    width: 1100px;
    margin: 0 auto 40px;
}
.works_head {
    margin: 128px 0 64px;
}
.en_title {
    text-transform: uppercase;
}
.company_flex {
    gap: 0 32px;
    display: flex;
}
.company_left {
    width: 50%;
    border-top: 1px solid var(--Mono-darkGray, #D9D9D9);
}
.history_block {
    display: flex;
    align-self: stretch;
    border-bottom: 1px solid var(--Mono-darkGray, #D9D9D9);
    padding: 0 16px;
}
.history_block div {
    padding: 16px;
    width: 70%;
}
.history_block div:first-child {
    width: 30%;
}
.social_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: var(--gutter-4x, 32px);
    flex: 1 0 0;
}
.company_right {
    width: 640px;
    height: 354px;
    flex-shrink: 0;
}
.company_right img {
    width: 100%;
}
@media screen and (max-width: 1100px) { 
    .company_right {
        flex-shrink: 5;
    }
}
@media screen and (max-width: 768px) {
	.page__sub h2 {
		font-size: var(--font-size-24);
	} 
    .history_block {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .history_block div:first-child {
        width: 100%;
        padding-bottom: 0;
    }
    .history_block div {
        width: 100%;
        padding-top: ;
    }
    .modal-content .works_head {
        margin: 0 auto var(--gutter-5x, 40px);
    }
    .works_head {
        margin: var(--gutter-8x, 64px) auto 32px;
    }
}

/*  ========================
    *********  Social Activity  *********
=============================================  */
.social_activity {
  padding: clamp(32px, 5vw, 72px) 16px;
  background: #fff;
  color: #111;
  line-height: 1.85;
  font-feature-settings: "palt";
}
.social_activity__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.social_activity__heading {
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 clamp(20px, 3vw, 36px);
}
.social_activity__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px 30px;
}
@media (max-width: 1100px) {
  .social_activity__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .social_activity__grid { 
    grid-template-columns: 1fr;
    gap: 40px 0;
  }
}

.social_activity__item {
  display: flex;
  flex-direction: column;
    width: 100%;
    overflow-x: auto;
}
.social_activity__thumb {
  margin: 0 0 16px;
  aspect-ratio: 3 / 2;                 /* 画像比率をそろえる */
  overflow: hidden;
  background: #f2f4f7;
}
.social_activity__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;                    /* ロゴ中心なら contain に変更可 */
  display: block;
}
.social_activity__title {
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 10px;
}
.social_activity__desc {
  margin: 0 0 18px;
  color: #333;
}
.social_activity__footer {
  margin-top: auto;
  padding-top: 12px;
  text-align: right;
}
.social_activity__link {
  display: inline-flex;
  align-items: center;
  font-size: clamp(13px, 1.5vw, 14px);
  color: var(--black);
    margin-right: 5px;
}
.icon-ext {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-left: 0.25em;
}
.social_activity__link:hover .icon-ext {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

/* ロゴ画像を切り抜かずに収めたい場合は .is-contain を付与 */
.social_activity__thumb.is-contain img { 
    object-fit: contain; background: #fff;
}

@media screen and (max-width: 1140px) { 
    #company_block, #group_company,.container {
        width: 100%;
        padding: 0 2em;
        box-sizing: border-box;
    }
}
@media screen and (max-width: 768px) {
    .company_flex {
        flex-wrap: wrap;
        gap: 40px 0;
    }
    .company_left,
    .company_right {
        width: 100%;
        height: 100%;
    }
    .social_activity__thumb {
        margin-bottom: 0;
    }
    .social_activity__title {
        margin: var(--gutter-3x, 24px) 0;
    }
}

/*  ========================
    *********  MAP  *********
=============================================  */
:root{
--rail-w: 260px;
--round: 8px;
}
.container {
	max-width: 1100px;
	margin: 32px auto;
}

/* Layout */
.office-tabs {
	display: grid;
	grid-template-columns: var(--rail-w) 1fr;
	background: var(--Mono-smoke, #F4F3F1);
}
/* Rail (tablist) */
.office-tabs__rail {
	background: var(--Mono-alphaBlack05, rgba(0, 0, 0, 0.05));
	padding: 0;
	overflow: hidden;
}
.office-tabs__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.office-tabs__btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 16px 20px;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--monotone-black);
	border-left: 4px solid transparent;
	cursor: pointer;
	transition: background .15s ease;
}

.office-tabs__btn:hover {
	background: rgba(0, 0, 0, .04)
}

.office-tabs__btn[aria-selected="true"] {
	background: #fff;
	color: #fff;
	position: relative;
}

.office-tabs__btn[aria-selected="true"] {
	background: var(--Color-GAred);
    border: none;
}

.office-tabs__btn[aria-selected="true"] span {
	color: #fff
}
.office-tabs__list li button {
    border: none;
}
.office-tabs__btn span {
	display: inline-block;
	color: #222;
}

/*  ========================
    *********  Panel  *********
=============================================  */
.office-tabs__panel {
	display: none;
}
.office-tabs__panel[aria-hidden="false"] {
	display: block
}
.panel-card {
	overflow: clip;
    padding: 64px 40px;
    gap: 32px;
}
.panel-card__map {
	aspect-ratio: 16/9;
}
.panel-card__body {
	padding: 20px;
}
.panel-card__title {
	margin: 0 0 12px;
	font-weight: 700;
	font-size: clamp(18px, 2vw, 22px)
}

/*  ========================
    *********  table  *********
=============================================  */
.info-table {
	width: 100%;
	border-collapse: collapse;
    border-bottom: 1px solid var(--Mono-gray, #D9D9D9);
}
.info-table tr.last {
    border-bottom: 1px solid var(--Mono-gray)
}
.info-table th,
.info-table td {
	padding: 12px 10px;
	border-top: 1px solid var(--Mono-gray);
	text-align: left;
	vertical-align: top
}
.info-table th {
	width: 13em;
	color: #333;
	font-weight: 600;
}
.info-table td {
	color: #333
}
.Mono-gray {
	color: var(--Mono-gray)
}

/*  ========================
    *********  Link row  *********
=============================================  */
.link-row {
	margin-top: 12px;
	font-size: .95em
}
.ext {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none
}
.ext svg {
	width: 16px;
	height: 16px;
	fill: currentColor
}

/* Responsive */
@media (max-width: 900px) {
	:root {
		--rail-w: 210px;
	}
}
@media (max-width: 768px) {
	.office-tabs {
		grid-template-columns: 1fr;
        grid-template-rows: repeat(1, 1fr);
        width: 100%;
        margin: 0 auto;
	}
    .office-tabs__rail { grid-area: 2 / 1 / 3 / 2; }
    .office-tabs__panel { grid-area: 1 / 1 / 2 / 2; }
    .office-tabs__list {
        display: flex;
        flex-wrap: wrap;
    }
    .office-tabs__list li {
        width: 50%;
    }
    .office-tabs__btn {
        height: 100%;
        text-align: center;
    }
    .panel-card {
        padding: 24px;
    }
    .panel-card__body {
        padding: 0;
    }
    .info-table th {
        width: 100%;
        display: block;
        border-bottom: none;
        padding-bottom: 0;
    }
    .info-table td {
        width: 100%;
        display: block;
        border-top: none;
    }
}

/*  ========================
    *********  GROUP  *********
=============================================  */
#group_company .group_flex {
    display: flex;
    gap: 40px;
    margin-bottom: 64px;
}
#group_company .right {
    text-align: right;
    margin-left: auto;
}
@media screen and (max-width: 768px) { 
    #group_company {
        margin: 0 auto 0;
        box-sizing: border-box;
    }
    #group_company .group_flex {
        flex-wrap: wrap;
        gap: 32px var(--gutter-5x, 40px);
    }
    #group_company .group_flex > li {
        width: calc(50% - var(--gutter-3x, 24px));
        text-align: center;
    }
    #group_company .group_flex > li a{
        width: 100%;
    }
    #group_company .group_flex > li a img{
        width: 100%;
        height: auto;
    }
}


/*  ========================
    *********  model area  *********
=============================================  */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    background: white;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: scroll;
	/* IE Edge */
	-ms-overflow-style: none;
  	/* Firefox */
  	scrollbar-width: none;
}
/* chrome safari */
.modal-container::-webkit-scrollbar{
  display:none;
}
.modal-overlay.active .modal-container {
    transform: scale(1);
}
.modal-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
}
.modal-mega {
    width: 860px;
    height: auto;
}
.modal-kitchen {
    width: 860px;
    height: auto;
}
/*  ========================
    *********  Close Button  *********
=============================================  */
.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background-color: #000;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    transition: background-color 0.2s ease, opacity 0.5s ease;
    border-radius: 0 0 0 16px;
    overflow: hidden;
    opacity: 1;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: white;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.modal-close-text {
    color: white;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 48px; 
    transition: opacity 0.3s ease;
    text-transform: lowercase;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}
.modal-close.closing {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.modal-close.closing::before,
.modal-close.closing::after {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    opacity: 0;
}
.modal-close.closing .modal-close-text {
    opacity: 0;
}
.modal-content {
    padding: 112px 120px !important;
    width: 100%;
}
.modal-content .works_head {
    margin: 0 auto 64px;
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: 0 auto 64px;
}
.modal-body img {
    display: block;
    width: 100%;
    margin: 0 auto 5px;
    height: auto;
}
.modal-body .modal-topimg img {
    width: 50%;
}
.modal-body .modal-roomimg img {
    width: 59%;
}
.modal-bottomimgs {
    display: flex;
    gap: 48px;
    margin-top: 32px;
}
.modal-bottomimgs > div {
    flex: 1;
}
.modal-text,
.modal-bottomtext {
    margin: 48px 0;
    text-align: left;
}
.modal-bottomimgs .modal-bottomtext p {
    margin-top: -32px;
}
.modal-body .blanc-top img {
    width: 74%;
}
.blanc-vw-padd {
    padding: 110px 136px !important;
    width: 100%;
    box-sizing: border-box;
}
.calendar-wrapper {
    display: flex;
    gap: 32px;
}
.calendar-cover img {
    width: 100%;
    height: auto;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 10px;
}
.calendar-item {
    text-align: right;
}
.calendar-item .btn {
    min-width: fit-content;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: clamp(13px, 1.5vw, 14px);
    text-underline-offset: 2px;
    transition: opacity .2s ease, gap .2s ease;
    border-bottom: 1px solid currentColor;
    font-weight: 500;
    fill: currentColor;
    color: var(--black);
}
.calendar-item .btn:hover {
    color: var(--Color-GAred);
}
.calendar-item .btn:hover .icon-ext {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

    .modal-container {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; 
    }
    .calendar-wrapper {
        flex-wrap: wrap;
    }
    .modal-container {
        max-width: 100%;
        max-height: auto;
        margin: 10px;
    }

    .modal-mega,
    .modal-kitchen {
        width: 100%;
        height: auto;
        min-height: 80vh;
        max-height: 95vh;
    }

    .modal-close {
        width: 75px;
        height: 75px;

    }

    .modal-close::before,
    .modal-close::after {
        width: 50px;
    }


    .modal-close-text {
        font-size: 12px;
    }

    .modal-content {
        padding: 96px 40px !important;
        width: 100%;
    }

    .modal-body .modal-topimg img {
        width: 100%;
    }

    .modal-body .modal-roomimg img {
        width: 100%;
    }
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-bottomimgs {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

}


.modal-open {
	/* overflow: hidden; */
}

@media (prefers-reduced-motion: no-preference) {
    .modal-overlay {
        transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .modal-container {
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-container,
    .modal-close::before,
    .modal-close::after {
        transition: none;
    }
    
    .modal-container {
        transform: none;
    }
    
    .modal-overlay.active .modal-container {
        transform: none;
    }
}