@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Shippori+Mincho:wght@400;600&display=swap");

:root{
  --ink: #1b253a;
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-2: #f6faff;
  --line: rgba(27,37,58,.12);
  --accent: #60a5fa;
  --accent-dark: #3b82f6;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --card: rgba(255,255,255,.8);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--ink);
  background: var(--surface-2);
  font: 16px/1.8 'Shippori Mincho', serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,.site-title{
  font-family: 'Dancing Script','Shippori Mincho', serif;
  letter-spacing:.02em;
  color:#1e293b;
}
.site-tag{
  font-family:'Shippori Mincho', serif;
  font-size:.95rem;
  color:#475569;
}

.layout{
  display: grid;
  grid-template-columns: minmax(320px, 42vw) 1fr;
  min-height: 100dvh;
}

.visual{
  position: sticky; top: 0;
  height: 100dvh;
  background: url("jt-20251218.jpg") center/cover no-repeat fixed;
  background-repeat: no-repeat;
  background-size: 60%; /* ← 画像を少し引きで表示（100%より大きいと縮小） */
  background-position: -22% 50%; /* ← 必要に応じて位置も微調整 */
  background-attachment: fixed;
  isolation: isolate;
}


.visual::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.5));
  z-index:0;
}
.visual__overlay{
  position:absolute; inset:0;
  display:grid; place-content:end start;
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 3vw, 2.5rem);
  z-index:1;
  color:#0b1220;
  text-shadow:0 1px 0 rgba(255,255,255,.6);
}
.site-title{
  margin:0 0 .3rem;
  font-size: clamp(32px, 5vw, 58px);
  line-height:1.1;
}

.content{
  background: var(--surface);
  min-height:100%;
}

.topbar{
  position: sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid var(--line);
}

.topbar .nav{
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topbar .nav::-webkit-scrollbar{ display:none; }

.nav{
  display:flex; flex-wrap: nowrap;
  gap:.6rem 1rem; padding:.9rem 1.2rem;
}
.nav a{
  position:relative;
  text-decoration:none;
  color:#334155;
  padding:.35rem .2rem;
  transition: color .25s ease;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav a i {
  font-size: 1.1rem;
  line-height: 1;
}


.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #457885; /* ← 下線の色を指定 */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}




.nav a:hover{ color:#1e293b; }
.nav a:hover::after{ transform:scaleX(1); transform-origin:left; }

.section{
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2.2vw, 1.6rem);
  max-width: 900px;
}
.section h2{
  margin:0 0 .6rem;
  font-size: clamp(22px, 2.4vw, 32px);
}
.section p{ margin:.4rem 0 0; color:#374151; }
.bullets{ padding-left:1.2rem; color:#374151; }
.links{ padding-left:1.2rem; }

.card-list{
  list-style:none; padding:0; margin:1rem 0 0;
  display:grid; gap:1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card h3{ margin:0 0 .6rem; font-size:1.1rem; }
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:.8rem;
  padding:.6rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  font-size:.95rem;
  letter-spacing:.01em;
  box-shadow:0 3px 8px rgba(96,165,250,.3);
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
}
.btn:hover{
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow:0 6px 14px rgba(59,130,246,.35);
}
.btn:active{ transform: translateY(0); }
.btn:focus-visible{
  outline:2px solid rgba(96,165,250,.5);
  outline-offset:3px;
}

.footer{
  padding: 2rem 1.4rem 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  max-width: 900px;
}



.dashed-two {
  border-bottom: 2px dashed #ccc;
}

.dashed-four {
  border-bottom: 4px dashed #ccc;
}

.dashed-six {
  border-bottom: 6px dashed #ccc;
}

.dashed-eight {
  border-bottom: 8px dashed #ccc;
}


.hanging-indent {
  padding-left: 2em;
}



/* 通常のリンクスタイル */
a.custom-link {
  color: #457885;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* マウスオーバー時のスタイル */
a.custom-link:hover {
  color: #ffffff;
  background-color: #457885;
  padding: 0.2em 0.2em; /* 背景が見えるように少し余白を追加（任意） */
  border-radius: 4px;   /* 角を少し丸める（任意） */
}


a.fuwaimg {
  text-decoration: none;
  display: inline-block;
}





@media (max-width: 900px){
  .layout {
    grid-template-columns: 1fr;
  }

  .visual {
    position: relative;
    height: 45vh;
    background-attachment: scroll;
    background-size: 130%;         /* ← 画像の引き具合を調整 */
    background-position: 50% 20%;  /* ← 横中央・縦20%の位置を基準に表示 */
  }

  .visual__overlay {
    padding: 2.6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;       /* ← 横方向：左寄せ */
    justify-content: flex-end;     /* ← 縦方向：下寄せ */
    text-align: left;              /* ← テキストの整列も左寄せ */
  }


  .visual__overlay h1 {
    font-size: 2.0rem;             /* ← タイトルのサイズ調整（任意） */
    margin-top: 0.5rem;            /* ← 上部余白（必要に応じて調整） */
  }

  .topbar .nav {
    justify-content: center;
  }

  .section, .footer {
    padding: 1.4rem 1rem;
  }

  .site-tag {
    font-size: 0.85rem;        /* ← 少し小さめに調整（任意） */
    line-height: 1.0;          /* ← 行間を詰める */
    margin-top: 0.1rem;        /* ← タイトルとの間隔を調整（必要に応じて） */
    text-align: left;        /* ← 中央揃え（必要なら left に変更） */
    margin-bottom: 0;

  }


}


@media (max-width: 420px){
  .nav{ gap: .4rem .6rem; padding: .7rem .8rem; }
  .nav a{ 
    font-size: 0.82rem;
    padding: .25rem .35rem;
    letter-spacing: 0;
  }
}