/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body{
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:#f6f6f6;
  color:#222;
  line-height:1.75;
}
a{ color: inherit; }

/* ===== Layout ===== */
.container{
  max-width:1000px;
  margin:0 auto;
  padding:0 20px;
}
main{ padding-top: 95px; } /* fixed header offset */

/* ===== Header  ===== */
header{
  position:fixed;
  top:0; left:0; right:0;
  height:75px;
  background:linear-gradient(135deg,#7c1226,#4e0b17);
  color:#fff;
  display:flex;
  align-items:center;
  padding:28px 28px 28px 0px;
  z-index:1000;
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
}
.logo-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:20px;
  font-weight:700;
  letter-spacing:1px;
}
.logo a{ text-decoration:none; }
.Project-img{
  margin-top:20px;
  height:130px;
  width:auto;
  display:block;
}
nav{
  margin-left:auto;
  display:flex;
  align-items:center;
}
nav a{
  color:#fff;
  text-decoration:none;
  margin-left:22px;
  opacity:.86;
  font-size:14px;
  transition:.2s;
  position:relative;
}
nav a:hover{ opacity:1; }
nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:0;
  height:2px;
  background:#e7c98a; /* gold */
  transition:.25s;
}
nav a:hover::after{ width:100%; }

.nav-toggle{
  margin-left:auto;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  padding:10px;
  cursor:pointer;
  display:none; /* PCは非表示 */
}

.nav-toggle .bar{
  display:block;
  height:2px;
  margin:6px 0;
  background:#fff;
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}

@media (max-width: 780px){
  .nav-toggle{ display:block; }
}

/* ×にする */
.nav-toggle.is-open .bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2){ opacity:0; }
.nav-toggle.is-open .bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero{ padding: 18px 0 8px; }
.hero-card{
  background: linear-gradient(135deg, #ffffff, #f4eee6);
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}
.hero h1{ font-size: 28px; margin-bottom: 6px; }
.hero h2{ font-size: 18px; margin-top: 15px; margin-bottom: 6px; }
.hero .lead{ color:#666; font-size:14px; max-width: 720px; }

/* ===== Cards ===== */
.card{
  background:#fff;
  border-radius:16px;
  padding: 30px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.09);
  margin-top: 16px;
}
.card h2{
  font-size: 18px;
  margin-bottom: 8px;
  color:#7c1226;
}
.card p{ color:#444; font-size:15px; margin-top: 8px; }

.list{ margin-top: 10px; padding-left: 30px; color:#444; }
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#f2f2f2;
  color:#444;
}

/* ===== Form ===== */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label{ display:block; font-size:13px; color:#444; margin:2px 0 6px; }
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #ddd;
  outline:none;
  font-size:15px;
  background:#fff;
}
input:focus, textarea:focus{
  border-color: rgba(124,18,38,0.55);
  box-shadow: 0 0 0 4px rgba(124,18,38,0.10);
}
.actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 14px;
  flex-wrap:wrap;
}
button{
  background:#7c1226;
  color:#fff;
  padding:12px 16px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  font-size:15px;
}
button:hover{ background:#8c1732; }
button:disabled{ opacity:.6; cursor:not-allowed; }
.hint{ margin-top:10px; font-size:12px; color:#666; }

.status{
  margin-top: 12px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  display:none;
}
.status.ok{ background:#eef7ee; color:#1f6b2e; border:1px solid #cfe8d2; }
.status.ng{ background:#fdeeee; color:#9b1c1c; border:1px solid #f3caca; }

/* ===== Footer ===== */
footer{
  background:#1a0d12;
  color:#ccc;
  padding:40px 20px;
  margin-top:80px;
}
.footer-inner{
  max-width:1000px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 16px;
}
.footer-brand{
  font-weight:700;
  color:#e7c98a;
}
.footer-copy{ margin-top:10px; font-size:12px; opacity:.75; }
.footer-links a{
  color:#ccc;
  text-decoration:none;
  margin-left:18px;
  font-size:13px;
  opacity:.85;
}
.footer-links a:hover{ opacity:1; color:#fff; }

/* ===== Responsive ===== */
@media (max-width: 780px){
  main{ padding-top: 90px; }
  .grid{ grid-template-columns: 1fr; }

  /* ★ nav をスマホ時にドロップダウン化 */
  #site-nav{
    display:none;
    position:fixed;
    top:75px;
    left:0;
    right:0;
    background:rgba(30, 7, 12, 0.96);
    backdrop-filter: blur(10px);
    flex-direction:column;
    align-items:stretch;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,0.10);
    z-index:999;
  }

  #site-nav.is-open{ display:flex; }

  #site-nav a{
    margin-left:0;
    padding:14px 20px;
    font-size:15px;
    opacity:1;
  }

  #site-nav a::after{ display:none; }
}
