/* 共通スタイル - common.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Poppins:wght@600;700&display=swap');

:root {
    --primary: #2C3E50;
    --primary-light: #34495e;
    --secondary: #3498DB;
    --secondary-light: #5dade2;
    --accent: #E74C3C;
    --accent-light: #ec7063;
    --light: #ECF0F1;
    --light-alt: #f4f6f7;
    --dark: #2C3E50;
    --text: #333333;
    --text-light: #666666;
    --success: #27AE60;
    --border-radius: 8px;
    --box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.8;
    width: 100%;
    overflow-x: hidden;
    background-color: #f9f9f9;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232c3e50' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    padding-bottom: 100px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* PC表示では改行を非表示に */
.sp-only {
    display: none;
}

/* モバイル表示では改行を表示 */
@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1100;
    padding: 0;
    transition: var(--transition);
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    padding-bottom: 5px;
    position: relative;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover::after {
    width: 100%;
}

.contact-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #d35400 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
    display: inline-block;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--dark);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* セクション共通 */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 30%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50px 50px 0 0;
    z-index: -1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #d35400 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d35400 0%, var(--accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* LINEで問い合わせCTA */
.line-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #06C755 0%, #04a348 100%);
    padding: 18px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.line-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    padding: 5px;
    margin: 0 auto;
    width: fit-content;
    position: relative;
    transition: var(--transition);
}

.line-cta-button::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: white;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.line-cta-button:hover::after {
    width: 80%;
}

.line-cta-button i {
    font-size: 28px;
    margin-right: 12px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .line-cta-button {
        font-size: 16px;
    }
    
    .line-cta-button i {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* ===== Policy & Philosophy（モバイル微調整）===== */

/* 句読点ぶら下げ＆禁則寄りの改行にして不自然な改行を抑制 */
.elegant-header .description,
.policy-typing .typing-line{
  line-break: strict;       /* 和文向け禁則に近い改行 */
  word-break: normal;
  hanging-punctuation: allow-end;  /* 対応ブラウザで句読点の見栄え改善 */
  text-wrap: balance;       /* 見出し/長文の均等改行（対応ブラウザ） */
}

/* モバイルでフォントを一段小さく、行間は広めにして綺麗に折り返す */
@media (max-width: 600px){
  .elegant-header .main-title{
    font-size: clamp(22px, 6.2vw, 28px);
    margin-bottom: 10px;           /* 1行目と2行目の間を少し詰める */
  }
  .elegant-header .subtitle{
    margin-top: 6px;
  }
  /* タイピング行のサイズ調整（3行とも） */
  .policy-typing .typing-line{
    font-size: clamp(11px, 3.9vw, 16.5px);
    line-height: 1.9;              /* 行間ゆったりで読みやすく */
    letter-spacing: .01em;
  }
  /* タイピングブロック全体の余白を少し縮める */
  .policy-typing{
    margin-top: 6px;
  }
}

/* さらに狭い端末での最終しぼり */
@media (max-width: 360px){
  .policy-typing .typing-line{
    font-size: 11px;
    line-height: 1.95;
  }
}

/* 任意の語句を改行させない */
.no-wrap{
  white-space: nowrap;
  display: inline-block; /* タイピング幅計算とも相性○ */
}

/* 1行目を必ず1行に。狭い画面では少しだけ自動で縮む */
.policy-typing .single-line{
  white-space: nowrap;                 /* 途中改行させない */
  overflow: hidden;                    /* タイピング幅と整合 */
  font-size: clamp(15px, 3.8vw, 18px); /* 画面が狭いときだけ微縮小 */
  line-height: 1.5;
}

/* さらに狭い端末で確実に収めたい場合（任意） */
@media (max-width: 360px){
  .policy-typing .single-line{ font-size: 11px; }
}
