/* ==================================================
   ROOT
================================================== */

:root {

  /* Fonts */
  --font-base:
    "Noto Sans JP",
    sans-serif;

  --font-en:
    "Montserrat",
    sans-serif;


  /* Colors */
  --color-white: #FFFFFF;
  --color-bg-light: #F7F5F0;

  --color-blue: #0788E8;
  --color-blue-dark: #0474C7;
  --color-button: #004E98;

  --color-text: #333333;
  --color-border: #D5D5D5;


  /* Layout */
  --inner-width: 1200px;
  --section-space: clamp(80px, 8vw, 120px);


  /* Transition */
  --transition: 0.3s ease;

}


/* ==================================================
   RESET
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--color-text);
  background-color: var(--color-white);

  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;

  line-height: 1.8;

  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  display: block;

  max-width: 100%;
  height: auto;
}

a {
  color: inherit;

  text-decoration: none !important;
}

button {
  margin: 0;
  padding: 0;

  color: inherit;
  background: none;

  border: 0;

  font: inherit;

  cursor: pointer;
}

input,
textarea,
select,
button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;

  list-style: none;
}


/* ==================================================
   COMMON INNER
================================================== */

.common-inner {
  width: min(
    calc(100% - 80px),
    var(--inner-width)
  );

  margin-inline: auto;
}


/* ==================================================
   COMMON SECTION
================================================== */

.common-section {
  padding-block: var(--section-space);
}


/* ==================================================
   FONT
================================================== */

.en-font {
  font-family: var(--font-en);
}


/* ==================================================
   COMMON HEAD
================================================== */

.common-head {
  width: 100%;
}

.common-head__jp {
  display: flex;
  align-items: center;

  gap: 6px;

  margin-bottom: 4px;
}

.common-head__jp p {
  margin: 0;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;

  line-height: 1.4;
}

.common-head__deco {
  display: block;

  width: 24px;
  height: auto;
}

.common-head__en {
  display: flex;
  align-items: center;

  margin: 0;

  color: var(--color-button);

  font-family: var(--font-en);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 700;

  line-height: 1;
  letter-spacing: -0.01em;

  overflow: hidden;
}


/* ==================================================
   H2 LETTER ANIMATION
================================================== */

.common-head__char {
  display: inline-block;

  opacity: 0;

  transform: translateY(100%);

  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);

  transition-delay:
    calc(var(--char-index) * 0.07s);
}

.common-head.is-active
.common-head__char {
  opacity: 1;

  transform: translateY(0);
}

.common-head__space {
  display: inline-block;

  width: 0.35em;
}


/* ==================================================
   COMMON BUTTON
================================================== */

.common-button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  min-width: 220px;
  min-height: 52px;

  padding:
    0
    24px;

  color: var(--color-white);
  background-color: var(--color-button);

  border-radius: 14px;

  overflow: hidden;

  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;

  line-height: 1.4;

  text-decoration: none;

  transition:
    background-color var(--transition),
    opacity var(--transition);
}


/* ==================================================
   BUTTON TEXT AREA
================================================== */

.common-button__texts {
  position: relative;

  display: block;

  height: 1.5em;

  overflow: hidden;
}

.common-button__text {
  display: block;

  height: 1.5em;

  line-height: 1.5em;

  transition:
    transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.common-button__text:nth-child(2) {
  position: absolute;

  top: 100%;
  left: 0;

  width: 100%;
}


/* ==================================================
   BUTTON ARROW
================================================== */

.common-button__arrow {
  display: block;

  flex-shrink: 0;

  width: 16px;
  height: 16px;

  background-image: url("https://marinebase.jp/system_panel/uploads/images/btn-arrow.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  font-size: 0;
  line-height: 0;

  transition:
    transform 0.4s ease;
}


/* ==================================================
   BUTTON HOVER
================================================== */

@media (hover: hover) {

  .common-button:hover {
    background-color: var(--color-blue-dark);
  }

  .common-button:hover
  .common-button__text:first-child,
  .common-button:hover
  .common-button__text:nth-child(2) {
    color: var(--color-white);

    transform: translateY(-100%);
  }

  .common-button:hover
  .common-button__arrow {
    transform: translateX(5px);
  }

}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {

  .common-inner {
    width: min(
      calc(100% - 48px),
      var(--inner-width)
    );
  }

}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 768px) {

  :root {
    --section-space: 70px;
  }


  /* Base
  ---------------------------------------- */

  body {
    font-size: 14px;
  }


  /* Inner
  ---------------------------------------- */

  .common-inner {
    width: calc(100% - 40px);
  }


  /* Heading
  ---------------------------------------- */

  .common-head__jp {
    margin-bottom: 5px;
  }

  .common-head__jp p {
    font-size: 10px;
  }

  .common-head__deco {
    width: 20px;
  }

  .common-head__en {
    font-size: clamp(38px, 12vw, 52px);
  }


  /* Button
  ---------------------------------------- */

  .common-button {
    gap: 10px;

    min-width: 200px;
    min-height: 50px;

    padding:
      0
      22px;

    font-size: 13px;
  }

  .common-button__arrow {
    width: 14px;
    height: 14px;
  }

}