/*
Theme Name: Calm Portfolio
Author: 北原桃子
Description: ポートフォリオ
Version: 1.0　
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/* 共通 */
body {
  font-family: 'Helvetica btn-back', sans-serif;
  line-height: 0.5;
  color: #333;
  margin: 0;
  padding: 0;
  padding-top: 30px
}

/* コンテナ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px; /* スマホ・縮小用の保険 */
}
.site-header {
  
  font-family: 'Roboto', sans-serif; /* Robotoを指定 */
  font-weight: 400;                 /* Regularの場合 */
  font-size: 16px;                  /* フォントサイズ */
  letter-spacing: 0.10em;           /* 字間 15% */
  line-height: 40px;                /* 行間 60px */
  width: 100%;
  margin: 0 
  z-index: 1000;     /* 他の要素より前面に表示 */
  background-color: transparent;
}

.header-inner {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;       /* 垂直中央揃え */
  max-width: 1100px;         /* ここで中央に寄せる幅を調整可能 */
  margin: 0 auto;            /* 左右中央寄せ */
  gap: 40px;                 /* ロゴとナビ間隔 */
}

.site-nav ul {
  display: flex;
  flex-direction: row;       /* 横並び */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;                 /* ナビ項目間の間隔 */
}

.site-nav ul li a {
  color: #000; /* 通常黒 */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease; /* なめらかに色が変わる */
}

.site-nav ul li a:hover,
.site-nav ul li a:focus {
  color: #e60000; /* 赤に変化 */
  outline: none;  /* フォーカス時の青枠を消す */
}

/* 調整用クラス例 */
.header-inner.adjust {
  max-width: 1000px;         /* ここを変えると右から中央に寄せられる */
}
/* セクションタイトル */
.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* セクションテキスト */
.section-text {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
}

/* Hero Section */
.hero {
  width: 100%;
  max-width: 1100px; /* Figmaと同じサイズ */
  height: 700px;     /* Aboutとの余白 */
  margin: 0 auto 120px auto; /* 上60px、左右自動、下120px */
  position: relative;
  margin-bottom: 300px;
}

.hero-image {
  width: 100%;
  height: auto;       /* 高さ自動調整 */
  display: block;
}

.hero-text h1 {
  position: absolute;
  left: 60%;                      /* x位置 */
  top:  35%;                       /* y位置 */
  margin: 0;
  font-family: 'Roboto', sans-serif; /* Robotoを指定 */
  font-weight: 400;                 /* Regularの場合 */
  font-size: 20px;                  /* フォントサイズ */
  letter-spacing: 0.15em;           /* 字間 15% */
  line-height: 60px;                /* 行間 60px */
  color: #000;                      /* 文字色はお好みで */
}
.hero-text p {
  position: absolute;
  left: 60%;                      /* x位置 */
  top:  70%;                       /* y位置 */
  font-family: 'Roboto', sans-serif; /* Robotoを指定 */
  font-weight: 200;                 /* ExtraLightの場合 */
  font-size: 16px !important;                /* フォントサイズ */
  letter-spacing: 0.15em;           /* 字間 15% */
  line-height: 60px;                /* 行間 60px */
  color: #000;                       /* 文字色はお好みで */
  margin: 10px 0 0 0;
}

.hero-text h1:hover,
.hero-text h1:focus {
  color: #ffffff; /* 白に変化 */
}

.hero-text p:hover,
.hero-text p:focus {
  color: #ffffff; /* 白に変化 */
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 200px; /* 左部の余白 */
}

.about-left {
  flex: 1;
  max-width: 50%;
}

.about-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.15em;           /* 字間 15% */
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 16px;
}

.about-line {
  width: 2.5em;
  height: 1px;
  background-color: #000;
}

.about-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 20px;
  letter-spacing: 0.15em;           /* 字間 15% */
}

.about-text {
    font-size: 14px;
  line-height: 2;
  letter-spacing: 0.08em;
  max-width: 520px;
  margin-bottom: 50px;
  letter-spacing: 0.10em;           /* 字間 10% */

/*  font-family: 'Roboto', sans-serif;
/*  font-weight: 200;
/*  font-size: 14px;
/*  line-height: 1.6;
/*  letter-spacing: 0.08em;
/*  margin-bottom: 50px;
/*  letter-spacing: 0.10em;           /* 字間 10% */
}

.about-skills {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.15em;           /* 字間 15% */
}

.about-skillstext {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 200px;
  letter-spacing: 0.15em;           /* 字間 15% */
}

.about-right {
  flex: 1;
  max-width: 50%;

}

.about-right img {
  max-width: 50%;
  height: auto;
  object-fit: cover;
  margin-left: 150px;  /* 横位置 */
  margin-top: 60px;    /* ← 下にずらす */
  border-radius: 0px
  border-radius: 0px; /* 角丸はお好みで */
}

/* Concept Section */
.concept {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 200px; /* 左部の余白 */
}

.concept-left {
  flex: 1;
  max-width: 50%;
}
.concept-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.15em;           /* 字間 15% */
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 16px;
}
.concept-line {
  width: 2.5em;
  height: 1px;
  background-color: #000;
}

.concept-text {
     font-size: 14px;
  line-height: 2;
  letter-spacing: 0.08em;
  max-width: 520px;
  margin-bottom: 200px;
  letter-spacing: 0.10em;           /* 字間 10% */
}

/* Work Section */
.work {
  max-width: none;
  margin: 0 auto 160px;
  padding: 0px 200px; /* 左部の余白 */
  
   
}

/* タイトル */
.work-title {
   font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.15em;           /* 字間 15% */
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 16px;
}

.work-line {
  width: 2.5em;
  height: 1px;
  background-color: #000;
}

.section-label {
  font-size: 16px;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.work-category {
 margin-bottom: 120px;
}

/* 各ブロック */
.work-block {
  margin-bottom: 300px;
}

.work-category {
  font-size: 16px;
  letter-spacing: 0.15em;           /* 字間 15% */
  margin-bottom: 18px;
  font-weight: 500;
}

/* グリッド共通 */
.work-grid {
  display: grid;
  gap: 40px;
}

/* LP：2カラム */
.lp-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* バナー：3カラム */
.banner-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* アイテム */
.work-item img {
  width: 100%;
  height: auto;
  display: block;
}

.work-text {
  margin-top: 12px;
  margin-left: 12px;
  padding: 10px 10px;          /* 枠内の余白 */
  border: 1px solid #000;      /* 黒枠 */
  font-size: 12px;
  line-height: 1.6;
  font-weight: 300;
}
.work-textadd {
      font-size: 14px;
  line-height: 2;
  letter-spacing: 0.08em;
  max-width: 520px;
  margin-bottom: 100px;
  letter-spacing: 0.10em;           /* 字間 10% */

}

/* サムネイル */
.work-banner {
  cursor: pointer;
}

/* モーダル背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

/* 拡大画像 */
.modal-content {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.all-view-btn {
  display: inline-block;
  margin-top: 0px;
  margin-left: 420px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.10em;           /* 字間 10% */
  letter-spacing: 0.15em;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

/* Contact Section */
.contact-section {
  width: 100%;
  max-width: 1100px;
  margin: 160px auto;
  text-align: center;
}

/* Contact Button */
.contact-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 10px 5px;

  background-color: #000;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-align: center;

  transition: opacity 0.3s ease;
}

.contact-btn:hover {
  opacity: 0.8;
}


/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 48px;
  height: 48px;

  background-color: #000;
  color: #fff;

  border: none;
  font-size: 18px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;

  z-index: 999;
}

/* 表示状態 */
#scrollTopBtn.is-visible {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  opacity: 0.7;
  }
  
/* ===== Hero Fade In (Top画面)===== */
.fade-in {
  opacity: 0;
  animation: fadeInHero 1.8s ease-out forwards;
}

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: translateY(12px); /* 少しだけ下から */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Scroll Fade In ===== */
.scroll-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

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

/* Work page */
.work-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 60px; /* ヘッダー分 */
}

/* トップ画像 */
.work-hero img {
  width: 80%;
  height: auto;
  margin-bottom: 30px;
}

.work-gallery .thumbs {
  display: flex;
  flex-wrap: wrap;           /* 複数行対応 */
  justify-content: left;   /* 中央寄せ */
  gap: 20px;                 /* サムネ間の間隔 */
  margin-top: 60px;
  margin-bottom: 500px;
}

.work-gallery .thumbs a {
  flex: 1 1 calc(25% - 20px); /* 横4列、gap分を引く */
  max-width: 300px;            /* 最大幅300px */
}

.work-gallery .thumbs a img {
  width: 100%;        /* aタグに合わせて横幅いっぱいに */
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.work-gallery .thumbs a img:hover {
  transform: scale(1.05); /* ホバーで少し拡大 */
}

/* スマホ用（横2列） */
@media (max-width: 768px) {
  .work-gallery .thumbs a {
    flex: 1 1 calc(50% - 20px);
    max-width: none;
  }
}

/* 小さいスマホ用（横1列） */
@media (max-width: 480px) {
  .work-gallery .thumbs a {
    flex: 1 1 100%;
  }
}

/* work detail page */
.work-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px; /* 上下余白 */
  text-align: left;
}

.work-detail-hero img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer; /* クリック可能 */
  margin-bottom: 0px;

}

/* 説明文 */
.work-detail-text h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 24px !important;;
  font-size: 2rem;
  letter-spacing: 0.15em;           /* 字間 10% */
  margin: 0;
  margin-bottom: 20px;
}
.work-detail-text p1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px !important;
  font-size: 1.1rem;
  letter-spacing: 0.10em;           /* 字間 10% */
  line-height: 1.8;
  margin-bottom: 40px;
}
.work-detail-text p {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 16px !important;
  font-size: 1.1rem;
  letter-spacing: 0.10em;           /* 字間 15% */
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ボタン */
.work-detail-btn .btn-black {
  display: inline-block;
  padding: 16px 40px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  transition: 0.3s;
}

.work-detail-btn .btn-black:hover {
  background-color: #333;
}

.work-intro {
 font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 16px !important;
  font-size: 1.1rem;
  letter-spacing: 0.10em;           /* 字間 15% */
  line-height: 1.8;
  margin-bottom: 150px;
}
/* ブログトップ画像 */
.blog-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px auto;
}
.blog-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* 投稿一覧 */
.blog-list .posts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center; /* 中央寄せ */
}

.blog-item {
  width: 300px; /* サムネとタイトル込みの幅 */
  border: 1px solid #ccc;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.blog-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 1rem;
  color: #666;
}
.btn-back a {
  font-size: 12px;
  letter-spacing: 0.15em;
  display: inline-block;
  background-color: #000; /* 黒長方形 */
  color: #fff;            /* 白文字 */
  padding: 12px 28px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-back a:hover {
  background-color: #333; /* ホバー時少し明るく */
}
/* =========================
   Contact Page
========================= */

/* ---------- Hero ---------- */
.contact-hero {
    max-width: 1100px;
  margin: 0 auto;

  
}

.contact-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Body ---------- */
.contact-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px 160px;
}

/* タイトル */
.contact-title {
   font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.15em;           /* 字間 15% */
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 16px;
}

/* 横棒 */
.contact-line {
  width: 90px;
  height: 1px;
  background-color: #000;
  display: inline-block;
  flex-shrink: 0;
}

/* テキスト */
.contact-text {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.08em;
  max-width: 520px;
  margin-bottom: 200px;

}

/* ---------- Form ---------- */
.contact-form {
  margin-top: 80px;
}
.contact-form {
  max-width: 600px;
  margin: 80px auto 0;
}

.contact-form label {
  display: block;
  margin-bottom: 30px;
line-height: 30px !important;                /* 行間 60px */
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #000;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 160px;
  margin-bottom: 100px;

}

.contact-form input[type="submit"] {
  background: #000;
  color: #fff;
  border: none;
  max-width: 200px;
  margin: 0 auto;
  padding: 10px 5px;
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
  display: block;
  margin-left: auto;

}
.contact-form-title {
  text-align: center !important;
  font-size: 1.5rem !important;
  line-height: 60px !important;                /* 行間 60px */
  margin-bottom: 100px !important;
}
.news-box {
    background: #fff;       /* 白背景 */
    padding: 15px 20px;
    border-radius: 6px;     /* お好みで */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* 軽い影で浮かせる */
    max-width: 600px;
    margin: 20px auto;      /* 中央寄せ */
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-header .whats-new {
    font-weight: bold;
    font-size: 16px;
}

.news-header .all-view {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.news-list {
    list-style: none;
    padding: 10;
    margin: 10;
}

.news-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
 line-height: 20px !important;                /* 行間 60px */
}

.news-date {
    color: #999;
    flex-shrink: 0;
}

.news-title {
    color: #333;
    text-decoration: none;
    flex-grow: 1;
}

.news-title:hover {
    text-decoration: underline;
}
/* 親ラッパーで幅と左寄せを強制 */
.blog-wrapper {
  max-width: 1100px !important;  /* トップ画像と揃える */
  margin: 0 auto !important;
  padding: 40px 20px;
  text-align: left !important;   /* 強制左寄せ */
}

/* 投稿アイテムの余白 */
.post-item {
  margin-bottom: 40px;
}

/* タイトルリンク */
.post-title a {
  font-size: 1.0rem !important;
  color: #000 !important;
  text-decoration: none !important;
}

.post-title a:hover {
  color: #e60000 !important;
}

/* メタ情報 */
.post-meta {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-bottom: 10px !important;
}

/* 抜粋 */
.post-excerpt {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #333 !important;
}

/* ページネーション */
.pagination {
  text-align: left !important;
  margin-top: 30px;
}

.pagination a, .pagination span {
  margin-right: 10px;
  text-decoration: none;
  color: #000;
}

.pagination a:hover {
  color: #e60000;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .blog-wrapper {
    max-width: 90% !important;
    padding: 20px 10px !important;
  }
}

/* =========================
   single page layout
========================= */

.single-wrapper {
  max-width: 900px;
  margin-left: 80px;   /* ← 左からの距離をここで調整 */
  margin-right: auto;
  padding: 80px 20px;
}

/* 記事全体 */
.single-article {
  text-align: left;
}

/* サムネイル */
.single-thumbnail img {
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

/* 日付 */
.single-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

/* タイトル */
.single-title {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 本文 */
.single-content {
  font-size: 0.95rem;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.single-content p {
  margin-bottom: 1.8em;
}

/* 戻るボタン */
.single-back {
display: inline-block;
  margin-top: 0px;
  margin-left: 420px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.10em;           /* 字間 10% */
  letter-spacing: 0.15em;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.single-back a:hover {
  opacity: 0.6;
}
/* アイキャッチ画像 共通 */
.single-thumbnail {
  width: 100%;
  max-width: 900px;     /* PCでの最大幅 */
  margin: 0 0 40px 0;   /* 下に余白 */
}

.single-thumbnail img {
  width: 100%;
  height: 420px;        /* ←ここで高さを統一 */
  object-fit: cover;   /* トリミングして比率維持 */
  display: block;
}