@charset "utf-8";
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
 
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
    color: color: rgb(105, 104, 104);
	position:relative !important;
	width:100% !important;
	overflow-x: hidden !important;
}
ol, ul {
	list-style: none;
}
a {
    text-decoration: none !important;
    color: rgb(105, 104, 104) !important;
	
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* ==============================
ここから
============================== */
img {
	vertical-align: bottom;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}
/*===========
.scroll-box
===========*/
.scroll-box {
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
	width: 100%;
}

/*===========
scrollbar
===========*/
/*スクロールバー全体の高さ*/
.scroll-box::-webkit-scrollbar {
  height: 4px;
}
/*スクロールバー全体の背景*/
.scroll-box::-webkit-scrollbar-track {
  background: #eee;
}
/*スクロールバーの動く部分*/
.scroll-box::-webkit-scrollbar-thumb {
  background: #aaa;
  border: none;
}
/*スクロールバーの動く部分のホバー（マウスオーバー）*/
.scroll-box::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/*===========
.f_area
===========*/
.scroll-box .f_area {
  display: flex;
  justify-content: center;
}
.scroll-box .f_area .f_one {
  width: 100%;
}
.scroll-box .f_area .f_one a {
  display: block;
  overflow: hidden;
  backface-visibility: hidden;
}
.scroll-box .f_area .f_one a img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
  transform: scale(1);
  transition: .5s;
}
.scroll-box .f_area .f_one a img:hover {
  transform: scale(1.1);
}
@media screen and (max-width: 1024px) {
  .scroll-box {
    overflow-x: auto;
  }
  .scroll-box .f_area {
    justify-content: flex-start;
    overflow-x: scroll;
    padding: 0 0 15px;
  }
  .scroll-box .f_area .f_one {
    flex: 0 0 45%;
  }
}
@media screen and (max-width: 767px) {
  .scroll-box .f_area .f_one {
    flex: 0 0 80%;
  }
}
/* ズーム禁止 */
/* 必要であれば、viewport メタタグで user-scalable=no を設定 */

.main-header {
    margin-bottom: 30px;
    color: #4CAF50;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
	width: 100%;
    text-align: center;
    margin: auto;
}

.groom-bride-seats {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    width: 57%;
    text-align: center;
    margin: auto;
}

.groom-seat, .bride-seat {
    background-color: #fff;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    color: #FF8C00;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 80px;
    text-align: center;
}

.seating-chart-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: auto;
    overflow-x: auto;
    padding-bottom: 20px;
    padding: 2rem;
    position: relative;
    width: 178%;
}

.table-row {
	margin: auto;
    display: flex;
    gap: 40px;
    margin-bottom: 40px; /* 行間のスペース */
}
.top-row {
    margin-top: 4rem;
}
/* 各テーブルのラッパー */
.table-wrapper {
    position: relative;
    width: 120px; /* アイコンサイズに合わせて少し小さく */
    height: 120px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    flex-shrink: 0; /* 横幅が縮まらないように */
}

.table-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* テーブルアイコン */
.table-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

/* テーブルラベル */
.table-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    font-weight: bold;
    color: #666;
    z-index: 1;
    opacity: 0.2;
}

/* 各席のコンテナ */
.seats {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* 各席 (アイコンを表示) */
.seat {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0; /* 番号非表示 */
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 要素の中心を中央に */
    transform-origin: 50% 50%; /* 回転の中心を要素の中心に設定 */
}

.seat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* アイコンの初期回転をリセット */
    transform: rotate(0deg);
}

/* 席の配置 (8席の場合) */
.seats .seat {
    /* 共通の初期位置設定はseatクラスに記述 */
}

.seats .seat:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translate(0, -50px); }
.seats .seat:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translate(0, -50px) rotate(-45deg); }
.seats .seat:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translate(0, -50px) rotate(-90deg); }
.seats .seat:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translate(0, -50px) rotate(-135deg); }
.seats .seat:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translate(0, -50px) rotate(-180deg); }
.seats .seat:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translate(0, -50px) rotate(-225deg); }
.seats .seat:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translate(0, -50px) rotate(-270deg); }
.seats .seat:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translate(0, -50px) rotate(-315deg); }


/* 黄色い席 */
.table-wrapper .seat img {
    /* アイコンのスタイル */
}
.table-wrapper.table-a .seat img,
.table-wrapper.table-b .seat img,
.table-wrapper.table-d .seat img,
.table-wrapper.table-e .seat img {
    /* 黄色い席のアイコンに特別なスタイルが必要であれば */
    filter: sepia(20%) saturate(150%) hue-rotate(-10deg); /* 例: 少し色味を変える */
}

/* ポップアップ関連 */
.profile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.profile-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px; /* ポップアップの最大幅 */
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.profile-popup-overlay.show .profile-popup-content {
    transform: translateY(0);
}

.profile-popup-content h2 {
    color: #4CAF50;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#popup-guest-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* アイコンと名前を並べる */
    gap: 15px;
}

.guest-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guest-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccc;
    margin-bottom: 5px;
}

.guest-name {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 3px;
}

.guest-relation {
    font-size: 0.8em;
    color: #777;
}

.profile-popup-content #popup-close-btn {
    display: block;
    width: 100px;
    padding: 10px 15px;
    margin-top: 25px;
    background-color: #FF6347;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    margin-left: auto;
    margin-right: auto;
}

.profile-popup-content #popup-close-btn:hover {
    background-color: #E64C3C;
}
.zoom-arrows {
    text-align: center;
}
.scroll-box {
  overflow-x: auto;
  white-space: nowrap; /* 必須：横並びにするため */
}