/*
Theme Name: Studio A.Align Original Theme
Author: Akari Konohana
Description: 株式会社Studio A.Alignのオリジナルデザインテーマ。
Version: 1.0
*/

 
    @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@500;700&display=swap');

    :root{
      /* palette */
      --blue:#398CBF;
      --green:#568C7D;
      --yellow:#D9A404;
      --red:#D95F5F;

      /* light-charcoal */
      --paper:#F6F3EE;
      --paper2:#F1EEE8;
      --charcoal:#1E2327;

      --ink: rgba(30,35,39,.92);
      --muted: rgba(30,35,39,.70);

      --radius:22px;
      --shadow: 0 18px 60px rgba(30,35,39,.12);
      --shadowSoft: 0 12px 40px rgba(30,35,39,.10);

      --serif: "Noto Serif JP","Hiragino Mincho ProN","Yu Mincho","MS PMincho",serif;
      --sans: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",system-ui,-apple-system,Segoe UI,sans-serif;
    }

    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family:var(--sans);
      color:var(--ink);
      letter-spacing:.02em;
      overflow-x:hidden;
      background:
        radial-gradient(1200px 780px at 12% 6%, rgba(57,140,191,.10), transparent 60%),
        radial-gradient(980px 720px at 86% 14%, rgba(217,164,4,.10), transparent 58%),
        radial-gradient(980px 780px at 64% 96%, rgba(86,140,125,.14), transparent 62%),
        linear-gradient(180deg, var(--paper), var(--paper2));
    }
    a{color:inherit; text-decoration:none}
    .container{width:min(1100px, calc(100% - 44px)); margin:0 auto}

    .skip{
      position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
    }
    .skip:focus{
      left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
      background: rgba(255,255,255,.92);
      border:1px solid rgba(30,35,39,.18);
      border-radius: 12px;
      z-index: 999;
    }

    /* topbar */
    .topbar{
      position:sticky;
      top:0;
      z-index:50;
      backdrop-filter: blur(10px);
      background: rgba(246,243,238,.80);
      border-bottom:1px solid rgba(30,35,39,.10);
    }
    .topbarInner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:14px 0;
      gap:14px;
    }
    .brandMini{
      display:flex;
      align-items:center;
      gap:10px;
      min-width: 240px;
    }
    .brandDot{
      width:12px;height:12px;border-radius:999px;
      background: conic-gradient(from 210deg, var(--blue), var(--green), var(--yellow), var(--red), var(--blue));
      box-shadow: 0 10px 22px rgba(57,140,191,.10);
      flex:0 0 auto;
    }
    .brandName{
      font-family:var(--serif);
      font-weight:700;
      letter-spacing:.06em;
      font-size:15px;
      line-height:1.1;
      color: rgba(30,35,39,.92);
    }
    .brandSub{
      font-size:11px;
      color: rgba(30,35,39,.62);
      margin-top:3px;
      letter-spacing:.10em;
      line-height:1.4;
    }
    .nav{
      display:flex;
      gap:8px;
      align-items:center;
      flex-wrap:wrap;
      justify-content:flex-end;
    }
    .nav a{
      font-size:13px;
      color: rgba(30,35,39,.70);
      padding:8px 10px;
      border-radius:999px;
      border:1px solid transparent;
      transition:.18s ease;
    }
    .nav a:hover{
      color: rgba(30,35,39,.92);
      border-color: rgba(30,35,39,.14);
      background: rgba(30,35,39,.04);
    }
    .nav .cta{
      border-color: rgba(57,140,191,.40);
      background: rgba(57,140,191,.10);
      color: rgba(30,35,39,.90);
      box-shadow: 0 0 0 1px rgba(57,140,191,.08) inset;
    }
    .nav .cta:hover{
      background: rgba(57,140,191,.14);
      border-color: rgba(57,140,191,.55);
    }

    /* hero */
    header.hero{
      position:relative;
      padding: clamp(54px, 7vw, 82px) 0 44px;
      overflow:hidden;

      /* Heroを“表紙”にする背景（下のセクションと差を出す） */
      background:
        radial-gradient(900px 600px at 18% 20%, rgba(57,140,191,.18), transparent 62%),
        radial-gradient(760px 560px at 82% 30%, rgba(217,164,4,.14), transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.0));
      border-bottom: 1px solid rgba(30,35,39,.08);
    }

    /* Heroのうっすらストライプ（必要なら opacity を .04 に） */
    header.hero::after{
      content:"";
      position:absolute;
      inset:0;
      background:
        repeating-linear-gradient(90deg,
          rgba(30,35,39,.05),
          rgba(30,35,39,.05) 1px,
          transparent 1px,
          transparent 22px
        );
      opacity:.06;
      pointer-events:none;
      z-index:0;
    }
    header.hero .container{ position:relative; z-index:1; }
    .heroGrid{
      display:grid;
      grid-template-columns: 1.15fr .85fr;
      gap: clamp(20px, 4vw, 42px);
      align-items:center;
    }
    .kicker{
      color: rgba(30,35,39,.55);
      letter-spacing:.18em;
      font-size:11px;
      text-transform:uppercase;
    }
    .headline{
      font-family:var(--serif);
      font-weight:700;
      font-size: clamp(30px, 3.6vw, 48px);
      line-height:1.15;
      letter-spacing:.06em;
      margin:8px 0 14px;
      color: rgba(30,35,39,.92);
    }
    .lead{
      margin:0 0 22px;
      color: rgba(30,35,39,.74);
      font-size: clamp(14px, 1.5vw, 16px);
      line-height:2.0;
    }
    .heroMeta{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin: 10px 0 28px;
    }
    .pill{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:9px 12px;
      border-radius:999px;
      border:1px solid rgba(30,35,39,.12);
      background: rgba(255,255,255,.55);
      color: rgba(30,35,39,.72);
      font-size:12px;
    }
    .pill i{
      width:10px;height:10px;border-radius:999px; display:inline-block;
      background: currentColor;
      box-shadow: 0 0 18px rgba(30,35,39,.08);
    }
    .pill.blue{color: rgba(57,140,191,.95)}
    .pill.green{color: rgba(86,140,125,.95)}
    .pill.yellow{color: rgba(217,164,4,.95)}
    .pill.red{color: rgba(217,95,95,.95)}

    .heroActions{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
    }
    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      padding: 12px 16px;
      border-radius: 14px;
      border:1px solid rgba(30,35,39,.14);
      background: rgba(255,255,255,.70);
      color: rgba(30,35,39,.88);
      transition: .18s ease;
      font-size: 14px;
      box-shadow: 0 10px 28px rgba(30,35,39,.06);
    }
    .btn:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,.88);
      border-color: rgba(30,35,39,.20);
    }
    .btnPrimary{
      border-color: rgba(57,140,191,.45);
      background: linear-gradient(180deg, rgba(57,140,191,.16), rgba(255,255,255,.78));
      box-shadow: 0 0 0 1px rgba(57,140,191,.08) inset, 0 18px 60px rgba(57,140,191,.08);
    }
    .btnPrimary:hover{
      border-color: rgba(57,140,191,.65);
      background: linear-gradient(180deg, rgba(57,140,191,.22), rgba(255,255,255,.86));
    }
    .arrow{
      width:10px;height:10px;border-right:2px solid currentColor;border-top:2px solid currentColor;
      transform: rotate(45deg);
      margin-left:2px;
    }

    /* logo stage */
    .logoStage{
      position:relative;
      border-radius: var(--radius);
      background:
        radial-gradient(900px 620px at 30% 35%, rgba(57,140,191,.12), transparent 62%),
        radial-gradient(760px 560px at 72% 60%, rgba(86,140,125,.14), transparent 62%),
        radial-gradient(700px 520px at 55% 18%, rgba(217,164,4,.10), transparent 58%),
        rgba(255,255,255,.70);
      border:1px solid rgba(30,35,39,.12);
      box-shadow: var(--shadow);
      padding: 26px;
      min-height: 420px;
      overflow:hidden;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .logoStage::after{
      content:"";
      position:absolute;
      inset:0;
      background:
        repeating-linear-gradient(90deg, rgba(30,35,39,.05), rgba(30,35,39,.05) 1px, transparent 1px, transparent 22px);
      opacity:.08;
      pointer-events:none;
      mix-blend-mode: multiply;
    }

    .logoWrap{
      position:relative;
      z-index:1;
      display:grid;
      place-items:center;
      gap:10px;
      text-align:center;
    }

    .logoWrap img{
      width: min(380px, 82vw);
      height:auto;
      filter: drop-shadow(0 14px 20px rgba(30,35,39,.18));
      animation: logoBreath 6.8s ease-in-out infinite;
    }
    @keyframes logoBreath{
      0%,100%{transform: translateY(0) scale(1)}
      50%{transform: translateY(-7px) scale(1.012)}
    }

    /* sections */
    main section{padding: 54px 0}
    .sectionHead{
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      gap:18px;
      margin-bottom: 22px;
    }
    .title{
      font-family:var(--serif);
      margin: 6px 0 0;
      font-size: clamp(22px, 2.5vw, 30px);
      letter-spacing:.08em;
      color: rgba(30,35,39,.90);
    }
    .desc{
      max-width: 62ch;
      color: rgba(30,35,39,.70);
      line-height:1.95;
      margin: 0;
      font-size: 14px;
    }

    /* ===== SERVICES (Square card + subtle polygon ornaments) ===== */
    .servicesGrid{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 18px;
    }

    .serviceCard{
      grid-column: span 4;
      position: relative;
      border-radius: var(--radius);
      border: 1px solid rgba(30,35,39,.10);
      background: rgba(255,255,255,.72);
      box-shadow: var(--shadowSoft);
      overflow: hidden;
      padding: 18px;
      min-height: 260px;
      transition: .2s ease;
    }
    .serviceCard:hover{
      transform: translateY(-3px);
      border-color: rgba(30,35,39,.16);
      background: rgba(255,255,255,.90);
    }

    /* 薄い幾何学は「背景の飾り」だけ（窓にはしない） */
    .serviceCard::before,
    .serviceCard::after{
      content:"";
      position:absolute;
      width: 280px;
      height: 280px;
      opacity: .18;
      filter: blur(.2px);
      pointer-events:none;
      transform: rotate(8deg);
    }
    .serviceCard::before{ top:-70px; right:-110px; }
    .serviceCard::after{
      width: 220px; height: 220px;
      bottom:-90px; left:-120px;
      opacity: .10;
      transform: rotate(-14deg);
    }

    /* shape types */
    .serviceCard.tri::before{ clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }
    .serviceCard.hex::before{ clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%); }
    .serviceCard.penta::before{ clip-path: polygon(50% 4%, 95% 38%, 78% 94%, 22% 94%, 5% 38%); }

    .serviceCard.tri::after{ clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%); }
    .serviceCard.hex::after{ clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }
    .serviceCard.penta::after{ clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%); }

/* === service icon : circle unified === */
.serviceCard::before,
.serviceCard::after{
  clip-path: none !important;
  border-radius: 50%;
}


    /* tint */
    .serviceCard.blue::before{
      background: radial-gradient(520px 340px at 30% 25%, rgba(57,140,191,.55), transparent 62%),
                  radial-gradient(520px 340px at 70% 70%, rgba(57,140,191,.25), transparent 62%);
    }
    .serviceCard.green::before{
      background: radial-gradient(520px 340px at 30% 25%, rgba(86,140,125,.55), transparent 62%),
                  radial-gradient(520px 340px at 70% 70%, rgba(86,140,125,.25), transparent 62%);
    }
    .serviceCard.yellow::before{
      background: radial-gradient(520px 340px at 30% 25%, rgba(217,164,4,.55), transparent 62%),
                  radial-gradient(520px 340px at 70% 70%, rgba(217,164,4,.25), transparent 62%);
    }
    .serviceCard.blue::after{
      background: radial-gradient(520px 340px at 30% 25%, rgba(217,95,95,.35), transparent 62%),
                  radial-gradient(520px 340px at 70% 70%, rgba(57,140,191,.22), transparent 62%);
    }
    .serviceCard.green::after{
      background: radial-gradient(520px 340px at 30% 25%, rgba(57,140,191,.28), transparent 62%),
                  radial-gradient(520px 340px at 70% 70%, rgba(217,164,4,.22), transparent 62%);
    }
    .serviceCard.yellow::after{
      background: radial-gradient(520px 340px at 30% 25%, rgba(86,140,125,.28), transparent 62%),
                  radial-gradient(520px 340px at 70% 70%, rgba(217,95,95,.20), transparent 62%);
    }

    /* 中身は四角のまま、見切れゼロ */
    .serviceInner{
      position: relative;
      z-index: 1;
      height: 100%;
      display:flex;
      flex-direction:column;
      gap: 10px;
      padding: 18px 16px 16px;
      border-radius: 18px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(30,35,39,.08);
    }

    .serviceKicker{
      display:flex;
      align-items:center;
      gap: 10px;
      font-size: 12px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(30,35,39,.62);
    }
    .serviceGem{
      width: 11px;
      height: 11px;
      border-radius: 50%; 
      background: conic-gradient(from 210deg, var(--blue), var(--green), var(--yellow), var(--red), var(--blue));
      box-shadow: 0 12px 24px rgba(57,140,191,.08);
    }

    .serviceTitle{
      font-family: var(--serif);
      margin: 2px 0 0;
      font-size: 18px;
      letter-spacing: .08em;
      color: rgba(30,35,39,.90);
    }
    .serviceText{
      margin: 0;
      color: rgba(30,35,39,.72);
      line-height: 1.95;
      font-size: 13.5px;
    }
    .serviceFooter{
      margin-top: auto;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      padding-top: 14px;
      border-top: 1px solid rgba(30,35,39,.10);
      color: rgba(30,35,39,.60);
      font-size: 12px;
    }

    /* 中央（運用設計）を少し“推し” */
    .serviceCard.featured{
      box-shadow: 0 22px 70px rgba(30,35,39,.14);
      border-color: rgba(57,140,191,.18);
      background:
        radial-gradient(800px 420px at 60% 30%, rgba(57,140,191,.10), transparent 62%),
        rgba(255,255,255,.82);
    }
    .serviceCard.featured .serviceInner{
      background: rgba(255,255,255,.90);
      border-color: rgba(57,140,191,.12);
    }

    /* Align strip */
    .alignStrip{
      margin-top: 22px;
      border-radius: var(--radius);
      border:1px solid rgba(30,35,39,.10);
      background: rgba(255,255,255,.72);
      padding: 22px;
      display:grid;
      gap: 14px;
      position:relative;
      overflow:hidden;
      box-shadow: var(--shadowSoft);
    }
    .alignStrip::before{
      content:"";
      position:absolute;
      inset:-1px;
      background:
        radial-gradient(1100px 420px at 15% 30%, rgba(86,140,125,.14), transparent 60%),
        radial-gradient(900px 420px at 85% 60%, rgba(57,140,191,.10), transparent 62%),
        radial-gradient(900px 520px at 60% 10%, rgba(217,164,4,.09), transparent 60%);
      opacity:.85;
      pointer-events:none;
    }
    .alignStrip > *{position:relative; z-index:1;}
    .alignStrip h4{
      font-family:var(--serif);
      margin:0;
      letter-spacing:.08em;
      font-size: 16px;
      color: rgba(30,35,39,.88);
    }
    .alignStrip p{
      margin:0;
      color: rgba(30,35,39,.72);
      line-height:1.95;
      font-size: 13.5px;
    }
    .alignLine{
      height:1px;
      background: linear-gradient(90deg,
        rgba(57,140,191,.0),
        rgba(57,140,191,.55),
        rgba(86,140,125,.55),
        rgba(217,164,4,.45),
        rgba(217,95,95,.40),
        rgba(217,95,95,0));
      opacity:.85;
      position:relative;
      overflow:hidden;
    }
    .alignLine::after{
      content:"";
      position:absolute;
      inset:0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
      transform: translateX(-60%);
      animation: sweep 3.8s ease-in-out infinite;
      opacity:.35;
    }
    @keyframes sweep{
      0%{transform: translateX(-60%)}
      60%{transform: translateX(60%)}
      100%{transform: translateX(60%)}
    }

    /* JOURNAL cards */
    .journalGrid{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 18px;
      margin-top: 18px;
    }
    .post{
      grid-column: span 4;
      border-radius: var(--radius);
      border:1px solid rgba(30,35,39,.10);
      background: rgba(255,255,255,.74);
      box-shadow: var(--shadowSoft);
      overflow:hidden;
      transition:.2s ease;
    }
    .post:hover{
      transform: translateY(-3px);
      border-color: rgba(30,35,39,.16);
      background: rgba(255,255,255,.92);
    }
    .postThumb{
      height: 170px;
      background:
        linear-gradient(135deg, rgba(57,140,191,.14), rgba(86,140,125,.12), rgba(217,164,4,.10), rgba(217,95,95,.10)),
        repeating-linear-gradient(90deg, rgba(30,35,39,.10), rgba(30,35,39,.10) 1px, transparent 1px, transparent 16px);
      position:relative;
    }
    .postThumb::after{
      content:"IMAGE PLACEHOLDER";
      position:absolute;
      inset:0;
      display:grid;
      place-items:center;
      font-size:12px;
      letter-spacing:.22em;
      color: rgba(30,35,39,.62);
    }
    .postBody{ padding: 16px 16px 18px; }
    .postTitle{
      font-family:var(--serif);
      margin:0 0 10px;
      letter-spacing:.08em;
      font-size: 16px;
      color: rgba(30,35,39,.90);
      line-height: 1.55;
    }
    .postMeta{
      font-size: 12px;
      letter-spacing: .10em;
      color: rgba(30,35,39,.62);
    }

    /* Q&A */
    .qaGrid{ display:grid; gap:12px; margin-top: 18px; }
    details.qa{
      border-radius: 18px;
      border:1px solid rgba(30,35,39,.10);
      background: rgba(255,255,255,.72);
      box-shadow: 0 10px 28px rgba(30,35,39,.06);
      overflow:hidden;
    }
    details.qa summary{
      cursor:pointer;
      padding: 14px 16px;
      list-style:none;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      color: rgba(30,35,39,.86);
      font-weight: 600;
    }
    details.qa summary::-webkit-details-marker{display:none}
    .qMark{
      font-family:var(--serif);
      letter-spacing:.12em;
      color: rgba(57,140,191,.92);
      min-width: 40px;
    }
    .chev{
      width:10px;height:10px;border-right:2px solid rgba(30,35,39,.55);border-top:2px solid rgba(30,35,39,.55);
      transform: rotate(45deg);
      transition: .18s ease;
      margin-left:auto;
    }
    details[open] .chev{ transform: rotate(225deg); }
    .answer{
      padding: 0 16px 14px;
      color: rgba(30,35,39,.72);
      line-height: 1.95;
      font-size: 13.5px;
    }

    /* company profile */
    .profileGrid{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-top: 18px;
    }
    .panel{
      border-radius: var(--radius);
      border:1px solid rgba(30,35,39,.10);
      background: rgba(255,255,255,.70);
      box-shadow: var(--shadowSoft);
      padding: 22px;
      position:relative;
      overflow:hidden;
    }
    .panel::before{
      content:"";
      position:absolute;
      inset:-1px;
      background:
        radial-gradient(900px 360px at 18% 20%, rgba(86,140,125,.12), transparent 62%),
        radial-gradient(800px 360px at 82% 70%, rgba(57,140,191,.10), transparent 62%),
        radial-gradient(700px 360px at 60% 10%, rgba(217,164,4,.08), transparent 60%);
      opacity:.75;
      pointer-events:none;
    }
    .panel > *{position:relative; z-index:1;}

    .kv{
      display:grid;
      grid-template-columns: 140px 1fr;
      gap: 8px 16px;
      margin:0;
      padding:0;
    }
    .kv dt{
      color: rgba(30,35,39,.62);
      font-size: 12.5px;
      letter-spacing:.08em;
      padding-top: 6px;
    }
    .kv dd{
      margin:0;
      color: rgba(30,35,39,.80);
      line-height: 1.9;
      padding-top: 4px;
    }

    /* footer */
    footer{
      padding: 34px 0 46px;
      color: rgba(30,35,39,.62);
      border-top: 1px solid rgba(30,35,39,.10);
      background: linear-gradient(to bottom, rgba(255,255,255,.0), rgba(255,255,255,.55));
    }
    .foot{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:18px;
      flex-wrap:wrap;
    }
    .mono{
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      letter-spacing:.06em;
      color: rgba(30,35,39,.60);
      font-size: 11.5px;
      line-height: 1.8;
    }

    @media (max-width: 980px){
      .heroGrid{grid-template-columns: 1fr}
      .logoStage{min-height: 360px}
      .servicesGrid{gap:14px}
      .serviceCard{grid-column: span 12}
      .journalGrid{gap:14px}
      .post{grid-column: span 12}
      .profileGrid{grid-template-columns: 1fr}
      .brandMini{min-width:auto}
      .kv{grid-template-columns: 120px 1fr}
    }
    .postThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせて画像を綺麗にトリミングします */
}
/* 1. 画像に重なっている文字と背景を強制的に消す */
.postThumb::after {
  content: none !important;
  display: none !important;
}

/* 2. 画像がない時の背景グラデーションもリセット */
.postThumb {
  background: rgba(30,35,39,0.05) !important; /* 薄いグレーにする */
}

/* 3. 画像自体の表示を整える（念のため） */
.postThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 記事本文内の画像や動画が枠からはみ出さないようにする */
.post-content img,
.post-content figure,
.post-content iframe {
  max-width: 100% !important;
  height: auto !important;
}

/* 記事エリア自体も、中身に負けないように設定 */
article {
  min-width: 0; /* これを入れると、中の大きな要素に合わせて広がろうとするのを防げます */
}
/* --- ギャラリー横並び：隙間と角丸を整える --- */

/* 1. ギャラリーの枠組み：gapを追加して画像間に「間」を作ります */
.wp-block-gallery, 
.entry-content ul.wp-block-gallery {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px !important; /* ★ここが「間」の正体です */
  list-style: none !important;
  padding: 0 !important;
  margin: 32px 0 !important;
}

/* 2. 各画像の幅：gap(16px×2個分)を引いてから3等分する計算に変えます */
.wp-block-gallery > li,
.wp-block-gallery .wp-block-image,
.wp-block-gallery figure {
  flex: 0 0 calc((100% - 32px) / 3) !important; 
  max-width: calc((100% - 32px) / 3) !important;
  margin: 0 !important;
}

/* 3. 画像の見た目：角を少し丸くし、少しだけ影をつけて立体感を出します */
.wp-block-gallery img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover;
  border-radius: 12px; /* ★8pxから12pxにして、より柔らかい印象に */
  box-shadow: 0 4px 12px rgba(30,35,39,0.08); /* ★うっすらとした影 */
}

/* 4. スマホ対応（2段にする） */
@media (max-width: 600px) {
  .wp-block-gallery > li,
  .wp-block-gallery .wp-block-image {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
  }
}
/* 記事本文内のリンク設定 */
.post-content a {
  color: var(--blue); /* 由布子さんのロゴカラー（青）にする */
  text-decoration: underline; /* 下線を引いてリンクだとわかりやすくする */
  text-underline-offset: 3px; /* 下線を少し離して読みやすく */
  transition: .2s ease;
}

.post-content a:hover {
  color: var(--charcoal); /* マウスを乗せたら少し濃い色に */
  text-decoration-thickness: 2px; /* 下線を少し太くする */
  background: rgba(57,140,191,.05); /* うっすら背景色をつけて「押せる感」を出す */
}
/* --- Contact Form 7 Studio A.Align Custom (最終版) --- */

/* 1. 【最重要】謎の線の正体（fieldset）を完全に消す */
.wpcf7-form fieldset.hidden-fields-container {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. フォーム全体のレイアウト調整 */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

/* 3. 項目ごとのまとまり（謎の線が出ないようborderをリセット） */
.form-group {
    margin-bottom: 30px;
    border: none !important;
}

/* 4. 各項目のラベル（品格アップ） */
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--charcoal);
}

/* 5. 入力エリア（テキスト、メール、電話、住所、メッセージ） */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(30,35,39,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    font-family: var(--sans);
    font-size: 16px;
    transition: .2s ease;
    box-sizing: border-box; /* 枠線がはみ出さないように */
}

/* フォーカスが当たった時の演出 */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(57,140,191,0.1);
    background: #fff;
}

/* 6. チェックボックスとラジオボタンの横並び */
.wpcf7-list-item {
    display: inline-block;
    margin: 8px 20px 8px 0;
    font-weight: 400;
}

/* 7. 送信ボタン（既存のbtnPrimaryクラスを活用） */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit .btnPrimary {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
    padding: 16px;
    cursor: pointer;
    border: none;
    justify-content: center;
}
/* エラーメッセージを強調する設定 */

/* 1. 「入力してください」などの文字を赤く */
span.wpcf7-not-valid-tip {
    color: #d95f5f !important; /* 由布子さんのサイトの--red変数に近い赤 */
    font-size: 13px;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}

/* 2. 入力欄自体の枠線も赤くして目立たせる */
.wpcf7-form-control.wpcf7-not-valid {
    border: 2px solid #d95f5f !important;
    background-color: #fffafa !important; /* ほんのり赤背景にして視認性アップ */
}

/* 3. 送信ボタンの下に出る全体エラーの枠（「入力内容に不備があります」等） */
.wpcf7-response-output {
    border: 2px solid #d95f5f !important;
    background: #fffafa;
    color: #d95f5f;
    border-radius: 12px;
    margin-top: 20px !important;
    padding: 15px !important;
    font-weight: bold;
}
/* --- 送信結果メッセージの制御（最初から赤枠が出るのを防ぐ） --- */

/* 1. 全体設定：最初は非表示にしておく */
.wpcf7-response-output {
    display: none; 
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
}

/* 2. 送信が成功、またはエラーが出た時だけ表示する */
.wpcf7-form.sent .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unconfirmed .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    display: block !important;
}

/* 3. 送信成功（由布子さんの--green：#568c7d を適用） */
.wpcf7-form.sent .wpcf7-response-output {
    border: 2px solid #568c7d !important;
    background-color: #f0f9f7 !important;
    color: #568c7d !important;
}

/* 4. 入力不備・失敗（由布子さんの--red：#d95f5f を適用） */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unconfirmed .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    border: 2px solid #d95f5f !important;
    background-color: #fffafa !important;
    color: #d95f5f !important;
}
/* --- Contact Section 最終整列（アライン）設定 --- */

/* 1. PC環境：全体を2カラム（左右）に分ける */
.contact-flex-box {
    display: flex !important; /* 強制的に横並びにします */
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left; /* 中身を左揃えに固定 */
}

/* 左側：テキストエリアの幅を広げる */
.contact-info-side {
    flex: 1;
    display: flex;
    gap: 30px;
    text-align: left;
}

/* 右側：ボタンエリアの幅を固定 */
.contact-btn-side {
    flex: 0 0 320px;
    text-align: center;
    padding-left: 20px;
    border-left: 1px solid rgba(30,35,39,0.08); /* 境界線を入れて引き締める */
}

/* 2. PC環境での文字サイズ・余白調整 */
.info-block {
    flex: 1;
}

.info-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--charcoal);
    margin: 0 0 8px;
    display: block;
}

.contact-note {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
    display: block;
}

/* 3. スマホ・タブレット環境（980px以下）：読みやすさ優先の縦並び */
@media (max-width: 980px) {
    .contact-flex-box {
        flex-direction: column !important;
        align-items: stretch;
        gap: 30px;
    }

    .contact-info-side {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-btn-side {
        flex: auto;
        border-left: none;
        border-top: 1px solid rgba(30,35,39,0.08);
        padding-left: 0;
        padding-top: 20px;
    }
}

/* 4. 小さいスマホ環境（600px以下）：1カラムに凝縮 */
@media (max-width: 600px) {
    .contact-info-side {
        flex-direction: column;
        gap: 20px;
    }
}
/* style.css の一番下に追加 */
main#main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* --- 投稿ページのレスポンシブ対応 --- */
@media (min-width: 981px) {
    .single-grid-container {
        display: grid !important;
        grid-template-columns: 1fr 300px !important; /* PCでは今まで通り2カラム */
        flex-direction: row !important;
    }
}

/* スマホではサイドバーを下に回し、メインを幅いっぱいに */
@media (max-width: 980px) {
    .single-grid-container article {
        width: 100%;
    }
    .single-grid-container .sidebar {
        width: 100%;
        margin-top: 40px;
        padding-top: 40px;
        border-top: 1px solid rgba(30,35,39,0.1);
    }
}
/* PCで1pxの隙間が出るのを、背景色を少し上に伸ばして隠す */
@media (min-width: 981px) {
    .post-cta {
        /* 上方向に1pxだけ、背景色と同じ色の影を飛ばす */
        box-shadow: 0 -1px 0 rgba(57,140,191,0.05);
    }
}
/* --- エディタ画面（編集画面）でのギャラリー表示調整 --- */

/* 編集画面特有の「ブロックを包む枠」が左に寄るのを防ぐ */
.editor-styles-wrapper .wp-block-gallery {
    justify-content: center !important; /* 中央に寄せる */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* 編集画面内での各画像の横幅を、表側と同じ3列に固定する */
.editor-styles-wrapper .wp-block-gallery > .wp-block-image,
.editor-styles-wrapper .wp-block-gallery > li {
    flex-basis: calc((100% - 32px) / 3) !important;
    max-width: calc((100% - 32px) / 3) !important;
}

/* エディタの「＋」ボタンなどが干渉しないように少し調整 */
.editor-styles-wrapper .wp-block-gallery .block-editor-block-list__layout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}
/* ===== Messageテンプレ：スマホで縦に整える（inline style を上書き） ===== */
@media (max-width: 980px){

  /* Hero全体：2カラム(1fr 340px)を解除して1カラムへ */
  header.hero .heroGrid{
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  /* 右上カード：右寄せ解除 */
  header.hero .heroCard{
    justify-self: stretch !important;
  }
  header.hero .heroCardInner{
    padding: 22px !important;
  }

  /* 画像＋肩書き：横並び→縦並び */
  header.hero .messageProfile{
    flex-direction: column !important;
    align-items: flex-start !important; /* 左揃えが読みやすい */
    gap: 12px !important;
  }
  header.hero .messageProfile img{
    width: 140px !important; /* 任意：少しだけ小さく */
    max-width: 100%;
  }

  /* Heroのボタン：折り返し許可 */
  header.hero .heroBtns{
    flex-wrap: wrap !important;
  }

  /* 下の「つくる前に、整える」見出し：左右並び→縦並び */
  #messageFull .sectionHead{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  /* 4枚パネル：2カラム→1カラム（inline指定を上書き） */
  #messageFull .profileGrid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* プロフィールDL：2カラム→1カラム（読みやすさ優先） */
  #messageFull .kv{
    grid-template-columns: 1fr !important;
  }

  /* 下部CTAボタン：折り返し */
  #messageFull .heroActions{
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}
@media (max-width: 980px){

  #messageFull .heroActions{
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }

  #messageFull .heroActions .btn{
    width: 100%;
    max-width: 320px; /* ボタンが伸びすぎないよう制限 */
    text-align: center;
  }
}
/* お問い合わせフォーム冒頭の案内文を中央に寄せる */
.form-notice-box {
    text-align: center !important; /* 強制的に中央寄せ */
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(86, 140, 125, 0.05); /* 由布子さんの--greenを薄く */
    border-radius: 12px;
    border: 1px solid rgba(86, 140, 125, 0.15);
}

.form-notice-box p {
    margin: 0 auto !important;
    display: inline-block; /* 中身の幅を文字に合わせる */
    text-align: left; /* 文章自体は左揃えの方が見やすいです */
}

.form-notice-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--green);
}

.arrow{
  display:inline-block;
  width:5px;
  height:5px;
  border-top:1px solid currentColor;
  border-right:1px solid currentColor;
  transform: rotate(45deg);
  margin-left:4px;
  vertical-align: middle;
}