@charset "UTF-8";

/* =========================================================
   株式会社ビオラ 採用LP　共通スタイル
   （ページの列・PC表示時の左右・固定ヘッダー・ボタン・見出し・
     斜めの帯・かすれ模様・出方の演出・フッターなど）
   ========================================================= */

/* ===== 変数 ===== */
:root {
  --header-height: 60px;
  --column-width: 480px;
  --gutter: 24px;
  --color-orange: #ef7700;
  --color-orange-deep: #e35a00;
  --color-orange-light: #f7a21b;
  --color-orange-text: #b85400;
  --color-heading: #111111;
  --color-text: #333333;
  --color-sub: #555555;
  --color-white: #ffffff;
  --color-gray: #f5f5f5;
  --color-gray-table: #f8f8f8;
  --color-dark: #23282d;
  --color-murmur: #aaaaaa;
  --color-sample: #888888;
  --color-error: #d93025;
  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ease-slash: cubic-bezier(0.7, 0, 0.2, 1);
}

/* ===== リセット・基本 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (min-width: 481px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

small {
  font-size: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== ページの列（モバイル幅・PCでは中央に最大480px） ===== */
/* 白地＋かすれ模様は、ページ全体で1枚。セクションの境目で模様が途切れず、上から下までつながって見える */
.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--column-width));
  margin: 0 auto;
  overflow-x: clip;
  background-color: var(--color-white);
  background-image: url("../images/common/texture.png");
  background-size: 512px 512px;
  background-repeat: repeat;
}

/* ===== PC表示時の左右の背景（画面に固定） ===== */
.pc-backdrop {
  display: none;
}

@media (min-width: 481px) {
  .pc-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--color-white);
    background-image: url("../images/common/pc-bg.png");
    background-position: right bottom;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
  }
}

/* ===== PC表示時の左右の境目（中央列の左右の辺だけ・上から下まで1本の帯） ===== */
.column-frame {
  display: none;
}

@media (min-width: 481px) {
  .column-frame {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 40;
    width: var(--column-width);
    transform: translateX(-50%);
    border-right: 1px solid rgba(17, 17, 17, 0.12);
    border-left: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow:
      -18px 0 36px -20px rgba(17, 17, 17, 0.35),
      18px 0 36px -20px rgba(17, 17, 17, 0.35);
    pointer-events: none;
  }
}

/* ===== PC表示時（画面幅900px以上）の左側のボタン ===== */
.pc-nav {
  display: none;
}

@media (min-width: 900px) {
  .pc-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    top: 50%;
    left: calc(25% - var(--column-width) / 4);
    z-index: 60;
    transform: translate(-50%, -50%);
  }
}

/* ===== 固定ヘッダー（FV表示中は隠す） ===== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: min(100%, var(--column-width));
  height: var(--header-height);
  transform: translateX(-50%);
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.1);
  transition:
    opacity 0.2s linear,
    visibility 0.2s linear;
}

.intro-active .header {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 0 12px 0 16px;
}

.header__logo {
  color: var(--color-heading);
  font-family: var(--font-mincho);
  font-size: clamp(0.95rem, 4.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn--en {
  letter-spacing: 0.08em;
}

/* ヘッダーの小さいボタン */
.btn--small {
  height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.btn--outline {
  border-color: var(--color-heading);
  background-color: var(--color-white);
  color: var(--color-heading);
}

.btn--outline:hover {
  background-color: var(--color-heading);
  color: var(--color-white);
}

.btn--primary {
  border-color: var(--color-orange);
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn--primary:hover {
  border-color: var(--color-orange-deep);
  background-color: var(--color-orange-deep);
}

/* FV・フォームの大きいボタン */
.btn--cta,
.btn--submit {
  width: 100%;
  height: 60px;
  padding: 0 24px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

/* FVのボタン：白い光がときどき左から右へ走る */
.btn--cta {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(239, 119, 0, 0.35);
}

.btn--cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background-image: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-20deg);
  animation: btn-shine 3.2s ease-in-out 2s infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0% {
    left: -40%;
  }

  35%,
  100% {
    left: 130%;
  }
}

.btn__arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* PC左側のすりガラス風のボタン */
.btn--glass {
  width: 200px;
  height: 64px;
  border-color: transparent;
  background-color: rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  font-size: 18px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.35),
    inset 0 0 1px rgba(255, 255, 255, 0.9);
}

.btn--glass:hover {
  background-color: rgba(239, 119, 0, 0.85);
}

/* ===== セクションの基本 ===== */
.section {
  position: relative;
  padding: 72px 0;
}

.section__inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
}

.section--gray {
  background-color: var(--color-gray);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* ===== 見出し ===== */
/* 1行は9文字前後まで（それ以上は改行を入れる）。320px幅でも折り返さない大きさ */
.sec-title {
  color: var(--color-heading);
  font-family: var(--font-mincho);
  font-size: clamp(1.75rem, 8.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: 0.02em;
}

/* 見出しの前置き（小さめの1行） */
.sec-title__pre {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6em;
  line-height: 1.5;
}

.sec-title--center {
  text-align: center;
}

.sec-title--white {
  color: var(--color-white);
}

/* 強調（【 】の中）：見出しの中はキーカラーのオレンジ */
.em {
  color: var(--color-orange);
  font-weight: 800;
}

/* 本文サイズの強調は濃いオレンジ */
.em-text {
  color: var(--color-orange-text);
  font-weight: 700;
}

.sec-lead {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
}

.sec-subtitle {
  margin-top: 28px;
  color: var(--color-heading);
  font-family: var(--font-mincho);
  font-size: 1.15rem;
  font-weight: 800;
}

/* 見出しの上の小さな英字 */
.label-en {
  display: block;
  margin-bottom: 4px;
  color: var(--color-orange-text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ===== オレンジの斜めの帯（演出A：左端から右端へ伸びる） ===== */
/* かすれた筆の帯。ローカルで開いても出るよう、mask ではなくオレンジの透過PNGを背景に敷く */
.slash {
  display: block;
  position: absolute;
  z-index: 0;
  background-image: url("../images/common/brush-01.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* 短く太い筆の帯（人物の後ろなど） */
.slash--brush {
  background-image: url("../images/common/brush-02.png");
}

.is-js .slash {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-slash);
}

.is-js .slash--from-right {
  clip-path: inset(0 0 0 100%);
}

.is-js .is-visible .slash {
  clip-path: inset(0 0 0 0);
}

/* ===== 大きくうすい漢字一文字（透かし） ===== */
.kanji-bg {
  position: absolute;
  z-index: 0;
  color: rgba(17, 17, 17, 0.05);
  font-family: var(--font-mincho);
  font-size: 15rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ===== 写真（すべてモノクロ） ===== */
.photo-mono {
  filter: grayscale(1) contrast(1.05);
}

/* 腰から上の切り抜き写真は、下端を白く溶かして切れ目を見せない */
.photo-fade {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000000 72%,
    transparent 100%
  );
}

/* ===== 角丸の白い面（募集要項・エントリー） ===== */
.panel {
  position: relative;
  margin: 0 16px;
  padding: 56px 20px 48px;
  border-radius: 24px;
  background-color: var(--color-white);
}

/* ===== 「サンプル」の札 ===== */
.tag-sample {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: var(--color-sample);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ===== スクロールリビール（演出0） ===== */
/* JSが動くとき（.is-js）だけ初期状態を隠す。要素が画面に入ると is-visible が付く */
.is-js .js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease-out var(--fade-delay, 0s),
    transform 0.7s ease-out var(--fade-delay, 0s);
}

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

/* 演出D：見出しは、下から幕が上がるように文字がせり上がる（中身はJSで .sec-title__mask に包む） */
.is-js .sec-title.js-fade {
  opacity: 1;
  transform: none;
}

.is-js .sec-title__mask {
  display: block;
  transform: translateY(0.9em);
  clip-path: polygon(
    -10% 100%,
    110% 100%,
    110% 100%,
    -10% 100%
  );
  transition:
    transform 0.9s var(--ease-slash) var(--fade-delay, 0s),
    clip-path 0.9s var(--ease-slash) var(--fade-delay, 0s);
}

.is-js .sec-title.is-visible .sec-title__mask {
  transform: translateY(0);
  clip-path: polygon(
    -10% -20%,
    110% -20%,
    110% 120%,
    -10% 120%
  );
}

/* 演出E：見出しのオレンジの語は、あとから「ドン」と大きく押し出される */
.is-js .sec-title .em,
.is-js .image-gap__turn .em {
  display: inline-block;
  opacity: 0;
  transform: scale(1.9);
  transition:
    opacity 0.25s ease-out calc(var(--fade-delay, 0s) + 0.55s),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--fade-delay, 0s) + 0.55s);
}

.is-js .sec-title.is-visible .em,
.is-js .image-gap__turn.is-visible .em {
  opacity: 1;
  transform: scale(1);
}

/* 演出F：切り抜きの人物は、下から弾むように飛び出す */
.is-js .photo-mono.js-fade {
  transform: translateY(80px) scale(0.94);
  transition:
    opacity 0.5s ease-out var(--fade-delay, 0s),
    transform 0.9s cubic-bezier(0.34, 1.45, 0.64, 1) var(--fade-delay, 0s);
}

.is-js .photo-mono.js-fade.is-visible {
  transform: translateY(0) scale(1);
}

/* ===== フッター ===== */
.footer {
  position: relative;
  padding: 72px var(--gutter) 40px;
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

.footer__name {
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer__address {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer__copy {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

/* ===== 動きを減らす設定のとき：演出をすべて止め、最初から表示する ===== */
@media (prefers-reduced-motion: reduce) {
  .is-js .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .is-js .slash,
  .is-js .slash--from-right {
    clip-path: inset(0 0 0 0);
    transition: none;
  }

  .is-js .sec-title__mask,
  .is-js .photo-mono.js-fade {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .is-js .sec-title .em,
  .is-js .image-gap__turn .em {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--cta::after {
    display: none;
  }

  .header {
    transition: none;
  }
}
