/* --------------------------------------------------
   base & reset
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: #4a4a4a;
  --bg-color: #fcfbf9;      /* ほんのり暖かみのある白 */
  --accent-color: #b5a999;  /* ナチュラルなベージュ系 */
  --border-color: #e5e0da;
  --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul {
  list-style: none;
}

/* --------------------------------------------------
   layout & common
-------------------------------------------------- */
.l-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.l-header {
  padding: 30px 0;
  text-align: center;
}

.c-logo {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.c-nav {
  margin-top: 20px;
}

.c-nav__list {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.c-nav__item a {
  font-size: 14px;
  text-transform: uppercase;
}

.l-main {
  padding: 40px 0 80px;
  min-height: 60vh;
}

.l-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.c-copyright {
  font-size: 12px;
  color: #999;
}

.c-page-title {
  text-align: center;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.c-btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.c-btn:hover {
  background-color: #9c8e7c;
  color: #fff;
}

/* --------------------------------------------------
   top (index.html)
-------------------------------------------------- */
.p-hero {
  margin-bottom: 60px;
}

.p-hero__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.p-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.p-item-card {
  display: block;
}

.p-item-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.p-item-card:hover .p-item-card__thumb {
  transform: scale(1.02);
}

.p-item-card__title {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: normal;
}

.p-item-card__price {
  font-size: 14px;
  color: #777;
}

/* --------------------------------------------------
   item detail (item.html)
-------------------------------------------------- */
.p-detail {
  display: flex;
  gap: 50px;
}

.p-detail__gallery {
  flex: 1;
}

.p-detail__img {
  width: 100%;
  border-radius: 8px;
}

.p-detail__info {
  flex: 1;
  padding-top: 20px;
}

.p-detail__title {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 10px;
}

.p-detail__price {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.p-detail__desc {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 40px;
}

.p-detail__desc p {
  margin-bottom: 20px;
}

/* --------------------------------------------------
   contact (contact.html)
-------------------------------------------------- */
.p-contact {
  max-width: 600px;
  margin: 0 auto;
}

.c-form__group {
  margin-bottom: 25px;
}

.c-form__label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.c-form__label span.required {
  color: #cf5e5e;
  font-size: 12px;
  margin-left: 5px;
}

.c-form__input,
.c-form__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background-color: #fff;
}

.c-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.c-form__submit {
  text-align: center;
  margin-top: 40px;
}

/* --------------------------------------------------
   responsive
-------------------------------------------------- */
@media screen and (max-width: 768px) {
  .p-hero__img {
    height: 300px;
  }
  
  .p-detail {
    flex-direction: column;
    gap: 30px;
  }
}
