@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;700&family=Poppins:wght@300;400;700&display=swap');

:root {
  --background-color1: #fff4e6;
  --accent-color1: #fe5126;
  --accent-color2: #fff;
  --accent-color3: #feebcb;
  --green-line: #07c755;
  --grey0: #e8e8e8;
  --grey1: #c7d1d6;
  --grey2: #888;
  --grey3: #8592a6;
  --black1: #111;
  --black2: #222;
  --black3: #333;
  --black4: #444;
  --black5: #555;
  --orange-background1: #e3b593;
  --orange-background2: #ffe5d7;
  --orange-accent1: #fcead6;
  --orange-accent2: #fbd197;
  --orange-accent3: #f29b70;
}

html, body {
  font-family: 'Noto Sans TC', 'Poppins', '微軟正黑體', sans-serif;
  line-height: 1.15;
  overflow: auto;
  scroll-padding-top: 100px;
  background-color: var(--background-color1);
}

body {
  overflow: hidden !important;
  padding-right: 0 !important;
}

* {
  box-sizing: border-box;
}

@media only screen and (max-width: 960px) {
  #off-screen-menu {
    position: fixed;
    display: none;
    transition: transform 0.3s ease-in-out;
    margin-top: 80px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 140px 40px 50px;
    background-color: var(--background-color1);
    overflow: auto;
    z-index: 100;
    
  }

  #off-screen-menu.ham-active {
    display: block;
  }

  #off-screen-menu ul {
    display: block;
    margin-top: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    line-height: 1.5;
  }

  #off-screen-menu ul li {
    margin-bottom: 42.5px;
  }

  #off-screen-menu ul a {
    text-decoration: none;
    color: var(--accent-color1);
    font-size: 22px;
    
  }

  #navmenu,
  #btn-language,
  #btn-book-now,
  .ticket-container {
    display: none !important;
  }

  .top-btn {
    padding-right: 50px;
  }

  .headcount-menu-panel {
    position: fixed;
  }

  .trip-preview-left {
    width: 100%;
  }

  .price-tables {
    padding: 20px !important;
  }

  .policy {
    padding: 25px 50px;
  }

  .policy p {
    font-size: 1rem;
  }
}

@media only screen and (min-width: 960px) {
  .ham-menu,
  #off-screen-menu,
  #btn-en {
    display: none !important;
  }

  .page-section {
    width: 100%;
  }

  .policy {
    padding: 50px 150px;
  }

  .policy p {
    font-size: 1.2rem;
  }
}

.header {
  padding: 20px 0;
  z-index: 99;
  transition: all 0.5s;
  background-color: var(--background-color1);
}

#logo {
  height: calc(5vh);
  max-height: 40px;
  padding-left: 10px;
}
 
#logo-footer {
  height: calc(9vh);
  max-height: 50px;
}

.logo {
  line-height: 1;
  text-decoration: none;
  padding-left: 4px;
}

.logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 650;
  color: var(--accent-color2);
}

.logo span {
  color: var(--accent-color1);
  font-size: 24px;
  font-weight: 700;
  padding-left: 3px;
}

.navmenu ul {
  margin-bottom: 0;
}

.navmenu a {
  text-decoration: none;
  color: var(--accent-color1);
  font-size: 18px;
  font-weight: 500;
  padding: 18px 15px;
  white-space: nowrap;
  text-align: center;
}

.top-btn {
  padding-left: 20px;
}

#btn-language {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color2);
  width: 110px;
  height: 40px;
  border-radius: 8px;
  color: var(--accent-color1);
  text-decoration: none;
  margin-right: 20px;
  box-sizing: border-box;
  font-weight: 700;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.16);
}

#btn-en {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color2);
  width: 60px;
  height: 40px;
  border-radius: 8px;
  color: var(--accent-color1);
  text-decoration: none;
  margin-right: 20px;
  box-sizing: border-box;
  font-weight: 700;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.16);
}

#btn-book-now {
  width: 110px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color1);
  border-radius: 8px;
  color: var(--accent-color2);
  text-decoration: none;
  margin-right: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.16);
}

/* hamburger menu*/
.ham-menu span {
  position: absolute;
  display: inline-block;
  height: 2px;
  width: 26px;
  background-color: var(--accent-color1);
  border-radius: 2px;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: .3s ease;
}

.ham-menu span:nth-child(1) {
  top: 0;
}

.ham-menu span:nth-child(2) {
  top: 5px;
}

.ham-menu span:nth-child(3) {
  bottom: 0;
}

.ham-menu.ham-active span {
  background-color: var(--accent-color1);
  z-index: 999;
}

.ham-menu.ham-active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.ham-active span:nth-child(2) {
  opacity: 0;
}

.ham-menu.ham-active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.ham-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  height: 40px;
  width: 40px;
  border: 2px solid var(--accent-color1);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ham-menu-inner {
  position: relative;
  width: 26px;
  height: 12px;
  transition: .6s;
}

/* hamburger menu end */

main {
  margin-top: 100px;
}

/* mobile order page */
.slogan {
  display: flex;
  flex: none;
  height: auto;
  width: calc(45%);
  margin-top: -100px;
  transform-origin: center left;
  flex-wrap: nowrap;
  max-width: 370px;
  min-width: 270px;
}

.sub-title {
  margin-top: 10px;
  margin-bottom: -10px;
  color: var(--accent-color1);
  font-size: 1.2rem;
  font-weight: 550;
  letter-spacing: 2px;
}　

.outer-wrapper {
  margin-top: 80px;
  position: relative;
  
}

#ferry-search {
  background-color: var(--accent-color2);
  border-radius: 10px;
  box-shadow: 0 4px 35px rgba(0,0,0,.1);
}

.mobile-order-panel {
  border-radius: 8px;
  padding: 20px 0 0 0;
  position: relative;
  justify-content: center;
  width: 340px;
  margin-bottom: 80px;
}

.mobile-panel-header {
  position: relative;
	border-radius: 10px 10px 0 0;
	color: var(--accent-color2);
	background-color: var(--accent-color1);
  font-size: 1.125rem
}

.mobile-panel-header ul {
  flex-wrap: wrap;
  margin: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile-panel-header ul li {
  width: 25%;
  text-wrap: nowrap;
  position: relative;
  padding: 1rem;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  background-color: var(--accent-color1);
}

.mobile-panel-header ul li::before {
  position: absolute;
  inset: 0;
  background-color: transparent;
  transition: background-color 0.3s ease;
  border-radius: 10px 10px 0 0;
}

.mobile-panel-header ul .active {
  background-color: var(--accent-color2);
  color: var(--accent-color1);
  border-radius: 10px 10px 0 0;
  transition: 0.3s;
  height: 100%;
  width: 25%;
}

.mobile-panel-footer {
  position: relative;
  padding: 20px 0;
  border-radius: 0 0 10px 10px;
  color: var(--accent-color1);
  background-color: var(--accent-color1);
}

#ferry-search-body {
  position: relative;
  position: relative;
	border-bottom: 1px dashed var(--grey1);
  padding: 20px 20px;

	&:before,
	&:after {
		content: '';
		position: absolute;
		top: 100%;
		width: 16px;
		height: 16px;
		border-radius: 8px;
		background-color: var(--background-color1);
	}

	&:before {
		right: 100%;
		transform: translate(8px, -8px);
	}

	&:after {
		left: 100%;
		transform: translate(-8px, -8px);
	}
}

.mobile-panel-bottom {
  background-color: var(--accent-color2);
}

.mobile-panel-bottom div {
  padding: 20px 35px;
}

#order-btn {
  background-color: var(--accent-color2);
  color: var(--black3);
}

.custom-span,
.date-label {
  color: var(--grey2);
  margin-bottom: -9px;
}

.custom-panel,
.custom-panel input {
  width: 100%;
  border: 2px solid var(--orange-accent2);
  color: var(--black3);
  border-radius: 20px;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
}

.date-selection div:first-child {
  margin-right: 20px;
}

#show-available-ports {
  font-size: 1.125rem;
}

#show-ports,
body.modal-open .header {
  padding-right: 0 !important;
}

.port-list {
  border-radius: 8px;
  width: 80%;
  margin: auto;
  font-size: 1.25rem;
}

.list-group-item {
  padding: 0.5rem 1rem;
  border: 1px solid var(--grey0)
}

.list-group-item:hover,
.list-group-item:focus {
  background-color: var(--background-color1);
  color: var(--accent-color1);
}

/* end of mobile order page */

/* one-way or round trip button */
.switch-button {
  display: flex;
  flex-direction: column;
  margin: auto;
  text-align: center;
  width: 100%;
}

.custom-label,
.toggle {
  height: 2.5rem;
  border-radius: 100px;
}

.custom-label {
  width: 100%;
  background-color: var(--background-color1);
  border-radius: 100px;
  position: relative;
  margin: 1.25rem 0 1.25rem 0; 
  cursor: pointer;
  display: block;
}

.toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  background-color: var(--accent-color2);
  box-shadow: 0 2px 15px rgba(0,0,0,.15);
  transition: transform .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.disabled {
  background-color: var(--grey4);
}

.names {
  font-size: 90%;
  font-weight: bolder;
  width: 65%;
  margin-left: 17.5%;
  line-height: 2.5rem;
  margin-top: .5%;
  position: absolute;
  display: flex;
  justify-content: space-between;
  user-select: none;
  
}

#round-trip {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#one-way {
  opacity: .5;
  transition: opacity 0.3s ease;
}

[type="checkbox"]#switch {
  display: none;
}

#switch:checked + .switch-button .toggle {
  transform: translateX(100%);
  background-color: var(--accent-color2); 
}

#switch:checked + .switch-button .names #one-way {
  opacity: 1; 
}

#switch:checked + .switch-button .names #round-trip {
  opacity: .5; 
}

/* end of one-way or round trip button */

/* headcount-menu */
.headcount-trigger-button,
.trigger-button {
  gap: 8px;
  transition: background-color 0.2s ease;
}

.headcount-trigger-button:hover,
.trigger-button:hover,
.headcount-trigger-button:focus,
.trigger-button:focus,
#order-btn:hover {
  background-color: var(--accent-color1);
  color: var(--accent-color2);
  outline: none;
}

.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.headcount-menu-panel {
  width: 450px;
  max-width: 450px;
  max-height: 90vh;
  background: var(--accent-color2);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  overflow: hidden;
  z-index: 101;
}

@media (max-width: 576px) {
  .headcount-menu-panel {
    width: 100%;
    max-width: 100%;
  }  

}

.panel-content {
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.hidden {
  display: none !important;
}

.headcount-menu {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 4px;
}

.headcount-menu ul {
  padding: 0;
  margin: 0;
}

.headcount-menu > ul > li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  padding: 10px 2px;
  border-bottom: 1px solid var(--grey1);
}

.headcount-menu > ul > li:last-child {
  border-bottom: none;
}

.headcount-input {
  border-bottom: 1px solid var(--grey1);
  padding: 12px 16px;
  font-size: 1.125rem;
  gap: 5px;
  flex-shrink: 0;
}

.ticket-type {
  flex-direction: column;
  line-height: 1.3;
}

.ticket-type span:last-child {
  font-size: 12px;
  color: var(--grey3);
  margin-top: 4px;
}

.number-button {
  gap: 5px;
}

.number-button .btn {
  font-size: 1.5rem;
  color: var(--accent-color1);
  padding: 0 4px;
  line-height: 1;
  text-decoration: none;
}

.number-button .btn[disabled] {
  color: var(--grey1);
  pointer-events: none;
}

.number-count {
  width: 32px;
  display: inline-block;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1;
}

.submit-button {
  justify-content: flex-end;
  display: flex;
  margin-top: 16px;
  padding: 16px;
  border-top: 1px solid var(--grey1);
  flex-shrink: ;
}

.submit-button .btn,
.port-confirm-btn {
  background: var(--accent-color1);
  color: var(--accent-color2);
  width: 110px;
  height: 40px; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 8px;
  padding: 0 20px;
  border: none;
}

.submit-button .btn:hover {
  background: darken(var(--accent-color1), 10%);
  color: var(--accent-color1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* contact page */
.line-contact {
  width: 700px;
  max-width: 80%;
  height: 200px;
  background-color: var(--green-line);
  border: 8px solid var(--accent-color2);
  border-radius: 50px;
  position: relative;
}

.line-icon {
  width: 300px;
  height: 300px;
  border: 10px solid var(--green-line);
  border-radius: 100%;
  margin-right: 32px;
  margin-left: 56px;
  background-color: var(--accent-color2);
  flex-shrink: 0;
}

/* order page */
.page-section {
  padding: 0 43.5px 0 43.5px;
}

.page-title h1 {
  font-weight: 600;
  line-height: 1.6;
  color: var(--accent-color1);
}

.custom-title {
  border-bottom: 2px solid var(--grey2);
}

.order-inner {
  flex-direction: column;
}

.trip-preview-left {
  background-color: var(--accent-color2);
  border-radius: 40px;
  padding: 64px 40px;
}

.preview-title {
  font-size: 25px;
  line-height: 1.6;
  padding-bottom: 30px;
  border-bottom: 2px solid #222;
  font-weight: 550;
}

.iti {
   width: 100%; 
}

.custom-input {
  display: flex;
  align-items: center;
  font-weight: 550;
  margin-top: 15px;
  box-sizing: border-box;
}

.custom-input > label {
  position: relative;
  width: 160px;
  padding: 8px 0 8px 40px;
  font-size: 1.25rem;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

.custom-input > input,
.custom-input > div > input{
  width: 75%;
  border: 2px solid var(--grey2);
  border-radius: 4px; 
  padding: 4px 20px;
  margin-left: 40px;
  line-height: 1.97;
}

.custom-input > .e-mail > input:last-child {
  margin-left: 10px;
}

.custom-input > .iti {
  width: 75%;
  display: flex;
  align-items: stretch;
  margin-left: 40px;
  
}

.custom-input > .iti input[type="tel"] {
  width: 100%;
  padding: 4px 20px;
  border: 2px solid var(--grey2);
  border-radius: 4px; 
  transition: border-color 0.2s ease-in-out;
  line-height: 1.97;
  height: auto;
}

.custom-input > input:hover,
.custom-input > .iti input[type="tel"]:hover,
.custom-input > div > input:hover {
  border: 2px solid var(--grey0);
  transition: border-color 0.2s ease-in-out;
}

.e-mail {
  width: 78.5%;

}
/* end of order page */

/* prices page */
.title-top {
  color: var(--accent-color1);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.route-selection {
  margin-top: 2%;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  max-width: 1050px;
}

.route-selection a{
  text-decoration: none;
  font-weight: 600;
  color: var(--black2);
  padding: 20px 40px;
  border-left: 1px solid #e9e9e9;
  font-size: 1.25rem;
  white-space: nowrap;
}

.route-selection li:last-child a{
  border-right: 1px solid #e9e9e9;
}

.title-image {
  height: 230px;
  margin-bottom: -85px;
  margin-top: -80px;
}

.price-tables {
  background-color: var(--accent-color2);
  border-radius: 25px;
  padding: 50px;
  margin: 0 0.5rem 3rem 0.5rem;
}

.caption-top {
  color: var(--black4);
  text-align: center;
  padding-top: 25px;
}

.triangle-description {
  color: var(--accent-color1);
  margin-top: 10px;
  font-size: 1rem;
  text-align: center;
}

.table>:not(caption)>*>* {
  color: var(--accent-color1);
  text-align: center;
}

/* end of prices page */

/* support page */
.contact-methods li {
  padding: 40px 20px;
  text-align: center;
  background-color: var(--accent-color2);
  border-radius: 24px;
  margin-bottom: 40px;
}

.contact-methods li i {
  font-size: 50px;
  color: var(--accent-color1);
}

.contact-methods h3 {
  color: var(--accent-color1);
  font-size: 2rem;
  line-height: 2;
  font-weight: 550;
  margin-bottom: 0;
}

.contact-info {
  color: var(--black5);
  font-size: clamp(20px, 23px, 28px);
  font-weight: 550;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.crop {
  height: 250px;
  width: 100%;
  overflow: hidden;
}

.crop img {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: center;
  transform: scale(1.8);
  margin-top: -25px;
  z-index: -1;
}

.line-id {
  display: block;
  margin-top: -50px;
  position: relative;
  z-index: 1;
}
/* end of support page */

/* policy page */
.policy {
  background-color: var(--accent-color2);
  border-radius: 25px;
  margin: 3rem 0.5rem;
}

.policy p {
  line-height: 1.5;
  
}

.terms h3 {
  line-height: 1.5;
  padding-left: 30px;
  border-bottom: 1px solid var(--grey1);
  font-size: 1.5rem;
  margin-bottom: 35px;
  margin-top: 50px;
  padding-bottom: 30px;
  position: relative;
}

.terms span {
  position: absolute;
  vertical-align: top;
  font-size: 1rem;
  letter-spacing: .03em;
  left: 0;
  top: 0;
  color: var(--accent-color1);
  font-weight: 600;
}

.terms ol,
.terms ul {
  margin-left: 3rem;
}

.terms ol li, 
.terms ul li {
  letter-spacing: 0.05rem;
  line-height: 1.7;
  margin-right: 3rem;
  font-size: 1.05rem;
}

.terms ol li::marker,
.terms ul li::marker {
  color: var(--accent-color1);
}

.custom-link {
  text-decoration: none;
  color: var(--accent-color1);;
}

.custom-link:hover {
  opacity: 0.5;
}
/* end of policy page */

/* tooltip */
.tooltip {
        position: absolute;
        background-color: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        display: none;
        z-index: 10000;
      }
/* footer */
.wave {
  position: relative;
  left: 0;
  width: 100%;
  height: 47px;
  background-size: 170px;
  background-repeat: repeat-x;
}

.wave-top {
  top: 47px;
  background-image: url('/images/nami-blue.png');
  
}

footer {
  background-color: var(--accent-color1);
  width: 100%;
  display: block;
}

.footer-bottom {
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom ul {
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
}

.footer-bottom ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-color2);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.7px;
  line-height: 1.5;
}

.social-icons li a {
  color: var(--accent-color2);
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
}

.social-icons li a i:last-child {
  margin-left: 20px;
}

.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links a,
.copy-right {
  color: var(--accent-color2);
  text-decoration: none;
  overflow: hidden;
  line-height: 1.2;
  letter-spacing: 0.7px;
  font-size: 0.9rem;
}

.footer-links li:not(:last-child) {
  border-right: 1px solid var(--accent-color2);
  padding-right: 0.6em;
  
}

.tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  display: none;
}

#sign {
  width: 100%;
}

.custom-close {
  position: absolute;
  right: 5px;
  top: 20px;
}

.test {
  border: 2px solid red;
}
