@charset "UTF-8";

/* Google font Icon */
@import "https://fonts.googleapis.com/icon?family=Material+Icons";
@import "https://fonts.googleapis.com/earlyaccess/notosansjp.css";

/* しっぽり明朝読み込み */
@import "https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700;800&display=swap";

/* Noto Serif読み込み */
@import "https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&family=Shippori+Mincho:wght@400;500;600;700;800&display=swap";

/* 基本的な設定 */
:root {
  --gray: #8fa7ac;
  --blue: #2b78a4;
  --red: #9d1e2e;
  --red_ttl: #7d3a53;
  --dark_blue: #053653;
  --dark_color: #02123c;
  --dark_color-80: rgb(2 16 60 / 80%);
  --dark_color-95: rgb(2 16 60 / 95%);

  /* 追加：backdrop-filter代替用 */
  --white: #f4f4f4;
  --boxshadow: rgb(244 244 244 / 25%);
}

html {
  font-family: "Shippori Mincho", "Noto Serif JP", "游明朝", serif, "Material Icons";

  /* 明示的なデフォルトフォントサイズの指定 */
  font-size: 16px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.75;
  color: var(--white);
  scroll-margin-top: 11dvh;
  background-color: var(--dark_color);
  scroll-behavior: smooth;
}

/* 各セクションのタイトルは共通なので同時に設定 */
h3 {
  font-size: 2.75em;
  text-align: center;
  text-shadow: 0.5px 0.5px 0 var(--white), -0.5px -0.5px 0 var(--white), -0.5px 0.5px 0 var(--white),
    0.5px -0.5px 0 var(--white), 0 0.5px 0 var(--white), 0 -0.5px 0 var(--white), -0.5px 0 0 var(--white),
    0.5px 0 0 var(--white);
}

.wrapper {
  width: 90dvw;

  /* max-width: 1200px; */
  margin: 0 auto;
}

.inner {
  width: 88%;
  margin-bottom: 24px;
}

/* ボタンの装飾 */
.wpcf7cp-btns > button,
.button {
  display: inline-block;
  width: 280px;
  padding: 15px;
  font-size: 1.25em;
  vertical-align: middle;
  color: var(--white);
  background-color: var(--red);
  border-radius: 30px;
  transform: scale(0.9);
  transition: transform 0.5s ease-in-out, background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.button.active {
  color: var(--red);
  pointer-events: none;
  cursor: default;
  background-color: var(--white);
}

.wpcf7cp-btns > button:hover,
.button:hover:not(.active) {
  color: var(--white);
  background-color: var(--blue);
  border: solid 1px var(--white);
  transform: scale(1);
}

/* 各セクション毎の距離を統一 */
#profile,
#skills,
#works,
#price,
#contact {
  padding: 1.25em 0;
  margin-top: 5rem;
  box-shadow: 10px 10px 4px 0 var(--boxshadow);
}

/* ヘッダー */
.top_header {
  position: fixed;
  top: 1em;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90dvw;
  height: auto;
  padding: 0.75em 0;
  background-color: var(--dark_color-80);
  border-radius: 100px;

  /* Safari向けに追加 */
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  transition: 0.5s;

  /* mix-blend-mode: difference;
    変更すると可読性が落ちるので却下 */
}

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

.header_left {
  z-index: 110;
  width: auto;
  max-width: 152px;
  max-height: 100%;
}

.headerNav_list-right {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.nav_link {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  color: var(--gray);
  text-decoration: none;
  background-clip: text;
  transition: color 0.5s ease, -webkit-text-fill-color 0.5s ease, -webkit-background-clip 0.5s ease;
  -webkit-text-fill-color: var(--gray);
}

.nav_link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  content: "";
  background: linear-gradient(to right, var(--red), var(--white), var(--blue));
  opacity: 1;
  transition: width 0.5s ease;
}

.nav_link:hover {
  color: transparent;
  background: linear-gradient(to right, var(--red), var(--white), var(--blue));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav_link:hover::after {
  width: 100%;
}

.nav_link:visited {
  color: var(--gray);
}

/* footer */

/* SNS(Businessツール)へのリンクは現時点では不要のため非表示 */
footer {
  padding: 24px;
  margin-top: 2.5em;
}

.footer_nav {
  display: none;
}

.copyright {
  text-align: center;
}

/* MV */
.mv {
  position: relative;
}

.mv_text-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  vertical-align: middle;
  text-align: center;
  translate: -50% -50%;
}

.mv_title-boxShadow {
  margin-bottom: 0.3em;
  font-size: 4em;
  font-weight: bold;
  text-shadow: 10px 10px 20px rgb(43 46 253 / 80%);
}

.mv-background {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Profile */
#profile {
  background-color: var(--blue);
}

.profile_title {
  margin-bottom: 1.5em;
}

.profile_box {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5em;
}

.concept {
  font-size: 1.75em;
  font-weight: bold;
}

.scopettl_box {
  padding: 0.75em 0;
  text-align: center;
  background-color: var(--dark_blue);
}

.scope_title,
.card_ttl {
  font-size: 1.25em;
  font-weight: bold;
}

.scope_txt {
  margin-bottom: 1.25em;
  text-align: center;
}

.businessCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  /* ↑300px幅で収まるだけ横に並べる */
  gap: 2em;
}

.businessCard,
.businessImgbox,
.businessCard_content {
  display: grid;
  grid-template-rows: 1fr;
  gap: 1em;
  align-items: center;
}

.card_list {
  text-align: left;
  list-style: disc;
}

/* Skills */

#skills {
  background-color: var(--gray);
}

#skills h4 {
  padding: 0.75em 0;
  margin-top: 2.5em;
  text-align: center;
  background-color: var(--blue);
}

.skills_box {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  align-items: stretch;
  justify-content: center;
  margin-top: 2.5em;
}

.skills_category,
.skillsContentBox {
  width: 100%;
}

.skillsContentBox {
  background-color: var(--white);
  transition: all 0.5s;
}

.skillsContentBox[open] .skills_content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.skillsContentBox[open] .skills_name::after {
  transform: rotate(90deg);
}

.skills_content {
  padding: 1.25em 0.75em;
  color: var(--dark_color);
}

.skills_name {
  position: relative;
  display: block;
  padding: 1em;
  background-color: var(--dark_blue);
  transition: transform 0.5s;
}

.skills_name::after {
  position: absolute;
  top: 50%;
  right: 0.25em;
  height: 50%;
  content: "\ead0";
  translate: -50% -50%;
  transition: transform 0.5s;
}

.skills_list {
  margin-left: 1.5em;
  list-style: disc;
}

/* detailsの開閉処理はJSで処理
そのほうが滑らかに開閉するため */
.aws_logo,
.xserver_logo {
  max-width: 10em;
  height: auto;
}

/* Works 
JSにてカテゴリー毎にまとめる
各カードはスライダー(特定幅以上は薄くする) */
.works_content {
  margin-bottom: 2.6em;
}

/* スライダーが最後まで行ったら戻ってしまうのを防ぐ */
.slick-slider div {
  transition: none;
}

.works_container {
  background-color: var(--dark_blue);
}

.category {
  display: flex;
  justify-content: center;
  margin-top: 2.5em;
  text-align: center;
}

.category .button {
  margin: 27px;
}

.worksCards {
  position: relative;
  overflow: hidden;
}

.worksCards .slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.5em;
  margin: 1.5em 0 4.5em;
}

.worksCard,
.slick-slide {
  width: 450px !important;
  max-width: 80dvw;
  height: auto !important;
  margin: 0 2.5em;
  overflow: hidden;
  color: var(--dark_color) !important;
  text-align: center;
  background-color: var(--white);

  /* padding: 1.25em; */
  border-radius: 30px;
}

.worksCard_content {
  padding-bottom: 1.25rem;
}

.worksCard_imgbox {
  width: auto;
  height: 300px;
  overflow: hidden;
}

.works_img {
  object-fit: contain;

  /* width: auto;
    height: 100%; */
  transition: transform 0.3s ease;
}

/* .works_img:hover {
    transform: scale(1.2);
} */

.slidebox.active {
  display: block;
}

.slidebox:not(.active) {
  display: none;
}

.works_link {
  color: var(--dark_color);
}

.works_client {
  font-size: 2.25em;
}

.works_taxsonomy,
.works_tool {
  font-size: 1.25em;
}

.slick-track {
  display: flex;
}

/* カテゴリー別で表示,非表示 
初期はwebsite */
.worksCards .slider {
  display: none;
}

.worksCards .slider.active {
  display: block;
}

/* worksCardの両サイドを暗くする */
.worksCards_fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--dark_blue), transparent 30%, transparent 70%, var(--dark_blue));
}

/* Price */
#price {
  background-color: var(--blue);
}

.priceTable {
  margin-top: 5em;
  color: var(--dark_color);
  border-collapse: collapse;
  background-color: var(--white);
}

th,
td {
  padding: 1em;
  border: solid 1px var(--dark_color);
}

/* プラン名を左詰めにする */
.priceTable tbody .menu {
  width: 13em;
  text-align: left;
}

.price_content {
  margin: 2.5em 0 3em;
  text-align: center;
}

/* Contact */
.contact {
  background-color: rgb(244 244 244 / 40%);
  backdrop-filter: blur(10px);
}

.contact_content {
  text-align: center;
}

legend {
  margin: 0;
}

.contact_form {
  margin-top: 3em;
}

.form_box {
  position: relative;
  display: block !important;
  margin-top: 3.5em;
  vertical-align: middle;
}

.form_text {
  position: relative;
  display: block;
  grid-template-columns: subgrid;
  width: 100%;
  padding: 0.5em;
  line-height: 2em;
  color: var(--dark_color);
  background-color: var(--white);
  border: solid 2px var(--red);
  border-radius: 5px;
  transition: border 0.3s ease-in-out;
}

.form_text:placeholder-shown {
  padding: 0.5em;
  line-height: 2em;
  background-color: var(--white);
  border: solid 2px var(--red);
  border-radius: 5px;
  transition: border 0.3s ease-in-out;
}

.form_text::placeholder {
  color: transparent !important;
}

.form_text:focus::placeholder {
  color: transparent !important;
}

.input_label {
  position: absolute;
  top: 0.8em;
  left: 0.9em;
  display: block;
  color: var(--red);
  user-select: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

/* フォーム選択時の変化 */
.form_text:focus {
  border-color: var(--blue);
}

.input_label.focus {
  position: absolute;
  top: -1em;
  left: 0.9em;
  padding: 0 5px;
  color: var(--white);
  background-color: var(--blue);
  border-radius: 5px;
}

.form_text,
.form_box > input {
  border-color: var(--blue);
}

/* ここまで */

/* 送信ボタンの装飾 */

.form_submit {
  margin: 1.5em;
  text-align: center;
}

/* 確認画面 */
.wpcf7cp-form-hide {
  display: none;
}

#wpcf7cpcnf {
  position: static !important;
  width: 100%;
  color: var(--dark_blue);
}

#wpcf7cpcnf > table {
  background-color: var(--white) !important;
}

#wpcf7cpcnf > table {
  width: 100%;
  table-layout: fixed;
}

.wpcf7cp-btns {
  text-align: center;
}

.wpcf7-not-valid-tip {
  color: var(--white);
}

/* チェックボックス,ラジオボタンの装飾 */
.wpcf7-list-item {
  position: relative;
}

input[type="checkbox"] {
  width: 1.5em;
  height: 1.5em;
  margin: -0.25em 0.5em;
  appearance: none;
}

.input_type,
.input_public {
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]::before {
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  border: solid 2px var(--red);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
  background-color: var(--gray);
  border-color: var(--gray);
}

input[type="radio"] {
  position: relative;
  width: 1.5em;
  height: 1.5em;
  margin: -0.25em 0.5em;
  vertical-align: middle;
  appearance: none;
  border: 2px solid var(--red);
  border-radius: 50%;
}

input[type="radio"]:checked {
  border-color: var(--gray);
}

input[type="radio"]:checked::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1em;
  height: 1em;
  content: "";
  background-color: var(--gray);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.frm_checkbox,
.frm_radio {
  display: inline-block !important;
}

/* アニメーション設定 
コンテンツの場所にスクロールしたら表示 */
.scroll_animation {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ナビメニュー表示の際に背景のスクロール禁止
JSでナビメニュー展開時に.no-scrollを付与 */
.no-scroll {
  overflow: hidden;
}

/* PC表示（画面幅が783px以上）の場合 */
@media (width >= 783px) {
  section[id],
  div[id] {
    scroll-margin-top: 6rem; /* PC用ヘッダーの高さに合わせて調整 */
  }
}

/* スマホ・タブレット表示（画面幅が782px以下）の場合 */
@media (width <= 782px) {
  section[id],
  div[id] {
    scroll-margin-top: 4rem; /* スマホ用ヘッダーの高さに合わせて調整 */
  }
}

@media screen and (width <= 796px) {
  /* --- 基本的なレイアウト調整 --- */
  .top_header {
    flex-direction: column;
    max-height: 10dvh;
    padding: 10px 1.5em;
    background-color: transparent;
    border-radius: 50px;
    transition: max-height 0.5s, border-radius 0.5s, top 0.5s, width 0.5s;
    transition-delay: 1.5s, 1.5s, 2s, 0s;
  }

  .top_header::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    content: "";
    background-color: var(--blue);
    transition: height 0.5s ease, width 0.5s ease, top 0.5s;
    transition-delay: 1s, 0.5s, 2s;
  }

  .header_left {
    width: 25vw;
    min-width: 100px;
    max-width: 150px;
    height: auto;
    max-height: 100%;
  }

  /* メニュー本体のスタイル（初期状態：非表示） */
  .header_nav {
    /* メニュー項目を中央に配置 */
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: right;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    margin: 0;

    /* アイコンよりは後ろに配置 */
    transition: right 0.5s ease;
    transition-delay: 0.5s;
  }

  /* ナビメニューを縦に並べる */
  .headerNav_list-right {
    flex-direction: column;
    gap: 2em;
    margin: 0;

    /* 項目間の余白 */
  }

  .nav_item {
    transform: translateX(100vw);
    transition: 0.8s;
  }

  /* ハンバーガーを閉じる時の動作 */
  .header_nav .nav_item:nth-child(1) {
    transition-delay: 0.4s;
  }

  .header_nav .nav_item:nth-child(2) {
    transition-delay: 0.3s;
  }

  .header_nav .nav_item:nth-child(3) {
    transition-delay: 0.2s;
  }

  .header_nav .nav_item:nth-child(4) {
    transition-delay: 0.1s;
  }

  .header_nav .nav_item:nth-child(5) {
    transition-delay: 0s;
  }

  .nav_link {
    font-size: 1.5em;

    /* SPでは少し大きく */
    text-align: center;
  }

  /* --- ハンバーガーメニューの実装 --- */

  /* アイコンの表示と配置 */
  .humberger {
    position: absolute;
    top: 25%;
    right: 5dvw;
    z-index: 102;
    display: flex;
    align-items: center;
    width: 6vh;
    min-width: 35px;
    max-width: 45px;
    height: 3dvh;
    min-height: 35px;
    max-height: 45px;
    margin: 0;
    cursor: pointer;
  }

  .humberger-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 4.5vh;
    min-height: 25px;
    max-height: 35px;
  }

  .hum_border {
    position: absolute;
    width: 100%;
    height: 1.5px;
    margin: 0;
    background-color: var(--white);
    mix-blend-mode: difference;
    transition: 0.3s;
  }

  .hum_border:first-child {
    top: 0;
  }

  .hum_border:nth-child(2) {
    top: 50%;
  }

  .hum_border:last-child {
    top: 100%;
  }

  /* --- ハンバーガーメニュー展開時のスタイル --- 
 .openクラスがheaderに付いた時の変化 */

  .top_header.open {
    top: 0;
    flex-direction: row;
    width: 100dvw;
    max-height: 100dvh;
    padding: 0 1em;
    border-radius: 0;
    transition-delay: 0s;
  }

  .top_header.open::before {
    width: 50%;
    height: 100dvh;
    opacity: 0.8;
    transition-delay: 0.5s, 1s;
  }

  .open .header_left {
    width: 100%;
    max-width: 100%;
    margin: 0;
    animation: logoMove 0.8s linear forwards;
  }

  .open .header_nav {
    visibility: visible;
    justify-content: center;
    width: 100%;
  }

  .open .humberger {
    top: 5%;
  }

  .open .hum_border {
    position: absolute;
    left: 0;
  }

  .open .hum_border:first-child {
    top: 50%;
    transform: rotate(45deg);
  }

  .open .hum_border:nth-child(2) {
    opacity: 0;
  }

  .open .hum_border:last-child {
    top: 50%;
    transform: rotate(-45deg);
  }

  /* メニュを時間差で表示 */
  .open .nav_item {
    transform: translateX(0);
  }

  .open .nav_item:nth-child(1) {
    transition-delay: 1.7s;
  }

  .open .nav_item:nth-child(2) {
    transition-delay: 1.8s;
  }

  .open .nav_item:nth-child(3) {
    transition-delay: 1.9s;
  }

  .open .nav_item:nth-child(4) {
    transition-delay: 2s;
  }

  .open .nav_item:nth-child(5) {
    transition-delay: 2.1s;
  }

  /* ハンバーガ展開ここまで */

  /* 閉じる動作追記分ここまで */

  .mv {
    height: 100dvh;
  }

  .mv-background {
    height: 100%;
  }

  .scroll_under {
    width: 10px;
    height: 10px;
  }

  .scroll_under {
    position: absolute;
    bottom: 1em;
    left: 50%;
    width: 2em;
    height: 2em;
    cursor: pointer;
    border: 1px solid #f5f5f5;
    border-radius: 50%;
    translate: -50%;
  }

  .scroll_under::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2em;
    height: 2em;
    content: "";
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgb(43 46 253 / 80%);
    opacity: 0;
    translate: -50%;
    animation: ripple1 3s infinite;
  }

  .scroll_under span {
    position: absolute;
    top: 10%;
    left: 25%;
    z-index: 2;
    width: 1em;
    height: 1em;
    border-bottom: 1px solid var(--white);
    border-left: 1px solid var(--white);
    transform: rotate(-45deg);
  }

  .profile_box {
    flex-direction: column;
  }

  .worksCard {
    width: 88%;
  }

  .works_client {
    font-size: 2em;
  }

  .priceTable {
    display: block;
    overflow-x: scroll;
    white-space: nowrap;
  }

  .priceTable .menu {
    position: sticky;
    left: 0;
    width: 100%;
    background-color: var(--white);
  }

  .priceTable th,
  .priceTable td {
    padding: 0.25em;
  }

  .priceTable .menu::after {
    position: absolute;
    top: 0;
    right: -1px;
    width: 100%;
    height: 100%;
    content: "";
    border-right: 1px solid var(--dark_blue);
  }

  .contact_selector .input_type {
    display: inline-block;
  }

  @keyframes logoMove {
    0% {
      transform: translate(50%, -41dvh);
    }

    50% {
      transform: translate(26%, -20dvh);
    }

    100% {
      transform: translate(0, -50%);
    }
  }
}

@keyframes ripple1 {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  60% {
    box-shadow: 0 0 0 2em rgb(43 46 253 / 20%);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
