*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  background-color: #f4f7fb; color: #1e293b; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #2563eb; }

.top {
  position: relative;
  background-image: linear-gradient(135deg, rgba(15,41,77,.65) 0%, rgba(30,88,158,.45) 100%), url(images/top.jpg);
  background-size: cover; background-position: center;
  color: #fff; padding: 2.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(15,23,42,.12);
}
.top-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 1.25rem; }
.top img { width: 4.5rem; height: 4.5rem; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.top-title { display: flex; flex-direction: column; flex: 1; }
.site-name { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.site-subtitle { margin: .25rem 0 0; font-size: .9rem; color: rgba(255,255,255,.88); letter-spacing: .05em; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.top-nav a { color: #fff; font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

.contents-table { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.lead { font-size: 1.05rem; margin: 0 0 .25rem; }
.lead-meta { color: #64748b; font-size: .9rem; margin: 0 0 2rem; }
.section-title { font-size: 1.25rem; margin: 2.25rem 0 1rem; color: #0f172a; }
section:first-child .section-title { margin-top: 0; }

.pickup {
  display: flex; flex-direction: column; text-decoration: none;
  padding: 1.75rem; margin-bottom: .5rem;
  background: linear-gradient(135deg, #0f294d, #1e589e); color: #fff;
  border-radius: 1rem; box-shadow: 0 8px 20px rgba(15,23,42,.18);
}
.pickup-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; opacity: .85; }
.pickup h2 { margin: .4rem 0 .6rem; font-size: 1.6rem; line-height: 1.35; }
.pickup p { margin: 0 0 1rem; color: rgba(255,255,255,.92); }
.pickup .contents-url { color: #fff; }

.contents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.contents {
  display: flex; flex-direction: column; text-decoration: none;
  padding: 1.75rem; background-color: #fff; color: #1e293b;
  border: 1px solid #e2e8f0; border-top: 4px solid #2b6cb0; border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(15,23,42,.05), 0 2px 4px -2px rgba(15,23,42,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contents:hover, .contents:focus-visible { transform: translateY(-4px); border-color: #3182ce; border-top-color: #3182ce; box-shadow: 0 12px 24px -4px rgba(30,64,175,.14), 0 4px 8px -2px rgba(30,64,175,.08); outline: none; }
.contents.static:hover { transform: none; }
.contents h3 { margin: 0 0 .6rem; padding-bottom: .6rem; font-size: 1.25rem; font-weight: 700; color: #0f172a; border-bottom: 1px solid #f1f5f9; line-height: 1.35; }
.contents p { margin: 0 0 1rem; flex: 1; font-size: .95rem; color: #475569; }
.contents-meta { font-size: .85rem; color: #64748b; margin-bottom: .5rem; }
.contents-url { display: inline-flex; align-items: center; font-size: .85rem; font-weight: 600; color: #2563eb; transition: transform .2s ease; }
.contents:hover .contents-url { transform: translateX(4px); }

.about-summary { margin-top: 2.5rem; padding: 1.5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; }
.about-summary .section-title { margin-top: 0; }
.about-link { font-weight: 700; }
.skill-list { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem 1.5rem 1.25rem 2.25rem; }
.skill-list li { margin: .35rem 0; }
.note { color: #64748b; font-size: .9rem; }

.footer { text-align: center; padding: 1.5rem; color: #64748b; font-size: .85rem; border-top: 1px solid #e2e8f0; background-color: #fff; }
.footer-links { display: flex; gap: 1.25rem; justify-content: center; margin-bottom: .5rem; flex-wrap: wrap; }
.footer-links a { font-weight: 600; }

.today-box { margin-top: 1rem; padding: 1rem 1.25rem; background: #fff8e6; border: 1px solid #e8d48b; border-radius: .75rem; font-size: .95rem; }
.today-label { font-weight: 800; color: #8a6d00; margin-right: .25rem; }
.latest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.latest-col { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem 1.5rem; }
.latest-col h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { padding: .45rem 0; border-bottom: 1px solid #f1f5f9; font-size: .93rem; line-height: 1.5; }
.latest-list li:last-child { border-bottom: none; }
.latest-list time { color: #64748b; font-size: .82rem; white-space: nowrap; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.quick { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #2b6cb0; border-radius: .75rem; color: #1e293b; }
.quick strong { color: #0f172a; font-size: 1.05rem; }
.quick span { font-size: .88rem; color: #475569; }
.quick:hover { border-color: #3182ce; border-left-color: #3182ce; }

.directory { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; }
.directory li + li { border-top: 1px solid #f1f5f9; }
.directory a { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; padding: .9rem 1.25rem; text-decoration: none; }
.directory a:hover { background: #f8fafc; }
.dir-name { font-weight: 700; color: #2563eb; min-width: 220px; }
.dir-desc { color: #475569; font-size: .9rem; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #e8edf3; font-size: .95rem; }
.news-list time { color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }

.operator-line { margin-top: 2.5rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; font-size: .95rem; }

.profile-table, .works-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; font-size: .93rem; }
.profile-table th, .works-table th { text-align: left; background: #f1f5f9; color: #0f172a; padding: .6rem .9rem; white-space: nowrap; }
.profile-table td, .works-table td { padding: .6rem .9rem; border-top: 1px solid #f1f5f9; vertical-align: top; }
.works-table { display: block; overflow-x: auto; }
.steps { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem 1.5rem 1.25rem 2.5rem; }
.steps li { margin: .4rem 0; }

@media (max-width: 600px) {
  .top { padding: 1.75rem 1.25rem; }
  .top img { width: 3.5rem; height: 3.5rem; }
  .contents-table { padding: 1.5rem 1rem; }
}
