:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.55;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
button, summary { font: inherit; }
::selection { background: var(--accent); color: var(--button-ink); }

body {
  --headline: Inter, system-ui, sans-serif;
  --canvas: #f8f6ef;
  --sheet: #fffdf8;
  --ink: #112f31;
  --muted: #41585a;
  --rule: #cbd7d0;
  --accent: #f89546;
  --button-ink: #192b2a;
  --contact-bg: #133638;
  --contact-muted: #bed2ce;
  --focus: #11716e;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
}

body.fleet {
  --headline: "Playfair Display", Georgia, "Songti SC", "Yu Mincho", serif;
  --canvas: #f6f3eb;
  --sheet: #fdfbf6;
  --ink: #132441;
  --muted: #495671;
  --rule: #d9d2c4;
  --accent: #e6c368;
  --button-ink: #131e33;
  --contact-bg: #132441;
  --contact-muted: #c9d0df;
  --focus: #325286;
}
main { flex: 1; }
.wrap { width: min(calc(100% - 96px), 1320px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }

.skip {
  position: absolute;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--sheet);
  color: var(--ink);
  transform: translateY(calc(-100% - 1.5rem));
}
.skip:focus { transform: none; }

.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); position: relative; z-index: 2; }
.header-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(24px, 4vw, 72px); min-height: 83px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-size: 1.07rem; font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; overflow: hidden; border-radius: 50%; }
.shipman .brand-mark { background: #e9f1eb; border: 1px solid #89a9a5; }
.shipman .brand-mark img { width: 20px; height: 30px; }
.fleet .brand-mark img { width: 46px; height: 46px; }
.header-inner nav { display: flex; gap: clamp(16px, 3vw, 44px); }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 600; text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { text-decoration: underline; }
.language { position: relative; font-size: .86rem; font-weight: 650; }
.language summary { min-height: 44px; min-width: 56px; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; gap: .55rem; padding-inline: .65rem; cursor: pointer; list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.language summary::after { content: ""; width: .36rem; height: .36rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.12rem) rotate(45deg); }
.language[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.language ul { z-index: 2; position: absolute; top: 100%; right: 0; min-width: 150px; margin: .4rem 0 0; padding: .3rem; list-style: none; border: 1px solid var(--rule); background: var(--sheet); box-shadow: 0 12px 30px #0b20321a; }
.language li a { display: flex; min-height: 42px; align-items: center; padding: .3rem .7rem; text-decoration: none; white-space: nowrap; }
.language li a:hover, .language li a[aria-current] { background: var(--canvas); text-decoration: underline; }

h1, h2, h3 { font-family: var(--headline); text-wrap: balance; }
h1 { font-size: clamp(3.05rem, 5.65vw, 5.65rem); letter-spacing: -.057em; line-height: .99; font-weight: 760; }
h2 { font-size: clamp(2.05rem, 3.55vw, 3.7rem); letter-spacing: -.048em; line-height: 1.06; font-weight: 740; }
h3 { font-size: clamp(1.23rem, 2vw, 1.65rem); letter-spacing: -.04em; line-height: 1.22; font-weight: 730; }
.shipman .hero h1 { letter-spacing: -.042em; }
.fleet :is(h1, h2, h3) { font-weight: 600; letter-spacing: -.035em; }
:lang(ja) :is(h1,h2,h3), :lang(zh) :is(h1,h2,h3), :lang(ko) :is(h1,h2,h3) { letter-spacing: -.02em; line-height: 1.22; }

.hero { position: relative; }
.hero-layout { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; min-height: 595px; gap: clamp(20px, 4vw, 76px); padding-block: 50px; }
.hero-copy { position: relative; z-index: 1; }
.location { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.35rem; color: var(--muted); font-size: .78rem; font-weight: 730; letter-spacing: .13em; text-transform: uppercase; }
.location span { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #da6d27; }
.hero-intro { font-size: clamp(1.08rem, 1.6vw, 1.36rem); max-width: 37ch; margin-top: 1.45rem; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 2rem; }
.button, .plain-link { display: inline-flex; gap: .75rem; align-items: center; justify-content: center; min-height: 51px; padding: .65rem 1.05rem; text-decoration: none; font-size: .94rem; font-weight: 730; }
.button { background: var(--accent); color: var(--button-ink); border: 1px solid transparent; }
.button:hover { background: color-mix(in srgb, var(--accent), white 23%); }
.button span { font-size: 1.12em; }
.plain-link { padding-inline: .25rem; white-space: nowrap; }
.plain-link:hover { text-decoration: underline; }
.hero-photo { position: relative; align-self: stretch; min-height: 410px; overflow: hidden; background: #1b5559; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 45%; }
.shipman .hero-photo { border-bottom: 8px solid #f18235; }
.shipman .hero-photo::after { content: ""; position: absolute; bottom: 0; right: 0; width: 24%; height: 6px; background: #76b5ae; }
.shipman .hero { border-bottom: 1px solid var(--rule); }

.fleet .hero { background: #12213a; color: #fffdf5; isolation: isolate; border-bottom: 6px solid #d1a84c; }
.fleet .hero-layout { min-height: 610px; grid-template-columns: minmax(0, 685px) minmax(0, 1fr); padding-block: 78px; }
.fleet .hero-copy { max-width: 665px; }
.fleet .hero-photo { position: absolute; z-index: -1; inset: 0; background: #12213a; }
.fleet .hero-photo img { object-position: 56% 52%; }
.fleet .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1730 1%, #0b1730e8 26%, #0b17309c 53%, #0b17301c 85%), linear-gradient(0deg, #0b173055, transparent 46%); }
.fleet .hero h1 { font-size: clamp(3.25rem, 6.25vw, 6rem); text-wrap: initial; }
.fleet .hero-intro { color: #f1efe7; max-width: 34ch; }
.fleet .location { color: #f0cd82; }
.fleet .location span { border-radius: 0; transform: rotate(45deg); background: #f0cd82; }
.fleet .hero :focus-visible, .contact :focus-visible { outline-color: #fff4b9; }

.section { padding-block: clamp(54px, 7vw, 104px); }
.services { background: var(--sheet); }
.services-grid { margin-top: clamp(23px, 3.5vw, 49px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service { padding: clamp(20px, 2.8vw, 40px); min-width: 0; background: var(--canvas); border: 1px solid var(--rule); border-top: 3px solid #77a5a0; }
.service p { color: var(--muted); margin-top: .8rem; max-width: 49ch; }
.fleet .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--rule); }
.fleet .service { background: none; border: 0; border-left: 1px solid var(--rule); }
.fleet .service:first-child { border-left: 0; padding-left: 0; }

.about { border-top: 1px solid var(--rule); }
.about-layout { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(24px, 5vw, 85px); }
.about-copy p { color: var(--muted); font-size: 1.075rem; margin-top: 1.25rem; max-width: 48ch; text-wrap: pretty; }
.about-image { background: #fff; border: 1px solid var(--rule); padding: clamp(7px, 1.8vw, 26px); }
.shipman .about-image { border-bottom: 5px solid transparent; border-image: linear-gradient(90deg, #f18235 76%, #76b5ae 76%) 1; border-image-width: 0 0 5px; }
.about-image img, .contact-card-image img { width: 100%; height: auto; }

.contact { background: var(--contact-bg); color: #fffdf7; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; }
.contact-layout .button { margin-top: 1.3rem; }
.contact-list { display: grid; gap: 0; min-width: 0; }
.contact-list div { display: grid; grid-template-columns: minmax(110px, .65fr) minmax(0, 1.35fr); gap: 10px; padding: .75rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.contact-list div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); font-size: .885rem; }
.contact-list dd { font-weight: 680; overflow-wrap: anywhere; }
.contact-list a { display: inline-flex; align-items: center; min-height: 30px; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact .contact-list dt { color: var(--contact-muted); }
.contact .contact-list div { border-color: #ffffff4a; }

.site-footer { background: var(--sheet); border-top: 1px solid var(--rule); color: var(--muted); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; min-height: 78px; padding-block: 14px; font-size: .85rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 32px; margin-inline-start: auto; }
.footer-name { color: var(--ink); font-weight: 680; }

.contact-page .section { padding-top: clamp(30px, 4vw, 64px); }
.breadcrumb { display: inline-flex; align-items: center; min-height: 42px; gap: .45rem; margin-bottom: .7rem; color: var(--muted); }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); background: var(--sheet); }
.contact-card-copy { padding: clamp(26px, 4vw, 65px); }
.contact-card-copy h1 { font-size: clamp(2.35rem, 5vw, 4.85rem); margin-bottom: 1.65rem; }
.contact-card-copy .button { margin-top: 1.25rem; }
.contact-card-image { display: grid; place-items: center; align-self: stretch; background: #fff; border-left: 1px solid var(--rule); padding: clamp(10px, 2vw, 34px); }
.missing .button { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 64px), 1320px); }
  .hero-layout { min-height: 515px; gap: 24px; }
  .hero-photo { min-height: 365px; }
  h1 { font-size: clamp(2.65rem, 6.35vw, 4rem); }
  .fleet .hero-layout { min-height: 525px; grid-template-columns: minmax(0, 1fr); }
  .contact-card { grid-template-columns: 1.1fr .9fr; }
  .contact-list div { grid-template-columns: minmax(72px, .54fr) minmax(0, 1.46fr); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; min-height: 0; padding-block: 9px 0; }
  .brand { gap: 8px; min-height: 44px; }
  .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .shipman .brand-mark img { width: 16px; height: 25px; }
  .fleet .brand-mark img { width: 36px; height: 36px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; gap: 8px 21px; flex-wrap: wrap; }
  .header-inner nav a { font-size: .84rem; min-height: 39px; }
  .language { grid-column: 2; grid-row: 1; }

  .hero-layout { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 27px; padding-block: 40px 20px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.55; }
  .location { margin-bottom: .85rem; }
  h1 { font-size: clamp(2.47rem, 10vw, 4rem); }
  .hero-intro { margin-top: 1rem; }
  .hero-actions { margin-top: 1.25rem; gap: .2rem .85rem; }
  .fleet .hero-layout { min-height: 0; padding-block: 0 32px; }
  .fleet .hero h1 { font-size: clamp(2.62rem, 10.4vw, 4rem); }
  .fleet .hero-photo { position: relative; order: -1; z-index: auto; margin-inline: -18px; aspect-ratio: 1.9; }
  .fleet .hero-photo img { object-position: center 58%; }
  .fleet .hero-photo::after { background: linear-gradient(0deg, #12213a 0%, transparent 34%); }
  .services-grid, .fleet .services-grid, .about-layout, .contact-layout, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .fleet .services-grid { border: 0; }
  .fleet .service, .fleet .service:first-child { padding-inline: 0; border: 0; border-top: 1px solid var(--rule); }
  .fleet .service:last-child { border-bottom: 1px solid var(--rule); }
  .about-layout { gap: 23px; }
  .contact-layout { gap: 21px; }
  .contact-card-image { border: 0; border-top: 1px solid var(--rule); }
  .contact-card-copy { padding: 18px; }
  .footer-inner a { margin-inline-start: 0; }
}

@media (max-width: 365px) {
  .header-inner nav { gap: 5px 12px; }
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: .5rem; }
}
