
/* =========================================================
   Egypt theme / layout-preserving overrides
   TOP画像の幅・高さ・比率は元HTMLのまま変更しません。
   ========================================================= */
:root{
  --egypt-navy:#183a43;
  --egypt-teal:#176b6d;
  --egypt-gold:#c69b4a;
  --egypt-sand:#f4ead6;
  --egypt-cream:#fffaf0;
  --egypt-brown:#6b4a2f;
  --egypt-line:#d9c8a6;
}
body{background:var(--egypt-cream);color:#333;}
#header{margin-bottom:20px;}
#primary{position:relative;}
.tab-4 > label{
  background:var(--egypt-sand);
  color:var(--egypt-brown);
  border-top:1px solid var(--egypt-line);
  border-left:1px solid var(--egypt-line);
  border-right:1px solid var(--egypt-line);
  font-size:1.35em;
  padding:.8em 1em;
}
.tab-4 > label:hover,
.tab-4 label:has(:checked){
  background:var(--egypt-navy);
  color:#fff;
}
.tab-4 label:has(:checked)::before{background:var(--egypt-navy);}
h1{
  background:var(--egypt-navy)!important;
  box-shadow:5px 5px 0 var(--egypt-teal)!important;
  border-left:7px solid var(--egypt-gold);
}
h2{
  color:var(--egypt-navy);
}
#bosyuyoko .gaiyo dl dt{
  background:var(--egypt-teal)!important;
}
a{color:var(--egypt-teal);}
a:hover{color:var(--egypt-brown);}
.profile{
  background:#fff!important;
  border:1px solid var(--egypt-line);
}
.button_solid017 a{
  background:var(--egypt-teal)!important;
}
.egypt-lead{
  border:1px solid var(--egypt-line);
  background:#fff;
  padding:20px;
  margin:0 0 25px;
}
.egypt-lead .eyebrow{
  color:var(--egypt-gold);
  font-weight:700;
  letter-spacing:.12em;
  font-size:.85em;
}
.egypt-lead strong{color:var(--egypt-navy);}
.course-switch{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:15px 0 20px;
}
.course-switch button{
  flex:1 1 18%;
  min-width:150px;
  border:1px solid var(--egypt-line);
  background:#fff;
  color:var(--egypt-navy);
  padding:12px 10px;
  cursor:pointer;
  transition:.2s;
}
.course-switch button b{display:block;font-size:1.1em;color:var(--egypt-gold);}
.course-switch button span{display:block;font-size:.82em;margin-top:4px;}
.course-switch button:hover,
.course-switch button.is-active{
  background:var(--egypt-navy);
  color:#fff;
  border-color:var(--egypt-navy);
}
.course-switch button:hover b,
.course-switch button.is-active b{color:#f0d79f;}
.course-panel{display:none;}
.course-panel.is-current{display:block;}
.course-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin:15px 0 12px;
  padding:15px 18px;
  background:var(--egypt-sand);
  border-left:5px solid var(--egypt-gold);
}
.course-panel-head h2{margin:2px 0;font-size:1.45em;}
.course-panel-head p{margin:0;color:#6b6255;}
.course-code{font-size:.78em;letter-spacing:.12em;color:var(--egypt-gold);font-weight:bold;}
.course-anchor{
  white-space:nowrap;
  padding:8px 12px;
  border:1px solid var(--egypt-teal);
  color:var(--egypt-teal)!important;
  text-decoration:none;
}
.course-schedule{width:100%;border-collapse:collapse;}
.course-schedule th{
  background:var(--egypt-navy)!important;
  color:#fff!important;
  border:1px solid #49636a!important;
  padding:8px 5px!important;
}
.course-schedule td{
  border-top:0!important;
  border-bottom:0!important;
  border-left:1px solid #d8d0c2!important;
  border-right:1px solid #d8d0c2!important;
  background:#fff!important;
  padding:8px 6px!important;
  vertical-align:top;
}
.course-schedule tbody tr:nth-child(even) td{background:#fff!important;}
.day-col{font-weight:bold;color:var(--egypt-teal);text-align:center;}
.schedule-col{line-height:1.65;}
.hotel-note{
  margin-top:5px;
  padding:5px 8px;
  background:#f5efe3;
  border-left:3px solid var(--egypt-gold);
  font-size:.9em;
  color:#6b4a2f;
}
.price-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:10px;
}
.price-table th,.price-table td{
  border:1px solid #cfc5b4;
  padding:10px;
}
.price-table thead th{
  background:var(--egypt-navy);
  color:#fff;
}
.price-table tbody th{
  color:var(--egypt-navy);
  background:var(--egypt-sand);
}
.price-main{font-weight:bold;color:var(--egypt-teal);}
.note-box{
  background:#fff;
  border:1px solid var(--egypt-line);
  padding:15px;
}
.egypt-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:15px 0 20px;
}
.egypt-point{
  border:1px solid var(--egypt-line);
  background:#fff;
  padding:14px;
}
.egypt-point b{display:block;color:var(--egypt-teal);margin-bottom:5px;}
@media(max-width:700px){
  .course-panel-head{display:block;}
  .course-anchor{display:inline-block;margin-top:10px;}
  .egypt-points{grid-template-columns:1fr;}
  .course-switch button{min-width:calc(50% - 8px);}
  .course-schedule{font-size:12px;}
}

/* ---------------------------------------------------------
   見出し：エジプト配色
   --------------------------------------------------------- */
h1{
  background:var(--egypt-navy)!important;
  color:#fff!important;
  border-left:7px solid var(--egypt-gold)!important;
  box-shadow:5px 5px 0 var(--egypt-teal)!important;
}
h2{
  color:var(--egypt-navy)!important;
  border-bottom:5px solid var(--egypt-gold)!important;
}
h2:before{
  background:var(--egypt-teal)!important;
}
h3{
  color:var(--egypt-navy)!important;
  border-bottom:2px solid var(--egypt-teal)!important;
}

/* ---------------------------------------------------------
   日程表：日付の境目を明確にする
   --------------------------------------------------------- */
.course-schedule .day-separator th{
  padding:10px 14px!important;
  background:var(--egypt-sand)!important;
  color:var(--egypt-navy)!important;
  border:1px solid var(--egypt-line)!important;
  border-top:4px solid var(--egypt-gold)!important;
  text-align:left!important;
  font-size:1.05em!important;
  letter-spacing:.02em;
}
.course-schedule .day-separator + .day-row td{
  border-top:0!important;
}
.course-schedule .day-number{
  display:inline-block;
  min-width:4.4em;
  margin-right:12px;
  font-weight:700;
  color:#fff;
  background:var(--egypt-teal);
  padding:4px 9px;
  text-align:center;
}
.course-schedule .day-date{
  font-weight:700;
}
.course-schedule .day-col{
  color:var(--egypt-teal)!important;
  font-weight:700;
}
.course-schedule tbody tr.day-row td{
  border-top:0!important;
  border-bottom:0!important;
  border-left:1px solid #d8d0c2!important;
  border-right:1px solid #d8d0c2!important;
  background:#fff!important;
}
.course-schedule tbody tr.day-row:hover td{
  background:#fffdf8!important;
}

/* コース選択部分 */
.course-switch button{
  min-height:68px;
}
.course-switch button b{
  color:var(--egypt-gold)!important;
}
.course-switch button.is-active b{
  color:#f4d998!important;
}

/* 旅行企画・実施 */
.contact-box{
  background:#fff;
  border:1px solid var(--egypt-line);
  padding:18px 20px;
  margin-bottom:20px;
}
.contact-box h3{
  margin-top:12px;
}
.organizer{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--egypt-line);
}
.knt{
  max-width:180px;
  height:auto;
  margin-top:8px;
}

@media(max-width:700px){
  .course-schedule .day-separator th{
    font-size:1em!important;
    padding:9px 8px!important;
  }
  .course-schedule .day-number{
    margin-right:7px;
  }
  .course-schedule .day-date{
    font-size:.95em;
  }
}

/* =========================================================
   TOP画像直下の「ツアー詳細／下見レポート」タブ
   元サイトと同じ2タブ構成を維持し、レポートが最下部へ
   流れないようにレイアウトを明示。
   ========================================================= */
.tab-4{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  grid-template-areas:
    "detail-tab report-tab"
    "detail-panel detail-panel";
  max-width:1100px;
  width:100%;
  align-items:start;
}
.tab-4 > label:nth-of-type(1){grid-area:detail-tab;}
.tab-4 > label:nth-of-type(2){grid-area:report-tab;}
.tab-4 > #bosyuyoko{grid-area:detail-panel;}
.tab-4 > #reportTab{grid-area:detail-panel;}
.tab-4 > div{width:auto;}
.tab-4 > #bosyuyoko{display:none;}
.tab-4 > #reportTab{display:none;}
.tab-4 > label:nth-of-type(1):has(input:checked) ~ #bosyuyoko{display:block;}
.tab-4 > label:nth-of-type(2):has(input:checked) ~ #reportTab{display:block;}
.tab-4 > label:nth-of-type(1):has(input:checked){
  background:var(--egypt-navy);
  color:#fff;
}
.tab-4 > label:nth-of-type(2):has(input:checked){
  background:var(--egypt-navy);
  color:#fff;
}
.tab-4 > label:nth-of-type(1):has(input:checked)::before,
.tab-4 > label:nth-of-type(2):has(input:checked)::before{
  background:var(--egypt-navy);
}
@media(max-width:700px){
  .tab-4{grid-template-columns:1fr 1fr;}
  .tab-4 > label{font-size:1.05em!important;padding:.8em .5em!important;}
}

/* =========================================================
   TOP画像直下の「ツアー詳細／下見レポート」タブ
   元サイトと同じ構造で、選択したタブだけを表示。
   ========================================================= */
.tab-4 > label { order:-1; }
.tab-4 > label + div { display:none; width:100%; }
.tab-4 > label:has(input:checked) + div { display:block; }
.tab-4 > label:has(input:checked)::before { background:var(--egypt-navy)!important; }
#reportTab { width:100%; }


/* 旅行条件・申込方法 */
.terms-list, .application-step{
  background:#fff;
  border:1px solid var(--egypt-line);
  padding:16px 20px;
  margin:12px 0 22px;
}
.terms-list ul, .application-step ul{margin:0 0 10px;padding-left:1.5em;}
.terms-list li, .application-step li{margin:0 0 8px;line-height:1.75;}
.terms-note{font-size:.9em;color:#665b4b;margin:12px 0 0;}
.terms-table{width:100%;border-collapse:collapse;margin:14px 0 20px;background:#fff;}
.terms-table th,.terms-table td{border:1px solid var(--egypt-line);padding:11px 13px;text-align:left;vertical-align:top;}
.terms-table th{background:var(--egypt-navy);color:#fff;}
.terms-table td:last-child{white-space:nowrap;font-weight:700;color:var(--egypt-teal);}
.application-step h2{margin-top:0;padding-bottom:8px;border-bottom:2px solid var(--egypt-gold);}
.application-button{text-align:center;margin:18px 0 8px;}
.application-button .app{display:inline-block;padding:12px 26px;border-radius:24px;background:var(--egypt-teal);color:#fff;text-decoration:none;font-weight:700;}
.application-button .app:hover{background:var(--egypt-navy);color:#fff;}
@media(max-width:700px){
  .terms-list,.application-step{padding:13px;}
  .terms-table th,.terms-table td{padding:8px;font-size:.92em;}
  .terms-table td:last-child{white-space:normal;}
}


/* フライトについて：既存テーブル構成を維持し、エジプト版カラーに調整 */
.flight-notes{margin-bottom:14px;}
.flight-table-wrap{width:100%;overflow-x:auto;margin:14px 0 10px;-webkit-overflow-scrolling:touch;}
.flight-table{width:100%;min-width:650px;border-collapse:collapse;background:#fff;table-layout:auto;}
.flight-table th,.flight-table td{border:1px solid var(--egypt-line);padding:12px 14px;vertical-align:middle;line-height:1.65;}
.flight-table thead th{color:#fff;text-align:center;font-weight:700;}
.flight-table thead th:first-child{background:var(--egypt-navy);}
.flight-table .airline-head{min-width:155px;}
.flight-table .egyptair{background:#00265D;color:#fff;border-bottom:4px solid #C7A45A;}
.flight-table .airfrance{background:#002157;color:#fff;border-bottom:4px solid #F71D25;}
.flight-table .baggage-group{background:var(--egypt-navy);color:#fff;text-align:left;min-width:118px;}
.flight-table .baggage-label{background:#F4EAD6;color:var(--egypt-navy);text-align:center;min-width:70px;}
.flight-table .carryon-group{background:var(--egypt-teal);color:#fff;text-align:left;}
.flight-table tbody td{background:#fff;color:#25353a;}
.flight-table tbody tr:nth-child(even) td{background:#FCFAF5;}
.flight-table strong{color:var(--egypt-navy);}
.flight-note{font-size:.88em;line-height:1.7;color:#6b6256;margin:8px 0 24px;}
@media(max-width:700px){.flight-table th,.flight-table td{padding:9px 10px;font-size:.9em;}.flight-note{font-size:.85em;}}


/* ツアーポイント見出し：既存レイアウトを保ち、ほどよく強調 */
.tour-point-title{
  margin:8px 0 14px!important;
  padding:10px 15px!important;
  color:var(--egypt-navy)!important;
  background:linear-gradient(90deg,var(--egypt-sand),rgba(244,234,214,.25))!important;
  border-left:5px solid var(--egypt-gold);
  border-bottom:1px solid var(--egypt-line);
  font-size:1.45em!important;
  line-height:1.4;
  box-shadow:none!important;
}
.application-button .app{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(100%,390px)!important;
  min-height:64px!important;
  height:auto!important;
  padding:14px 22px!important;
  margin:20px auto 8px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  font-size:1.2rem!important;
  font-weight:700!important;
  line-height:1.4!important;
  border:0!important;
  border-radius:32px!important;
  background:var(--egypt-teal)!important;
  color:#fff!important;
  z-index:0!important;
}
.application-button .app::after{z-index:-1!important;background:var(--egypt-navy);}
.application-button .app:hover{background:var(--egypt-navy)!important;color:#fff!important;}
@media(max-width:700px){
  .tour-point-title{font-size:1.25em!important;}
  .application-button .app{font-size:1.12rem!important;min-height:60px!important;}
}


/* 募集要項：項目名と説明を横並びに */
.recruitment-list{display:grid;margin:12px 0 26px;border-top:1px solid var(--egypt-line);background:#fff;}
.recruitment-list dt,.recruitment-list dd{margin:0;padding:13px 16px;border-bottom:1px solid var(--egypt-line);line-height:1.75;}
.recruitment-list dt{background:var(--egypt-sand);color:var(--egypt-navy);font-weight:700;}
.recruitment-list dd{background:#fff;}
.recruitment-list dd ul{margin:0;padding-left:1.4em;}
.price-notes{margin:14px 0 28px;padding:15px 20px;background:#fff;border:1px solid var(--egypt-line);}
.price-notes ul{margin:0;padding-left:1.5em;}
.price-notes li{margin:0 0 9px;line-height:1.75;}
.schedule-notes{margin:12px 0 28px;padding:13px 16px;background:var(--egypt-sand);border-left:4px solid var(--egypt-gold);color:#554a3b;font-size:.9em;line-height:1.7;}
.schedule-notes p{margin:0 0 6px;}
.schedule-notes p:last-child{margin-bottom:0;}
.terms-list ol{margin:0 0 10px;padding-left:1.7em;}
.terms-list ol>li{margin:0 0 9px;line-height:1.75;}
.surcharge-table{margin:10px 0!important;}
.surcharge-table td:last-child{white-space:nowrap;}
@media(max-width:700px){.recruitment-list{grid-template-columns:1fr;}.recruitment-list dt{padding-bottom:7px;border-bottom:0;}.recruitment-list dd{padding-top:7px;}.price-notes{padding:13px;}}


/* スマートフォン表示の調整 */
@media screen and (max-width: 767px) {
  h1 {
    line-height: 1.5 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  h2 {
    margin-bottom: 24px !important;
  }

  h3 {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* 下見レポートの画像をスマホ画面幅に合わせる */
  .report img,
  #reportTab img {
    display: block;
    max-width: 100% !important;
    width: auto;
    height: auto !important;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  /* 画像が段落内にある場合もはみ出しを防ぐ */
  .report p,
  #reportTab p {
    max-width: 100%;
    box-sizing: border-box;
  }
}


/* =========================================================
   3タブ最終版：ツアー詳細 / ルーヴル展示 / 下見レポート
   タブ内はラジオ＋JSで切り替え。旅行企画・実施はタブの外。
   ========================================================= */
.tab-4{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-areas:
    "detail louvre report"
    "panel panel panel" !important;
  width:100% !important;
  max-width:1100px !important;
  align-items:start !important;
}
.tab-4 > label.tab-label{
  grid-row:1 !important;
  min-width:0 !important;
  width:auto !important;
  box-sizing:border-box !important;
  order:0 !important;
  position:relative !important;
  display:block !important;
}
.tab-4 > label.tab-label:nth-of-type(1){grid-column:1 !important;grid-area:detail !important;}
.tab-4 > label.tab-label:nth-of-type(2){grid-column:2 !important;grid-area:louvre !important;}
.tab-4 > label.tab-label:nth-of-type(3){grid-column:3 !important;grid-area:report !important;}
.tab-4 > .tab-panel{
  grid-area:panel !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:1.5em 1em !important;
  display:none !important;
}
.tab-4 > .tab-panel.is-active{display:block !important;}
.tab-4 > label.tab-label.is-active{
  background:var(--egypt-navy) !important;
  color:#fff !important;
}
.tab-4 > label.tab-label.is-active::before{background:var(--egypt-navy) !important;}
.tab-4 > label.tab-label input{display:none !important;}

@media(max-width:700px){
  .tab-4{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .tab-4 > label.tab-label{
    font-size:.92em !important;
    line-height:1.35 !important;
    padding:.75em .2em !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  .tab-4 > .tab-panel{padding:1.2em .6em !important;}
}

/* ---------------------------------------------------------
   ルーヴル展示：スマホ表示の調整
   h2の上余白と展示写真の画面内収まりを調整
   --------------------------------------------------------- */
#louvreTab .louvre-item h2{
  margin-top:30px !important;
}

#louvreTab .louvre-item img{
  display:block;
  max-width:100% !important;
  width:auto !important;
  height:auto !important;
  box-sizing:border-box;
  margin-left:auto;
  margin-right:auto;
}

@media screen and (max-width:767px){
  #louvreTab{
    overflow-x:hidden;
  }

  #louvreTab .louvre-content{
    max-width:100%;
    box-sizing:border-box;
  }

  #louvreTab .louvre-item{
    max-width:100%;
    box-sizing:border-box;
  }

  #louvreTab .louvre-item h2{
    margin-top:30px !important;
    margin-bottom:24px !important;
  }

  #louvreTab .louvre-item p{
    max-width:100%;
    box-sizing:border-box;
  }

  #louvreTab .louvre-item img{
    max-width:100% !important;
    width:auto !important;
    height:auto !important;
  }

  #louvreTab .flex_test-box{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:hidden;
  }

  #louvreTab .flex_test-item{
    max-width:100%;
    box-sizing:border-box;
    margin-left:0;
    margin-right:0;
  }
}

/* ルーヴル展示：複数写真の並びだけ中央揃え（文章の揃え方は変更しない） */
#louvreTab .flex_test-box{
  justify-content:center;
}


/* ---------------------------------------------------------
   表の文字揃え調整
   旅行代金：料金欄を左揃え
   スケジュール：日付・発着滞在地・時間の各欄を中央揃え
   フライト：手荷物項目の見出しを中央揃え
   --------------------------------------------------------- */
.price-table tbody td{
  text-align:right !important;
}

.course-schedule tbody tr.day-row td:nth-child(2),
.course-schedule tbody tr.day-row td:nth-child(3),
.course-schedule tbody tr.day-row td:nth-child(4){
  text-align:center !important;
}

/* 日ごとの見出し（○日目・日付）は従来の左揃えを維持 */
.course-schedule .day-separator th{
  text-align:left !important;
}

.flight-table .baggage-group,
.flight-table .carryon-group{
  text-align:center !important;
}


/* スケジュール：交通欄も中央揃え */
.course-schedule tbody tr.day-row td:nth-child(5){
  text-align:center !important;
}


/* 上部タブ：文字数・改行にかかわらず高さを統一 */
.tab-4{
  align-items:stretch !important;
}
.tab-4 > label.tab-label{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  height:100% !important;
  min-height:100% !important;
  box-sizing:border-box !important;
}

/* 旅行代金：コース名は左揃え、料金は右揃え */
.price-table tbody td:nth-child(2){
  text-align:left !important;
}
