/* =========================================================
   Base & Resets
========================================================= */
:root {
  --color-bg: #f4f7f8;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-primary: #3b82f6; 
  --color-secondary: #0ea5e9;
  --color-accent: #22c55e;
  --color-border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-base: 'Outfit', 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* =========================================================
   Glassmorphism Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img { height: 40px; width: auto; display: block; }
.catchphrase { font-size: 11px; color: var(--color-text-light); margin-top: 2px; }

.header-nav ul { display: flex; gap: 24px; }
.header-nav a { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.header-nav a:hover { color: var(--color-primary); }

.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--color-text); }

/* =========================================================
   Info Bar
========================================================= */
.info-bar { background: var(--color-accent); color: #fff; text-align: center; }
.info-bar-link { display: block; padding: 12px; font-weight: 700; font-size: 14px; }
.info-bar-link:hover { background: rgba(0,0,0,0.05); }

/* =========================================================
   Containers & Main
========================================================= */
.site-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* =========================================================
   Hero Section
========================================================= */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 60px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}

.hero-content { flex: 1; }
.hero-title { font-size: clamp(24px, 3.5vw, 34px); line-height: 1.5; margin-bottom: 20px; font-weight: 700; letter-spacing: 0.05em; }
.hero-title .highlight { color: var(--color-primary); position: relative; display: inline-block; }
.hero-title .highlight::after {
  content: ""; position: absolute; bottom: 2px; left: 0; width: 100%; height: 8px;
  background: rgba(59, 130, 246, 0.2); border-radius: 4px;
}

.hero-description { font-size: 16px; color: var(--color-text-light); margin-bottom: 30px; letter-spacing: 0.03em; }

.hero-cta { display: flex; gap: 16px; }
.btn { padding: 12px 24px; border-radius: 30px; font-weight: 700; text-align: center; display: inline-block; box-shadow: var(--shadow-sm); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-secondary:hover { background: rgba(59, 130, 246, 0.05); transform: translateY(-2px); }

.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.abstract-shape {
  width: 280px; height: 280px; background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  border-radius: 50% 30% 60% 40% / 40% 50% 30% 60%; display: flex; align-items: center; justify-content: center;
  animation: morph 8s ease-in-out infinite both alternate;
}
@keyframes morph { 0% { border-radius: 50% 30% 60% 40% / 40% 50% 30% 60%; } 100% { border-radius: 40% 60% 30% 50% / 50% 40% 60% 30%; } }
.hero-icon { font-size: 100px; color: var(--color-primary); filter: drop-shadow(0 10px 10px rgba(59, 130, 246, 0.2)); }

/* =========================================================
   App-like Menu section
========================================================= */
.app-menu-grid {
  display: flex; justify-content: space-between; gap: 16px;
  background: var(--color-white); padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

.app-menu-item { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.app-menu-item:hover { transform: translateY(-4px); }
.app-menu-item span { font-size: 13px; font-weight: 700; text-align: center; }

.icon-wrap {
  width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; box-shadow: var(--shadow-md); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-menu-item:hover .icon-wrap { transform: scale(1.1) rotate(-5deg); }

.bg-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-green { background: linear-gradient(135deg, #22c55e, #4ade80); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #c084fc); }
.bg-orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.bg-yellow { background: linear-gradient(135deg, #eab308, #facc15); }

/* =========================================================
   Section Titles
========================================================= */
.section-title {
  font-size: 24px; font-weight: 900; margin-bottom: 24px; text-align: center; position: relative;
  display: inline-block; left: 50%; transform: translateX(-50%); letter-spacing: 0.05em; color: #1e293b;
}
.section-title::after {
  content: ""; display: block; width: 40px; height: 4px; background: var(--color-primary); border-radius: 2px; margin: 8px auto 0;
}

/* =========================================================
   Pickup Grid
========================================================= */
.pickup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pickup-card {
  display: block; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1;
}
.pickup-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pickup-card:hover { box-shadow: var(--shadow-lg); }
.pickup-card:hover img { transform: scale(1.05); }

/* =========================================================
   Popular Articles (Ranking Style)
========================================================= */
.popular-ranking-card {
  background: var(--color-white); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-md);
}
.ranking-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.ranking-list li { display: block; }
.ranking-list a {
  display: flex; align-items: center; padding: 12px 16px; background: var(--color-bg);
  border-radius: var(--radius-md); border: 2px solid transparent; height: 100%;
}
.ranking-list a:hover {
  background: #fff; border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px);
}

.rank-badge {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: #94a3b8; color: #fff; font-weight: 900; font-size: 16px;
  flex-shrink: 0; margin-right: 16px;
}
.rank-1 .rank-badge { background: linear-gradient(135deg, #eab308, #facc15); box-shadow: 0 4px 10px rgba(234,179,8,0.3); } /* Gold */
.rank-2 .rank-badge { background: linear-gradient(135deg, #94a3b8, #cbd5e1); box-shadow: 0 4px 10px rgba(148,163,184,0.3); } /* Silver */
.rank-3 .rank-badge { background: linear-gradient(135deg, #b45309, #d97706); box-shadow: 0 4px 10px rgba(180,83,9,0.3); } /* Bronze */

.rank-text { font-weight: 700; font-size: 14px; line-height: 1.4; color: #334155; }
.ranking-list a:hover .rank-text { color: var(--color-primary); }

/* =========================================================
   Dual Columns & Accordions
========================================================= */
.main-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.category-block { background: var(--color-white); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 24px; }
.category-title { padding: 12px 20px; border-radius: var(--radius-sm); font-size: 20px; font-weight: 900; color: #fff; text-align: center; letter-spacing: 0.05em; }

.bg-blue-grad { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.bg-orange-grad { background: linear-gradient(135deg, #ea580c, #fb923c); }

.subcategory h3 { font-size: 16px; font-weight: 700; color: var(--color-text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--color-bg); padding-bottom: 8px; }
.subcategory h3 i { color: var(--color-primary); }

.article-list { display: flex; flex-direction: column; gap: 8px; }
.indent-list { padding-top: 8px; margin-bottom: 8px; }

.article-list li a {
  display: flex; align-items: flex-start; padding: 10px 12px; background: var(--color-bg);
  border-radius: var(--radius-sm); font-weight: 500; font-size: 13px; border: 1px solid transparent;
}
.article-list li a::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--color-primary); margin-top: 4px; margin-right: 10px; }
.article-list li a:hover { background: #fff; border-color: var(--color-primary); color: var(--color-primary); transform: translateX(2px); }

/* Accordion Logic Components */
.accordion-content { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease; }
.accordion-toggle {
  width: 100%; background: none; border: 1px dashed var(--color-border); border-radius: var(--radius-sm);
  padding: 8px; font-size: 12px; font-weight: 700; color: var(--color-text-light); cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; transition: all 0.2s ease;
}
.accordion-toggle:hover { background: var(--color-bg); color: var(--color-primary); border-color: var(--color-primary); }
.accordion-toggle[aria-expanded="false"] .text-close { display: none; }
.accordion-toggle[aria-expanded="true"] .text-open { display: none; }
.accordion-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
.toggle-icon { transition: transform 0.3s ease; }


.btn-more { display: inline-block; align-self: flex-end; margin-top: auto; font-weight: 700; font-size: 14px; color: var(--color-primary); padding: 8px 20px; border-radius: 20px; border: 2px solid var(--color-primary); }
.btn-more.center { align-self: center; margin-top: 20px; }
.btn-more:hover { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }

/* =========================================================
   Updates Grid
========================================================= */
.updates-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.update-card { background: var(--color-white); padding: 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border-left: 4px solid var(--color-primary); }
.update-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.update-card time { font-size: 12px; font-weight: 700; color: var(--color-text-light); display: block; margin-bottom: 8px; }
.update-card p { font-weight: 500; font-size: 14px; color: #334155; }

/* =========================================================
   Footer
========================================================= */
.site-footer { background: #1e293b; color: #f8fafc; padding: 60px 20px 20px; margin-top: 60px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; border-bottom: 1px solid #334155; padding-bottom: 40px; }
.footer-profile { flex: 1; }
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #fff; }
.profile-name { font-weight: 700; font-size: 18px; }
.profile-job { font-size: 12px; color: #94a3b8; }
.profile-text { font-size: 14px; color: #cbd5e1; line-height: 1.8; }
.read-more { color: #38bdf8; margin-left: 8px; text-decoration: underline; font-weight: 700; }
.footer-nav-wrap { display: flex; gap: 60px; }
.widget-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: #cbd5e1; font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: #38bdf8; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12px; color: #64748b; font-weight: 700; }

/* =========================================================
   Responsive Components (Desktop vs Mobile Only)
========================================================= */
.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }

/* =========================================================
   Responsive Design (SP)
========================================================= */
@media screen and (max-width: 960px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  
  .hero-section { flex-direction: column-reverse; padding: 30px 20px; text-align: center; }
  .hero-title { font-size: 26px; }
  .abstract-shape { width: 200px; height: 200px; margin-bottom: 20px; }

  .app-menu-grid { padding: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; overflow-x: auto; }
  .app-menu-item { min-width: auto; }
  .app-menu-item span { font-size: 10px; }
  .icon-wrap { width: 50px; height: 50px; border-radius: 14px; font-size: 20px; }

  .pickup-grid { grid-template-columns: repeat(2, 1fr); }
  .ranking-list { grid-template-columns: 1fr; }
  .main-columns { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
