/*
Theme Name: Asyl-original
Theme URI: https://asyl-support.com/
Author: Asyl Support
Description: Asyl Support original theme (base). Layout + components only.
Version: 1.1.0
Text Domain: asyl-original
*/

/* =========================================================
   Base / Reset (NEUTRAL BASE)
   - ここは「崩れない土台」
   - 色はニュートラル（派手な演出は mystyle.css へ）
   ========================================================= */
:root{
  /* Neutral palette (base) */
  --bg: #ffffff;
  --panel: #f6f7fb;

  --text: #0f172a;
  --muted: rgba(15,23,42,.72);
  --line: rgba(15,23,42,.12);

  /* Accents (base: minimal) */
  --brand: #1d4ed8;
  --brand2: #0284c7;

  /* Layout */
  --max: 1120px;
  --r: 16px;

  /* Shadow */
  --shadow: 0 10px 24px rgba(2, 6, 23, .08);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ -webkit-text-size-adjust: 100%; }

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: .01em;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }
a:hover{ opacity:.94; }
p{ margin:0 0 1em; }
h1,h2,h3{ margin:0 0 .6em; line-height: 1.25; letter-spacing: .01em; }
small{ color: var(--muted); }
::selection{ background: rgba(29,78,216,.18); }

/* =========================================================
   Layout utilities
   ========================================================= */
.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section{
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.grid{
  display:grid;
  gap: 18px;
}
@media (min-width: 900px){
  .grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
}

.kicker{
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

/* =========================================================
   Components (base)
   ========================================================= */
.badge{
  display:inline-flex;
  gap:.5em;
  align-items:center;
  padding: .45em .8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.70);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15,23,42,.02);
  gap:.5em;
  font-weight: 800;
  color: var(--text);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.20);
}
.btn.primary{
  border-color: rgba(29,78,216,.35);
  background: linear-gradient(135deg, rgba(29,78,216,.12), rgba(2,132,199,.10));
}
.btn.primary:hover{
  border-color: rgba(29,78,216,.55);
}

.card{
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* =========================================================
   Header / Nav (base)
   ========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
}
.site-header .row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(29,78,216,.92), rgba(2,132,199,.92));
  box-shadow: 0 10px 20px rgba(29,78,216,.12);
}
.brand-name{
  font-weight: 900;
  letter-spacing: .02em;
}
.brand-sub{
  display:block;
  margin-top: -2px;
  font-size: 12px;
  color: rgba(15,23,42,.60);
}

.nav{
  display:flex;
  align-items:center;
  gap: 16px;
}
.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(15,23,42,.70);
  font-weight: 800;
}
.nav a:hover{
  background: rgba(15,23,42,.04);
  color: var(--text);
}

.header-cta{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* =========================================================
   Hero (base)
   - 背景動画などの演出は mystyle.css で追加/上書き
   ========================================================= */
.hero{
  padding: 78px 0 56px;
  border-top: none;
}
.hero .inner{
  display:grid;
  gap: 22px;
}
@media (min-width: 980px){
  .hero .inner{
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
  }
}
.hero h1{
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: .01em;
}
.hero p{
  color: var(--muted);
  font-size: 16px;
}
.hero .actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero .panel{
  border-radius: calc(var(--r) + 6px);
  border: 1px solid var(--line);
  background: rgba(15,23,42,.02);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero .panel ul{
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}
.scroll-hint{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  margin-top: 18px;
  color: rgba(15,23,42,.58);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.scroll-dot{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display:grid;
  place-items:center;
  background: #fff;
}
.scroll-dot::after{
  content:"";
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--brand2);
  box-shadow: none;
}

/* =========================================================
   News (base)
   ========================================================= */
.news-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.news-item{
  display:flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,23,42,.02);
}
.news-item time{
  min-width: 110px;
  color: rgba(15,23,42,.60);
  font-size: 12px;
}
.news-item .title{
  font-weight: 900;
  color: var(--text);
}

/* =========================================================
   Footer (base)
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
  color: rgba(15,23,42,.70);
  background: #ffffff;
}
.footer-grid{
  display:grid;
  gap: 18px;
}
@media (min-width: 900px){
  .footer-grid{
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
  }
}
.footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.footer-links a{
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15,23,42,.02);
}
.footer-links a:hover{
  background: rgba(15,23,42,.04);
}
.copyright{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(15,23,42,.58);
}

/* =========================================================
   WP basics (base)
   ========================================================= */
.wp-content{
  padding: 40px 0 70px;
}
.wp-content .post{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.wp-content .post-title{
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}
.wp-content .post-meta{
  color: rgba(15,23,42,.62);
  font-size: 12px;
}

/* =========================================================
   Small screens (base)
   ========================================================= */
@media (max-width: 780px){
  .nav{
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .brand{ min-width: auto; }

  .news-item{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .news-item time{ min-width: auto; }
}