/*
Theme Name: OCEAN Original
Author: OCEAN
Description: OCEAN corporate site original theme.
Version: 1.0.0
*/

:root {
  --ink: #000e0b;
  --accent: #0eb1b3;
  --accent-deep: #007b77;
  --line: rgba(14, 177, 179, 0.58);
  --soft: #e9fbfb;
  --white: #fff;
  --mincho: "Shippori Mincho", serif;
  --sans: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0;
  background: var(--white);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 16;
  background: rgba(0, 14, 11, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

body.menu-open::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

img {
  display: block;
  max-width: 70%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 74px;
  padding: 0 clamp(24px, 7vw, 108px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.logo,
.footer-logo {
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.global-nav a {
  transition: color 0.2s ease;
}

.global-nav a:hover {
  color: var(--accent);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
  padding: 5px 20px 6px;
  color: var(--white);
  text-align: center;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 300;
}

.nav-button::after {
  content: "\2709";
  font-size: 14px;
  line-height: 1;
}

.global-nav .nav-button:hover {
  color: var(--white);
  background: var(--accent-deep);
}

.menu-button {
  display: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(1120px, calc(100% - 56px));
  min-height: 820px;
  margin: 0 auto;
}

.hero-copy {
  width: min(980px, 100%);
  padding-top: 46px;
  animation: hero-copy-in 0.9s ease both;
}

.hero-title-image {
  margin: 0 0 42px;
  line-height: 1;
}

.hero-title-image img {
  width: min(980px, 100%);
}

.hero p {
  margin: 0;
  font-size: 18px;
  line-height: 2.2;
}

.hero-visual {
  position: absolute;
  top: -34px;
  right: -44px;
  width: min(66vw, 900px);
  min-width: 650px;
  max-width: none;
  opacity: 0.98;
  animation: hero-visual-in 1.1s ease 0.18s both;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-diagram.reveal {
  transform: translateX(-50%) translateY(28px);
}

.service-diagram.reveal.is-visible {
  transform: translateX(-50%) translateY(0);
}

.section-title.reveal img {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-title.reveal h2 {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.7s ease 0.12s, transform 0.7s ease 0.12s;
}

.section-title.reveal.is-visible img,
.section-title.reveal.is-visible h2 {
  opacity: 1;
  transform: translateX(0);
}

.service-mobile-list img,
.reason-grid article {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-mobile-list.is-visible img,
.reason-grid.is-visible article {
  opacity: 1;
  transform: translateY(0);
}

.service-mobile-list.is-visible img:nth-child(2),
.reason-grid.is-visible article:nth-child(2) {
  transition-delay: 0.12s;
}

.service-mobile-list.is-visible img:nth-child(3),
.reason-grid.is-visible article:nth-child(3) {
  transition-delay: 0.24s;
}

.service-mobile-list.is-visible img:nth-child(4),
.reason-grid.is-visible article:nth-child(4) {
  transition-delay: 0.36s;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-visual-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.98;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-inner {
  position: relative;
  width: min(1100px, calc(100% - 56px));
  margin: 0 auto;
}

.section-title {
  position: relative;
  margin-bottom: 58px;
}

.section-title img {
  width: 210px;
  margin-bottom: 10px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section-title span {
  margin-left: 22px;
  font-size: 18px;
  letter-spacing: 0.22em;
}

.service {
  padding-top: 64px;
}

.service-diagram {
  width: min(100vw, 1500px);
  margin: 0 0 76px 50%;
  transform: translateX(-50%);
}

.service-diagram img {
  width: 100%;
  margin: 0 auto;
}

.service-mobile-list {
  display: none;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px 104px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.service-cards article {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.service-cards h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mincho);
  font-size: 24px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.service-cards p:last-child {
  margin: 0;
  font-size: 17px;
}

.reason {
  padding-top: 142px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
}

.reason-grid article {
  min-height: 258px;
  padding: 48px 62px 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reason-grid article:nth-child(2n) {
  border-right: 0;
}

.reason-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.reason-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mincho);
  font-size: 26px;
  line-height: 1;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.reason-grid h3 {
  margin: 0 0 20px;
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.reason-grid p {
  margin: 0;
  font-size: 17px;
}

.reason-decoration {
  position: absolute;
  right: -68px;
  bottom: -134px;
  width: 310px;
  pointer-events: none;
}

.message {
  padding-top: 170px;
}

.message-inner {
  display: grid;
  grid-template-columns: 1fr 258px;
  gap: 90px;
  align-items: center;
}

.message .section-title {
  margin-bottom: 36px;
}

.message-copy .lead {
  margin: 0 0 26px;
  color: var(--accent);
  font-family: var(--mincho);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.8;
}

.message-copy p:not(.lead) {
  margin: 0 0 18px;
  font-size: 17px;
}

.portrait {
  width: 258px;
}

.company {
  padding-top: 132px;
}

.company-layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 76px;
  align-items: center;
}

.map {
  width: 330px;
  margin: 0 auto;
}

.company-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  color: var(--accent);
  font-weight: 700;
}

.company-table dd {
  margin: 0;
}

.contact {
  margin-top: 84px;
  padding: 84px 0 78px;
  color: var(--white);
  background: var(--accent);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  width: min(1100px, calc(100% - 56px));
  margin: 0 auto;
}

.contact-copy .label {
  margin: 0 0 10px;
  font-family: var(--mincho);
  font-size: 18px;
  letter-spacing: 0.22em;
}

.contact-copy h2 {
  margin: 0 0 32px;
  font-family: var(--mincho);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contact-copy .lead {
  margin: 0 0 22px;
  font-family: var(--mincho);
  font-size: 25px;
  line-height: 1.9;
}

.contact-copy p:last-child {
  max-width: 430px;
  margin: 0;
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-status {
  margin: 0 0 18px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  background: var(--white);
  border-left: 4px solid var(--accent-deep);
}

.contact-status.is-error {
  border-left-color: #d71920;
}

.contact-form label {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: start;
  font-size: 16px;
  font-weight: 700;
}

.form-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 1.8em;
  white-space: nowrap;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px 3px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: #d71920;
  border: 1px solid #d71920;
  border-radius: 2px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 2px;
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .contact-confirm {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}

.contact-form .contact-confirm input {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent-deep);
}

.contact-form button {
  width: 100%;
  margin-top: 18px;
  padding: 12px 20px;
  color: var(--white);
  font-weight: 700;
  background: var(--accent-deep);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.site-footer {
  position: relative;
  display: grid;
  gap: 24px;
  width: min(1100px, calc(100% - 56px));
  margin: 0 auto;
  padding: 48px 0 26px;
}

.site-footer p {
  margin: 0;
  color: var(--accent);
  font-size: 17px;
  line-height: 2;
}

.site-footer .footer-logo {
  margin-bottom: 20px;
  color: var(--accent);
}

.site-footer small {
  display: block;
  padding-top: 18px;
  color: var(--accent);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.page-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  background: #18b40d;
}

@media (max-width: 900px) {
  .site-header {
    height: 64px;
    padding: 0 20px;
  }

  .global-nav {
    position: fixed;
    top: 64px;
    right: 18px;
    z-index: 18;
    display: grid;
    gap: 0;
    width: min(260px, calc(100vw - 36px));
    padding: 18px 0;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(0, 14, 11, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    backdrop-filter: blur(12px);
  }

  .global-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(14, 177, 179, 0.18);
  }

  .global-nav a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
  }

  .global-nav a:last-child {
    border-bottom: 0;
  }

  .global-nav .nav-button {
    justify-content: space-between;
    min-width: 0;
    margin: 12px 16px 0;
    padding: 0 18px;
    color: var(--white);
    background: var(--accent);
    border-bottom: 0;
    border-radius: 2px;
  }

  .global-nav .nav-button::after {
    content: "\2709";
    width: auto;
    height: auto;
    border: 0;
    transform: none;
  }

  body.menu-open .global-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 19;
  }

  body.menu-open .menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .hero-inner {
    min-height: 390px;
  }

  .hero-inner,
  .section-inner,
  .contact-inner,
  .site-footer {
    width: min(100% - 36px, 680px);
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 178px;
  }

  .hero-copy {
    width: 100%;
    padding-top: 0;
  }

  .hero-title-image {
    margin-bottom: 16px;
  }

  .hero-title-image img {
    width: min(620px, 94vw);
  }

  .hero p {
    font-size: 13px;
  }

  .hero-visual {
    top: 48px;
    right: 0;
    width: 390px;
    min-width: 0;
    opacity: 0.78;
    transform: translateX(30px);
  }

  .section {
    padding: 78px 0;
  }

  .service {
    padding-top: 78px;
  }

  .section-title {
    margin-bottom: 38px;
  }

  .section-title img {
    width: 170px;
  }

  .section-title h2 {
    font-size: 29px;
  }

  .section-title span {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
  }

  .service-diagram {
    display: none;
  }

  .service-mobile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 18px 14px;
    width: min(330px, 100%);
    margin: 0 auto 42px;
  }

  .service-mobile-list img {
    width: min(150px, 42vw);
    max-width: none;
    margin: 0 auto;
  }

  .service-cards,
  .reason-grid,
  .message-inner,
  .company-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .service-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
    width: min(640px, 100%);
    text-align: left;
  }

  .service-cards article {
    width: auto;
  }

  .service-cards h3 {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .service-cards p:last-child {
    font-size: 13px;
    line-height: 1.8;
  }

  .reason-grid article,
  .reason-grid article:nth-child(2n),
  .reason-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reason-grid article:last-child {
    border-bottom: 0;
  }

  .reason-grid article {
    min-height: 0;
    padding: 38px 28px;
  }

  .reason-decoration {
    right: -120px;
    bottom: -90px;
    width: 250px;
    opacity: 0.62;
  }

  .message {
    padding-top: 108px;
  }

  .message-inner {
    gap: 38px;
  }

  .portrait {
    display: none;
  }

  .company-layout {
    gap: 38px;
  }

  .map {
    display: none;
  }

  .company-table div {
    grid-template-columns: 92px 1fr;
    gap: 18px;
  }

  .contact {
    margin-top: 38px;
    padding: 60px 0;
  }

  .contact-inner {
    gap: 40px;
  }

  .contact-form label {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .logo,
  .footer-logo {
    font-size: 18px;
  }

  .hero,
  .hero-inner {
    min-height: 360px;
  }

  .hero-title-image img {
    width: min(430px, 96vw);
  }

  .hero-break-desktop {
    display: none;
  }

  .hero-break-always {
    display: inline;
  }

  .hero p {
    font-size: 12px;
  }

  .hero-visual {
    top: 46px;
    right: 0;
    width: 340px;
    transform: translateX(24px);
  }

  .service {
    padding-top: 78px;
  }

  .service-mobile-list {
    width: min(316px, 100%);
    gap: 16px 12px;
  }

  .service-mobile-list img {
    width: min(142px, 41vw);
  }

  .section-title h2 {
    font-size: 25px;
  }

  .section-title span {
    display: block;
    margin: 8px 0 0;
  }

  .service-cards h3 {
    font-size: 17px;
  }

  .service-cards p:last-child {
    font-size: 12px;
  }

  .reason-grid h3 {
    font-size: 20px;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
