@charset "utf-8";

/* =====================================
共通項目
===================================== */
/* 共通のタイトルスタイル */
.title-box {
  background-color: #272727;
  padding-top: 90px; /* Worksなど広めの余白*/
}

/* タイトル文字を白くする */
.white-heading {
  color: #ffffff;
}
.title-box__inner {
  padding: 30px 0;
}
.title-box__inner .heading {
  display: inline-block;
  margin-bottom: 0; /*タイトルのマージンボトム0*/
  line-height: 1.3em;
}

/* コンテンツの見出し */
.heading {
  font-size: 5rem;
}
.heading-sub {
  padding-left: 15px;
}

/* 各項目のマージンボトム */
.sub-bottom {
  margin-bottom: 40px;
}

/* 各項目内にあるマージン */
.small-bottom {
  margin-bottom: 25px;
}

/* input */
input[type="submit"] {
  border: none;
}

/* .page-スラッグで制御 */
.page-about .section-bottom {
  border-bottom: none;
}
.page-privacy-policy .section-bottom {
  font-size: 0.95rem;
}

/* パンくずリストのリンク */
/* Websiteのリンク */
/* 参考サイトのリンク */
.breadcrumb-box__list a,
.work-name__uri,
.reference-link {
  display: inline-block;
  text-decoration: underline;
  color: #272727;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.breadcrumb-box__list a:hover,
.breadcrumb-box__list:focus,
.work-name__uri:hover,
.work-name__uri:focus,
.reference-link:hover,
.reference-link:focus {
  color: #1a73e8;
  text-decoration: underline;
}

/* =====================================
パンくずリスト
===================================== */
.breadcrumb-box {
  padding: 20px 0 55px 0;
}
.breadcrumb-box__list {
  display: flex;
  flex-wrap: wrap;
}
.breadcrumb-box__list li {
  display: flex;
}
.breadcrumb-box__list li:not(:last-child)::after {
  content: "›";
  padding: 0 .6em;
}

/* =====================================
スキル
===================================== */
.skills-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 55px;
}
.skills-box__list dt {
  display: block;
  text-align: center;
  padding: 30px;
  background-color: #f2eeee;
}
.skills-box__list dt img {
  width: 80%;
}
.skills-box__title {
  font-size: 1.5rem;
  margin: 25px 0;
  text-align: center;
}
.skills-box__outline {
  margin-bottom: 25px;
}
.skills-box__subtitle {
  text-decoration: underline;
}
.skills-box__tool {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
}
.skills-box__tool li:not(:last-child)::after {
  content: "/";
  padding: 0 0.4em;
}

/* =====================================
職歴
===================================== */
.career-box {
	display: flex;
	flex-direction: column;
	gap: 35px;
}
.career-box__list {
	display: grid;
	grid-template-columns: 200px 2fr;
	gap: 30px;
}
.career-box__datetime {
	border-right: 2px solid #272727;
	height: 150px;
}
.career-box__title {
	font-size: 1.3rem;
	margin-bottom: 20px;
}

/* =====================================
制作物
===================================== */
.works-box {
  display: grid;
  grid-template-columns: 92px 2fr;
  gap: 95px;
}

/* サイトバー */
.works-box__sidemenu {
  position: relative;
}
.tab-list {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tab-list li a,
.select-box select,
.select-box select option {
  font-size: 1.25rem;
}
.tab {
  display: flex;
  align-items: center;
}
.tab::before {
  content: "";
  width: 3px;
  height: 20px;
  background-color: #fffef8;
  margin-right: 5px;
}
.tab:hover::before,
.tab:focus::before,
.tab.active::before {
  content: "";
  width: 3px;
  height: 20px;
  background-color: #f33333;
  margin-right: 5px;
}
.select-box,
.works-box__main .content {
  display: none; /*はじめは非表示*/
}
.works-box__main .content.show {
  display: block; /*showクラスが付与されたら表示*/
}

/* 制作物リスト */
.works-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 15px;
}
.works-box__content .heading {
  line-height: 0.7em;
}
.works-list__title {
  font-size: 1.3rem;
}
.works-list__item img {
  height: auto;
  object-fit: cover;
}
.thumb {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 制作物の詳細ページ */
.works-images {
  display: block;
  text-align: center;
  margin-bottom: 30px;
}
.website-box,
.dtp-box {
  display: grid;
  gap: 80px;
}
.website-box {
  grid-template-columns: 2fr 1fr;
}
.dtp-box {
  grid-template-columns: 1fr 1fr;
}
.device-size {
  font-weight: bold;
  padding-bottom: 10px;
}
.work-name__title {
  font-size: 5rem;
  line-height: 1.1em;
  margin-bottom: 10px;
}
.work-name__sub {
  font-size: 1.875rem;
  font-weight: normal;
  margin-bottom: 10px;
}
.work-name__item01,
.work-name__item02 {
  display: grid;
  margin-bottom: 7px;
}
.work-name__item01 {
  grid-template-columns: 65px 1fr;
}
.work-name__item02 {
  grid-template-columns: 100px 1fr;
}
.work-name__item01 dt,
.work-name__item02 dt {
  font-weight: bold;
}
.subheading {
  font-size: 1.5625rem;
  margin-bottom: 20px;
  border-left: 8px solid #2665D1;
  padding-left: 10px;
}
.unordered-list {
  padding-left: 1em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  font-weight: normal;
}
.unordered-list__circle {
  padding-left: 1em;
  margin-top: 10px;
}

/* =====================================
お問い合わせフォーム
===================================== */
.contact-text {
  margin-bottom: 70px;
}
.contact-box__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.username,
.userfurigana,
.useremail,
#message {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  line-height: 1.5em;
}
.contact-box__header {
  font-weight: bold;
  font-size: 1.3rem;
  padding-bottom: 15px;
}
.required {
  display: inline-block;
  background-color: #c81313;
  color: #ffffff;
  padding: 5px 10px;
  font-size: 1.1rem;
  margin-left: 10px;
}
.send-btn {
  background-color: #272727;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  width: 260px;
  padding: 15px;
  font-size: 1.2rem;
  color: #ffffff;
  transition: 0.3s ease-in-out;
}
.send-btn:hover,
.send-btn:focus {
  background-color: #cac8c5;
  color: #272727;
}
.send-btn::after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 20px;
  transition: 0.3 ease-in-out;
}
.send-btn:hover:after,
.send-btn:focus::after {
  border-color: #272727;
}
.input-box,
.return-box {
  display: flex;
  justify-content: center;
}
.green-btn,
.red-btn,
.gray-btn {
  padding: 15px;
  font-size: 1.2rem;
  color: #ffffff;
  text-align: center;
}
.input-box .red-btn,
.confirm-box .red-btn {
  background-color: #c81313;
  border: 1px solid #c81313;
}
.input-box .green-btn {
  background-color: #078925;
  border: 1px solid #078925;
}
.input-box .green-btn,
.input-box .red-btn,
.return-box .gray-btn {
  width: 260px;
  height: 62px;
}
.gray-btn {
  background-color: #676464;
  border: 1px solid #676464;
}
.confirm-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 50%;
  gap: 40px;
  margin: auto;
}
.error {
  color: #c81313;
  margin-top: 10px;
}
.message-box {
  word-wrap: break-word; /*長い単語がコンテナの幅を超えると場合は、単語を途中で改行して表示するようにする（横スクロール防止*/
  white-space: pre-wrap; /*必要に応じて単語の途中で改行する*/
}

/* =====================================
ブログページ（トップ）
===================================== */
.blog-box {
  display: grid;
  grid-template-columns: 1fr 295px;
  gap: 80px;
}
.blog-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.blog-list__item {
  display: none; /*始めは非表示*/
}
.blog-list__item.on {
  display: block; /*onクラス付与で画面に表示*/
}
/* ページネーションの現在のページ「.active」クラスを付与して色を変える */
.pagination .number > a.active {
  background-color: #272727;
  color: #ffffff;
}
.pagination {
  width: 70%;
  margin: 50px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  list-style-type: none;
}
.pagination .number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  text-align: center;
  cursor: pointer;
  background-color: #E6DDDD;
  color: #272727;
  padding: 10px 0;
  font-size: 1.2rem;
}
.unordered-list li a:hover,
.unordered-list li a:focus,
.archive-list__item li a:hover,
.archive-list__item li a:focus {
  color: #ff0000;
  text-decoration: underline;
}
.search-box {
  position: relative;
}
.search-box::after {
  content: '';
  width: 26px;
  height: 26px;
  background-image: url(../images/search-icon.png);
  position: absolute;
  top: 10px;
  right: 10px;
}
.search-box__bar {
  width: 100%;
  height: 45px;
  padding: 5px;
}
.archive-list {
 list-style-type: none;
}
.archive-list__seireki {
  line-height: 2em;
}
.archive-list__seireki::before {
  content: '▶';
  padding-right: 0.5em;
}
/* openクラスが付与されたら▼ */
.archive-list__seireki.js-active::before {
  content: '▼';
}
.archive-list__item {
  display: none; /*始めは非表示*/
  list-style: disc;
  padding-left: 2.5em;
  line-height: 2em;
}
.unordered-list__title {
	font-size: 1.25rem;
    font-weight: bold;
}

/* =====================================
ブログページ（詳細）
===================================== */
/* 大見出し */
.blog-box__title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2em;
}
/* インデックス */
.index-box {
  background-color: #F6F4F4;
  padding: 30px;
}
.index-box__title {
  font-size: 1.375rem;
  text-align: center;
  padding-bottom: 20px;
}
.major-heading {
  font-size: 1.875rem;
  border-top: 8px solid #2665D1;
  border-bottom: 8px solid #2665D1;
  padding: 15px 0;
  margin-bottom: 25px;
}
.blog-box__text {
  margin-bottom: 25px;
}
.small-heading {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: #2665D1;
}
.ordered-list {
  list-style-type: decimal;
  line-height: 1.5em;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.375rem;
  font-weight: bold;
}
.item-photo {
  margin: 15px 0;
}
.book-box {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 25px;
  background-color: #fff;
  padding: 25px;
  box-shadow: 0 0 8px gray;
}
.book-box__photo {
  width: 140px;
  height: 197px;
  object-fit: cover;
}
.book-box__title {
  font-size: 1.5rem;
  line-height: 1.2em;
  margin-bottom: 10px;
}
.publisher-name {
  padding-bottom: 44px;
}
.shopping-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shopping-sites li a {
  display: inline-block;
  padding: 7px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
}
.kindle-btn {
  background-color: #2665D1;
}
.amazon-btn {
  background-color: #FF8800;
}
.rakuten-btn {
  background-color: #CF4944;
}
.yahoo-btn {
  background-color: #51A7E8;
}
/* codeタグでソースコードの文字列を表示 */
.code-box {
  width: 100%;
  margin: 0 auto 15px;
  padding: 15px;
  border-radius: 5px; /*角丸*/
  background-color: #25292f; /*背景色*/
  color: #ffffff; /*文字色*/
  white-space: pre-wrap; /*はみ出したときに折り返す*/
}
/* 注意書き */
.blog-notes {
  display: flex;
  flex-wrap: wrap;
}
.blog-notes a {
  display: inline-block;
  padding: 0 5px;
  color: #ff0000;
  text-decoration: underline;
}
/* 画像のキャプション */
.caption-box {
  text-align: center;
  font-weight: bold;
}

/* =====================================
プライバシーポリシー
===================================== */
.policy-title {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* =====================================
ブレークポイント1030px以下
===================================== */
@media screen and (max-width: 1030px) {
  /* スキル */
  .skills-box {
    grid-template-columns: 1fr 1fr;
  }
	
  /*キャリア*/
   .career-box__list {
      grid-template-columns: 1fr;
	    gap: 15px;
   }
  .career-box__datetime {
    border-right: none;
    border-bottom: 2px solid #272727;
    height: 35px;
    padding-right: 0;
    width: 100%;
  }
  .career-box__outline {
    padding-left: 0;
  }
  .career-box__title {
    margin-bottom: 10px;
  }

  /* 制作物 */
  .works-box__sidemenu {
    display: none; /*サイドバーを非表示*/
  }
   .works-list {
    padding: 0;
  }
  .thumb {
    height: 330px;
  }

  /* セレクトボックス */
  .select-box {
    display: block; /*セレクトボックスを表示*/
    text-align: center;
    margin-bottom: 30px;
  }
  select {
    /*初期化*/
    background: none;
    border: none;
  }
  #select {
    width: 30%;
    border-left: 3px solid #f33333; /*セレクトの左側に赤いボーダー*/
    padding: 0 10px;
  }
  .works-box {
    grid-template-columns: 1fr;
  }
  .contact-menu {
    opacity: 1;
  }

  /* 作品の詳細詳細ページ */
  .florist-images__item {
      width: 90%;
  }

  /* 中見出し */
  .heading {
    margin-bottom: 30px;
  }
  .heading-sub {
    display: block;
    line-height: 1.5em;
    padding-left: 0;
  }

  /* ブログページ */
  .blog-box,
  .blog-list {
    grid-template-columns: 1fr;
  }
}

/* ====================================
ブレークポイント768px以下
==================================== */
@media screen and (max-width: 768px) {
   .skills-box,
   .website-box {
     grid-template-columns: 1fr;
   }

   /* 制作物 */
   .works-list__title {
    font-size: 1rem;
   }


   /* 作品の詳細ページ */
   .work-name__title {
    font-size: 3.125rem;
  }
  .work-name__sub {
    font-size: 1.5625rem;
  }
  .website-box {
    gap: 50px;
  }
  .dtp-box {
    grid-template-columns: 1fr;
  }

  /* お問い合わせページ */
  .confirm-box {
    width: 100%;
  }

  /* プライバシーポリシー */
  .policy-title {
    font-size: 1.5625rem;
  }
}

/* ====================================
ブレークポイント603px以下
==================================== */
@media screen and (max-width: 603px) {
  /* タイトル */
  .heading {
    font-size: 4rem;
  }
  /* ブログのタイトル */
  .blog-box__title {
    font-size: 1.875rem;
  }
  /* 大見出し */
  .major-heading {
    font-size: 1.5625rem;
  }
  /* 中見出し */
  .subheading {
    font-size: 1.25rem;
  }
  /* 小見出し */
  .small-heading {
    font-size: 1rem;
  }

  /* 本のタイトル */
  .book-box__title {
    font-size: 1.2rem;
  }

  /* ブログの詳細ページ */
  .book-box {
    grid-template-columns: 1fr;
  }
  .book-box__left {
    display: flex;
    justify-content: center;
  }
  .book-box__photo {
    width: 40%;
    height: auto;
  }
}

/* ====================================
ブレークポイント566px以下
==================================== */
@media screen and (max-width: 566px) {
  /* 作品の詳細ページ */
  .work-name__title {
    font-size: 1.875rem;
  }
  .work-name__sub {
    font-size: 1.125rem;
  }

  /* 見出し */
  .title-box__inner .heading {
    font-size: 3rem;
  }
  .heading-sub {
    font-size: 1rem;
  }
}

/* ====================================
ブレークポイント402px以下
==================================== */
@media screen and (max-width: 402px) {
  /* 制作物 */
  .work-name__item01,
  .work-name__item02 {
    display: block;
  }
}