@charset "utf-8";


body {
    width: 100%;
    height: 100%;
    margin: 0; /*初期値で指定されているmarginを消す*/
    background: #f7f9fb;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
}


button,
input,
select,
textarea {
  font-family: inherit;
}




/*.inner { /*ページ幅指定用*/
    /*width: 95%; /*スマホの時に幅が広がりすぎないようにあえての95%*/
    /*max-width: 800px; /*最大幅を800pxに*/
    /*margin-right: auto;
    /*margin-left: auto;
}*/

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
    display: block; /*実は初期値がblockのため無くてもOK*/
    background: #000000 ;
    box-shadow: 0 2px 4px #eed3ee;
    color: white;
}

.topImg {
    display: block; /*実は初期値がblockのため無くてもOK*/
}

.topImg img { /*.topImgを祖先とするimg要素を指定（子孫結合子）*/
    width: 100%;
    vertical-align: middle; /*垂直方向の位置を中央に（画像の下にできる無駄な余白を消すため）*/
    object-fit: scale-down; /*幅が狭くなったら画像も小さくする*/
    border-radius: 5px;
}

.diary, .profile, .link { /*セレクターリストで3つのクラスを同時に指定*/
    display: block; /*実は初期値がblockのため無くてもOK*/
    margin-top: 16px;
    border-radius: 10px;
    background: white;
    box-shadow: 1px 1px 4px #eed3ee;
}

.diaryContents, .profileContents, .linkContents { /*セレクターリストで3つのクラスを同時に指定*/
    padding: 8px 16px;
}

h1 {
  background-color: #000;
  color: #fff;
  padding: 12px 20px;
  display: inline-block; /* 文字幅ぴったりの四角 */
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 24px 0;
}


h2 {
  background-color: #000;
  color: #fff;
  padding: 12px 20px;
  display: inline-block; /* 文字幅ぴったりの四角 */
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 24px 0;
}


h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
  font-weight: 700;
}


p, ul { /*p要素とul要素を同時に指定*/
    margin: 8px 0;
}

.diaryContents p { /*.diaryContentsを祖先とするp要素を指定（子孫結合子）*/
    text-indent: 1em; /*段落の最初を1文字下げる*/
}

/* カード全体の並び */
.experience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* カード本体 */
.experience-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 20px;
  background-color: #ffffff;
}

/* タイトル */
.experience-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

/* 期間・立場 */
.experience-card .meta {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #666;
}

/* 本文 */
.experience-card p {
  margin: 0 0 12px;
  line-height: 1.6;
}

/* 役割リスト */
.experience-card ul {
  margin: 0;
  padding-left: 18px;
}

.experience-card li {
  margin-bottom: 4px;
}


.experience-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.experience-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}


.experience-card ul {
  list-style: disc;
  color: #333;
}

.experience-card li {
  font-size: 0.9rem;
}

.is-hidden {
  display: none;
}


/* Writing一覧 */
.writing-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

}

/* カード本体 */
.writing-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.writing-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* 画像 */
.writing-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* テキスト部分 */
.writing-body {
  padding: 16px;
}

.writing-body h3 {
  margin: 0 0 6px; 
  font-size: 1rem;
}

.writing-body .meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px; 
}

.writing-body .desc {
  font-size: 0.9rem;
  margin-bottom: 12px;
}



/* リンク */
.read-more {
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}


/* セクション全体 */
.writing-div {
  margin: 64px 0;
  padding: 0;
  max-width: none;
}


/* セクションタイトル */
.div-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.div-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 32px;
}

/* Writingカード一覧 */
.writing-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← ここが4列 */
  gap: 24px;
  grid-auto-flow: row;
}

/* 記事を見る一覧 */
.read-more {
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more .arrow {
  transition: transform 0.2s ease;
}

.writing-card:hover .read-more .arrow {
  transform: translateX(4px);
}


@media (max-width: 1024px) {
  .writing-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .writing-list {
    grid-template-columns: 1fr;
  }
}

/* Writingカード|すべてを見る一覧 */
writing-more {
  margin-top: 56px;
  text-align: center;
}


#showAllBtn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  border-radius: 2px; /* 少しだけ角丸（任意） */
}

#showAllBtn:hover {
  background-color: #111;
}



footer {
    display: block; /*実は初期値がblockのため無くてもOK*/
    margin: 16px 0;
    border-radius: 10px;
    text-align: center; /*テキストなどのインライン要素を中央寄せ*/
}
