@charset "UTF-8";

/* =====================================================
   株式会社エビア 共通スタイル
   ・フェーズ1：静的レイアウト（演出なし）
   ・ブレークポイント：1024px（タブレット）／767px（SP）
   ===================================================== */

/* ===== 色・フォント（CSS変数） ===== */
:root {
  --color-text: #231815;
  --color-text-sub: #54595F;
  --color-base: #FFFFFF;
  --color-main: #FFE601;
  --color-main-end: #F8C820; /* 仮：ロゴから拾った値。原本の色で確定する */
  --color-pale: #FFF7B8;
  --color-gray: #F5F5F5;
  --color-footer: #E8E8E8;
  --color-row: #FAFAFA;
  --color-line: #CDCDCD;
  --color-input: #F2F2F2;
  --color-overlay: rgba(66, 66, 66, 0.5);
  --color-submit: #231815;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --header-height: 60px;
}

@media (max-width: 767px) {
  :root {
    --header-height: 53px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
dl,
dt,
dd,
table,
th,
td,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

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

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

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===== ベース ===== */
body {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6rem;
  color: var(--color-text);
  background: var(--color-base);
  overflow-x: hidden;
}

@media (max-width: 1024px) and (min-width: 768px) {
  body {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
}

/* ===== 見出しの折り返し（文節で改行。対応ブラウザのみ） ===== */
.sec-title,
.band-title,
.media-row__lead,
.page-fv__catch,
.service-block__lead,
.works-card__title {
  word-break: auto-phrase;
}

/* ===== 表示の出し分け ===== */
@media (max-width: 767px) {
  .u-pc {
    display: none;
  }
}

@media (min-width: 768px) {
  .u-sp {
    display: none;
  }
}

/* ===== コンテンツ幅 ===== */
.inner {
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 10px;
  padding-left: 10px;
}

@media (max-width: 1024px) {
  .inner {
    max-width: 1024px;
  }
}

@media (max-width: 767px) {
  .inner {
    max-width: 767px;
  }
}

/* ===== ボタン（共通コンポーネント） ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
  background: linear-gradient(
    90deg,
    var(--color-main) 0%,
    var(--color-main-end) 100%
  );
  border: 0;
  border-radius: 3px;
  transition-duration: 0.3s;
  transition-property: transform;
}

.btn:hover,
.btn:focus,
.btn:active {
  transform: scale(0.9);
}

@media (max-width: 767px) {
  .btn {
    height: 35px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 15px;
  }
}

.btn--sm {
  padding: 12px 24px;
  font-size: 15px;
}

@media (max-width: 767px) {
  .btn--sm {
    width: 95px;
    height: 28px;
    padding: 0;
    font-size: 12px;
  }
}

/* ===== 準備中ラベル（採用情報） ===== */
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-footer);
  border-radius: 3px;
}

/* ===== セクション見出し ===== */
.sec-title {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 767px) {
  .sec-title {
    font-size: 33px;
  }
}

.sec-title--lg {
  margin-bottom: 20px;
  font-size: 60px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .sec-title--lg {
    font-size: 45px;
  }
}

@media (max-width: 767px) {
  .sec-title--lg {
    font-size: 32px;
  }
}

/* ===== 見出し帯（黄の面） ===== */
.band-title {
  padding: 20px 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text);
  background: var(--color-main);
}

@media (max-width: 767px) {
  .band-title {
    font-size: 20px;
  }
}

.band-title--sm {
  font-size: 20px;
}

@media (max-width: 767px) {
  .band-title--sm {
    font-size: 18px;
  }
}

/* ===== グレーの帯 ===== */
.gray-band {
  padding: 80px 0;
  background: var(--color-gray);
}

@media (max-width: 1024px) {
  .gray-band {
    padding: 60px 30px 80px;
  }
}

@media (max-width: 767px) {
  .gray-band {
    padding: 20px;
  }
}

/* ===== 写真と文の2列（TOP About・私たちについて メッセージ） ===== */
.media-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
  padding: 80px 40px;
}

@media (max-width: 1024px) {
  .media-row {
    gap: 30px;
    padding: 60px 30px;
  }
}

@media (max-width: 767px) {
  .media-row {
    flex-direction: column;
    gap: 30px;
    padding: 40px 10px;
  }
}

.media-row__photo {
  flex: 0 1 547px;
}

.media-row__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.media-row__body {
  flex: 0 1 718px;
}

@media (max-width: 767px) {
  .media-row__photo,
  .media-row__body {
    flex: none;
    width: 100%;
  }
}

.media-row__lead {
  font-size: 33px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1024px) {
  .media-row__lead {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .media-row__lead {
    font-size: 20px;
  }
}

.media-row__text {
  margin-top: 30px;
  text-align: left;
}

.media-row__text p + p {
  margin-top: 1.6rem;
}

.media-row__btn {
  margin-top: 40px;
  text-align: center;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1111;
  width: 100%;
  height: var(--header-height);
  padding: 10px 0;
  background: var(--color-base);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.09);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  width: auto;
  height: 32px;
}

@media (max-width: 767px) {
  .header__logo img {
    height: 28px;
  }
}

.header__right {
  display: flex;
  align-items: center;
}

.header__cta {
  margin-left: 10px;
}

@media (max-width: 1024px) {
  .header__right .gnav {
    display: none;
  }
}

/* ===== グローバルナビ（ヘッダー・フッター・ドロワー共通の文字） ===== */
.gnav__list {
  display: flex;
  align-items: center;
}

.gnav__link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 17px 0 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--color-text);
}

a.gnav__link:hover {
  color: var(--color-text-sub);
}

.gnav__link.is-disabled {
  cursor: default;
}

/* ===== ハンバーガー（1024px以下） ===== */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 45px;
  margin-left: 10px;
  padding: 10px 8px;
  background: var(--color-base);
  border: 0;
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .menu-btn {
    display: flex;
  }
}

.menu-btn__line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-main-end);
  border-radius: 20px;
}

.menu-btn__line + .menu-btn__line {
  margin-top: 4px;
}

.menu-btn:hover .menu-btn__line {
  background: #01010180;
}

/* ===== ドロワー（1024px以下。開閉のJSはフェーズ2） ===== */
.drawer {
  position: fixed;
  top: 0;
  left: -100vw;
  z-index: 1113;
  width: 100%;
  max-width: 350px;
  height: 100%;
  overflow-y: auto;
  background: var(--color-base);
  transition: left 0.6s cubic-bezier(0.6, 0.1, 0.68, 0.53);
}

.drawer.is-open {
  left: 0;
}

@media (max-width: 767px) {
  .drawer {
    border-radius: 20px;
  }
}

@media (min-width: 1025px) {
  .drawer,
  .drawer-overlay {
    display: none;
  }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
  border-bottom: 1px solid var(--color-line);
}

.drawer__logo img {
  width: auto;
  height: 28px;
}

.drawer__close {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
}

.drawer__close::before,
.drawer__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  background: var(--color-text);
  border-radius: 2px;
}

.drawer__close::before {
  transform: rotate(45deg);
}

.drawer__close::after {
  transform: rotate(-45deg);
}

.drawer .gnav__list {
  flex-direction: column;
  align-items: stretch;
}

.drawer .gnav__item {
  border-bottom: 1px solid var(--color-line);
}

.drawer .gnav__link {
  height: 56px;
  padding: 0 24px;
}

.drawer__cta {
  padding: 32px 24px;
  text-align: center;
}

.drawer__cta .btn--sm {
  width: auto;
  height: auto;
  padding: 12px 24px;
  font-size: 15px;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1112;
  width: 100%;
  height: 100%;
  background: rgba(51, 51, 51, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.6, 0.1, 0.68, 0.53) 0.4s;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: all 0.6s cubic-bezier(0.22, 0.61, 0.24, 1) 0s;
}

/* ===== 下層FV（沿革の帯も同じ作り） ===== */
.page-fv {
  height: 272px;
  margin-top: var(--header-height);
  background-color: var(--color-gray);
  background-image: url("../images/common/page_fv_bg.webp");
  background-position: center;
  background-size: cover;
}

.page-fv__inner {
  padding-top: 60px;
}

.page-fv__title {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.page-fv__en {
  font-size: 33px;
}

.page-fv__ja {
  font-size: 20px;
}

.page-fv__catch {
  margin-top: 70px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .page-fv__catch {
    font-size: 17px;
  }
}

.page-fv--sub {
  margin-top: 60px;
}

/* ===== 下層の大きな写真 ===== */
.page-photo {
  margin-top: 60px;
}

.page-photo img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .page-photo img {
    height: 300px;
  }
}

/* ===== 縞の表（会社概要・沿革） ===== */
.info-table {
  width: 100%;
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.info-table th,
.info-table td {
  padding: 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 35px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 134px;
  white-space: nowrap;
}

.info-table tr:nth-child(odd) {
  background: var(--color-base);
}

.info-table tr:nth-child(even) {
  background: var(--color-row);
}

.info-table a:hover {
  color: var(--color-text-sub);
}

@media (max-width: 767px) {
  .info-table th,
  .info-table td {
    display: block;
    width: auto;
    padding: 16px;
  }

  .info-table th {
    padding-bottom: 0;
  }

  .info-table td {
    padding-top: 4px;
  }
}

/* ===== 採用バナー（全ページ共通・フッターの直前） ===== */
.recruit-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  background-image: url("../images/common/recruit_bg.webp");
  background-position: center center;
  background-size: cover;
}

.recruit-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgb(66, 66, 66);
  opacity: 0.5;
}

.recruit-banner__title {
  position: relative;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .recruit-banner__title {
    font-size: 50px;
  }
}

.recruit-banner__soon {
  position: relative;
  margin-top: 16px;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.recruit-banner.is-disabled {
  cursor: default;
}

a.recruit-banner .recruit-banner__overlay {
  transition:
    background 0.3s,
    opacity 0.3s;
}

a.recruit-banner:hover .recruit-banner__overlay,
a.recruit-banner:focus-visible .recruit-banner__overlay {
  background: linear-gradient(
    180deg,
    #000000 0%,
    #FFE601 100%
  );
  opacity: 0.5;
}

/* ===== フッター ===== */
.footer__main {
  display: flex;
  align-items: center;
  height: 260px;
  background: var(--color-footer);
}

@media (max-width: 767px) {
  .footer__main {
    height: auto;
    padding: 40px 0;
  }
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 767px) {
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }
}

.footer__logo img {
  width: auto;
  height: 42px;
}

.footer__right {
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .footer__right {
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .footer__right {
    align-items: center;
    gap: 24px;
  }
}

.footer__cta {
  margin-left: 10px;
}

@media (max-width: 1024px) {
  .footer__cta {
    margin-left: 0;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .footer .gnav__list {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .footer .gnav__list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    column-gap: 8px;
  }

  .footer .gnav__link {
    justify-content: center;
  }
}

.footer .soon {
  background: var(--color-base);
}

.footer__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  font-size: 15px;
  text-align: center;
  background: var(--color-base);
}

@media (max-width: 767px) {
  .footer__copy {
    font-size: 12px;
  }
}

/* ===== スクロール表示（F） ===== */
.is-js .anim {
  visibility: hidden;
}

.is-js .anim.is-animated {
  visibility: visible;
  animation-duration: 1.25s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

.is-js .anim--fadeUp.is-animated {
  animation-name: fadeUp;
}

.is-js .anim--fadeDown.is-animated {
  animation-name: fadeDown;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== 動きを減らす設定のとき ===== */
@media (prefers-reduced-motion: reduce) {
  .is-js .anim,
  .is-js .anim.is-animated {
    visibility: visible;
    opacity: 1;
    animation: none;
  }

  .drawer,
  .drawer-overlay,
  .drawer-overlay.is-open,
  .btn,
  a.recruit-banner .recruit-banner__overlay {
    transition: none;
  }
}
