/*
Theme Name: Corporate 2025
Description: コーポレートサイト向けWordPressテーマ
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: corporate2025
*/

/* roboto-condensed-regular - latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/roboto-condensed-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* roboto-condensed-500 - latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 500;
  src: url('./assets/roboto-condensed-v31-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* roboto-condensed-600 - latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('./assets/roboto-condensed-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* roboto-condensed-700 - latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('./assets/roboto-condensed-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 700;
  src: url('./assets/roboto-condensed-v31-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* roboto-condensed-800 - latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 800;
  src: url('./assets/roboto-condensed-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* roboto-condensed-900 - latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 900;
  src: url('./assets/roboto-condensed-v31-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* noto-sans-jp-regular - japanese */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/noto-sans-jp-v55-japanese-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* noto-sans-jp-500 - japanese */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  src: url('./assets/noto-sans-jp-v55-japanese-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* noto-sans-jp-600 - japanese */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 600;
  src: url('./assets/noto-sans-jp-v55-japanese-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* noto-sans-jp-700 - japanese */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  src: url('./assets/noto-sans-jp-v55-japanese-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* noto-sans-jp-800 - japanese */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 800;
  src: url('./assets/noto-sans-jp-v55-japanese-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

/* noto-sans-jp-900 - japanese */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 900;
  src: url('./assets/noto-sans-jp-v55-japanese-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
}

:root {
  --color-black: #11151d;
  --color-white: #fff;
  --color-gray: #7e9099;
  --color-light-gray: #d2d3d4;
  --color-gray-bg: #f8f9f9;
  --color-accent: #a70043;
  --color-main: #7b3448;
  --color-link: #0e75c9;

  /* テキストサイズ */
  --text-24: clamp(1.25rem, 1.17rem + 0.37vw, 1.5rem);

  /* font-family */
  /* stylelint-disable-next-line value-keyword-case */
  --font-en: 'Roboto Condensed', Roboto, sans-serif;
  /* stylelint-disable-next-line value-keyword-case */
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --shadow: 1px 1px 20px 0px rgb(167 0 67 / 8%);
}

/* リセットCSS */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
}

/* 言語に応じたフォント設定 */
html[lang='en'] body,
html[lang='en-US'] body {
  font-family: var(--font-en);
}

html[lang='ja'] body,
html[lang='jp'] body {
  font-family: var(--font-jp);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;

  @media (width <= 767px) {
    scroll-padding-top: 68px;
  }
}

body.menu-open {
  overflow: hidden;
}

main {
  min-height: 60vh;

  &:not(:has(.mv)) {
    margin-top: 100px;

    @media (width <= 767px) {
      margin-top: 68px;
    }
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;

  &:hover {
    color: var(--color-accent);
  }
}

ul {
  list-style: none;
}

/* utils */
.uppercase {
  text-transform: uppercase;
}

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

.ja-label {
  font-family: var(--font-jp);
}

.content-sections {
  display: flex;
  flex-direction: column;
  gap: 5rem;

  @media (width <= 767px) {
    gap: 1rem;
  }
}

.text-black {
  color: var(--color-black);
}

.text-white {
  color: var(--color-white);
}

.mb-120 {
  margin-bottom: 7.5rem;

  @media (width <= 767px) {
    margin-bottom: 3.75rem;
  }
}

/* pc-block */
.pc-block {
  display: block;

  @media (width <= 767px) {
    display: inline;
  }
}

/* text */

/* 40px~88px */
.page-title,
.page-title-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 5rem;
  font-weight: 700;
  line-height: 1.14;

  @media (width <= 767px) {
    gap: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .page-title-catch {
    font-size: var(--text-24);
    font-weight: 700;

    @media (width <= 767px) {
      margin-bottom: 2.5rem;
    }
  }

  .page-title {
    margin-bottom: 0;
  }

  :where(&) {
    font-size: clamp(2.5rem, 1.643rem + 4.29vw, 5.5rem);
  }

  :where(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
    font-size: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
    line-height: 1.5;
  }

  :where(html[lang='en'], html[lang='en-US']) {
    font-size: clamp(2.5rem, 1.643rem + 4.29vw, 5.5rem);
  }
}

/* 30px~48px */
.section-title,
.section-title-group {
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);

  @media (width <= 767px) {
    margin-bottom: 1rem;
  }

  &.border-bottom {
    border-bottom: 1px solid var(--color-black);
  }

  :where(&) {
    font-size: clamp(1.875rem, 1.554rem + 1.61vw, 3rem);
  }

  :where(html[lang='en'], html[lang='en-US']) {
    font-size: clamp(1.875rem, 1.554rem + 1.61vw, 3rem);
  }

  :where(html[lang='ja'], html[lang='jp']) :where(&:not(.en-label)) {
    font-size: clamp(1.75rem, 1.536rem + 1.07vw, 2.5rem);
  }
}

/* svg */
.arrow-button-svg {
  cursor: pointer;
  transition: all 0.3s ease-in-out;

  .arrow-circle {
    transition:
      fill 0.3s ease-in-out,
      stroke 0.3s ease-in-out;
  }

  .arrow-path {
    transition: stroke 0.3s ease-in-out;
  }
}

/* wrapper */
.base-wrapper {
  width: 83.3%;
  max-width: 1200px;
  margin: auto;

  @media (width <= 767px) {
    width: 91.5%;
  }
}

.wide-wrapper {
  width: 94.4%;
  max-width: 1360px;
  margin: auto;

  @media (width <= 767px) {
    width: 91.5%;
  }
}

/* container */
.page-title-container {
  max-width: 1360px;
  margin: 0 auto;
}

.mv-container {
  position: relative;
  display: grid;
  grid-template:
    '. header .' 140px
    '. breadcrumb .' auto
    '. main .' 1fr
    / auto 1360px auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 7.5rem;
  color: var(--color-white);

  @media (width <= 767px) {
    grid-template:
      '. header .' 68px
      '. breadcrumb .' 0
      '. main .' 1fr
      / 4.3% auto 4.3%;
    aspect-ratio: 3 / 4;
    margin-bottom: 3.75rem;
  }

  @media (width <= 1439px) {
    grid-template:
      '. header .' 140px
      '. breadcrumb .' auto
      '. main .' 1fr
      / 2.8% auto 2.8%;
  }

  .mv-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mv-breadcrumb {
    z-index: 1;
    grid-area: breadcrumb;
    align-self: start;
  }

  .mv-main {
    z-index: 1;
    grid-area: main;
    align-self: end;
  }

  .page-title {
    margin-bottom: 0;
  }
}

.mv-has-shadow {
  &::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    content: '';
    background: linear-gradient(
      to bottom,
      rgb(17 21 29 / 100%),
      rgb(17 21 29 / 0%) 30%,
      rgb(17 21 29 / 100%)
    );
  }
}

/* link */
.link-button {
  display: grid;
  gap: 0.5rem;
  align-items: center;
  width: fit-content;
  font-size: clamp(0.875rem, 0.696rem + 0.89vw, 1.5rem);
  font-weight: 700;
  color: var(--color-accent);

  .link-button-text {
    grid-area: text;
    text-transform: uppercase;
  }

  .arrow-button-svg {
    grid-area: icon;
  }

  &:hover {
    .arrow-button-svg {
      .arrow-circle {
        fill: var(--color-accent);
      }

      .arrow-path {
        stroke: var(--color-white);
      }
    }
  }

  &.prev {
    grid-template: 'icon text' / max-content max-content;

    .arrow-button-svg {
      transform: rotate(180deg);
    }
  }

  &.next {
    grid-template: 'text icon' / max-content max-content;
  }
}

/* --- CONTACTブロック --- */

.contact-arrow-button {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  transition: all 0.3s ease;

  &::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    content: '';
    border-top: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
    transform: translate(-70%, -50%) rotate(45deg);
    transition: transform 0.3s ease;
  }
}

.contact-block {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  max-width: 100%;
  overflow: hidden;

  .contact-bg-image {
    z-index: 1;
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    aspect-ratio: 1440 / 360;
    object-fit: cover;
    filter: brightness(0.3);
    transition: scale 0.3s ease;
  }

  .contact-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    grid-area: 1 / 1;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--color-white);
    text-align: center;
  }

  &:hover {
    .contact-arrow-button {
      background-color: var(--color-accent);
      border-color: var(--color-accent);
    }

    .contact-bg-image {
      scale: 1.03;
    }
  }
}

.contact-content-text {
  font-family: var(--font-en);
  font-size: clamp(2.188rem, 1.955rem + 1.16vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;

  :where(html[lang='ja'], html[lang='jp']) &:not(.en-label) {
    font-size: clamp(1.75rem, 1.536rem + 1.07vw, 2.5rem);
  }

  &.product {
    font-size: clamp(1.5rem, 1.071rem + 2.14vw, 3rem);

    :where(html[lang='ja'], html[lang='jp']) &:not(.en-label) {
      font-size: clamp(1.75rem, 1.536rem + 1.07vw, 2.5rem);
    }
  }
}

.contact-content-subtext {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;

  @media (width <= 767px) {
    font-size: 0.75rem;
  }
}

/* Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;

  &.is-active {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up-animation {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

sup {
  vertical-align: baseline;
  position: relative;
  top: -1ex;
  font-size: 0.6em;
}

sub {
  vertical-align: baseline;
  position: relative;
  top: 0ex;
  font-size: 0.6em;
}
