++++++/*
Theme Name: Sakyo Advertising
Description: 株式会社左京広告のオリジナルテーマ
Version: 1.0.0
*/

/* ============================================
   Base & Typo
   ============================================ */
@font-face {
    font-family: 'Koyomiyuru'; 
    src: url('fonts/koyomiyuru.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root{
  --ink:#1a1a1a;
  --paper:#ffffff;       
  --paper-2:#121233;     
  --accent:#121233;       
  --accent-2:#c89b3c;     
  --hw-red:#121233;       
  --line:#1a1a1a;
  --muted:#6b6256;
}

*{box-sizing:border-box;margin:0;}
html,body{height:100%;}
body{
  font-family:'Noto Sans JP',sans-serif;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}

/* ============================================
   ユーティリティクラス（表示切り替え・改行）
   ============================================ */
/* PC表示の時は、スマホ用の要素や改行を隠す */
.sp-only,
.br-sp {
  display: none !important;
}

/* ============================================
   HEADER
   ============================================ */
.header{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.header-inner{
  max-width: 300px;
  padding: 24px 40px;
  gap: 24px;
}

.cta-btn {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 28px;
  font-size: 15px;
  letter-spacing: 0.18em;
  font-weight: 500;
  border-radius: 50px;    
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); 
  transition: background .25s, transform .25s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 78, 121, 0.3);
}

/* ============================================
   HERO
   ============================================ */
.hero{
  background-image: url('img/wasi-1.jpg');
  background-blend-mode: multiply;
  position:relative;
  padding:100px 40px 0px;
  overflow:hidden;
  padding-bottom: 100px;
}

.hero-inner{
  position:relative;z-index:2;
  max-width:1400px;margin:0 auto;width:100%;
}

.hero-top{
  position: relative;
  z-index: 2; 
  display: block;        
  max-width: 900px;      
  padding-top: 10px;
}

.headline{
  font-family:'Shippori Mincho',serif;
  font-size:clamp(48px,7vw,104px);
  font-weight:700;
  line-height:1.15;
  letter-spacing:0.02em;
  margin-bottom:32px;
}

.headline .accent{color:var(--accent);}

.lead{
  font-size:25px;
  line-height:2;
  color:var(--ink);
  margin-bottom:0px;
  letter-spacing:0.05em;
  font-weight:400;
}

/* ============================================
   META AREA (TABLE VERSION)
   ============================================ */
.meta-area {
  position: relative;
  width: 120%;
  margin-top: 50px;       
  margin-bottom: 20px;    
  padding: 30px; 
  background-color: #12123309;
  background-image: url('img/wasi-1.jpg');
  background-blend-mode: multiply;
  z-index: 3;
}

.meta-table {
  width: 960px;
  max-width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.meta-row {
  border-bottom: 1px solid rgba(26,26,26,0.08);
}
.meta-row:last-child {
  border-bottom: none;
}

.meta-table th, .meta-table td {
  padding: 24px 10px;
  vertical-align: top;
}

.meta-key {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
  width: 120px;
  white-space: nowrap;
}

.meta-val {
  font-size: 25px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  font-weight: 500;
  border-left: 1px solid rgba(26,26,26,0.15);
  padding-left: 22px;
}

.meta-comment {
  width: 320px;
  padding-left: 40px !important;
}

.meta-val .small-note {
  display: block;
  font-size: 17px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  font-weight: 400;
}

.meta-val-name {
  width: 110px;
}

/* 手書き文字のスタイル */
.hw-text {
  font-family: 'Yomogi', 'Klee One', 'Shippori Mincho', cursive;
  font-size: 18px;
  color: var(--hw-red);
  line-height: 1.75;
  letter-spacing: 0.03em;
  display: inline-block;
}

/* ============================================
   MASCOT
   ============================================ */
.hw-note.hw-mascot {
  position: absolute;
  z-index: 4;
  top: -450px;
  left: 600px;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.hw-mascot .aisatu {
  position: absolute;
  right: 0;
  width: 400px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
}

.hw-mascot .hello {
  position: absolute;
  width: 400px;
  height: auto;
  right: -330px;
}

/* ============================================
   HERO CTA
   ============================================ */
.cta-btn--huge {
  background: none;       
  color: var(--ink);      
  font-size: 24px;        
  padding: 0;             
  width: 480px;           
  height: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;       
  transition: transform .25s;
}

.cta-astronaut {
  width: 100%;height: auto;display: block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
  transition: filter .25s; 
}

.cta-btn--huge.cta-btn:hover .cta-astronaut {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
}

/* ============================================
   FLOATING CTA
   ============================================ */
.cta-floating {
  position: fixed;        
  right: -30px;
  bottom: -100px;
  z-index: 100;           
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  pointer-events: none;   
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cta-floating.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1); 
  pointer-events: auto;   
}

.cta-floating.is-contact-hidden {
  opacity: 0 !important;
  transform: translateY(30px) scale(0.9) !important;
  pointer-events: none !important;
}

.cta-floating .cta-btn--huge.cta-btn:hover {
  transform: translateY(-5px);
  background: none !important; 
  box-shadow: none !important; 
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section:nth-of-type(even){
  background-image: url('img/wasi-1.jpg');
  background-blend-mode: multiply;
  background:var(--paper-2);
}

.section{
  background-image: url('img/wasi-1.jpg');
  background-blend-mode: multiply;
  padding:50px 40px 250px;
  position:relative;
}

.section-inner{
  max-width:1500px;
  margin:0 auto;
  position:relative;
}

.section-header{
  text-align:center;
}

.section-title{
  padding: 40px 0;
  font-family:'Shippori Mincho',serif;
  font-size: 60px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:0.04em;
}

.section-lead{
  font-size:16px;
  line-height:2;
  color:var(--ink);
  max-width:800px;
  margin:0 auto;
  letter-spacing:0.05em;
  text-align: left;
}

/* ============================================
   AUTO DARK MODE
   ============================================ */
.section:nth-of-type(even) {
  background-color: var(--accent) !important; 
  background-image: url('img/wasi-1.jpg') !important;
  background-blend-mode: multiply !important;
  color: var(--paper) !important; 
}

.section:nth-of-type(even) .section-title,
.section:nth-of-type(even) .section-lead {
  color: var(--paper);
}

.section:nth-of-type(even) .service-acc-number,
.section:nth-of-type(even) .service-acc-title,
.section:nth-of-type(even) .service-acc-text-block {
  color: var(--paper);
}

.section:nth-of-type(even) .service-accordion-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}

.section:nth-of-type(even) .service-acc-icon {
  border-color: var(--paper);
}

.section:nth-of-type(even) .service-acc-icon::before {
  border-color: var(--paper); /* 矢印の線を白に変更 */
}

/* ============================================
   ABOUT ADS SECTION
   ============================================ */
.about-ads-section .ads-block {
  margin-bottom: 80px;
}

.about-ads-section .ads-block:last-child {
  margin-bottom: 0;
}

.about-ads-section .ads-sub-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 40px;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  position: relative;
  padding-top: 40px;
  padding-bottom: 20px;
  border-top: #ffffff;  
}

.ads-definition {
  max-width: 1300px;
  margin: 0 auto 80px auto;
  text-align: left;
}

.ads-definition .ads-text-large {
  font-size: 35px;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 500;
  color: #ffffff;
}

.ads-definition .ads-text-large strong {
  color: var(--accent-2);
  font-weight: 700;
}

.ads-definition .ads-text-normal {
  font-size: 25px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.ads1 {
  width: 400px;
  position: absolute;
  left: -450px;
}

.ads2 {
  width: 400px;
  position: absolute;
  right: -400px;
}

.about-ads-section .ads-features {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-ads-section .ads-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px 40px;
  position: relative;
  text-align: left;
  border-radius: 12px;
  display: flex;
  align-items: center; 
  gap: 30px;
}

.about-ads-section .card-num {
  background: var(--accent-2);
  color: var(--paper-2);
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  width: 60px;
  height: 60px;
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-ads-section .ads-feature-card h4 {
  font-family: 'Shippori Mincho', serif;
  color: #ffffff;
  font-size: 40px;
  margin-bottom: 0;
  line-height: 1.2;
}

.pricing-flex {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1250px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 6px solid var(--accent-2);
  padding: 20px 30px;
  text-align: left;
  border-radius: 0 12px 12px 0;
}

.pricing-card h5 {
  font-family: 'Shippori Mincho', serif;
  font-size: 30px;
  margin-bottom: 15px;
  color: var(--accent-2); 
}

.pricing-card p {
  font-size: 25px;
  line-height: 1.7;
  color: #ffffff;
}

.ads-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  max-width: 1500px;
  margin: 0 auto;
}

.ads-type-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 30px;
  min-width: 900px;
}

.ads-type-table th,
.ads-type-table td {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  vertical-align: middle;
}

.ads-type-table th {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  color: #ffffff;
  text-align: center;
}

.ads-type-table tr:last-child td {
  border-bottom: none;
}

.ads-type-table .type-name {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 25px;
  width: 25%;
}

/* ============================================
   CHOOSE SECTION
   ============================================ */
.comparison-table-wrapper {
  position: relative;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  margin-bottom: 25px;
  padding: 40px 0;
}

.comparison-table {
  position: relative;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  font-size: 30px; 
  font-weight: 500;
  min-width: 1000px;
}

.comparison-table th,
.comparison-table td {
  padding: 30px 20px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  line-height: 1.4;
  color: #333;
}

.feature-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 24px;
  background: transparent !important; 
  border-bottom: 1px solid rgba(26, 26, 26, 0.1) !important;
  color: var(--ink) !important;
}

.section:nth-of-type(even) .feature-title {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.col-feature { width: 25%; }
.col-sakyo { width: 31%; }
.col-other { width: 22%; }

.col-other, .comparison-table td:not(.is-recommend) {
  font-weight: 400;
}

.comparison-table .is-recommend {
  background: #f7f9fc !important; 
  border-left: 4px solid var(--accent) !important;
  border-right: 4px solid var(--accent) !important;
  border-bottom: none; 
  color: var(--accent);
  font-weight: 700; 
}

th.col-sakyo.is-recommend {
  color: #fff !important;
  border-top: 4px solid var(--accent) !important;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 25px 20px;
  border-bottom: 1px solid rgba(18, 18, 51, 0.1) !important;
}

th.col-sakyo.is-recommend .company-name {
  width: 250px;
  margin: 0 auto;
}

td.sakyo-cell.is-recommend {
  border-bottom: 1px solid rgba(18, 18, 51, 0.1) !important;
}

td.sakyo-cell.is-recommend.card-bottom {
  border-bottom: 4px solid var(--accent) !important;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding-bottom: 50px;
}

.cell-sub {
  font-size: 16px;
  color: #666;
  display: block;
  margin-top: 8px;
  font-weight: 400;
  line-height: 30px;
}

.cell-sub.text-highlight {
  color: var(--accent);
  font-weight: 700;
}

.mark-double-circle {
  font-size: 42px;
  color: var(--accent-2);
  font-weight: 700;
  line-height: 1;
}

.mark-triangle { font-size: 36px; color: #666; }

.table-note {
  font-size: 13px;
  text-align: left;
  margin-top: 10px;
  color: var(--muted);
}

.section:nth-of-type(even) .table-note {
  color: rgba(255, 255, 255, 0.6);
}

.hajimen10 {
  position: absolute;
  width: 500px;
  top: 840px;
  right: 30%;
}

/* ============================================
   SERVICES
   ============================================ */
.section-inner-services {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.services-list-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 60px;
}

.service-accordion-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(26,26,26,0.1); 
}

.service-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 35px 10px;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: opacity 0.2s ease;
}

.service-accordion-toggle:hover {
  opacity: 0.7;
}

.service-acc-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.service-acc-number {
  font-size: 70px;
  color: var(--ink);
  line-height: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}

.service-acc-title {
  font-size:50px;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}

.service-acc-right-visual {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-shrink: 0;
  flex-direction: row-reverse; 
}

.service-acc-illust {
  width: 160px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-acc-illust img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-acc-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-acc-icon::before {
  content: "";
  position: absolute;
  top: 6px;   
  left: 8px;  
  width: 8px;
  height: 8px;
  border-bottom: 3px solid var(--line);
  border-right: 3px solid var(--line);
  transform: rotate(45deg); 
  transition: transform 0.3s ease, top 0.3s ease;
  background: transparent !important;
}

.service-acc-icon::after {
  display: none; 
}

.service-accordion-toggle.is-active .service-acc-icon::before {
  transform: rotate(225deg); 
  top: 10px; 
}

.service-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
}

.service-accordion-body {
  padding: 10px 10px 45px 140px; 
}

.service-acc-text-block {
  font-size: 25px; 
  line-height: 1.8;
  color: var(--ink); 
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.03em;
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.section-philosophy-v2 {
  background-color: var(--paper);
  padding: 40px 40px;
}

.philo-v2-container {
  display: flex;
  flex-direction: column;
  gap: 40px; 
  margin-top: 20px;
}

.philo-v2-row {
  display: flex;
  gap: 60px;
  align-items: center;
  background: #ffffff;
  padding: 60px;
  border-radius: 24px;
  border: 1px solid rgba(26,26,26,0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.philo-v2-illust {
  flex: none;
  width: 320px; 
}

.philo-v2-illust img {
  width: 100%;height: auto;display: block;border-radius: 12px;
}

.philo-v2-main {
  flex: 1;
}

.philo-v2-meta {
  gap: 12px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.philo-v2-category {
  font-size: 30px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.philo-v2-lead {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.philo-v2-lead .text-accent {
  color: var(--accent-2);
}

.philo-v2-body {
  font-size: 25px;
  line-height: 2;
  color: var(--muted);
}

.philo-v2-body p {
  margin-bottom: 40px;
}

.philo-v2-underline {
  font-size: 1.1em;
  background: linear-gradient(transparent 75%, rgba(31, 78, 121, 0.15) 75%);
  padding: 0 4px;
  font-weight: 700;
}

/* ============================================
   ACCESS
   ============================================ */
.access-section {
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.access-map-mega-wrap {
  width: 100%;
  max-width: 1500px;
  margin: 40px auto 0 auto;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  background: #eeebe5;
}

.access-map-mega-wrap iframe {
  display: block;
  width: 100% !important;
  height: 550px; 
  filter: grayscale(100%) contrast(110%) brightness(95%);
  transition: filter 0.4s ease;
}

.section:nth-of-type(even) .access-map-mega-wrap {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.access-meta-bottom {
  max-width: 1500px;
  display: flex;
  gap: 80px;
  text-align: left;
  padding: 0 100px;
}

.access-info-block {
  flex: 1.2;
}

.access-routes-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.access-address-text {
  font-size: 26px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
}

.section:nth-of-type(even) .access-address-text {
  color: rgba(255, 255, 255, 0.9);
}

.route-desc {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 2;
}

.section:nth-of-type(even) .route-desc {
  color: #ffffff;
}

.route-desc strong {
  font-weight: 700;
  color: var(--accent-2);
}

/* ============================================
   CONTACT
   ============================================ */
.section-inner-contact {
  max-width: 800px; 
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.contact-form-wrapper {
  background: #fff;
  padding: 60px 80px; 
  border-radius: 24px;
  border: 1px solid rgba(26,26,26,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.03);
  margin-top: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.required-badge {
  font-size: 12px;
  background: #e60012; 
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  border: 2px solid rgba(26,26,26,0.2);
  border-radius: 12px;
  background: #fafafa;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 20px;
}

.submit-btn {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 80px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.submit-btn:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(31, 78, 121, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--paper-2);
  color: #ffffff;
  padding: 80px 40px 40px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 60px;
}

.footer-brand-info {
  max-width: 360px;
}

.footer-logo-bg {
  margin-bottom: 24px;
}

.footer-logo {
  height: 32px;
  display: block;
}

.footer-address {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
}

.footer-nav-wrap {
  display: flex;
  gap: 80px;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 18px;
}

.footer-nav-list a {
  font-size: 15px;
  color: #ffffff;
  transition: color 0.25s;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.footer-nav-list a:hover {
  color: var(--accent-2);
}

.footer-nav-list--sub a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-nav-list--sub a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* ============================================
   LOWER PAGE
   ============================================ */
body.lower-page {
  background: #fdfbf7;
  color: var(--ink);
  line-height: 1.8;
}

.lower-page .page-main {
  padding: 60px 20px 120px;
}

.lower-page .section-inner {
  margin: 0 auto;
  background: var(--paper);
  padding: 60px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(26, 26, 26, 0.05);
  line-height: 3;
}

.lower-page .page-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.lower-page .page-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--accent);
  font-weight: 700;
  line-height: 1.4;
}

.lower-page .contact-box {
  background: #f7f5f0;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 8px;
  padding: 24px 30px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.lower-page .document-content,
.lower-page .document-content p,
.lower-page .document-content h2,
.lower-page .document-content ol,
.lower-page .document-content ul,
.lower-page .document-content li {
  color: var(--ink) !important;
}

/* ============================================
   Responsive Design (タブレット・スマートフォン向け)
   ============================================ */
@media screen and (max-width: 1024px) {

  /* --- ユーティリティ（表示切り替え・改行） --- */
  .br-pc,
  .pc-only {
    display: none !important;
  }
  .br-sp {
    display: inline !important;
  }
  .sp-only {
    display: inline !important; 
  }

  /* --- 全体的な余白調整 --- */
  .section {
    padding: 20px 20px;
  }
  .hero {
    padding: 70px 20px 40px;
  }
  .section-title {
    font-size: 28px;
    padding: 10px 0 30px;
  }
  .section-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  /* --- ヘッダー --- */
  .header-inner {
    padding: 16px 20px;
    max-width: 200px;
  }

  /* --- ヒーローセクション --- */
  .headline {
    font-size: clamp(36px, 10vw, 56px);
    margin-bottom: 20px;
  }
  .lead {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 200px; 
  }

  /* --- スマホ向け メタエリア（CSS Grid） --- */
  .meta-area {
    width: 100%;
    margin-top: 30px;
    padding: 20px 10px;
  }
  .meta-table, .meta-table tbody {
    display: block;
    width: 100%;
  }
  .meta-row {
    display: grid;
    grid-template-columns: 80px 1fr; 
    gap: 8px 16px;
    padding: 16px 0;
  }
  .meta-table th, .meta-table td {
    padding: 0;
    border: none;
  }
  .meta-key {
    font-size: 14px;
    width: 100%;
    grid-column: 1 / 2;
  }
  .meta-val {
    font-size: 17px;
    padding-left: 16px;
    border-left: 1px solid rgba(26,26,26,0.15);
    grid-column: 2 / 3;
  }
  .meta-val .small-note {
    font-size: 12px;
    line-height: 1.6;
  }
  .meta-val-name {
    width: 70px;
    height: auto;
  }
  
  /* スマホ向け：手書きコメント */
  .meta-comment {
    grid-column: 1 / -1; 
    width: 100%;
    padding-left: 16px !important; 
    padding-top: 8px;
  }
  .meta-comment:empty {
    display: none; 
  }
  .hw-text {
    display: inline !important; 
    font-size: 13px;
    line-height: 1.8; 
    background: linear-gradient(transparent 65%, rgba(200, 155, 60, 0.3) 65%);
  }
  
  /* --- PC用の装飾画像などを非表示 --- */
  .ads1, .ads2, .hajimen10 {
    display: none !important;
  }

  /* --- マスコット --- */
  .hw-note.hw-mascot {
    display: block !important; 
    position: absolute;
    top: -180px; 
    left: 50%;
    transform: translateX(-90%); 
    width: 160px; 
    height: auto;
    z-index: 10;
  }
  .hw-mascot .aisatu {
    position: relative;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1)); 
  }
  .hw-mascot .hello {
    position: absolute;
    width: 200px; 
    top: -15px;
    right: -150px;
  }

  /* --- 追従ボタン (CTA) --- */
  .cta-btn--huge {
    width: 240px;
  }
  .cta-floating {
    right: 10px;
    bottom: -50px;
  }

  /* --- インターネット広告とは (about-ads) --- */
  .about-ads-section .ads-sub-title {
    font-size: 22px;
    padding-top: 20px;
    text-align: left;
    max-width: 370px;
    margin: 0 auto;
  }
  .ads-definition .ads-text-large {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .ads-definition .ads-text-normal {
    font-size: 15px;
  }
  .about-ads-section .ads-feature-card {
    padding: 20px;
    gap: 16px;
  }
  .about-ads-section .ads-feature-card .card-num{
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .about-ads-section .ads-feature-card h4 {
    font-size: 22px;
  }
  .pricing-card h5 {
    font-size: 20px;
  }
  .pricing-card p {
    font-size: 15px;
  }
  .ads-type-table {
    font-size: 14px;
    min-width: 600px; 
  }
  .ads-type-table .type-name {
    font-size: 15px;
  }

  /* --- 比較表 (choose) --- */
  .comparison-table-wrapper {
    margin: 0 !important;
    padding: 10px 0;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
  }
  .comparison-table {
    font-size: 14px;
    min-width: 600px; 
  }
  .comparison-table th, .comparison-table td {
    padding: 16px 10px;
  }
  .feature-title {
    font-size: 16px;
  }
  .mark-double-circle {
    font-size: 24px;
  }
  .mark-triangle {
    font-size: 20px;
  }
  .cell-sub {
    font-size: 12px;
    line-height: 1.6;
  }
  th.col-sakyo.is-recommend .company-name {
    width: 120px;
  }
  .table-note{
    margin-top: 0 !important;
  }

  /* --- サービス内容 (services) --- */
  .services-list-accordion {
    margin-top: 30px;
  }
  .service-accordion-toggle {
    padding: 20px 5px;
    flex-direction: row;          
    align-items: center;      
    justify-content: space-between;
    gap: 16px;
  }
  .service-acc-left {
    gap: 16px;
    flex-direction: row;        
    align-items: center;        
    flex: 1;    
  }                 
  .service-acc-number {
    font-size: 25px;
  }
  .service-acc-title {
    font-size: 21px;
  }
  .service-acc-right-visual {
    width: auto;                  
    justify-content: flex-end;   
    flex-shrink: 0;              
  }
  .service-acc-illust {
    display: none !important;
  }
  .service-accordion-body {
    padding: 10px 10px 20px 10px; 
  }
  .service-acc-text-block {
    font-size: 15px;
  }

  /* --- 考えていること (philosophy) --- */
  .section-philosophy-v2 {
    padding: 40px 20px;
  }
  .philo-v2-row {
    flex-direction: column-reverse;
    padding: 30px 20px;
    gap: 30px;
  }
  .philo-v2-illust {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
  }
  .philo-v2-lead {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .philo-v2-body {
    font-size: 15px;
  }

  /* --- アクセス (access) --- */
  .access-meta-bottom {
    flex-direction: column;
    padding: 0;
    gap: 20px;
  }
  .access-address-text {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .route-desc {
    font-size: 15px;
  }
  .access-map-mega-wrap iframe {
    height: 350px;
  }

  /* --- お問い合わせ (contact) --- */
  .contact-form-wrapper {
    padding: 30px 20px;
    margin-top: 30px;
  }
  .form-group label {
    font-size: 15px;
  }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    padding: 14px 16px;
    font-size: 16px; 
  }
  .submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }

  /* --- フッター (footer) --- */
  .footer {
    padding: 60px 20px 40px;
  }
  .footer-top {
    flex-direction: column;
    gap: 40px;
    padding-bottom: 40px;
  }
  .footer-nav-wrap {
    flex-direction: column;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* --- 下層ページ (lower-page) --- */
  .lower-page .page-main {
    padding: 70px 16px 80px; 
  }
  .lower-page .section-inner {
    padding: 30px 20px;  
    line-height: 1.8;     
  }
  .lower-page .page-header {
    margin-bottom: 30px;
    padding-bottom: 16px;
  }
  .lower-page .page-title {
    font-size: 24px;
  }
  .lower-page .page-en-title {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .document-content h2 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    line-height: 1.4;
  }
  .document-content p, 
  .document-content li {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .document-content ol, 
  .document-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
  }
  .document-content li strong {
    display: inline-block;
    margin-bottom: 4px;
  }

  .document-content a {
    word-break: break-all; 
  }

  .lower-page .contact-box {
    padding: 20px;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 24px;
  }
}