/*
Theme name: ポートフォリオレッスン - 齊藤仁美
Description:bootstrap課題をワードプレス化してみよう！
Author: 齊藤仁美
*/

html{
  scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    color: #4e4e4e;
}
/* 共通 */
a {
    text-decoration: none;
    color: #4e4e4e;
}
.big-h2 {
    font-weight: 100;
    font-size: 3rem;
}
h1 {
    color: #1e1e1e;
}
h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 100;
    color: #64748b;
}
.pt4rem {
    padding-top: 4rem;
}

/* ナビゲーション */
.navbar-brand {
    font-size: 1.6rem;
    font-weight: bold;
}
.nav-item,
.nav-item a,
.nav-tem:hover {
    font-family: 'Lato', sans-serif;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}
.navbar {
    background-color: rgba(0,0,0,0.6);
}
/* ナビゲーションに動きをつける */
.navbar-trans {
    background: transparent;
    transition: background 800ms;
}
.navvar-trans a {
    color: #fff;
}
.navbar-white {
    background: #000;
    transition: background 800ms;
}
.navbar-white a {
    color: #fff;
}
.navbar-trans .navbar-nav a,
.navbar-white .navbar-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 800ms;
}
/* マウスホバーで下線を出す */
#headernav .collapse a {
    position: relative;
}
#headernav .collapse a::after {
    position: absolute;
    content: '';
    left: 10px;
    bottom: 0;
    width: 0;
    height: 2px;
    transition: all 500ms ease;
}
#headernav .collapse a:hover::after {
    width: 65%;
}
.navbar-trans .collapse a:hover::after {
    background-color: #fff;
}
.navbar-white .collapse a:hover::after {
    background-color: #fff;
}

/* ヒーロー */
.base {
    background-image: url(img/kv.jpg);
    background-size: cover;
    height: 100vh;
    background-position: center;
    position: relative;
    background-attachment: fixed;
}
.mask {
    color: #fff;
    text-align: center;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.intro-title {
    font-size: 4rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}
.intro-inner {
    font-size: 1.5rem;
}
/* about me */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
}
.line-0 {
    width: 80px;
    height: 3px;
    background-color: #64748b;
    margin-bottom: 50px;
}
.background-circle {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    margin: 0 auto;
    padding-top: 6px;
    text-align: center;
    background-color: #64748b;
    color: #fff;
    display: block;
    font-size: 16px;
}
.custom-color {
    background-color: #4e4e4e;
}
/* 親ラッパーで確実に右寄せ */
.more-wrap {
  display: flex;
  justify-content: flex-end; /* ← これで右寄せが確実に効きます */
  align-items: center;
}

/* ボタン本体（丸枠＋テキスト） */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;               /* テキストと矢印の間隔 */
  padding: 12px 18px;      /* ボタン内の余白（左右で丸さを見せる） */
  border: 3px solid #64748b;
  border-radius: 40px;     /* 大きめの半円で丸っぽく */
  text-decoration: none;
  color: #333;
  font-weight: 700;
  letter-spacing: 0.08em;
  height: 60px;            /* 見た目を元の丸ボタンと揃えたい場合に指定 */
  min-width: 60px;         /* 幅の最低値 */
  box-sizing: border-box;
  transition: border-color .2s, color .2s, transform .08s;
}

/* テキスト（MORE）の見た目調整 */
.more-btn .more-text {
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}

/* 矢印の見た目 */
.more-btn .arrow {
  font-size: 26px;
  line-height: 1;
  transform: translateX(0);
}

/* ホバー効果 */
.more-btn:hover {
  background-color: #64748b;
  color: #fff;
  transform: translateY(-2px);
}
.more-wrap a {
    text-decoration: none;
}

/* 小さい画面ではボタンを中央寄せ（任意） */
@media (max-width: 767.98px) {
  .more-wrap {
    justify-content: center; /* スマホで中央寄せにしたければ有効に */
  }
}

#about dt {
    color: #64748b;
}
.slider-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  width: calc(300% * 2); /* 画像3枚 × 2セット */
  animation: slide 50s linear infinite; /* 速度調整：20sでゆっくり流れる */
}

.slider img {
  width: auto;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* スライドアニメーション */
.swiper {
    mask-image: linear-gradient(
        to right,
        transparent 0 5%,
        #000 8% 92%,
        transparent 95% 100%
    );
    position: relative;
    min-height: 500px;
    padding-bottom: 4rem;
}
.swiper-pagination {
    bottom: 1rem !important;
    z-index: 100;
}
.swiper-button-next,
.swiper-button-prev {
    top: 50%;
    transform: translateY(-50%);
}
.card {
    max-height: 600px;
    overflow: hidden;
}
.swiper-button-next::after,
.swiper-button-prev::after{
  color: #4e4e4e;
}

.swiper-pagination-bullet-active {
  background-color: #ffc107;
}



@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 半分（3枚分）だけスライド */
}
.worries img {
    display: block;
}
.worries .box {
    padding: 10px 0;
}

/* サービス */
.line {
    width: 40px;
    height: 5px;
    background-color: #64748b;
    margin: 0 auto;
}
.ico-circle {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    margin: 0 auto;
    padding-top: 25px;
    text-align: center;
    background-color: #64748b;
    color: #fff;
    display: block;
}
.s-box {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}
.service-title {
    color: #4e4e4e;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}
/* スコア */
.counter {
    padding: 8rem 0;
    background-image: url(img/back-img2.jpg);
    background-size: cover;
    background-attachment: fixed;
}
.icon-circle {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    background-color: #fff;
    color: #4e4e4e;
    display: block;
    transition: all 500ms ease;
}
.icon-circle:hover {
    color: #64748b;
}
.counter-box {
    color: #fff;
    text-align: center;
}
.counter-tex {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

/* ポートフォリオ */
.w-blue, .blue {
    color: #64748b;
}
.w-title {
    font-size: 1.15rem;
}
.btn-area {
    text-align: right;
}

.text-area a :hover,
.btn-area a :hover {
    color: #64748b;
    transition: all 500ms ease;
}
/* ブログ */
.c-photo {
    height: 20px;
    width: 20px;
    border-radius: 50%;
}
.category-box {
    position: relative;
    display: inline-block;
}
.card-category {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
    padding: 3px 15px;
    overflow: hidden;
    background-color: #64748b;
    border-radius: 4px;
}
.card-title {
    font-size: 1.2rem;
}
.card a:hover {
    text-decoration: none;
}
/* フェードイン／アウトライン用 */
.animated-hidden {
    opacity: 0;
}
.animated-view {
    opacity: 1;
    transition: all 1.8s ease-out;
}

/* フォーム */
.line-2 {
    width: 80px;
    height: 3px;
    background-color: #64748b;
    margin-bottom: 50px;
}
.button-rouded {
    border-radius: 5rem;
}
.contact li {
    list-style: none;
}
.contact-img {
    background-image: url(img/work-4.jpg);
    background-size: cover;
    background-attachment: fixed;
}
button input {
    background-color: transparent;
    border: none;
    color: #fff;
    width: 100%;
}
.message {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #a5a5a5;
}

/* フッター */
footer {
    background-color: #4e4e4e;
    text-align: center;
    color: #fff;
    padding: 25px 0;
}
footer a {
    color: #fff;
}

/* ブログ一覧ページ */
.blog-fv {
    background-image: url(img/back-img.jpg);
    background-size: cover;
    height: 350px;
    background-position: bottom;
    position: relative;
    background-attachment: fixed;
}
.overlay {
    top: 0;
    left: 0px;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: .6;
    position: absolute;
}
.card .col-md-5 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.m-auto h1 {
    color: #fff;
    font-weight: 600;
}
.breadcrumb {
    background-color: transparent;
    font-weight: normal;
}
.breadcrumb a,
.breadcrumb-item + .breadcrumb-item::before {
    color: #fff;
}
.breadcrumb-item .active,
.breadcrumb-item::before {
    color: #cde1f8;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
/* PageNaviの調整 */
.wp-pagenavi {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}
.wp-pagenavi a,
.wp-pagenavi span {
    padding: .5rem .75rem;
    margin-left: -1px;
    color: #64748b;
    background-color: #fff;
    border: 1px solid #dee2e6;
}
.wp-pagenavi .current {
    color: #fff;
    background-color: #64748b;
}
.wp-pagenavi a:hover {
    z-index: 2;
    color: #64748b;
    background-color: #e9ecef;
    border-color: #dee2e6;
}
/* サイドバー（サーチ） */
.h5 {
    font-size: 1.25rem;
}
.input-group-text {
    background-color: #64748b;
}
/*共通設定*/
aside h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.search h2::before,
.poular-posts h2::before,
.widget h2::before  {
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    padding-right: 7px;
}
/*個別設定*/
.search h2::before {
    content: "\f002";
}
#block-12 h2::before {
    content: "\f521";
}
#block-7 h2::before {
    content: "\f133";
}
#block-10 h2::before {
    content: "\f02c";
}
#block-11 h2::before {
    content: "\f187";
}
aside li.widget {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
/* タグクラウド */
.tag-cloud-link {
    display: inline-block;
    background-color: #64748b;
    border-radius: 15px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.7rem;
    margin-right: 0.25rem;
    color: #fff;
    text-align: center;
    font-size: 1rem !important;
}
.wp-block-latest-posts__list {
    padding-left: 1.5rem;
    list-style-type: disc;
}
.wp-block-latest-posts__list li {
    margin-bottom: 1rem;
}
.wp-block-archives-list {
    padding-left: 0;
    list-style: none;
}
.wp-block-archives-list li {
    margin-bottom: 1rem;
}
aside .widget img{
  max-width: 100%;
  height: auto;
}

.h6 {
    font-size: 1rem;
}
.tags li {
    list-style: none;
    display: inline-block;
    background-color: #64748b;
    border-radius: 15px;
    padding: .2rem .6rem;
    margin-bottom: .5rem;
}
.tags li a {
    color: #fff;
}
.archives li {
    list-style: none;
}

.sticky-top {
    top: 64px;
}

/* ブログ記事ページ */
.post .breadcrumb-item a,
.post .breadcrumb-item::before {
    color: #4e4e4e
}
.post .current-item {
    color: #cde1f8;
}
.post-meta {
    border-left: 4px solid #64748b;
    font-size: .95em;
}
.post-meta a {
    color: #64748b;
}
.snsicon img {
    width: 50px;
    height: 50px;
}
/* ポートフォリオWorksページ */
.works-title {
	font-size: 26px;
}

.works-title span {
	display: flex;
	align-items: center;
	color: #498ee0;
	font-size: 18px;
	text-transform: uppercase;
}

.works-title span::before {
	content: '';
	display: inline-block;
	margin-right: 20px;
	width: 40px;
	height: 1px;
	background-color: #498ee0;
}
.card-imgbox img:hover {
    transform:scale(1.3,1.3);
}
.card-imgbox {
    width: 100%;
    overflow: hidden;
}

.card-imgbox img {
    transition: all 800ms ease;
}

/* セクション内のリスト項目を定義風に整えるためのスタイル */
.post-information-portfolio .info-item {
    border-bottom: 1px solid #498ee0; /* 項目間の薄い区切り線 */
}
.post-information-portfolio .info-item:last-child {
    border-bottom: none; /* 最後の項目は区切り線を非表示に */
}

/* キーとなる見出しのスタイル */
.info-key {
    font-weight: 300; /* 太字 */
    color: #498ee0; /* 濃いめの色 */
}

/* 内容テキストのスタイル */
.info-value {
    color: #6c757d; /* やや薄い色 */
    line-height: 1.8;
}

/* 制作期間のリストを横並びにするための調整 */
/* Bootstrapの.col-6内のulに対する調整 */
.production-period-content ul {
    padding-left: 1rem; /* ulの左パディングを調整 */
}

/* 右下固定表示_トップに戻る */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #64748b;
    color: #fff;
    text-align: center;
    font-size: 18px;
    line-height: 2.4em;
}



@media(max-width: 768PX) {
    .base {
        background-position: center;
    }
    .intro-title {
        font-size: 3rem;
    }
    .card-body-custom {
        display: flex;
        flex-direction: column; /* テキスト上 → ボタン下 */
        height: 100%;
    }

    .text-area {
        flex-grow: 1; /* テキストを縦に広げる */
    }

    .btn-area {
        margin-top: 1rem;
    }
    .post-information__wrapper {
    width: 92%;
    }
    #headernav .collapse a::after {
        left: 0;
        transform: none;
    }
    #headernav .collapse a:hover::after {
    width: 10%;
}
}
@media (max-width: 1024px) {
    .base,
    .blog-fv,
    .counter {
        background-attachment: scroll;
    }
}
