@charset "utf-8";

/* ===================================================================
   五島汽船株式会社 - Responsive Stylesheet
   Breakpoint: 768px (PC/SP toggle)
   =================================================================== */

/* --- Tablet (1024px and below) --- */
@media screen and (max-width: 1060px) {
  .center-area {
    width: 100%;
    padding: 0 15px;
  }

  .header-wrap {
    min-width: 100%;
  }

  #header {
    width: 100%;
    background-size: cover;
  }

  .slider-container {
    width: 100%;
    max-width: 100%;
  }
}

/* --- Mobile (768px and below) --- */
@media screen and (max-width: 768px) {

  /* Body */
  html, body {
    font-size: 14px;
  }

  #wrapper {
    font-size: 14px;
  }

  .center-area {
    width: 100%;
    padding: 0 12px;
  }

  /* --- Header Mobile --- */
  .header-wrap {
    min-width: 100%;
    background-size: cover;
    background-position: center top;
  }

  .slider-container {
    width: 100%;
    max-width: 100%;
  }

  .header-parts {
    height: auto;
    min-height: 80px;
    background-size: cover;
    padding: 10px 0;
  }

  #header {
    width: 100%;
    height: auto;
    min-height: 80px;
    background-size: cover;
    background-position: center;
  }

  .h1-title {
    display: none;
  }

  .logo {
    position: relative;
    top: auto;
    left: auto;
    padding: 10px 15px;
  }

  .logo-text {
    font-size: 160%;
  }

  .header-phone {
    display: none;
  }

  .header-reservation {
    display: none;
  }

  .font-size-area {
    display: none;
  }

  /* --- Hamburger Menu --- */
  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    cursor: pointer;
    width: 35px;
    height: 30px;
    background: none;
    border: none;
    padding: 0;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 6px;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* --- Navigation Mobile --- */
  .menu-parts .parts-bg {
    background-image: none;
    background-color: #1a5a9c;
  }

  .nav-bar {
    display: none;
    flex-direction: column;
  }

  .nav-bar.open {
    display: flex;
  }

  .nav-bar > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-bar > li > a {
    justify-content: flex-start;
    padding: 14px 20px;
    font-size: 14px;
    border-right: none;
  }

  .nav-bar > li:first-child > a {
    border-left: none;
  }

  .nav-bar > li > ul {
    position: static;
    background-color: rgba(0,0,0,0.15);
    box-shadow: none;
  }

  .nav-bar > li > ul > li > a {
    padding-left: 35px;
  }

  /* --- Content Mobile --- */
  #middle-area .center-area {
    padding: 15px 12px;
  }

  /* Two-column to single column */
  .two-column .center-area {
    flex-direction: column;
  }

  .side-area {
    width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
    float: none;
  }

  .main-area,
  .one-column .main-area {
    width: 100%;
    margin-left: 0;
    float: none;
  }

  /* Page titles */
  .page-title {
    font-size: 24px;
    padding: 0 0 8px 0;
    margin-bottom: 12px;
    background: none;
    color: #333;
  }

  .block-title {
    font-size: 15px;
    height: 48px;
    line-height: 48px;
    padding: 0 10px 0 30px;
    background-size: 100% 48px;
    margin-bottom: 15px;
  }

  .boarding-rules .record-title {
    height: auto;
    min-height: 40px;
    line-height: 1.4;
    padding: 8px 12px;
    font-size: 13px;
    background-size: cover;
    display: flex;
    align-items: center;
  }

  /* Announcement */
  .announcement-banner {
    font-size: 130%;
    padding: 15px 0;
  }

  /* Tables: horizontal scroll wrapper */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
  }

  .data-table {
    min-width: 600px;
  }

  /* Card links stack */
  .card-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
  }

  /* Reservation Section Mobile */
  .reservation-body {
    flex-direction: column-reverse;
    align-items: center;
  }

  .reservation-info-col {
    width: 100%;
    max-width: 100%;
  }

  .reservation-photo-col {
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin: 0 auto 20px;
  }

  .reservation-photo-col img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .reservation-table {
    width: 100%;
  }

  .contact-row {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
  }

  .contact-row .port-addr {
    min-width: auto;
    font-size: 15px;
  }

  .contact-row .port-phone {
    font-size: 22px;
  }

  .card-link {
    width: 100%;
    max-width: 100%;
  }

  /* News list */
  .news-list li {
    flex-direction: column;
    gap: 5px;
  }

  /* Contact form */
  .form-submit button {
    width: 100%;
    padding: 14px 20px;
  }

  /* Footer */
  .footer-nav {
    padding: 10px 0;
  }

  .footer-nav a {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border: none;
  }

  .footer-main .center-area {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    text-align: center;
    margin-top: 15px;
  }

  .footer-qr {
    margin: 15px auto 0;
  }

  /* Scroll to top */
  .scroll-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Access Steps */
  .access-step-item {
    flex-direction: column;
    gap: 10px;
  }

  .access-step-img {
    width: 100%;
  }

  /* Fleet Gallery */
  .fleet-gallery {
    flex-direction: column;
    gap: 15px;
  }

  .fleet-gallery-item img {
    height: auto;
  }

  /* Kyotoku Gallery */
  .kyotoku-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .kyotoku-gallery-item img {
    height: 120px;
  }

  /* Contact Branch Links */
  .contact-branch-links {
    flex-direction: column;
    gap: 15px;
  }

  /* Contact Table Mobile */
  .contact-table,
  .confirm-table {
    display: block;
  }

  .contact-table tbody,
  .confirm-table tbody,
  .contact-table tr,
  .confirm-table tr {
    display: block;
    width: 100%;
  }

  .contact-table th,
  .confirm-table th {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: none;
    padding: 8px 12px;
  }

  .contact-table td,
  .confirm-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
  }

  .contact-table .input-name,
  .contact-table .input-wide,
  .contact-table .input-zip {
    width: 100%;
    margin-bottom: 6px;
  }

  .contact-table .form-example {
    margin-left: 0;
    display: block;
    margin-top: 4px;
  }

  /* Map */
  .map-container {
    padding-bottom: 75%;
  }

  /* Contact info */
  .contact-info-section .port-tel {
    font-size: 150%;
  }

  /* Slider */
  .slider-container {
    margin: 0;
  }
}

/* --- Small Mobile (480px and below) --- */
@media screen and (max-width: 480px) {
  .logo-text {
    font-size: 130%;
  }

  .announcement-banner {
    font-size: 110%;
  }

  .card-link-text {
    font-size: 100%;
  }

  .footer-company-name {
    font-size: 110%;
  }
}

/* --- PC hamburger hidden --- */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .sp-only {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
}
