/*color palette
背景:Frost Beige #ECE8E0
文字:Bark Brown #5A4433
セクション間:Blush Umber #D9B8A0
ボタン・リンク:Sprout Green #A9C3A6
ホバー:Sky Blue #BCD9DD
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Yu Mincho', 'Noto Serif JP', serif;
  background-color: #ECE8E0;
  color: #5A4433;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}


header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*ロゴ*/
header h1 { 
  font-family: 'Noto serif JP', serif;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: #5A4433;
  z-index: 1;
}

h1::after {
  content: "";
  left: 0px;
  position: absolute;
  width: 200px;
  bottom:26px; 
  height: 0.3em;
  background-color: #A9C3A6; /* 線の色*/
  border-radius: 3px;
  z-index: -1; /* 文字の背後に線を配置 */
}

/*ナビゲーション*/
nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: #5A4433;
  margin-left: 1em;
}

a {
  text-decoration: none;
}

a:hover {
  color: #BCD9DD ;/*効いてない*/
  text-decoration: none; /* or keep none */
  
}

/*見出し*/
h2 { 
  font-family: 'Noto serif JP', serif;
  font-size: 1.8rem;
  color: #5A4433;
  text-align: left;
  position: relative;
  margin-top: 2em;
  margin-bottom: 1em;
  letter-spacing: 0.05em;
  display: inline-block; /* 横幅に合わせて線を引くため */
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em; /* 文字の下にぴったり */
  width: 120%;
  height: 0.3em;
  border-radius: 3px;
  background-color: #D9B8A0; /* 線の色（例：ベージュ） */
  z-index: -1; /* 文字の背後に線を配置 */
}

h3 { 
  font-family: 'Noto serif JP', serif;
  font-size: 1.4rem;
  color: #5A4433;
  text-align: left;
  position: relative;
  margin-top: 1em;
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
  display: inline-block; /* 横幅に合わせて線を引くため */
}

h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em; /* 文字の下にぴったり */
  width: 105%;
  height: 0.3em;
  border-radius: 3px;
  background-color: #D9B8A0; /* 線の色（例：ベージュ） */
  z-index: -1; /* 文字の背後に線を配置 */
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin-top: 0em;
  
}

.work-item {
  text-align: right;
  width: 300px;
  height: 300px;
  margin: 1em;
}

.work-item img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover; /* 引き延ばさず、中央をトリミング */
  object-position: center; /* 中央基準でトリミング */
  display: block;    /* 余計な隙間を消す */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.7s ease;
  margin-top: -0.7em;
}

.work-item img:hover {
  transform: scale(1.05);
}

.image-wrapper {
  position: relative; /* キャプションを画像に重ねるために必要 */
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}



.caption {
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #5A4433;
}


.gallery img {
  width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin: 3em;
}

.center-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.center-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}

.image-scroll {
  display: flex;
  overflow-x: auto;
  gap: 45px; /* 画像の間隔 */
  padding: 10px 0;
  scroll-snap-type: x mandatory; /* スクロールをスナップさせたい場合 */
}

.image-scroll img {
  height: 500px; /* 高さはお好みで調整 */
  flex-shrink: 0; /* 画像が縮まないように */
  scroll-snap-align: start; /* スナップ位置の調整 */
  border-radius: 8px;
}

.hero {
  padding: 3em 2em;
  text-align: center;
}

.buy-button-wrapper {
  text-align: center;
  margin-top: 2em;
}

.buy-button {
  display: inline-block;
  background-color: #A9C3A6; /* Sage Green */
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  padding: 0.8em 2em;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #BCD9DD; /* スカイブルーに */
}

/*about*/
.bio {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: #5A4433;
  line-height: 1.8;
}

.row {
  display: flex;
  margin-bottom: 0.3em;
}

.year {
  width: 6em;
  font-weight: 500;
  flex-shrink: 0;
}

/*contact*/
.contact-form {
  max-width: 600px;
  margin: 4em auto;
  padding: 2em;
  background-color: #F9F7F3;
  font-family: 'Noto Serif JP', serif;
  color: #4B392E;
}


.contact-form label {
  display: block;
  margin: 1em 0 0.4em;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 95%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #ECE8E0;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
}

.contact-form button {
  margin-top: 2em;
  background-color: #A9C3A6;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
}

.contact-form button:hover {
  background-color: #BCD9DD;
}


footer {
  width: 100%;
  margin-top: 100px;
  text-align: center;
  padding: 1em;
  background-color: #A9C3A6;
  box-sizing: border-box;
  color: white;
}
