@charset "utf-8";
/*  
Theme Name: KASUYA_Original
Theme URI: http://piano-harmonics.fool.jp/
Description:KASUYA_Original Structure Template + Skin
Version: 1.0
Author: kasuya
*/

@import url("style-vega/import.css");

/* --- Custom: fixed-break heading control ---
   Ensure each span.line inside the heading breaks onto its own line consistently. */

/* core.css hides all h1 on .mainIndex; re-show only the #head02 heading */
body.mainIndex #head02 h1.fixed-break {
  display: block !important; /* 非表示解除だけ !important */
  border: none;              /* ← 枠線( solid )を消す */
  padding: 0;                /* core.css の余白もリセット */
  background: none;
  background-color: transparent; 
}

/* Base adjustments */
#head02 h1 {
  border: none;              /* ← head02 内の h1 は常に枠線なし */
  padding: 0;
  background: none;
  font-size: 24px;
  color: #CC6666;
  margin: 20px 0 0;
  text-align: left;
  text-indent: 3pt;
}

#head02 h1.fixed-break {
	font-size: 24px; /* ensure unit */
	line-height: 1.35;
}

#head02 h1.fixed-break .line {
	font-size: 24px;
	display: inline-block;
	white-space: nowrap; /* prevent wrapping within each line */
}
@media screen and (max-width:768px){
  body.mainIndex #head02 h1.fixed-break{
    display: block !important;
    border: none;            /* 念のためモバイル側でも明示 */
    margin: 0;
    text-align: center;      /* ← スマホ時に中央寄せ */
    width: 100%;
    line-height: 0.9;
    font-size: 18px;
    text-indent: 0;
    background: none;
    background-color: transparent;
    
  }
  body.mainIndex #head02 h1.fixed-break .line{
    display:block;
    font-size:inherit;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  /* 見出し類を中央寄せ＆マージン縮小 */
  body.mainIndex #head02 h1{
    margin: 8px 0 0;
    font-size: 20px;
    text-align: center;      /* ← スマホ時に中央寄せ */
    text-indent: 0;
  }
  body.mainIndex #head02 p{
    margin:0 0 0;
    text-align:left;
  }
}


