/* ===== 基本設定 ===== */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ===== ヘッダー ===== */
.site-header {
  background: #222;
  color: #fff;
  padding: 1rem 0;
}
.site-header .site-title {
  margin: 0;
  font-size: 1.5rem;
}
.site-header a {
  color: #fff;
  text-decoration: none;
}
.site-header .site-nav a:hover{
  color:#cfe3ff;
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

/* ===== ヒーロー ===== */
.hero {
  background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),url("../img/S__47489035.jpg"); /* CSSの場所からの相対パス */
  background-size: cover;       /* 画像をセクションいっぱいに表示 */
  background-position: center;  /* 画像を中央に配置 */
  background-repeat: no-repeat; /* 繰り返しなし */
  color: white;                 /* 文字色を白に */
  padding: 80px 0;              /* 上下に余白 */
  text-align: center;
  padding: 3rem 0;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 1; /* オーバーレイより前に表示 */
}
.hero h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
@media (max-width:480px) {
  .hero h2 {
    font-size: 1.2rem;
    white-space: nowrap;
  }
}
.btn {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

/* ========== About ==========
   既存のstyle.cssの末尾に追記
================================ */
/* セクション全体 */
.about {
  padding: 3rem 0;
  background: #fff;
}

.about .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ヘッダー部（画像＋テキスト横並び） */
.about__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about__title {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
}

.about__lead {
  margin: 0;
  color: #666;
}

/* プロフィール画像 */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 45%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 4px solid #fff;
}

.avatar--lg {
  width: 160px;
  height: 160px;
}

/* カード部分 */
.about__content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.about__card {
  flex: 1 1 300px;
  background: #fffaf5;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem;
   /* 時間を長く、カーブを滑らかに */
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, box-shadow;
}

/* ホバー/フォーカス時にふわっと */
.about__card:hover,
.about__card:focus-within{
   /* GPUアクセラレーションで滑らかに */
  transform: translate3d(0, -4px, 0) scale3d(1.02, 1.02, 1);     /* ほんの少し浮かす */
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  filter: brightness(1.02);        /* ほんのり明るく（お好みで） */
}

/* キーボード利用者向けの枠（任意） */
.about__card:focus-within{
  outline: 2px solid rgba(0,115,170,.35);
  outline-offset: 2px;
}

/* モーション苦手な人への配慮 */
@media (prefers-reduced-motion: reduce){
  .about__card{ transition: none; }
  .about__card:hover,
  .about__card:focus-within{ transform: none; }
}

.about__card h3 {
  margin-top: 0;
}

.about__card table {
  width: 100%;
  border-collapse: collapse;
}

.about__card th {
  text-align: left;
  padding: 0.5rem;
  width: 30%;
  color: #444;
}

.about__card td {
  padding: 0.5rem;
  color: #333;
}

.about__card ul {
  margin: 0;
  padding-left: 1.2rem;
  padding-bottom: 1.2rem;
}

/* スマホ対応 */
@media (max-width: 720px) {
  .about__header {
    flex-direction: column;
    text-align: center;
  }

  .about__content {
    flex-direction: column;
  }
}

/* ===== 実績 ===== */
/* ===== Portfolio / case study ===== */
.portfolio { padding: 3rem 0; background: #fff; }
.section-title { margin: 0 0 1.5rem; font-size: 1.6rem; }

.work{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 画像:テキスト = 1:1（半分） */
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}
.work__media{
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.work__media img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  aspect-ratio: 16/9; /* 画像の比率をきれいに保つ */
}

.work__body{
  background: #fffaf5; /* カードと馴染むやさしい色（お好みで） */
  border-radius: 12px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.work__title{ margin: .25rem 0 .25rem; font-size: 1.25rem; }
.work__meta{ margin: 0 0 .75rem; color: #666; font-size: .95rem; }

.work__cols{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 背景 / 実装 を左右に */
  gap: 1rem;
  margin-bottom: 1rem;
}
.work__list{ margin: 0; padding-left: 1.2rem; }
.work__list li{ margin: .35rem 0; }

.work__actions{ display: flex; gap: .6rem; }
.btn{
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: 8px;
  text-decoration: none;
  background: #0073aa; color: #fff;
}
.btn--ghost{
  background: transparent; color: #0073aa;
  border: 1px solid #0073aa;
}

/* スマホ対応：縦並びに */
@media (max-width: 900px){
  .work{ grid-template-columns: 1fr; }
  .work__cols{ grid-template-columns: 1fr; }
}

/* ===== サービス ===== */
.services {
  background: #fafafa;
  padding: 2rem 0;
}
.services ul {
  list-style: none;
  padding: 0;
}
.services li {
  padding: 0.5rem 0;
}

/* ===== フッター ===== */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Contact */
.page-title{ font-size:1.8rem; margin:1.5rem 0 .5rem; }
.contact__lead{ color:#666; margin-bottom:1.25rem; }

.contact__form{
  background:#fffaf5;
  border-radius:12px;
  padding:1.25rem;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  max-width:720px;
}
.form-row{ display:flex; flex-direction:column; gap:.4rem; margin-bottom:1rem; }
.form-row label{ font-weight:600; }
.form-row input,
.form-row textarea{
  padding:.7rem .8rem;
  border:1px solid #e4e4e4;
  border-radius:8px;
  font:inherit;
  background:#fff;
}
.form-row input:focus,
.form-row textarea:focus{
  outline:2px solid rgba(0,115,170,.35);
  border-color:#bcd8e6;
}
.req{ color:#d45555; }

.btn{
  display:inline-block; border:none; background:#0073aa; color:#fff;
  padding:.7rem 1.1rem; border-radius:8px; cursor:pointer;
}
.btn:hover{ filter:brightness(1.05); }
.contact__notice{ color:#777; margin-top:.75rem; }

@media (max-width:720px){
  .contact__form{ padding:1rem; }
}

/* レスポンシブ */
@media (max-width: 900px) {
  .about__card { grid-column: span 12; }
  .about__list > div { grid-template-columns: 6.5rem 1fr; }
}

@media (max-width: 640px){
  .about__profile{ flex-direction:column; text-align:center; }
  .avatar--lg{ width:155px; }
}