/* —— リセット —— */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

/* —— カラー変数 —— */
:root {
  --orange: #d35400;
  --white: #ffffff;
  --gray: #f5f5f5;
}

/* —— ヘッダー —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--orange);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-logo {
  height: 40px;
}

/* —— ハンバーガーメニュー —— */
#menu-toggle {
  display: none;
}

.hamburger {
  display: inline-block;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background: var(--white);
}

/* —— ナビゲーション —— */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100vh;
  background: var(--orange);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1050;
}

#menu-toggle:checked + .hamburger + .site-nav {
  transform: translateX(0);
}

.site-nav ul {
  list-style: none;
  margin-top: 4rem;
}

.site-nav a {
  display: block;
  padding: 1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* —— メニューオーバーレイ —— */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1000;
}

#menu-toggle:checked ~ .menu-overlay {
  display: block;
}

/* —— セクション共通 —— */
section {
  padding: 5rem 1rem 3rem;
}

section h2 {
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 0.25rem;
  text-align: left;
}

section p {
  margin-bottom: 1.5rem;
}

/* —— グリッドレイアウト —— */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.grid-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: transform 0.2s;
}

.grid-item img:hover {
  transform: scale(1.03);
}

/* —— モーダル —— */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal:target {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 1rem;
  width: 90vw;
  max-height: 90vh;
  overflow: auto;
  border-radius: 4px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  text-decoration: none;
  color: var(--orange);
}

/* —— モーダル左右分割 —— */
.modal-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 2px solid var(--orange);
  border-radius: 4px;
}

.modal-text h2 {
  color: var(--orange);
  margin-bottom: 0.5rem;
  text-align: left;
}

.modal-text p {
  text-align: left;
  line-height: 1.6;
}

/* —— お問い合わせフォーム —— */
.contact .form-group {
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.contact label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
}

.contact textarea {
  resize: vertical;
  min-height: 150px;
}

.contact textarea::placeholder {
  color: #999;
}

.contact button {
  display: block;
  margin: 1rem 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.contact button:hover {
  background: #b34700;
}

/* —— メディアクエリ —— */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-flex {
    flex-direction: row;
  }

  .modal-image,
  .modal-text {
    width: 50%;
  }

  .modal-text {
    padding-left: 1rem;
  }

  .site-nav {
    position: static;
    transform: translateX(0);
    width: auto;
    height: auto;
    background: none;
  }

  .hamburger,
  .menu-overlay {
    display: none;
  }

  .site-nav ul {
    display: flex;
    margin: 0;
  }

  .site-nav a {
    padding: 0 1rem;
    color: var(--white);
  }
}

