/* =========================
   Theme Variables
========================= */
:root{
  --bg: #ffffff;
  --card: #ffffff;

  /* colors */
  --primary: #4b2c82;        /* 濃い紫（ヘッダー） */
  --primary-dark: #3a2166;
  --accent: #3fbf8f;         /* グリーン（アクセント） */

  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;

  --radius: 14px;
}

/* =========================
   Base
========================= */
*{
  box-sizing: border-box;
}

body{
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

/* =========================
   Header
========================= */
header{
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1{
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: .06em;
}

nav.breadcrumb {
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

nav.breadcrumb a {
  color: #1e90ff;
  text-decoration: none;
}
nav.breadcrumb a:hover {
  text-decoration: underline;
}
/* =========================
   Layout
========================= */
.layout{
  display: flex;
  min-height: 100vh;
}

.content{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================
   Sidebar
========================= */
.sidebar{
  width: 260px;
  background: #fafafa;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.sidebar-title{
  font-size: 1.15rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--primary);
}

.sidebar-menu{
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li{
  margin-bottom: 10px;
}

.sidebar-menu a{
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  transition: all .25s ease;
}

.sidebar-menu a:hover{
  background: rgba(63,191,143,.08);
  border-color: var(--accent);
  transform: translateX(4px);
}

.menu-name{
  display: block;
  font-weight: 600;
}

.menu-desc{
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

/* =========================
   Main
========================= */
main{
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* =========================
   Section Box
========================= */
.section-box{
  max-width: 1000px;
  margin: 3.5rem auto;
  padding: 2rem 1.8rem;
  background: linear-gradient(
    135deg,
    #ffffff,
    #f9fafb
  );
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}

.section-box h2{
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.8rem;
  position: relative;
  color: var(--primary);
}

.section-box h2::after{
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(
    90deg,
    var(--accent),
    #8ce3c3
  );
  border-radius: 2px;
}

.section-box p{
  font-size: .95rem;
  color: #374151;
  margin-bottom: 1rem;
}

/* =========================
   Grid / Card
========================= */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.5rem;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

.card img{
  width: 100%;
  border-radius: 12px;
}

.card .title{
  margin-top: .7rem;
  font-weight: 600;
}

.card .meta{
  font-size: .75rem;
  color: var(--muted);
}

/* =========================
   Form
========================= */
form{
  background: #ffffff;
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: .75rem;
  margin-bottom: 2rem;
}

select,
button{
  padding: .6rem .7rem;
  border-radius: 10px;
  font-size: .9rem;
  border: 1px solid var(--border);
}

select:focus,
button:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63,191,143,.25);
}

button{
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover{
  background: #2ea97b;
}

/* =========================
   Footer
========================= */
footer{
  text-align: center;
  padding: 1.5rem;
  background: #f9fafb;
  font-size: .8rem;
  color: var(--muted);
}

/* =========================
   Responsive
========================= */
@media (max-width:900px){
  .layout{
    flex-direction: column;
  }
  .sidebar{
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
