@charset "UTF-8";

/*
SP: ～599px
Tab: 600px ～ 1019px
PC: 1020px～
*/

/* ========================
各CSSやJavaScriptの共通定数
======================== */
:root {
  --width_wrapper: 960px;
  --color-main: #f28dbc;
  --color-accent: #284b2a;
  --color-font: #14171a;
  --color-font_nav: #24292e;
  --color-border: #d1d1d1;
  --color-header_bg: rgba(255, 255, 255, 0.5);
  --color-page_title_bg: rgba(255, 255, 255, 0.5);
  --size_es: 0.8rem;
  --size_sm: 1rem;
  --size_md: 1.6rem;
  --size_lg: 2.6rem;
  --size_xl: 4rem;
  --size_xxl: 5.5rem;

  /* ベース値 */
  --space-unit: 8px;

  /*TODO:あとで直書きの部分修正する。コンテンツ間は後で値を詰める*/
  /* 主要間隔 */
  --space-xs: calc(var(--space-unit) * 0.5); /* 4px: アイコン内の余白など */
  --space-sm: var(--space-unit); /* 8px: テキスト間の余白など）*/
  --space-md: calc(var(--space-unit) * 2); /* 16px: 一般的な間のComponent間隔*/
  --space-lg: calc(var(--space-unit) * 3); /* 24px:セクション内Component間*/
  --space-xl: calc(var(--space-unit) * 4); /* 32px:小程度のセクション間 */
  --space-xxl: calc(var(--space-unit) * 8); /* 64px:大程度のセクション間 */

  --gutter-section_sp: calc(var(--space-unit) * 4); /* 32px */
  --gutter-section: calc(var(--space-unit) * 10); /*80px*/
  --gutter-section-lg_sp: calc(var(--space-unit) * 10); /* 80px */
  --gutter-section-lg: calc(var(--space-unit) * 15); /*120px*/
  --gutter-contents_sp: calc(var(--space-unit) * 5); /*40px*/
  --gutter-contents: calc(var(--space-unit) * 8); /*80px*/
  --gutter-contents_side: calc(var(--space-unit) * 2); /*16px*/
  --font_quicksand: 'Quicksand', serif;
  --line_height_default: 1.75;

  --boxshadow-card-default: 10px 8px 29px -6px rgba(0, 0, 0, 0.47);
  --boxshadow-card-focus: 15px 12px 35px -4px rgba(0, 0, 0, 0.5);
  --boxshadow-card-active: 5px 4px 15px -4px rgba(0, 0, 0, 0.3);

  /* Js参照用breakpoint
    CSSファイルでは直接参照できないので値を直書き */
  --breakpoint-pc-narrow: 1020px;
  --breakpoint-sp: 599px;
}

/* ========================
共通設定
======================== */
html {
  font-size: 62.5%;
  color: var(--color-font);
}

body {
  font-size: var(--size_md);
  font-family: var(--font_quicksand);
}

.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

main {
  margin-top: 64px;
}

.wrapper {
  max-width: var(--width_wrapper);
  margin-right: auto;
  margin-left: auto;
}

.btn {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  display: block;
  max-width: 350px;
  line-height: 90px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;

  transition: 0.4s;
}

.btn::after {
  font-family: 'Material Symbols Outlined';
  content: '\e5c8';
  vertical-align: middle;
  position: absolute;
  right: 20px;

  transition: 0.4s;
}

.btn:hover {
  opacity: 1;
  background-color: var(--color-accent);
  color: #fff;
}

.btn:hover::after {
  right: 15px;
  content: '\e5c8';
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  main {
    margin-top: 60px;
  }

  .wrapper {
    padding-left: 5%;
    padding-right: 5%;
  }

  .wrapper p,
  header .wrapper {
    margin: 0 1rem;
  }

  /* SPではボタンのアニメーションを無効化 */
  .btn {
    transition: none;
  }

  .btn:hover {
    background-color: transparent;
    color: var(--color-font);
    opacity: 1;
  }

  .btn::after {
    transition: none;
  }

  .btn:hover::after {
    right: 20px;
  }
}

/* ========================
共通パーツ
======================== */
.page_title {
  height: 200px;
  width: 100%;
  background-image: url(../images/page_title/page_title_works.jpg);
  background-size: cover;
  background-position: center 56%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--gutter-section-lg);
}

.page_title .textbox {
  background-color: var(--color-page_title_bg);
  padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);
  text-align: center;
}

.page_title .textbox h2 {
  display: block;
  font-size: var(--size_xxl);
  border-bottom: 1px solid #383e45;
}

.page_title .textbox span {
  display: block;
  font-weight: bold;
  font-size: var(--size_lg);
}

.heading_title {
  margin-bottom: var(--gutter-section);
  text-align: center;
}

.heading_title h2 {
  display: inline-block;
  font-size: var(--size_xxl);
  border-bottom: 1px solid #383e45;
}

.heading_title span {
  display: block;
  font-weight: bold;
  font-size: var(--size_lg);
}

.section_title {
  display: inline-block;
  margin-bottom: var(--gutter-section);
  border-bottom: 1px solid #383e45;
  font-size: var(--size_xl);
}

.content_title {
  font-size: var(--size_md);
  margin: 10px 0;
}

/*フェードインアニメーション部品*/
.fade-slider {
  position: relative;
  /* overflow: hidden; */
}

.fade-slider_child {
  position: absolute; /* 親要素内で重ねる */

  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-slider_child.active {
  opacity: 1;
}

.main_logo a {
  font-weight: bold;
  font-size: 3rem;
  color: #fafafa;
  background-color: var(--color-main);
  padding: 0 1rem;
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  .page_title {
    margin-bottom: var(--gutter-section-lg_sp);
  }

  .heading_title {
    margin-bottom: var(--gutter-section_sp);
  }

  .section_title {
    margin-bottom: var(--gutter-section_sp);
  }
}

/* ========================
ヘッダー/ナビ
======================== */
/*ヘッダー部*/
header {
  background-color: var(--color-header_bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /*tips: mainvisualの背面に行ってしまうので最前面に */
}

header .wrapper {
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-right: 20px;  */
  padding: 10px 0;
}

header h1 a {
  color: #fafafa;
  background-color: var(--color-main);
  padding: 0 1rem;
}

/*ナビゲーション(ヘッダー内)*/
nav ul {
  display: flex;
  padding: 10px 0;
}

nav li {
  text-align: center;
  margin-left: 30px;
}

nav li a {
  color: var(--color-font_nav);
  font-weight: 700;
}

nav li a:hover {
  opacity: 0.7;
}

#top #nav_top a,
#works #nav_works a {
  border-bottom: solid 2px var(--color-main);
}

/*ハンバーガーメニュー*/
.nav_btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 1;
  background: none;
  border: none;
}

.nav_btn span,
.nav_btn::before,
.nav_btn::after {
  width: 36px;
  height: 2px;
  background-color: var(--color-font);
  position: absolute;
  top: 50%;
  left: 2px;

  /*三↔✕切り替え時*/
  transition: transform 0.4s;
}

.nav_btn::before,
.nav_btn::after {
  /*NOTE:
  疑似要素はcontentを明示的に空にしないと表示されない*/
  content: '';
}

.nav_btn::before {
  transform: translateY(-11px);
}

.nav_btn::after {
  transform: translateY(11px);
}

body.is-nav-open .nav_btn span {
  transform: scaleX(0);
}
body.is-nav-open .nav_btn::before {
  transform: translateY(0) rotate(45deg);
}
body.is-nav-open .nav_btn::after {
  transform: translateY(0) rotate(-45deg);
}

/*PC 960px以下*/
@media screen and (max-width: 1020px) {
  /*memo: 
  PCでwidth:960以下になった際にメニューが端に寄りすぎるので簡易調整(少し多めに)
  */
  nav {
    margin-right: 30px;
  }
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  nav {
    margin-right: 0;
  }

  /*ハンバーガーメニューとnavの設定*/
  .nav_btn {
    display: block;
  }
  nav {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: -10; /*tips: mainvisualの背面に行ってしまうので最前面に */
    background-color: rgba(255, 255, 255, 0.9);

    /*移動アニメーション*/
    transform: translateY(-100%);
    transition: transform 0.4s;
  }

  body.is-nav-open nav {
    transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    justify-content: center;
    margin-top: 60px;
    padding: 40px 0;
  }

  nav li {
    margin-left: 0;
    padding: 0.8rem;
  }

  nav li a {
    font-size: var(--size_xl);
  }
}

/* ========================
フッター
======================== */
footer {
  padding: calc(var(--space-unit) * 3) 0;
  text-align: center;
  background-color: var(--color-main);
}
.contact_info {
  margin: calc(var(--space-unit) * 2) 0;
}

.contact_info h4 {
  display: inline-block;
  border-bottom: solid 1px var(--color-font);
  margin-bottom: calc(var(--space-unit) * 1);
}

.contact_list {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.contact_info .email {
  font-weight: 500;
}

/* ========================
カードリンクタップ時のスケールアニメーション
======================== */
.card_link {
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: center center; /* 中心を基点に拡大 */
  transform: scale(1);
}

.card_link:hover,
.card_link:focus {
  transform: scale(1.05);
}

.card_link:active {
  transform: scale(0.97);
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  .card_link:hover,
  .card_link:focus {
    transform: scale(1);
  }

  .card_link:active {
    transform: scale(0.97);
  }
}
